diff options
author | joerg <joerg@pkgsrc.org> | 2008-03-15 16:27:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-03-15 16:27:42 +0000 |
commit | 1375bd11994e69708ff25f19ec39308b9a317cd3 (patch) | |
tree | 34393cfaace98068b87e86e1ba3c87ca1a745941 /mk/scripts | |
parent | f1c6df3ba55b0e73b53bdf3713ce824eab18020b (diff) | |
download | pkgsrc-1375bd11994e69708ff25f19ec39308b9a317cd3.tar.gz |
Remove remaining compat code for old pkg_install versions.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/genreadme.awk | 37 | ||||
-rwxr-xr-x | mk/scripts/mkreadme | 10 |
2 files changed, 5 insertions, 42 deletions
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk index 417faa7f9b4..ce70a884fc7 100755 --- a/mk/scripts/genreadme.awk +++ b/mk/scripts/genreadme.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genreadme.awk,v 1.30 2008/01/03 20:51:22 adrianp Exp $ +# $NetBSD: genreadme.awk,v 1.31 2008/03/15 16:27:43 joerg Exp $ # # Copyright (c) 2002, 2003, 2005, 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -372,45 +372,12 @@ END { if (debug) printf("wrote = %d entries to \"%s\"\n", i-1, htmldeps_file); -# XXX: The code for the pkg_install<20070714 vulnerability checks are -# XXX: broken. It will not find vulnerabilities in any packages that -# XXX: have complex names in the pkg-vulnerabilties file. -# XXX: e.g. php{4,5}-perl and sun-{jdk,jre}15 # XXX: Post pkg_install-20070714 only currently known vulnerabilities are # XXX: shown in the generated README.html files for packages. vul = ""; - if (have_vfile && PKGTOOLS_VERSION < 20070714) { - i = 1; - pkgbase = pkgdir2name[toppkg]; - gsub(/-[^-]*$/, "", pkgbase); - if (debug) { - printf("Checking for %s (%s) vulnerabilities\n", - toppkg, pkgbase); - } - while(i in vulpkg) { - if (vulpkg[i] ~ "^" pkgbase"[-<>=]+[0-9]") { - nm = vulpkg[i]; - gsub(/&/, "\\\\\\&", nm); - gsub(/</, "\\\\\\<", nm); - gsub(/>/, "\\\\\\>", nm); - url = vulref[i]; - gsub(/&/, "\\\\\\&", url); - printurl = vulref[i]; - gsub(/&/, "\\\\\\&", printurl); - gsub(/</, "\\\\\\<", printurl); - gsub(/>/, "\\\\\\>", printurl); - vul = sprintf("%s<LI><STRONG>%s has a <a href=\"%s\">%s</a> vulnerability</STRONG></LI>\n", - vul, nm, url, vultype[i]); - } - i = i + 1; - } - if ( vul == "" ){ - vul="<I>(no vulnerabilities known)</I>"; - } - } - if (have_vfile && PKGTOOLS_VERSION >= 20070714) { + if (have_vfile) { pkg = pkgdir2name[toppkg]; if (debug) { diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme index 806da75d9bc..1f40258b56a 100755 --- a/mk/scripts/mkreadme +++ b/mk/scripts/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.21 2008/01/03 20:51:22 adrianp Exp $ +# $NetBSD: mkreadme,v 1.22 2008/03/15 16:27:43 joerg Exp $ # # Script for README.html generation # @@ -307,13 +307,9 @@ fi # populated until this stage (see above) # if [ "$pv" = "default" ]; then - if ${PKG_ADMIN} pmatch 'pkg_install<20070714' pkg_install-${PKGTOOLS_VERSION}; then - PVDIR=`${BMAKE} show-var VARNAME=PKGVULNDIR` - else - PVDIR=`${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR` - fi + PVDIR=`${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR` fi - echo "----> PVDIR=\"${PVDIR}\"" +echo "----> PVDIR=\"${PVDIR}\"" ###################################################################### |