aboutsummaryrefslogtreecommitdiffstats
path: root/net/google-daemon/Makefile
blob: d3af5cb2ebb1c2a09e15fb94492f3d40d0affcbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$

PORTNAME=   google-daemon
PORTVERSION=    1.2.1
PORTREVISION=   0
CATEGORIES= net
MASTER_SITES=   GHR

MAINTAINER= swills@FreeBSD.org
COMMENT=    Google daemon for use with Google Cloud Compute Engine

BUILD_DEPENDS=  python:${PORTSDIR}/lang/python
RUN_DEPENDS=    python:${PORTSDIR}/lang/python \
        sudo:${PORTSDIR}/security/sudo

USES=       python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= GoogleCloudPlatform
GH_PROJECT= compute-image-packages
USE_RC_SUBR=    google-accounts-manager
WRKSRC=     ${WRKDIR}/${GH_PROJECT}-${PORTVERSION}/${PORTNAME}

SHEBANG_FILES=  usr/share/google/google_daemon/accounts.py \
        usr/share/google/google_daemon/accounts_manager.py \
        usr/share/google/google_daemon/accounts_manager_daemon.py \
        usr/share/google/google_daemon/address_manager.py \
        usr/share/google/google_daemon/desired_accounts.py \
        usr/share/google/google_daemon/manage_accounts.py \
        usr/share/google/google_daemon/manage_addresses.py \
        usr/share/google/google_daemon/utils.py

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
        ${WRKSRC}/usr/share/google/google_daemon/accounts.py \
        ${WRKSRC}/usr/share/google/google_daemon/accounts_manager.py \
        ${WRKSRC}/usr/share/google/google_daemon/utils.py
    @${RM} ${WRKSRC}/usr/share/google/google_daemon/*.bak \
        ${WRKSRC}/usr/share/google/google_daemon/*.orig

do-build:
    ${PYTHON_CMD} -m compileall ${WRKSRC}/usr/share/google/google_daemon

do-install:
    cd ${WRKSRC}/usr/share ; ${COPYTREE_BIN} google ${STAGEDIR}${PREFIX}/share

.include <bsd.port.mk>