mpd: added runit service.
This commit is contained in:
parent
45b585be20
commit
c38fc20c0d
2 changed files with 7 additions and 2 deletions
3
srcpkgs/mpd/files/mpd/run
Executable file
3
srcpkgs/mpd/files/mpd/run
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
install -d -m 0755 -o mpd -g mpd /run/mpd
|
||||||
|
exec mpd --no-daemon
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mpd'
|
# Template file for 'mpd'
|
||||||
pkgname=mpd
|
pkgname=mpd
|
||||||
version=0.19
|
version=0.19
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-opus --enable-mikmod
|
configure_args="--enable-opus --enable-mikmod
|
||||||
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
|
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
|
||||||
|
@ -21,6 +21,7 @@ conf_files="/etc/mpd.conf"
|
||||||
system_accounts="mpd"
|
system_accounts="mpd"
|
||||||
mpd_homedir="/var/lib/mpd"
|
mpd_homedir="/var/lib/mpd"
|
||||||
make_dirs="/var/lib/mpd/playlists 0755 mpd 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"
|
short_desc="Flexible, powerful, server-side application for playing music"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
@ -43,7 +44,6 @@ fi
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in
|
sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vconf doc/mpdconf.example mpd.conf
|
vconf doc/mpdconf.example mpd.conf
|
||||||
vsconf doc/mpdconf.example
|
vsconf doc/mpdconf.example
|
||||||
|
@ -55,6 +55,8 @@ post_install() {
|
||||||
-e '/^#user/c user "mpd"' \
|
-e '/^#user/c user "mpd"' \
|
||||||
-i ${DESTDIR}/etc/mpd.conf
|
-i ${DESTDIR}/etc/mpd.conf
|
||||||
|
|
||||||
|
vsv mpd
|
||||||
|
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf
|
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf
|
||||||
install -Dm644 ${DESTDIR}/usr/lib/systemd/{system,user}/mpd.service
|
install -Dm644 ${DESTDIR}/usr/lib/systemd/{system,user}/mpd.service
|
||||||
|
|
Loading…
Reference in a new issue