diff options
author | erh <erh@pkgsrc.org> | 2005-11-17 04:12:54 +0000 |
---|---|---|
committer | erh <erh@pkgsrc.org> | 2005-11-17 04:12:54 +0000 |
commit | 8dfe14c73d5b3b564f4c23eb6a8b97afeaccdac0 (patch) | |
tree | ae64902893624971bba1ee1c7f35cd6123710fc4 /mk | |
parent | d2e73bdcc9ca9b9a99b153d7b4c2cfdb2458d608 (diff) | |
download | pkgsrc-8dfe14c73d5b3b564f4c23eb6a8b97afeaccdac0.tar.gz |
Only show the message about fiddling with mk.conf if the output of
check-vulnerable actually contains some vulnerability ids.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 14e7bed455d..f92832ea53b 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1754 2005/11/17 03:58:16 erh Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1755 2005/11/17 04:12:54 erh Exp $ # # This file is in the public domain. # @@ -1372,7 +1372,7 @@ _AUDIT_PACKAGES_OK!= ${PKG_INFO} -qe 'audit-packages>=${_AUDIT_PACKAGES_MIN_VERS check-vulnerable: .if empty(_AUDIT_PACKAGES_OK:M0) @${ECHO_MSG} "${_PKGSRC_IN}> *** The audit-packages package must be at least version ${_AUDIT_PACKAGES_MIN_VERSION}" - @${ECHO_MSG} "${_PKGSRC_IN}> *** Please install pkgsrc/security/audit-packages package and run"; + @${ECHO_MSG} "${_PKGSRC_IN}> *** Please install the security/audit-packages package and run"; @${ECHO_MSG} "${_PKGSRC_IN}> *** '${LOCALBASE}/sbin/download-vulnerability-list'."; @false .else @@ -1396,13 +1396,15 @@ do-fetch: vul=`${MAKE} ${MAKEFLAGS} check-vulnerable`; \ case "$$vul" in \ "") ;; \ - *) vulnids=`echo "$$vul" | sed -e's/.*vulnid:\\([[:digit:]]*\\).*/\\1/'`; \ + *vulnid:*) vulnids=`echo "$$vul" | grep vulnid: | sed -e's/.*vulnid:\\([[:digit:]]*\\).*/\\1/'`; \ ${ECHO} "$$vul"; \ ${ECHO} "or if this package is absolutely essential, add this to mk.conf:"; \ for vulnid in $$vulnids ; do \ ${ECHO} " ALLOW_VULNERABILITIES.${PKGBASE}+=$$vulnid"; \ done ; \ ${FALSE} ;; \ + *) ${ECHO} "$$vul"; \ + ${FALSE} ;; \ esac; \ else \ ${ECHO_MSG} "${_PKGSRC_IN}> *** No ${PKGVULNDIR}/pkg-vulnerabilities file found,"; \ |