diff options
author | agc <agc> | 1998-09-17 15:47:08 +0000 |
---|---|---|
committer | agc <agc> | 1998-09-17 15:47:08 +0000 |
commit | 987342dd7beaf43b327c6cf529f109127a55519a (patch) | |
tree | 37178b4900decb25d860ed6425016c19659325cf /mk | |
parent | 5e20a31b11aabdc113aef2a29ac5cd353ea237f3 (diff) | |
download | pkgsrc-987342dd7beaf43b327c6cf529f109127a55519a.tar.gz |
Make the REQ and MESSAGE files specifiable from package Makefiles,
as REQ_FILE and MESSAGE_FILE respectively.
Modify xpkgwedge to create its MESSAGE_FILE in the WRKDIR.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 306414263e8..ebe2bf4f48c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.164 1998/09/17 14:03:48 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.165 1998/09/17 15:47:08 agc Exp $ # # This file is in the public domain. # @@ -365,6 +365,16 @@ INSTALL_FILE= ${PKGDIR}/INSTALL DEINSTALL_FILE= ${PKGDIR}/DEINSTALL .endif +# Set REQ_FILE to be the name of any REQ file +.if !defined(REQ_FILE) && exists(${PKGDIR}/REQ) +REQ_FILE= ${PKGDIR}/REQ +.endif + +# Set MESSAGE_FILE to be the name of any MESSAGE file +.if !defined(MESSAGE_FILE) && exists(${PKGDIR}/MESSAGE) +MESSAGE_FILE= ${PKGDIR}/MESSAGE +.endif + PKG_CMD?= /usr/sbin/pkg_create .if !defined(PKG_ARGS) PKG_ARGS= -v -c ${COMMENT} -d ${DESCR} -f ${PLIST} -p ${PREFIX} -P "`${MAKE} package-depends|sort -u`" @@ -381,11 +391,11 @@ PKG_ARGS+= -i ${INSTALL_FILE} .ifdef DEINSTALL_FILE PKG_ARGS+= -k ${DEINSTALL_FILE} .endif -.if exists(${PKGDIR}/REQ) -PKG_ARGS+= -r ${PKGDIR}/REQ +.ifdef REQ_FILE +PKG_ARGS+= -r ${REQ_FILE} .endif -.if exists(${PKGDIR}/MESSAGE) -PKG_ARGS+= -D ${PKGDIR}/MESSAGE +.ifdef MESSAGE_FILE +PKG_ARGS+= -D ${MESSAGE_FILE} .endif .if !defined(NO_MTREE) PKG_ARGS+= -m ${MTREE_FILE} |