Commit 9d6a9145 authored by Natanael Copa's avatar Natanael Copa

testing/mpd: fix default config and init.d script

parent 8a10d5ea
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <natanael.copa@gmail.com>
pkgname=mpd
pkgver=0.15.2
pkgrel=0
pkgrel=1
pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files"
url="http://musicpd.org"
pkgusers="mpd"
......@@ -32,7 +32,7 @@ build() {
install -d "$pkgdir"/etc
sed -e 's:\#pid_file.*:pid_file\t\t/var/run/mpd/mpd.pid:' \
-e 's:\#user.*:user\t\tmpd:' \
-e 's:\#log_file.*:log_file\t\t/var/log/mpd:' \
-e 's:\#log_file.*:log_file\t\t/var/log/mpd/mpd.log:' \
doc/mpdconf.example > "$pkgdir"/etc/mpd.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
......@@ -44,5 +44,5 @@ build() {
"$pkgdir"/var/lib/mpd/music
}
md5sums="869779fdf592ac45d067c7dec228cb51 mpd-0.15.2.tar.bz2
942017fbdc8bbaf5109e972a0a51b2c1 mpd.initd
338857abd41efd08b2d2b5399a07a87f mpd.initd
dbd301041953a5cf9c2b9de8f23eb6bb mpd.confd"
......@@ -3,7 +3,7 @@
# init.d file for music player daemon
NAME=mpd
DAEMON=/usr/sbin/$NAME
DAEMON=/usr/bin/$NAME
CONF=/etc/mpd.conf
depend() {
......@@ -23,7 +23,7 @@ get_pidfile() {
}
start() {
checkconf || return 1
checkconfig || return 1
get_pidfile
ebegin "Starting ${NAME}"
start-stop-daemon --start --quiet \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment