diff options
author | jlam <jlam> | 2002-09-26 09:59:09 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-26 09:59:09 +0000 |
commit | 11ddbe91f8075de5fc7ace6faaadc677e77a183d (patch) | |
tree | b85e2c87d7f1f7bae91294bccf8dd2dd6924cc59 /mk/bsd.pkg.install.mk | |
parent | 1ec42eb465097f0ea5f48fa65726b5eb16f62b84 (diff) | |
download | pkgsrc-11ddbe91f8075de5fc7ace6faaadc677e77a183d.tar.gz |
Don't make ${RCD_SCRIPTS_EXAMPLEDIR} unless it doesn't exist, and if we
do make it, make it with the same permissions as outlined in the *.pkg.dist
files.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index 8525d6bc51f..460f14b31d8 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.28 2002/09/20 00:45:00 grant Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.29 2002/09/26 09:59:09 jlam Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -283,7 +283,11 @@ generate-rcd-${_script_}: install-rcd-scripts: install-rcd-${_script_} install-rcd-${_script_}: generate-rcd-${_script_} - ${_PKG_SILENT}${_PKG_DEBUG}${INSTALL_DATA_DIR} ${RCD_SCRIPTS_EXAMPLEDIR} + ${_PKG_SILENT}${_PKG_DEBUG} \ + if [ ! -d ${RCD_SCRIPTS_EXAMPLEDIR} ]; then \ + ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 \ + ${RCD_SCRIPTS_EXAMPLEDIR}; \ + fi ${_PKG_SILENT}${_PKG_DEBUG} \ if [ -f ${WRKDIR}/${_script_} ]; then \ ${INSTALL_SCRIPT} ${WRKDIR}/${_script_} \ |