the fixed /usr/local/etc/rc.d/mpd.sh is below:
fixed missing : between mpd_enable and -NO and missing /etc/rc.subr after .
looks like that script were never tested


#!/bin/sh
#
# $FreeBSD: ports/net/mpd/files/mpd.sh,v 1.5 2006/02/20 20:47:27 dougb Exp $
#
# 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}"

. /etc/rc.subr

name=mpd
rcvar=`set_rcvar`

prefix=/usr/local
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"

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to