summaryrefslogtreecommitdiff
path: root/pkgtools/pkgin
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2013-02-25 19:35:38 +0000
committerimil <imil@pkgsrc.org>2013-02-25 19:35:38 +0000
commitc5e25f46fb334a50f955bad60ee92a1c711ac9e9 (patch)
treee8ac70efe030ee6f05a34e92e792588139fef8d4 /pkgtools/pkgin
parent336fab7160d3fbcd49ff8b924531f8b36d650945 (diff)
downloadpkgsrc-c5e25f46fb334a50f955bad60ee92a1c711ac9e9.tar.gz
NetBSD specific: repositories.conf is configured using OS release number.
Diffstat (limited to 'pkgtools/pkgin')
-rw-r--r--pkgtools/pkgin/Makefile17
-rw-r--r--pkgtools/pkgin/distinfo8
2 files changed, 16 insertions, 9 deletions
diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile
index 340b7f1e015..c914dc78f7f 100644
--- a/pkgtools/pkgin/Makefile
+++ b/pkgtools/pkgin/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.33 2013/02/06 23:23:29 jperkin Exp $
+# $NetBSD: Makefile,v 1.34 2013/02/25 19:35:38 imil Exp $
#
-DISTNAME= pkgin-0.6.3.1
-PKGREVISION= 2
+DISTNAME= pkgin-0.6.3.1.1
CATEGORIES= pkgtools
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/
@@ -30,6 +29,16 @@ SUBST_SED.path+= -e "s|/var|${VARBASE}|g"
SUBST_SED.path+= -e "s|/usr/pkg|${PREFIX}|g"
SUBST_SED.path+= -e "s|!=.*uname -p|= ${MACHINE_ARCH}|g"
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+SUBST_CLASSES+= osrel
+SUBST_STAGE.osrel= pre-configure
+SUBST_MESSAGE.osrel= Adjusting repository OS release
+SUBST_FILES.osrel= REPOSITORIES
+SUBST_SED.osrel= -e "s|@OSREL@|${OS_VERSION:C/_.*//}|"
+.endif
+
GNU_CONFIGURE= yes
USE_FEATURES= nbcompat
USE_TOOLS+= nroff
@@ -38,8 +47,6 @@ MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
DEPENDS+= pkg_install>=20110215:../../pkgtools/pkg_install
-.include "../../mk/bsd.prefs.mk"
-
# those have official repositories
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix"
pre-install:
diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo
index 880cb25f71c..51d4d0ff1e3 100644
--- a/pkgtools/pkgin/distinfo
+++ b/pkgtools/pkgin/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.26 2012/12/14 22:43:45 imil Exp $
+$NetBSD: distinfo,v 1.27 2013/02/25 19:35:38 imil Exp $
-SHA1 (pkgin-0.6.3.1.tar.gz) = 61ad61c6a4cccf31dd3222304dc761d0b82c33d5
-RMD160 (pkgin-0.6.3.1.tar.gz) = 5a333f15bf4e6c31693da5cf9d6e7cafbe918a84
-Size (pkgin-0.6.3.1.tar.gz) = 187786 bytes
+SHA1 (pkgin-0.6.3.1.1.tar.gz) = 304cd88f91b80107168bbfc80211a8b3bbd1bae9
+RMD160 (pkgin-0.6.3.1.1.tar.gz) = 3e1896bf6169ca82fc667962d7fdefb401bd0cdb
+Size (pkgin-0.6.3.1.1.tar.gz) = 187921 bytes