aboutsummaryrefslogtreecommitdiff
path: root/audio/darkice
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-09-24 07:07:26 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-09-24 07:07:26 +0000
commited7dd156030b9cf0132ce202b3dfd8b576bb614e (patch)
tree00dd8e161cd70e327c1cb59d04c26a9a781f6e8b /audio/darkice
parent697697fc40675ae42b0d3952583b4aece308931f (diff)
downloadports-ed7dd156030b9cf0132ce202b3dfd8b576bb614e.tar.gz
ports-ed7dd156030b9cf0132ce202b3dfd8b576bb614e.zip
Standardize rc.d script
Bump PORTREVISION (missed in last update)
Notes
Notes: svn path=/head/; revision=261756
Diffstat (limited to 'audio/darkice')
-rw-r--r--audio/darkice/Makefile1
-rw-r--r--audio/darkice/files/darkice.in19
2 files changed, 13 insertions, 7 deletions
diff --git a/audio/darkice/Makefile b/audio/darkice/Makefile
index c5e0c539d6a1..60cf8f40b5f7 100644
--- a/audio/darkice/Makefile
+++ b/audio/darkice/Makefile
@@ -8,6 +8,7 @@
PORTNAME= darkice
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= audio net
MASTER_SITES= GOOGLE_CODE
diff --git a/audio/darkice/files/darkice.in b/audio/darkice/files/darkice.in
index 8036797d39eb..5a255933b585 100644
--- a/audio/darkice/files/darkice.in
+++ b/audio/darkice/files/darkice.in
@@ -1,14 +1,18 @@
#!/bin/sh
-#
+
# $FreeBSD$
#
-
# PROVIDE: darkice
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
+# REQUIRE: LOGIN
# KEYWORD: SHUTDOWN
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# darkice_enable (bool): Set to NO by default.
+# Set it to YES to enable darkice.
-. "/etc/rc.subr"
+. /etc/rc.subr
name="darkice"
rcvar=`set_rcvar`
@@ -18,8 +22,9 @@ command_args="& 1>/dev/null"
required_files="%%ETCDIR%%.cfg"
# read configuration and set defaults
-load_rc_config "$name"
+load_rc_config $name
+
: ${darkice_enable="NO"}
: ${darkice_flags="-c ${required_files}"}
-run_rc_command "$1"
+run_rc_command $1