diff options
author | wiz <wiz@pkgsrc.org> | 2010-03-21 10:52:29 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2010-03-21 10:52:29 +0000 |
commit | aa8b6e24a30c66e4d742bbbc3ae1f8221b9dcd5f (patch) | |
tree | a38d98a4a8830b7b9ff742b411f8c7eed9504d04 /mk | |
parent | 9f7054197f3facbb15c91cac8baf825656f7161e (diff) | |
download | pkgsrc-aa8b6e24a30c66e4d742bbbc3ae1f8221b9dcd5f.tar.gz |
Depend on fixed version of xz.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/sort-packages | 24 | ||||
-rw-r--r-- | mk/bulk/upload | 49 | ||||
-rw-r--r-- | mk/tools/replace.mk | 6 |
3 files changed, 12 insertions, 67 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages index ed2e952c47d..2c5768fa028 100644 --- a/mk/bulk/sort-packages +++ b/mk/bulk/sort-packages @@ -1,16 +1,13 @@ #! /bin/sh -# $NetBSD: sort-packages,v 1.12 2008/03/15 16:27:43 joerg Exp $ +# $NetBSD: sort-packages,v 1.13 2010/03/21 10:52:29 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}" ;; diff --git a/mk/bulk/upload b/mk/bulk/upload index dd20e64a5b4..b682ef8fa69 100644 --- a/mk/bulk/upload +++ b/mk/bulk/upload @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: upload,v 1.45 2010/03/18 08:58:28 spz Exp $ +# $NetBSD: upload,v 1.46 2010/03/21 10:52:29 wiz Exp $ # # Upload non-restricted binary pkgs to ftp server @@ -218,14 +218,12 @@ TMP="${TMPDIR}"/pkg_upload.$$ exit 1 } -vulnerable_packages="$TMP/vulnerable_packages" restricted_packages="$TMP/restricted_packages" old_packages="$TMP/old_packages" good_packages="$TMP/regular_packages" all_good_packages="$TMP/all_regular_packages" upload_general="$TMP"/upload_general -upload_vulnerable="$TMP"/upload_vulnerable # May be different than $USR_PKGSRC: echo "upload> Running ${BMAKE} to get the pkgsrc variables" @@ -241,19 +239,6 @@ for pkg in ${REQUIRED_PACKAGES}; do install_required $pkg done -echo "upload> Making sure vulnerability-list is up-to-date:" -if [ -z "$UPDATE_VULNERABILITY_LIST" -o "$UPDATE_VULNERABILITY_LIST" = "yes" ] -then - _PKGVULNDIR=`audit-packages ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR` - download-vulnerability-list ${DOWNLOAD_VULNERABILITY_LIST_FLAGS} - if [ "x${_PKGVULNDIR}" != "x${distdir}" ]; then - cp ${_PKGVULNDIR}/pkg-vulnerabilities ${distdir} - fi - echo " done." -else - echo " (skipped)" -fi - case $LINTPKGSRC_CACHE in yes|YES) lintpkgsrc_cache="-I `cd pkgtools/lintpkgsrc ; ${BMAKE} show-var VARNAME=LINTPKGSRC_DB`" @@ -273,10 +258,8 @@ RSFLAGS="-vap --progress $RSYNC_OPTS" failed=no cd $packages -echo "upload> Checking for restricted and vulnerable packages" -(cd All && env PKG_INFO="${pkg_info}" OUTDIR="${TMP}" PKGVULNDIR="${distdir}" \ - AUDIT_PACKAGES_FLAGS="${AUDIT_PACKAGES_FLAGS}" \ - DOWNLOAD_VULNERABILITY_LIST_FLAGS="${DOWNLOAD_VULNERABILITY_LIST_FLAGS}" \ +echo "upload> Checking for restricted packages" +(cd All && env PKG_INFO="${pkg_info}" OUTDIR="${TMP}" \ ${shell} "${pkgsrcdir}/mk/bulk/sort-packages") # Add the name of the package file, including all its symlinks to the @@ -308,7 +291,7 @@ if [ "${MKSUMS}" = "yes" -o "${MKSUMS}" = "YES" ]; then [ -z "${CKSUM}" ] && CKSUM="echo" [ -z "${SYSVSUM}" ] && SYSVSUM="echo" - for pkg in `cat "${good_packages}" "${vulnerable_packages}"`; do + for pkg in `cat "${good_packages}"`; do pkg="All/$pkg" ${BSDSUM} "$pkg" >> BSDSUM ${CKSUM} "$pkg" >> CKSUM @@ -350,37 +333,17 @@ EOF chmod +x "$upload_general" if [ "$do_upload" = "yes" ]; then - echo "upload> Uploading non-vulnerable packages" + echo "upload> Uploading packages" ${shell} "$upload_general" \ || { echo "upload> ERROR: rsync failed. To retry later, you can run $upload_general" 1>&2 failed=yes } else - echo "upload> Skipping upload of non-vulnerable packages." + echo "upload> Skipping upload of packages." echo " Run \"$upload_general\" to upload them later." fi -cat <<EOF > "$upload_vulnerable" -#! /bin/sh -set -e -cd "$packages/All" -rsync $RSFLAGS --files-from="${vulnerable_packages}" --exclude-from="${old_packages}" . "$RSYNC_DST/All/" -EOF -chmod +x "$upload_vulnerable" - -if [ "$do_upload" = "yes" ]; then - echo "upload> Uploading vulnerable packages" - ${shell} "$upload_vulnerable" \ - || { - echo "upload> ERROR: rsync failed. To retry later, you can run $upload_vulnerable" 1>&2 - failed=yes - } -else - echo "upload> Skipping upload of vulnerable packages." - echo " Run \"$upload_vulnerable\" to upload them later." -fi - # clean up temp files if [ "$failed,$debug,$do_upload" = "no,no,yes" ]; then rm -fr "$TMP" diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 04d0aee13c1..2c096eac2a6 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.223 2010/01/20 14:47:30 joerg Exp $ +# $NetBSD: replace.mk,v 1.224 2010/03/21 10:52:29 wiz Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -561,7 +561,7 @@ TOOLS_PATH.lha= ${TOOLS_PREFIX.lha}/bin/lha . if !empty(PKGPATH:Marchivers/xz) MAKEFLAGS+= TOOLS_IGNORE.lzcat= . elif !empty(_TOOLS_USE_PKGSRC.lzcat:M[yY][eE][sS]) -TOOLS_DEPENDS.lzcat?= xz>=4.999.8beta:../../archivers/xz +TOOLS_DEPENDS.lzcat?= xz>=4.999.9betanb1:../../archivers/xz TOOLS_CREATE+= lzcat TOOLS_FIND_PREFIX+= TOOLS_PREFIX.lzcat=lzcat TOOLS_PATH.lzcat= ${TOOLS_PREFIX.lzcat}/bin/lzcat @@ -857,7 +857,7 @@ TOOLS_ARGS.xargs= -r # don't run command if stdin is empty . if !empty(PKGPATH:Marchivers/xz) MAKEFLAGS+= TOOLS_IGNORE.xzcat= . elif !empty(_TOOLS_USE_PKGSRC.xzcat:M[yY][eE][sS]) -TOOLS_DEPENDS.xzcat?= xz>=4.999.8beta:../../archivers/xz +TOOLS_DEPENDS.xzcat?= xz>=4.999.9betanb1:../../archivers/xz TOOLS_CREATE+= xzcat TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xzcat=xzcat TOOLS_PATH.xzcat= ${TOOLS_PREFIX.xzcat}/bin/xzcat |