summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2008-10-11 21:00:53 +0000
committermarkd <markd@pkgsrc.org>2008-10-11 21:00:53 +0000
commit3f7754b9a576f23b86fbd2ee636696f6a5d0dc7d (patch)
tree285b8ed9244bdeec44f6e6dfe4b20bd4abcc33be /audio
parent07deed34e0d0fbd2b72308bdda98c343923b032b (diff)
downloadpkgsrc-3f7754b9a576f23b86fbd2ee636696f6a5d0dc7d.tar.gz
Add an rc.d script. Slightly modified from the one provided in
PR pkg/39701. Bump PKGREVISION.
Diffstat (limited to 'audio')
-rw-r--r--audio/nas/Makefile5
-rw-r--r--audio/nas/PLIST.server3
-rw-r--r--audio/nas/files/nasd.sh18
3 files changed, 23 insertions, 3 deletions
diff --git a/audio/nas/Makefile b/audio/nas/Makefile
index 2b6cf3e7f1e..21719a07fd2 100644
--- a/audio/nas/Makefile
+++ b/audio/nas/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.79 2007/12/02 08:32:23 rillig Exp $
+# $NetBSD: Makefile,v 1.80 2008/10/11 21:00:53 markd Exp $
DISTNAME= nas-1.9.src
PKGNAME= ${DISTNAME:S/.src//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nas/}
@@ -76,6 +76,7 @@ post-install:
PLIST_SRC= ${PKGDIR}/PLIST.clients
.if ${OPSYS} != "Darwin" && ${OPSYS} != "Interix"
+RCD_SCRIPTS= nasd
PLIST_SRC+= ${PKGDIR}/PLIST.server
EGDIR= ${PREFIX}/share/examples/nas
CONF_FILES= ${EGDIR}/nasd.conf.eg ${PKG_SYSCONFDIR}/nasd.conf
diff --git a/audio/nas/PLIST.server b/audio/nas/PLIST.server
index 901f10d27dd..d41ecf9d9ca 100644
--- a/audio/nas/PLIST.server
+++ b/audio/nas/PLIST.server
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST.server,v 1.1 2005/06/04 23:43:51 markd Exp $
+@comment $NetBSD: PLIST.server,v 1.2 2008/10/11 21:00:53 markd Exp $
bin/nasd
${IMAKE_MAN_DIR}/nasd.${IMAKE_MANNEWSUFFIX}
${IMAKE_FILEMAN_DIR}/nasd.conf.${IMAKE_FILEMAN_SUFFIX}
share/examples/nas/nasd.conf.eg
+share/examples/rc.d/nasd
@dirrm share/examples/nas
diff --git a/audio/nas/files/nasd.sh b/audio/nas/files/nasd.sh
new file mode 100644
index 00000000000..069e6cc4e89
--- /dev/null
+++ b/audio/nas/files/nasd.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: nasd.sh,v 1.1 2008/10/11 21:00:53 markd Exp $
+#
+# PROVIDE: nasd
+# REQUIRE: LOGIN
+
+. /etc/rc.subr
+
+name="nasd"
+nasd_flags='-b '${nasd_flags-"-aa -local"}
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+required_files="@PKG_SYSCONFDIR@/nasd.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"