summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2003-08-22 10:11:57 +0000
committeragc <agc@pkgsrc.org>2003-08-22 10:11:57 +0000
commit47409ab810dc4b73cc496ddbcd4a72fa9ec55361 (patch)
treeebed410a8512b5e5d079d31da6347fd4bd2417eb /security/audit-packages
parent5f102e9a368e18a6de5f636b1764dd3d5ebe1e9b (diff)
downloadpkgsrc-47409ab810dc4b73cc496ddbcd4a72fa9ec55361.tar.gz
Update audit-packages to 1.17.
Instead of using the number of bytes to determine whether or not the file has shrunk, use the number of lines. This will allow for spelling corrections, login name of committers being shorter than others, etc. This is a temporary measure until a better distribution mechanism is used. Suggested by David Brownlee.
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/Makefile5
-rw-r--r--security/audit-packages/files/download-vulnerability-list8
2 files changed, 7 insertions, 6 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index df63e711397..893a2170fcd 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2003/07/21 17:20:06 martti Exp $
+# $NetBSD: Makefile,v 1.26 2003/08/22 10:11:57 agc Exp $
-DISTNAME= audit-packages-1.16
+DISTNAME= audit-packages-1.17
WRKSRC= ${WRKDIR}
CATEGORIES= security pkgtools
MASTER_SITES= # empty
@@ -31,6 +31,7 @@ do-build:
-e 's|@PKGSRCDIR@|${_PKGSRCDIR}|g' \
-e 's|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g' \
-e 's|@SH@|${SH}|g' \
+ -e 's|@WC@|${WC}|g' \
${FILESDIR}/$$f > ${WRKSRC}/$$f; \
done
${NROFF} ${WRKSRC}/audit-packages.8 >${WRKSRC}/audit-packages.0
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list
index 78e2da6c203..5cb6e83b057 100644
--- a/security/audit-packages/files/download-vulnerability-list
+++ b/security/audit-packages/files/download-vulnerability-list
@@ -1,5 +1,5 @@
#! @SH@
-# $NetBSD: download-vulnerability-list,v 1.14 2003/05/21 14:07:45 seb Exp $
+# $NetBSD: download-vulnerability-list,v 1.15 2003/08/22 10:11:58 agc Exp $
: ${PKGVULNDIR=@PKGVULNDIR@}
@@ -17,13 +17,13 @@ cd ${PKGVULNDIR}
existsize=0
newsize=0
if [ -f ${EXIST_VUL_LIST} ]; then
- existsize=`/bin/ls -l ${EXIST_VUL_LIST} | @AWK@ '{ print $5 }'`
+ existsize=`@WC@ -l ${EXIST_VUL_LIST} | @AWK@ '{ print $1 }'`
fi
if [ -f ${NEW_VUL_LIST} ]; then
- newsize=`/bin/ls -l ${NEW_VUL_LIST} | @AWK@ '{ print $5 }'`
+ newsize=`@WC@ -l ${NEW_VUL_LIST} | @AWK@ '{ print $1 }'`
fi
if [ $newsize -lt $existsize ]; then
- echo "New vulnerability list ($newsize bytes) is smaller than existing list ($existsize bytes)" 1>&2
+ echo "New vulnerability list ($newsize lines) is smaller than existing list ($existsize lines)" 1>&2
/bin/rm -f ${NEW_VUL_LIST}
exit 1
fi