By default, don't install the rc.d scripts into /etc/rc.d. Despite the

fact that they don't do anything unless the appropriate variables are set
in rc.conf, people really dislike the warning emitted at startup.  For
users that do want the pkg_* tools to handle automatically copying and
removing the rc.d scripts, the mk.conf variable to set is
INSTALL_RCD_SCRIPTS=YES.
This commit is contained in:
jlam 2001-12-18 19:54:00 +00:00
parent f5aed2fc53
commit c332d7343e

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.pkg.install.mk,v 1.11 2001/12/13 06:32:55 jlam Exp $
# $NetBSD: bsd.pkg.install.mk,v 1.12 2001/12/18 19:54:00 jlam Exp $
#
# This Makefile fragment is included by package Makefiles to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@ -128,6 +128,12 @@ FILES_SUBST+= RCD_SCRIPTS=${RCD_SCRIPTS:Q}
FILES_SUBST+= RCD_SCRIPTS_MODE=${RCD_SCRIPTS_MODE}
FILES_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR}
# Default to not installing the rc.d scripts automatically.
INSTALL_RCD_SCRIPTS?= NO
.if defined(INSTALL_RCD_SCRIPTS) && (${INSTALL_RCD_SCRIPTS} == NO)
RCD_SCRIPTS:= # empty
.endif
# OWN_DIRS contains a list of directories for this package that should be
# created and should attempt to be destroyed by the INSTALL/DEINSTALL
# scripts. MAKE_DIRS is used the same way, but the package admin