summaryrefslogtreecommitdiff
path: root/pkgtools/osabi
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2014-10-28 02:08:38 +0000
committercheusov <cheusov@pkgsrc.org>2014-10-28 02:08:38 +0000
commit522736219b40624ddc2a5d0b94f679583d216317 (patch)
tree2145a9a28cc5d0f5fd195a05f438b4c13d8ff839 /pkgtools/osabi
parent19e37b29108f5d7bb9f3b3886e86c6bb2b60b796 (diff)
downloadpkgsrc-522736219b40624ddc2a5d0b94f679583d216317.tar.gz
IGNORE_OSABI was renamed to CHECK_OSABI
Diffstat (limited to 'pkgtools/osabi')
-rw-r--r--pkgtools/osabi/INSTALL8
-rw-r--r--pkgtools/osabi/Makefile4
2 files changed, 9 insertions, 3 deletions
diff --git a/pkgtools/osabi/INSTALL b/pkgtools/osabi/INSTALL
index 4f3bf334329..166c914e4ba 100644
--- a/pkgtools/osabi/INSTALL
+++ b/pkgtools/osabi/INSTALL
@@ -1,8 +1,14 @@
-# $NetBSD: INSTALL,v 1.3 2013/02/23 05:47:59 obache Exp $
+# $NetBSD: INSTALL,v 1.4 2014/10/28 02:08:38 cheusov Exp $
UNAME="@UNAME@"
+PKG_ADMIN="@PKG_ADMIN@"
+
case ${STAGE} in
PRE-INSTALL)
+ if ${TEST} no = "$($PKG_ADMIN config-var CHECK_OSABI)"; then
+ exit 0
+ fi
+
OS_VERSION=`${UNAME} -r`
PKG_VERSION="${PKGNAME##*-}"
case `${UNAME} -s` in
diff --git a/pkgtools/osabi/Makefile b/pkgtools/osabi/Makefile
index e4d76cab920..e8d7df0d37b 100644
--- a/pkgtools/osabi/Makefile
+++ b/pkgtools/osabi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2014/03/03 03:30:53 obache Exp $
+# $NetBSD: Makefile,v 1.3 2014/10/28 02:08:38 cheusov Exp $
#
PKGNAME= osabi-${OPSYS}-${OS_VERSION}
@@ -9,6 +9,6 @@ HOMEPAGE= http://www.pkgsrc.org/
COMMENT= Operating System version dummy-package
META_PACKAGE= yes
-FILES_SUBST+= UNAME=${UNAME:Q}
+FILES_SUBST+= UNAME=${UNAME:Q} PKG_ADMIN=${PKG_ADMIN:Q}
.include "../../mk/bsd.pkg.mk"