diff options
author | agc <agc@pkgsrc.org> | 1998-09-17 14:03:48 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-09-17 14:03:48 +0000 |
commit | 3e45f77a058bc5db526a52d6d9542721203a68a9 (patch) | |
tree | ac7f77857394a238d7fdb6fbd030effc4bc1c300 /mk | |
parent | 256a9a5b61f5cc0c6ab259b5ad3cb11d7d7d72e0 (diff) | |
download | pkgsrc-3e45f77a058bc5db526a52d6d9542721203a68a9.tar.gz |
Make any INSTALL or DEINSTALL scripts specifiable in the package
Makefile (for read-only pkgsrc use). This is for the use of packages
which build INSTALL and DEINSTALL scripts dynamically, such as
pkgsrc/games/crossfire.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index dd7828f02d7..306414263e8 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.163 1998/09/16 08:46:58 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.164 1998/09/17 14:03:48 agc Exp $ # # This file is in the public domain. # @@ -350,10 +350,20 @@ SCRIPTS_ENV+= ${INSTALL_MACROS} .undef NO_PACKAGE .endif -COMMENT?= ${PKGDIR}/COMMENT -DESCR_SRC?= ${PKGDIR}/DESCR -DESCR?= ${WRKDIR}/.DESCR -PLIST= ${WRKDIR}/.PLIST +COMMENT?= ${PKGDIR}/COMMENT +DESCR_SRC?= ${PKGDIR}/DESCR +DESCR?= ${WRKDIR}/.DESCR +PLIST= ${WRKDIR}/.PLIST + +# Set INSTALL_FILE to be the name of any INSTALL file +.if !defined(INSTALL_FILE) && exists(${PKGDIR}/INSTALL) +INSTALL_FILE= ${PKGDIR}/INSTALL +.endif + +# Set DEINSTALL_FILE to be the name of any DEINSTALL file +.if !defined(DEINSTALL_FILE) && exists(${PKGDIR}/DEINSTALL) +DEINSTALL_FILE= ${PKGDIR}/DEINSTALL +.endif PKG_CMD?= /usr/sbin/pkg_create .if !defined(PKG_ARGS) @@ -365,11 +375,11 @@ __PKG_CMD_C__!= ${PKG_CMD} -C 2>&1 | /usr/bin/egrep 'illegal option' ; echo PKG_ARGS+= -C "${CONFLICTS}" .endif .endif -.if exists(${PKGDIR}/INSTALL) -PKG_ARGS+= -i ${PKGDIR}/INSTALL +.ifdef INSTALL_FILE +PKG_ARGS+= -i ${INSTALL_FILE} .endif -.if exists(${PKGDIR}/DEINSTALL) -PKG_ARGS+= -k ${PKGDIR}/DEINSTALL +.ifdef DEINSTALL_FILE +PKG_ARGS+= -k ${DEINSTALL_FILE} .endif .if exists(${PKGDIR}/REQ) PKG_ARGS+= -r ${PKGDIR}/REQ |