summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2015-08-10 05:41:10 +0000
committerdholland <dholland@pkgsrc.org>2015-08-10 05:41:10 +0000
commite75a805696e5bfc244dd3ba4c561750f2a4e5ec9 (patch)
treef2867e3997a376d3324233ac114d315d91677ce8
parent67fa86aff505298c42ccd8b03e74c61a02d05eba (diff)
downloadpkgsrc-e75a805696e5bfc244dd3ba4c561750f2a4e5ec9.tar.gz
Construct rc.d scripts in a subdirectory of WRKDIR (.rc.d/) instead of
right in it, to avoid name conflicts. PR 39271.
-rw-r--r--mk/pkginstall/bsd.pkginstall.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/pkginstall/bsd.pkginstall.mk b/mk/pkginstall/bsd.pkginstall.mk
index cbab45449de..0e65505b4ee 100644
--- a/mk/pkginstall/bsd.pkginstall.mk
+++ b/mk/pkginstall/bsd.pkginstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.62 2015/02/24 09:46:09 wiz Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.63 2015/08/10 05:41:10 dholland Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -1163,12 +1163,13 @@ install-rcd-scripts: # do nothing
.for _script_ in ${_INSTALL_RCD_SCRIPTS}
RCD_SCRIPT_SRC.${_script_}?= ${FILESDIR}/${_script_}.sh
-RCD_SCRIPT_WRK.${_script_}?= ${WRKDIR}/${_script_}
+RCD_SCRIPT_WRK.${_script_}?= ${WRKDIR}/.rc.d/${_script_}
. if !empty(RCD_SCRIPT_SRC.${_script_})
generate-rcd-scripts: ${RCD_SCRIPT_WRK.${_script_}}
${RCD_SCRIPT_WRK.${_script_}}: ${RCD_SCRIPT_SRC.${_script_}}
@${STEP_MSG} "Creating ${.TARGET}"
+ ${RUN}${MKDIR} ${.TARGET:H}
${RUN}${CAT} ${.ALLSRC} | ${SED} ${FILES_SUBST_SED} > ${.TARGET}
${RUN}${CHMOD} +x ${.TARGET}