summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2001-07-10 11:51:57 +0000
committertron <tron>2001-07-10 11:51:57 +0000
commit37863d20559a809bb03418eaaa97edb8c6b6a903 (patch)
tree231286136b345b30b2ebc157309e0bed3fa60efe /mk
parent8f6fe0ac6ff8931a3044cc00563edfa3feb08efa (diff)
downloadpkgsrc-37863d20559a809bb03418eaaa97edb8c6b6a903.tar.gz
Add new "tarup" target which allows to create a binary package from an
installed package with the "pkg_tarup" utility.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f956abc67c3..56e51df875c 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.783 2001/07/09 17:10:25 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.784 2001/07/10 11:51:57 tron Exp $
#
# This file is in the public domain.
#
@@ -2252,7 +2252,19 @@ check: uptodate-pkgtools
# Run pkglint:
lint:
- ${_PKG_SILENT}${_PKG_DEBUG}pkglint
+ ${_PKG_SILENT}${_PKG_DEBUG}${LOCALBASE}/bin/pkglint
+
+# Create a binary package from an install package using "pkg_tarup"
+tarup:
+ ${RM} -f ${PACKAGES}/All/${PKGNAME}${PKG_SUFX}; \
+ PKG_DBDIR=${PKG_DBDIR} PKG_SUFX=${PKG_SUFX:S/.//} \
+ PKGREPOSITORY=${PACKAGES}/All \
+ ${LOCALBASE}/bin/pkg_tarup ${PKGNAME}; \
+ for CATEGORY in ${CATEGORIES}; do \
+ cd ${PACKAGES}/$$CATEGORY; \
+ ${RM} -f ${PKGNAME}${PKG_SUFX}; \
+ ${LN} -s ../All/${PKGNAME}${PKG_SUFX}; \
+ done
# This is for the use of sites which store distfiles which others may
# fetch - only fetch the distfile if it is allowed to be