summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-10 11:51:57 +0000
committertron <tron@pkgsrc.org>2001-07-10 11:51:57 +0000
commit805f15ed418b3fe13788d8f0c94add6296f65dde (patch)
tree231286136b345b30b2ebc157309e0bed3fa60efe /mk
parent69a42c47df1337694600b24630c319e3630f200a (diff)
downloadpkgsrc-805f15ed418b3fe13788d8f0c94add6296f65dde.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