diff options
author | jmcneill <jmcneill> | 2014-11-19 15:10:32 +0000 |
---|---|---|
committer | jmcneill <jmcneill> | 2014-11-19 15:10:32 +0000 |
commit | 5698cc84da20e6e5352b28205f7e2f16f8deca90 (patch) | |
tree | c04f3895ff6d72f24b85e5d8ca7a59c53692246f /pkgtools/pkgin/Makefile | |
parent | a3f435cd3d9429bf326f07a6c8c52684d53ba023 (diff) | |
download | pkgsrc-5698cc84da20e6e5352b28205f7e2f16f8deca90.tar.gz |
allow overriding the default repository URL with PKGIN_REPOSITORY_URL
Diffstat (limited to 'pkgtools/pkgin/Makefile')
-rw-r--r-- | pkgtools/pkgin/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile index e78ef218118..3cbe09c1ff2 100644 --- a/pkgtools/pkgin/Makefile +++ b/pkgtools/pkgin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.48 2014/10/07 16:47:34 adam Exp $ +# $NetBSD: Makefile,v 1.49 2014/11/19 15:10:32 jmcneill Exp $ GHCOMMIT= 3859170568fbe4fe21b5660dbaeca8d65ac10f1b DISTNAME= ${GHCOMMIT} @@ -21,6 +21,8 @@ INSTALLATION_DIRS+= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 ${EGDIR} WRKSRC= ${WRKDIR}/pkgin-${GHCOMMIT} +BUILD_DEFS+= PKGIN_REPOSITORY_URL + SUBST_CLASSES+= path SUBST_STAGE.path= pre-configure SUBST_MESSAGE.path= Adjusting path. @@ -52,7 +54,10 @@ MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} DEPENDS+= pkg_install>=20130901:../../pkgtools/pkg_install # those have official repositories -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix" +.if !empty(PKGIN_REPOSITORY_URL) +pre-install: + echo ${PKGIN_REPOSITORY_URL} >> ${WRKSRC}/repositories.conf +.elif ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix" pre-install: ${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \ ${WRKSRC}/repositories.conf |