aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/py-google-compute-engine/Makefile
blob: 796a03adbf890383d7b524405b9ac048aae5c3dd (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
# $FreeBSD$

PORTNAME=   google-compute-engine
PORTVERSION=    2.4.1
CATEGORIES= sysutils python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= helen.koike@collabora.com
COMMENT=    Guest Environment for Google Compute Engine

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}boto>0:devel/py-boto \
        ${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr \
        ${PYTHON_PKGNAMEPREFIX}netifaces>0:net/py-netifaces \
        sudo:security/sudo

USES=       python
USE_PYTHON= autoplist concurrent distutils

USE_RC_SUBR=    google_instance_setup \
        google_network_setup \
        google_accounts_daemon \
        google_clock_skew_daemon \
        google_startup

NO_ARCH=    yes

SUB_LIST=   PYTHON_CMD="${PYTHON_CMD}"
REINPLACE_ARGS= -i ''

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
        ${WRKSRC}/google_compute_engine/accounts/accounts_utils.py \
        ${WRKSRC}/google_compute_engine/boto/boto_config.py \
        ${WRKSRC}/google_compute_engine/boto/compute_auth.py \
        ${WRKSRC}/google_compute_engine/config_manager.py \
        ${WRKSRC}/google_compute_engine/instance_setup/instance_config.py \
        ${WRKSRC}/google_compute_engine/metadata_scripts/script_executor.py \
        ${WRKSRC}/google_compute_engine/network_setup/network_setup.py

.include <bsd.port.mk>