Sun May 13 13:44:00 2012 UTC ()
Updated pkgtools/pkg_chk to 2.0.1

ensure OS and arch tags are set in the binary package case as well as source
set x11 for R7 as ell as R6


(abs)
diff -r1.75 -r1.76 pkgsrc/pkgtools/pkg_chk/Makefile
diff -r1.65 -r1.66 pkgsrc/pkgtools/pkg_chk/files/pkg_chk.sh

cvs diff -r1.75 -r1.76 pkgsrc/pkgtools/pkg_chk/Makefile (expand / switch to context diff)
--- pkgsrc/pkgtools/pkg_chk/Makefile 2011/01/13 17:07:01 1.75
+++ pkgsrc/pkgtools/pkg_chk/Makefile 2012/05/13 13:43:59 1.76
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.75 2011/01/13 17:07:01 jmmv Exp $
+# $NetBSD: Makefile,v 1.76 2012/05/13 13:43:59 abs Exp $
 
-DISTNAME=	pkg_chk-2.0
-PKGREVISION=	1
+DISTNAME=	pkg_chk-2.0.1
 CATEGORIES=	pkgtools
 MASTER_SITES=	# empty
 DISTFILES=	# empty
@@ -16,8 +15,8 @@
 WRKSRC=		${WRKDIR}
 USE_LANGUAGES=	# empty
 USE_TOOLS+=	mktemp:run
-USE_TOOLS+= 	gzcat:run
-USE_TOOLS+= 	gzip:run
+USE_TOOLS+=	gzcat:run
+USE_TOOLS+=	gzip:run
 NO_BUILD=	yes
 
 CONFLICTS=	pkgchk-[0-9]*

cvs diff -r1.65 -r1.66 pkgsrc/pkgtools/pkg_chk/files/pkg_chk.sh (expand / switch to context diff)
--- pkgsrc/pkgtools/pkg_chk/files/pkg_chk.sh 2009/07/22 21:56:13 1.65
+++ pkgsrc/pkgtools/pkg_chk/files/pkg_chk.sh 2012/05/13 13:43:59 1.66
@@ -1,6 +1,6 @@
 #!@SH@ -e
 #
-# $Id: pkg_chk.sh,v 1.65 2009/07/22 21:56:13 sketch Exp $
+# $Id: pkg_chk.sh,v 1.66 2012/05/13 13:43:59 abs Exp $
 #
 # TODO: Make -g check dependencies and tsort
 # TODO: Make -g list user-installed packages first, followed by commented
@@ -369,14 +369,8 @@
     done
     }
 
-pkgdirs_from_conf()
+determine_tags()
     {
-    CONF=$1; shift
-    LIST="$*"
-    if [ ! -r $CONF ];then
-	fatal "Unable to read PKGCHK_CONF '$CONF'"
-    fi
-
     # Determine list of tags
     #
     if [ "$PKGSRCDIR" = NONE ]; then
@@ -388,7 +382,7 @@
     fi
 
     TAGS="$(hostname | ${SED} -e 's,\..*,,'),$(hostname),$OPSYS-$OS_VERSION-$MACHINE_ARCH,$OPSYS-$OS_VERSION,$OPSYS-$MACHINE_ARCH,$OPSYS,$OS_VERSION,$MACHINE_ARCH"
-    if [ -f /usr/X11R6/lib/libX11.so -o -f /usr/X11R6/lib/libX11.a ];then
+    if [ -f /usr/X11R7/lib/libX11.a -o -f /usr/X11R6/lib/libX11.a ];then
 	TAGS="$TAGS,x11"
     fi
     if [ -n "$PKGCHK_TAGS" ];then
@@ -418,7 +412,17 @@
 	fi
     fi
     verbose "set   TAGS=$opt_D"
+    }
 
+pkgdirs_from_conf()
+    {
+    CONF=$1; shift
+    LIST="$*"
+    if [ ! -r $CONF ];then
+	fatal "Unable to read PKGCHK_CONF '$CONF'"
+    fi
+
+
     # Extract list of valid pkgdirs (skip any 'alreadyset' in $LIST)
     #
     LIST="$LIST "$(${AWK} -v alreadyset="$LIST" -v setlist="$opt_D" -v unsetlist="$opt_U" '
@@ -847,6 +851,8 @@
 	    fi;;
     esac
 fi
+
+determine_tags
 
 if [ -n "$opt_g" ]; then
     verbose "Write $PKGCHK_CONF based on installed packages"