diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-05-06 15:07:40 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-05-06 15:07:40 +0000 |
commit | a925c7e6331151453f0588c8f8c2be2e7ba215be (patch) | |
tree | c810e731d5c818dc2070722749c3d8845150ecd7 /sysutils/pluged | |
parent | 91d87e3ea067ac4b0a802571e448b3a0d63c1888 (diff) | |
download | pkgsrc-a925c7e6331151453f0588c8f8c2be2e7ba215be.tar.gz |
Fix rc.d handling.
Diffstat (limited to 'sysutils/pluged')
-rw-r--r-- | sysutils/pluged/Makefile | 14 | ||||
-rw-r--r-- | sysutils/pluged/PLIST | 3 |
2 files changed, 14 insertions, 3 deletions
diff --git a/sysutils/pluged/Makefile b/sysutils/pluged/Makefile index 8e814b89134..57e875c06df 100644 --- a/sysutils/pluged/Makefile +++ b/sysutils/pluged/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2012/10/23 19:51:20 asau Exp $ +# $NetBSD: Makefile,v 1.3 2014/05/06 15:10:13 jperkin Exp $ # PKGNAME= pluged-0.1 @@ -18,12 +18,22 @@ EGDIR= ${PREFIX}/share/examples/pluged RCDDIR= ${PREFIX}/share/examples/rc.d CONF_FILES+= ${EGDIR}/pluged.conf ${PREFIX}/etc/pluged.conf +.include "../../mk/bsd.prefs.mk" + +PLIST_VARS+= rcd + +.if ${INIT_SYSTEM} == "rc.d" +PLIST.rcd= yes +.endif + do-install: ${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/sbin ${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR} - ${INSTALL_DATA_DIR} ${DESTDIR}/${RCDDIR} ${INSTALL_PROGRAM} ${WRKSRC}/pluged ${DESTDIR}/${PREFIX}/sbin/pluged ${INSTALL_DATA} ${WRKSRC}/pluged.conf ${DESTDIR}/${EGDIR}/pluged.conf +.if ${INIT_SYSTEM} == "rc.d" + ${INSTALL_DATA_DIR} ${DESTDIR}/${RCDDIR} ${INSTALL_DATA} ${WRKSRC}/rc.d/pluged ${DESTDIR}/${RCDDIR}/pluged +.endif .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/pluged/PLIST b/sysutils/pluged/PLIST index 7bca0541793..9245ece4776 100644 --- a/sysutils/pluged/PLIST +++ b/sysutils/pluged/PLIST @@ -1,3 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2014/03/11 14:05:16 jperkin Exp $ +@comment $NetBSD: PLIST,v 1.3 2014/05/06 15:10:13 jperkin Exp $ sbin/pluged share/examples/pluged/pluged.conf +${PLIST.rcd}share/examples/rc.d/pluged |