pkgsrc/sysutils/py-google-compute-engine/Makefile
rillig 0a494be4d2 sysutils/py-google-compute-engine: allow no-op SUBST block
It looks wrong that the paths in constants.py depend on the operating
system, but that's not caused by the latest SUBST changes, so I'm leaving
that as-is.  Someone familiar with this package should have a look.
2020-05-09 20:02:24 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2020/05/09 20:02:24 rillig Exp $
GITHUB_PROJECT= compute-image-packages
GITHUB_TAG= 20170829
DISTNAME= google-compute-engine-${GITHUB_TAG}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
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'
SUBST_NOOP_OK.paths= yes # the paths look broken, someone should fix this
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"