summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2002-06-27 00:54:30 +0000
committerlukem <lukem@pkgsrc.org>2002-06-27 00:54:30 +0000
commitcd99e0fe847a0479fde65ff2163f62803e0aec17 (patch)
tree521d095df0660743d8539a6d23d8b5b15898ecb2 /mk
parentb56e3493aa97c9166d99d70863adf23ed85493b8 (diff)
downloadpkgsrc-cd99e0fe847a0479fde65ff2163f62803e0aec17.tar.gz
Only add RCD_SCRIPTS_DIR to MAKE_DIRS if RCD_SCRIPTS isn't empty.
Prevents warning on deinstall "remove /etc/rc.d" if no rc.d scripts are provided for the package and PKG_CONFIG=no.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.install.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index fe5415d0c22..32c3dca426a 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.20 2002/06/22 02:48:35 jlam Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.21 2002/06/27 00:54:30 lukem Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -145,7 +145,10 @@ FILES_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR}
#
MAKE_DIRS?= # empty
MAKE_DIRS_PERMS?= # empty
-_MAKE_DIRS= ${PKG_SYSCONFDIR} ${RCD_SCRIPTS_DIR} ${MAKE_DIRS}
+_MAKE_DIRS= ${PKG_SYSCONFDIR} ${MAKE_DIRS}
+.if !empty(RCD_SCRIPTS)
+_MAKE_DIRS+= ${RCD_SCRIPTS_DIR}
+.endif
OWN_DIRS?= # empty
OWN_DIRS_PERMS?= # empty
FILES_SUBST+= MAKE_DIRS=${_MAKE_DIRS:Q}