Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Nov 2006 12:50:41 +0100
From:      Eric Masson <e-masson@kisoft-services.com>
To:        Mailing List FreeBSD Ports <freebsd-ports@FreeBSD.org>, archie@freebsd.org
Subject:   mpd ports/62477 take II
Message-ID:  <86d57z8oha.fsf@srvbsdnanssv.interne.kisoft-services.com>

next in thread | raw e-mail | index | archive | help
Hi,

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/62477

I think I've been bitten by the bug described in ports/62477 on a
6.1-RELEASE-p10 box, mpd port version is mpd-3.18_4

I had to modify init script the following way :
<mpd>
#!/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"
start_precmd="mpd_prestart"
stop_postcmd="mpd_poststop"

mpd_prestart() {
	/usr/sbin/ngctl mkpeer sis0: pppoe orphans ethernet
}

mpd_poststop() {
	/usr/sbin/ngctl rmhook sis0: orphans
}

load_rc_config ${name}
run_rc_command "$1"
</mpd>

This is a crappy workarond because support interface is hardcoded in
both functions, but it makes mpd work here (pppoe setup)...

Regards

-- 
 Bonjour, J'ai NUMERIS ITOO depuis Novembre 1998, et une nouvelle
 TNRG-P2 depuis début Février 1999. J'ai une carte DJINN ITOO.
 -+- JMP In : Guide du Neueu Usenet - Et ton frigo, c'est un quoi ? -+-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d57z8oha.fsf>