diff options
author | jlam <jlam@pkgsrc.org> | 2003-07-30 10:27:05 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-07-30 10:27:05 +0000 |
commit | 6a9e4d3fe5fd1ab539db97c79f566904fe978d6f (patch) | |
tree | 869c374ce03cbd6e0a90ad097138d007c94f63fe /mk | |
parent | 1a20c44ff806aa44919f798d662f2ff49ddc5067 (diff) | |
download | pkgsrc-6a9e4d3fe5fd1ab539db97c79f566904fe978d6f.tar.gz |
Allow package Makefiles to insert a supplementary header to the
INSTALL/DEINSTALL scripts via HEADER_EXTRA_TMPL, that is meant to contain
variable definitions to be used by the various actions.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index 1816a3f0530..3ee014c195e 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.40 2002/12/02 17:07:27 jschauma Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.41 2003/07/30 10:27:05 jlam Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -25,6 +25,7 @@ INSTALL_FILE= ${WRKDIR}/.INSTALL # install/deinstall logic. # _HEADER_TMPL?= ${.CURDIR}/../../mk/install/header +HEADER_EXTRA_TMPL?= # empty .if !defined(DEINSTALL_EXTRA_TMPL) && exists(${.CURDIR}/DEINSTALL) DEINSTALL_EXTRA_TMPL?= ${.CURDIR}/DEINSTALL .else @@ -43,10 +44,12 @@ _FOOTER_TMPL?= ${.CURDIR}/../../mk/install/footer # files that are concatenated to form the DEINSTALL/INSTALL scripts. # DEINSTALL_TEMPLATES= ${_HEADER_TMPL} +DEINSTALL_TEMPLATES+= ${HEADER_EXTRA_TMPL} DEINSTALL_TEMPLATES+= ${DEINSTALL_EXTRA_TMPL} DEINSTALL_TEMPLATES+= ${DEINSTALL_TMPL} DEINSTALL_TEMPLATES+= ${_FOOTER_TMPL} INSTALL_TEMPLATES= ${_HEADER_TMPL} +INSTALL_TEMPLATES+= ${HEADER_EXTRA_TMPL} INSTALL_TEMPLATES+= ${INSTALL_TMPL} INSTALL_TEMPLATES+= ${INSTALL_EXTRA_TMPL} INSTALL_TEMPLATES+= ${_FOOTER_TMPL} |