[arch-commits] Commit in mpd/trunk (PKGBUILD install rc.d tmpfiles.d)
Gaetan Bisson
bisson at archlinux.org
Fri Jun 1 11:40:54 UTC 2012
Date: Friday, June 1, 2012 @ 07:40:54
Author: bisson
Revision: 160341
create /run/mpd with tmpfiles.d, set up default /etc/mpd.conf
Added:
mpd/trunk/tmpfiles.d
Modified:
mpd/trunk/PKGBUILD
mpd/trunk/install
mpd/trunk/rc.d
------------+
PKGBUILD | 10 +++++++---
install | 3 ++-
rc.d | 2 --
tmpfiles.d | 1 +
4 files changed, 10 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-06-01 10:48:10 UTC (rev 160340)
+++ PKGBUILD 2012-06-01 11:40:54 UTC (rev 160341)
@@ -7,7 +7,7 @@
pkgname=mpd
pkgver=0.16.8
-pkgrel=2
+pkgrel=3
pkgdesc='Flexible, powerful, server-side application for playing music'
url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki'
license=('GPL')
@@ -17,10 +17,13 @@
'libpulse')
makedepends=('doxygen')
source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
+ 'tmpfiles.d'
'rc.d')
sha1sums=('977c80db8dc64e65c2bc523f69a9a7a71adca2b1'
- '3777bdb4fff4b7911be3b1242aabae9d2912ef18')
+ 'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+ '3470d489565f0ed479f1665dd2876f66acb5a585')
+backup=('etc/mpd.conf')
install=install
build() {
@@ -57,5 +60,6 @@
install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/mpd
install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
- install -Dm644 doc/mpdconf.example "${pkgdir}"/usr/share/mpd/mpd.conf.example
+ install -Dm644 doc/mpdconf.example "${pkgdir}"/etc/mpd.conf
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
}
Modified: install
===================================================================
--- install 2012-06-01 10:48:10 UTC (rev 160340)
+++ install 2012-06-01 11:40:54 UTC (rev 160341)
@@ -1,10 +1,11 @@
post_install() {
getent group mpd &>/dev/null || groupadd -r -g 45 mpd >/dev/null
getent passwd mpd &>/dev/null || useradd -r -u 45 -g mpd -d /var/lib/mpd -s /bin/false -G audio mpd >/dev/null
- echo '==> Now create a /etc/mpd.conf file; see: /usr/share/mpd/mpd.conf.example'
+ true
}
post_remove() {
getent passwd mpd &>/dev/null && userdel mpd >/dev/null
getent group mpd &>/dev/null && groupdel mpd >/dev/null
+ true
}
Modified: rc.d
===================================================================
--- rc.d 2012-06-01 10:48:10 UTC (rev 160340)
+++ rc.d 2012-06-01 11:40:54 UTC (rev 160341)
@@ -3,8 +3,6 @@
. /etc/rc.conf
. /etc/rc.d/functions
-[[ -d /run/mpd ]] || install -d -g mpd -o mpd /run/mpd
-
case "$1" in
start)
stat_busy 'Starting Music Player Daemon'
Added: tmpfiles.d
===================================================================
--- tmpfiles.d (rev 0)
+++ tmpfiles.d 2012-06-01 11:40:54 UTC (rev 160341)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd
More information about the arch-commits
mailing list