summaryrefslogtreecommitdiff
path: root/sysutils/py-google-compute-engine/Makefile
blob: 79d860995f22fa3bb3c8f47c75244203546bfc81 (plain)
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
# $NetBSD: Makefile,v 1.2 2017/04/13 18:43:34 joerg Exp $

GITHUB_PROJECT=	compute-image-packages
GITHUB_TAG=	20170302
DISTNAME=	google-compute-engine-${GITHUB_TAG}
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=GoogleCloudPlatform/}
DIST_SUBDIR=	${GITHUB_PROJECT}

MAINTAINER=	bsiegert@NetBSD.org
HOMEPAGE=	https://cloud.google.com/compute/docs/images
COMMENT=	Packages for Google Compute Engine images
LICENSE=	apache-2.0

# Uses [[ =~ ]]
USE_TOOLS+=	bash:run
REPLACE_BASH+=	scripts/optimize_local_ssd scripts/set_multiqueue

WRKSRC=		${WRKDIR}/compute-image-packages-${GITHUB_TAG}

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	google_compute_engine/config_manager.py \
			google_compute_engine/accounts/accounts_daemon.py \
			google_compute_engine/accounts/accounts_utils.py \
			google_compute_engine/boto/boto_config.py \
			google_compute_engine/clock_skew/clock_skew_daemon.py \
			google_compute_engine/instance_setup/instance_config.py \
			google_compute_engine/ip_forwarding/ip_forwarding_daemon.py
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Fixing absolute paths.
SUBST_SED.paths=	-e 's,/etc,${PREFIX},g'
SUBST_SED.paths+=	-e 's,/var,${VARBASE},g'



.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"