summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhubertf <hubertf>2001-11-29 01:12:24 +0000
committerhubertf <hubertf>2001-11-29 01:12:24 +0000
commita7156fd6114f66731ac43c87becf3bfc32863119 (patch)
tree57da34d13a725a0c61343ca8eabdee3d27dfbd9a /mk
parent9e1b7e2056dec034a2775f265b4a5eff1b7b7455 (diff)
downloadpkgsrc-a7156fd6114f66731ac43c87becf3bfc32863119.tar.gz
Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get bumped independent of DISTNAME and PKGNAME. Example #1: DISTNAME= foo-X.Y PKGREVISION= Z => PKGNAME= foo-X.YnbZ Example #2: DISTNAME= barthing-X.Y PKGNAME= bar-X.Y PKGREVISION= Z => PKGNAME= bar=X.YnbZ (!) On subsequent changes, only PKGREVISION needs to be bumped, no more risk of getting DISTNAME changed accidentally.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 16396f644cf..dcf68c37c49 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.865 2001/11/28 19:55:31 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.866 2001/11/29 01:17:25 hubertf Exp $
#
# This file is in the public domain.
#
@@ -860,7 +860,15 @@ PATCH_SITES:= ${_MASTER_SITE_OVERRIDE} ${PATCH_SITES}
# Derived names so that they're easily overridable.
DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}
+.if defined(PKGREVISION) && ${PKGREVISION} != ""
+. if defined(PKGNAME)
+PKGNAME:= ${PKGNAME}nb${PKGREVISION}
+. else
+PKGNAME?= ${DISTNAME}nb${PKGREVISION}
+. endif
+.else
PKGNAME?= ${DISTNAME}
+.endif
SVR4_PKGNAME?= ${PKGNAME}
MAINTAINER?= packages@netbsd.org