Subject: Re: manual use of RCD_SCRIPTS_EXAMPLEDIR
To: Jeremy C. Reed <reed@reedmedia.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 12/05/2004 18:25:53
--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Dec 04, 2004 at 02:25:05PM -0800, Jeremy C. Reed wrote:
> These three Makefiles have manual use of installing rc.d scripts to
> RCD_SCRIPTS_EXAMPLEDIR:
>
> comms/fidogate/Makefile
> graphics/cambevao/Makefile
> sysutils/apcupsd/Makefile
>
> THe RCD_SCRIPTS mechanism should do this automatically if you can place
> the script into the WRKSRC first.
I fixed this by setting RCD_SCRIPT_SRC.apcupsd to the appropriate value.
Does it looks right ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/apcupsd/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile 11 Oct 2004 22:14:51 -0000 1.30
+++ Makefile 5 Dec 2004 17:22:42 -0000
@@ -46,6 +46,7 @@
CONF_FILES_PERMS+= ${EGDIR}/mainsback ${PKG_SYSCONFDIR}/mainsback ${ROOT_USER} ${ROOT_GROUP} 755
SUPPORT_FILES_PERMS= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol ${ROOT_USER} ${ROOT_GROUP} 755
RCD_SCRIPTS= apcupsd
+RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/distributions/netbsd/apcupsd
# we should probably allow the tty to be set in /etc/mk.conf too
#
@@ -95,8 +96,6 @@
${PREFIX}/share/examples/apcupsd
${INSTALL_DATA} ${WRKDIR}/apcupsd.slave.conf \
${PREFIX}/share/examples/apcupsd
- ${INSTALL_SCRIPT} ${WRKSRC}/distributions/netbsd/apcupsd \
- ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/apcupsd
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/apcupsd
--bg08WKrSYDhXBjb5--