From ce56c53bec034494cdf00f65562e0b58fde7cab1 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Wed, 10 Jan 2007 06:47:24 +0000 Subject: * Use USE_RC_SUBR instead of custom hacks which did not seem to work correctly * Fix typo in the startup script Reported by: Wojciech Puchar (on ports@) --- net/mpd/files/mpd.in | 30 ++++++++++++++++++++++++++++++ net/mpd/files/mpd.sh | 28 ---------------------------- 2 files changed, 30 insertions(+), 28 deletions(-) create mode 100644 net/mpd/files/mpd.in delete mode 100644 net/mpd/files/mpd.sh (limited to 'net/mpd/files') diff --git a/net/mpd/files/mpd.in b/net/mpd/files/mpd.in new file mode 100644 index 000000000000..2168bb71edda --- /dev/null +++ b/net/mpd/files/mpd.in @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/net/mpd/files/Attic/mpd.in,v 1.1 2007-01-10 06:47:24 vd Exp $ +# +# PROVIDE: mpd +# REQUIRE: NETWORKING syslogd +# +# Add the following line to /etc/rc.conf[.local] to enable mpd: +# +# mpd_enable="YES" +# +# You can also set mpd_flags to any flags you want. The default is "-b". +# + +mpd_flags="${mpd_flags:--b}" +mpd_enable="${mpd_enable:-NO}" + +. %%RC_SUBR%% + +name=mpd +rcvar=`set_rcvar` + +prefix=%%PREFIX%% +procname=${prefix}/sbin/mpd +pidfile=/var/run/mpd.pid +required_files="${prefix}/etc/mpd/mpd.conf ${prefix}/etc/mpd/mpd.links" +command="${prefix}/sbin/mpd" + +load_rc_config ${name} +run_rc_command "$1" diff --git a/net/mpd/files/mpd.sh b/net/mpd/files/mpd.sh deleted file mode 100644 index 1e57ace8b2aa..000000000000 --- a/net/mpd/files/mpd.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: mpd -# REQUIRE: NETWORKING syslogd -# -# Add the following line to /etc/rc.conf to enable mpd: -# -# mpd_enable="YES" -# - -mpd_flags="${mpd_flags:--b}" -mpd_enable="${mpd_enable-NO}" - -. %%RC_SUBR%% - -name=mpd -rcvar=`set_rcvar` - -prefix=%%PREFIX%% -procname=${prefix}/sbin/mpd -pidfile=/var/run/mpd.pid -required_files="${prefix}/etc/mpd/mpd.conf ${prefix}/etc/mpd/mpd.links" -command="${prefix}/sbin/mpd" - -load_rc_config ${name} -run_rc_command "$1" -- cgit v1.2.3