summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-07-02 12:56:32 +0000
committeragc <agc@pkgsrc.org>1999-07-02 12:56:32 +0000
commitd05adf715557117a6ba5e13d3500d88d555e7603 (patch)
tree5317c5591767e96e44bf536407b07d0e21b2d88d
parentf3d4f4e60e5f1491867cfcf84dbc8713ffbbc2b4 (diff)
downloadpkgsrc-d05adf715557117a6ba5e13d3500d88d555e7603.tar.gz
Add a show-downlevel target, which shows output of the form:
... ===> package security/sudo sudo package: sudo-1.5.7p4 installed, pkgsrc version sudo-1.5.9p1 ===> package security/tripwire ===> category shells ... for installed packages whose version does not match that in pkgsrc. No output is produced if the package is not installed. This allows an easy overview of the packages installed on a machine which need to be upgraded. Also make minor modifications to the SUBDIRUSE target for Solaris.
-rw-r--r--mk/bsd.pkg.subdir.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk
index 211af5707bd..5e2ac27b01e 100644
--- a/mk/bsd.pkg.subdir.mk
+++ b/mk/bsd.pkg.subdir.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.subdir.mk,v 1.29 1999/06/28 11:42:29 agc Exp $
+# $NetBSD: bsd.pkg.subdir.mk,v 1.30 1999/07/02 12:56:32 agc Exp $
# Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
#
@@ -61,9 +61,11 @@ SED?= /usr/bin/sed
SORT?= /usr/bin/sort
_SUBDIRUSE: .USE
- @for entry in ${SUBDIR}; do \
+ @for entry in "" ${SUBDIR}; do \
+ if [ "X$$entry" = "X" ]; then continue; fi; \
OK=""; \
- for dud in ${DUDS}; do \
+ for dud in "" ${DUDS}; do \
+ if [ "X$$dud" = "X" ]; then continue; fi; \
if [ $${dud} = $${entry} ]; then \
OK="false"; \
${ECHO_MSG} "===> ${_THISDIR_}$${entry} skipped"; \
@@ -101,7 +103,7 @@ ${SUBDIR}::
.for __target in all fetch fetch-list package extract configure build clean \
cleandir distclean depend describe reinstall tags checksum \
- mirror-distfiles deinstall ${PKG_MISC_TARGETS}
+ mirror-distfiles deinstall show-downlevel ${PKG_MISC_TARGETS}
.if !target(__target)
${__target}: _SUBDIRUSE
.endif