diff options
author | wiz <wiz@pkgsrc.org> | 2010-04-10 21:44:44 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2010-04-10 21:44:44 +0000 |
commit | 5f93331d66b44736078fceaa42d1a01ccf1efdb0 (patch) | |
tree | 22b9f823b2b5d27a918db4ef3ed5d83a554ef3af /mk/bulk/sort-packages | |
parent | 30686dab57a85636fe607c840b61ac17ad22e299 (diff) | |
download | pkgsrc-5f93331d66b44736078fceaa42d1a01ccf1efdb0.tar.gz |
Get rid of support for vulnerable/ directory.
Diffstat (limited to 'mk/bulk/sort-packages')
-rw-r--r-- | mk/bulk/sort-packages | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages index 881c994ca10..2312dc5cc02 100644 --- a/mk/bulk/sort-packages +++ b/mk/bulk/sort-packages @@ -1,16 +1,13 @@ #! /bin/sh -# $NetBSD: sort-packages,v 1.14 2010/03/21 15:31:41 wiz Exp $ +# $NetBSD: sort-packages,v 1.15 2010/04/10 21:44:44 wiz Exp $ # This program scans all binary packages in the current directory and -# creates three lists of files in OUTDIR: +# creates two lists of files in OUTDIR: # # restricted_packages # contains all packages that must not be published on the FTP # server, for whatever reason # -# vulnerable_packages -# contains all packages that are not restricted, but vulnerable -# # regular_packages # contains all the other ("good") packages. # @@ -19,19 +16,16 @@ set -eu : ${OUTDIR="/tmp"} : ${PKG_SUFX=".tgz"} -: ${AUDIT_PACKAGES="audit-packages"} : ${PKG_ADMIN="pkg_admin"} : ${PKG_INFO="pkg_info"} regular_packages="${OUTDIR}/regular_packages" restricted_packages="${OUTDIR}/restricted_packages" -vulnerable_packages="${OUTDIR}/vulnerable_packages" newline=" " : > "${regular_packages}" : > "${restricted_packages}" -: > "${vulnerable_packages}" for pkg in *${PKG_SUFX}; do build_info=`${PKG_INFO} -B "${pkg}"` @@ -64,16 +58,7 @@ for pkg in *${PKG_SUFX}; do ;; esac - if [ "${restricted}" = "no" ] && [ "${no_bin_on_ftp}" = "no" ]; then - # Check whether the package is vulnerable or not. - pkg_prefix="${pkg%%-*}" - category="regular" - _INFO_VER=`${PKG_INFO} -V`; - vuln=`${AUDIT_PACKAGES} ${AUDIT_PACKAGES_FLAGS} -p "${pkg}"` - if [ -n "${vuln}" ]; then - category="vulnerable" - fi - elif [ "${restricted}" != "unknown" ] && [ "${no_bin_on_ftp}" != "unknown" ]; then + if [ "${restricted}" != "unknown" ] && [ "${no_bin_on_ftp}" != "unknown" ]; then category="restricted" else category="unknown" @@ -85,9 +70,6 @@ for pkg in *${PKG_SUFX}; do "regular") echo "${pkg}" >> "${regular_packages}" ;; - "vulnerable") - echo "${pkg}" >> "${vulnerable_packages}" - ;; "restricted") echo "${pkg}" >> "${restricted_packages}" ;; |