- add rc script for mpd
ok robert@
This commit is contained in:
parent
be7818c4e8
commit
86b330d994
@ -1,7 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.27 2010/10/19 19:45:53 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.28 2010/10/28 11:24:35 jasper Exp $
|
||||
|
||||
COMMENT = Music Player Daemon
|
||||
DISTNAME = mpd-0.15.12
|
||||
REVISION = 0
|
||||
CATEGORIES = audio
|
||||
HOMEPAGE = http://www.musicpd.org/
|
||||
MAINTAINER = Tobias Ulmer <tobiasu@tmux.org>
|
||||
|
@ -1,7 +1,2 @@
|
||||
A sample configuration file has been installed to ${SYSCONFDIR}/mpd.conf.
|
||||
MPD is configured to listen on localhost only. To start MPD at boot time,
|
||||
add the following to /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/mpd ]; then
|
||||
echo -n ' mpd'; ${PREFIX}/sbin/mpd
|
||||
fi
|
||||
MPD is configured to listen on localhost only.
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2010/01/12 18:58:26 wcmaier Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2010/10/28 11:24:35 jasper Exp $
|
||||
@newgroup _mpd:560
|
||||
@newuser _mpd:560:560:daemon:Music Player Daemon:/var/empty:/sbin/nologin
|
||||
@man man/man1/mpd.1
|
||||
@ -21,3 +21,4 @@ share/examples/mpd/mpd.conf
|
||||
@sample /var/spool/mpd/playlists/
|
||||
@extraunexec rm -rf /var/log/mpd/*
|
||||
@extraunexec find /var/spool/mpd \! -name playlists -mindepth 1 -exec rm -rf "{}" \;
|
||||
@rcscript ${RCDIR}/mpd
|
||||
|
7
audio/mpd/pkg/mpd.rc
Normal file
7
audio/mpd/pkg/mpd.rc
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/mpd"
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user