pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgin allow overriding the default repository...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1720d3794e5
branches:  trunk
changeset: 641849:a1720d3794e5
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Wed Nov 19 15:10:32 2014 +0000

description:
allow overriding the default repository URL with PKGIN_REPOSITORY_URL

diffstat:

 pkgtools/pkgin/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 51f583a79bc4 -r a1720d3794e5 pkgtools/pkgin/Makefile
--- a/pkgtools/pkgin/Makefile   Wed Nov 19 15:00:16 2014 +0000
+++ b/pkgtools/pkgin/Makefile   Wed Nov 19 15:10:32 2014 +0000
@@ -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 @@
 
 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 @@
 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



Home | Main Index | Thread Index | Old Index