Subject: pkg/19165: it might help stave off confusion about rcorder if packages put rc.d scripts in share/examples
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 11/25/2002 14:45:30
>Number: 19165
>Category: pkg
>Synopsis: it might help stave off confusion about rcorder if packages put rc.d scripts in share/examples
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Nov 25 11:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: pkgsrc-current 2002/11/20
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
it might help stave off some of the confusion about what
directories should be specified to rcorder if the rc.d scripts
supplied by packages were not actually installed in
$PREFIX/etc/rc.d but rather installed in $PREFIX/share/examples/rc.d
>How-To-Repeat:
note that noise about $PREFIX/rc.d/ has become an FAQ on the lists
>Fix:
Index: mk/bsd.pkg.install.mk
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/mk/bsd.pkg.install.mk,v
retrieving revision 1.39
diff -c -r1.39 bsd.pkg.install.mk
*** mk/bsd.pkg.install.mk 17 Nov 2002 08:58:50 -0000 1.39
--- mk/bsd.pkg.install.mk 25 Nov 2002 19:38:41 -0000
***************
***************
*** 151,157 ****
RCD_SCRIPTS?= # empty
RCD_SCRIPTS_MODE?= 0755
RCD_SCRIPTS_DIR?= /etc/rc.d
! RCD_SCRIPTS_EXAMPLEDIR?= ${PREFIX}/etc/rc.d
RCD_SCRIPTS_SHELL?= ${SH}
FILES_SUBST+= CONF_FILES=${CONF_FILES:Q}
FILES_SUBST+= CONF_FILES_MODE=${CONF_FILES_MODE}
--- 160,166 ----
RCD_SCRIPTS?= # empty
RCD_SCRIPTS_MODE?= 0755
RCD_SCRIPTS_DIR?= /etc/rc.d
! RCD_SCRIPTS_EXAMPLEDIR?= ${PREFIX}/share/examples/rc.d
RCD_SCRIPTS_SHELL?= ${SH}
FILES_SUBST+= CONF_FILES=${CONF_FILES:Q}
FILES_SUBST+= CONF_FILES_MODE=${CONF_FILES_MODE}
***************
*** 303,312 ****
#
# RCD_SCRIPT_SRC.<script> the source file for <script>; this will
# be run through FILES_SUBST to generate
! # the rc.d script
#
# RCD_SCRIPTS_EXAMPLEDIR the directory in which to install the
! # example rc.d scripts
#
# If the source rc.d script is not present, then the automatic handling
# doesn't occur.
--- 312,323 ----
#
# RCD_SCRIPT_SRC.<script> the source file for <script>; this will
# be run through FILES_SUBST to generate
! # the rc.d script (defaults to
! # ${FILESDIR}/<script>.sh)
#
# RCD_SCRIPTS_EXAMPLEDIR the directory in which to install the
! # example rc.d scripts (defaults to
! # ${PREFIX}/share/examples/rc.d)
#
# If the source rc.d script is not present, then the automatic handling
# doesn't occur.
Index: mk/NetBSD.pkg.dist
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/mk/NetBSD.pkg.dist,v
retrieving revision 1.28
diff -c -r1.28 NetBSD.pkg.dist
*** mk/NetBSD.pkg.dist 15 Nov 2002 15:10:55 -0000 1.28
--- mk/NetBSD.pkg.dist 19 Nov 2002 20:58:08 -0000
***************
*** 130,138 ****
--- 43,55 ----
..
..
examples
+ rc.d
+ ..
..
games
..
>Release-Note:
>Audit-Trail:
>Unformatted: