mpd: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:32:36 +02:00
parent 45b585be20
commit c38fc20c0d
2 changed files with 7 additions and 2 deletions

3
srcpkgs/mpd/files/mpd/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
install -d -m 0755 -o mpd -g mpd /run/mpd
exec mpd --no-daemon

View File

@ -1,7 +1,7 @@
# Template file for 'mpd'
pkgname=mpd
version=0.19
revision=3
revision=4
build_style=gnu-configure
configure_args="--enable-opus --enable-mikmod
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
@ -21,6 +21,7 @@ conf_files="/etc/mpd.conf"
system_accounts="mpd"
mpd_homedir="/var/lib/mpd"
make_dirs="/var/lib/mpd/playlists 0755 mpd mpd"
replaces="runit-void<20141013_2"
short_desc="Flexible, powerful, server-side application for playing music"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -43,7 +44,6 @@ fi
pre_configure() {
sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in
}
post_install() {
vconf doc/mpdconf.example mpd.conf
vsconf doc/mpdconf.example
@ -55,6 +55,8 @@ post_install() {
-e '/^#user/c user "mpd"' \
-i ${DESTDIR}/etc/mpd.conf
vsv mpd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf
install -Dm644 ${DESTDIR}/usr/lib/systemd/{system,user}/mpd.service