diff options
author | jlam <jlam@pkgsrc.org> | 2002-07-24 20:30:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-07-24 20:30:06 +0000 |
commit | e38613966f96470d654f6e2fa0935a8692981a30 (patch) | |
tree | ff71f6b5d68196ca164244cf16845f9742667b3a /mk/bsd.pkg.install.mk | |
parent | b6feb0b6f96796be25e78ed80f148e23c3130f30 (diff) | |
download | pkgsrc-e38613966f96470d654f6e2fa0935a8692981a30.tar.gz |
Create a new variable "RCD_SCRIPTS_EXAMPLEDIR" that contains the location
of the example rc.d scripts for a package. This defaults to
${PREFIX}/etc/rc.d, but may be reset for those odd packages, e.g. qmail,
that set LOCALBASE=/.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r-- | mk/bsd.pkg.install.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index a1df486aa80..4c01359c60e 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.23 2002/06/27 20:41:44 jlam Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.24 2002/07/24 20:30:06 jlam Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -108,9 +108,10 @@ USE_USERGROUP= YES # same way, but the package admin isn't prompted to customize the file # at post-install time. # -# RCD_SCRIPTS works lists the basenames of the rc.d scripts. It's assumed that -# they live in ${PREFIX}/etc/rc.d, and the scripts will be copied into -# ${RCD_SCRIPTS_DIR} with ${RCD_SCRIPTS_MODE} permissions. +# RCD_SCRIPTS works lists the basenames of the rc.d scripts. They are +# expected to be found in ${RCD_SCRIPTS_EXAMPLEDIR}, and the scripts +# will be copied into ${RCD_SCRIPTS_DIR} with ${RCD_SCRIPTS_MODE} +# permissions. # CONF_FILES?= # empty CONF_FILES_MODE?= 0644 @@ -121,6 +122,7 @@ SUPPORT_FILES_PERMS?= # empty RCD_SCRIPTS?= # empty RCD_SCRIPTS_MODE?= 0755 RCD_SCRIPTS_DIR?= /etc/rc.d +RCD_SCRIPTS_EXAMPLEDIR?= ${PREFIX}/etc/rc.d FILES_SUBST+= CONF_FILES=${CONF_FILES:Q} FILES_SUBST+= CONF_FILES_MODE=${CONF_FILES_MODE} FILES_SUBST+= CONF_FILES_PERMS=${CONF_FILES_PERMS:Q} @@ -130,6 +132,7 @@ FILES_SUBST+= SUPPORT_FILES_PERMS=${SUPPORT_FILES_PERMS:Q} FILES_SUBST+= RCD_SCRIPTS=${RCD_SCRIPTS:Q} FILES_SUBST+= RCD_SCRIPTS_MODE=${RCD_SCRIPTS_MODE} FILES_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR} +FILES_SUBST+= RCD_SCRIPTS_EXAMPLEDIR=${RCD_SCRIPTS_EXAMPLEDIR} # OWN_DIRS contains a list of directories for this package that should be # created and should attempt to be destroyed by the INSTALL/DEINSTALL |