summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2000-07-30 08:52:41 +0000
committertron <tron>2000-07-30 08:52:41 +0000
commit48ee68bacc1d68046df6a3876c42e31b6977b0e4 (patch)
treee23f7bf26d2efe38bc4397dc2a5985398390d3eb /mk
parent09f8d57a6064d561743a0f7a467cdfebc6a52db8 (diff)
downloadpkgsrc-48ee68bacc1d68046df6a3876c42e31b6977b0e4.tar.gz
Add new "info" target which calls "pkg_info" for the package in the
current directory.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 5b2ad5df8c9..3098b5a3376 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.523 2000/07/29 00:06:26 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.524 2000/07/30 08:52:41 tron Exp $
#
# This file is in the public domain.
#
@@ -2066,6 +2066,11 @@ ${DLIST}:
(${PKG_INFO} -R "${PKGWILDCARD}" || ${TRUE}) | \
${TAIL} -n +4 >${DLIST}
+# The 'info' target can be used to display information about a package.
+
+info: uptodate-pkgtools
+ ${_PKG_SILENT}${_PKG_DEBUG}${PKG_INFO} ${PKGWILDCARD}
+
# This is for the use of sites which store distfiles which others may
# fetch - only fetch the distfile if it is allowed to be
# re-distributed freely