From 805f15ed418b3fe13788d8f0c94add6296f65dde Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 10 Jul 2001 11:51:57 +0000 Subject: Add new "tarup" target which allows to create a binary package from an installed package with the "pkg_tarup" utility. --- mk/bsd.pkg.mk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'mk') 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 -- cgit v1.2.3