summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorabs <abs>2006-06-09 16:43:33 +0000
committerabs <abs>2006-06-09 16:43:33 +0000
commit9bc41a4c99c104f06b9c0adfcc22603d15d2be29 (patch)
tree1b251ea7260332f1bad485fa4b344ee8217f556e /pkgtools
parent227348ac28eb11ccc9db59ebe741489d9cb59105 (diff)
downloadpkgsrc-9bc41a4c99c104f06b9c0adfcc22603d15d2be29.tar.gz
update pkg_chk to 1.75
- match bsd.own.mk logic for determining MAKECONF, as requested by Joerg
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_chk/Makefile5
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh6
2 files changed, 7 insertions, 4 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile
index b59e25f9fa1..610feca28e5 100644
--- a/pkgtools/pkg_chk/Makefile
+++ b/pkgtools/pkg_chk/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2006/06/07 16:27:14 abs Exp $
+# $NetBSD: Makefile,v 1.35 2006/06/09 16:43:33 abs Exp $
-DISTNAME= pkg_chk-1.74
+DISTNAME= pkg_chk-1.75
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
@@ -38,6 +38,7 @@ do-build:
-e 's#@SH@#${SH}#g' \
-e 's#@SORT@#${SORT}#g' \
-e 's#@TSORT@#${TSORT}#g' \
+ -e 's#@PREFIX@#${PREFIX}#g' \
${FILESDIR}/pkg_chk.sh >${WRKSRC}/pkg_chk.sh
do-install:
diff --git a/pkgtools/pkg_chk/files/pkg_chk.sh b/pkgtools/pkg_chk/files/pkg_chk.sh
index b80606a34ca..20f40db6f9f 100755
--- a/pkgtools/pkg_chk/files/pkg_chk.sh
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh
@@ -1,6 +1,6 @@
#!@SH@ -e
#
-# $Id: pkg_chk.sh,v 1.35 2006/06/07 16:27:14 abs Exp $
+# $Id: pkg_chk.sh,v 1.36 2006/06/09 16:43:33 abs Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Variation of -g which only lists top level packages
@@ -646,7 +646,9 @@ test -n "$SORT" || SORT="@SORT@"
test -n "$TSORT" || TSORT="@TSORT@"
if [ ! -f $MAKECONF ] ; then
- if [ -f /etc/mk.conf ] ; then
+ if [ -f @PREFIX@/etc/mk.conf ] ; then
+ MAKECONF=@PREFIX@/etc/mk.conf
+ elif [ -f /etc/mk.conf ] ; then
MAKECONF=/etc/mk.conf
else
MAKECONF=/dev/null