[arch-commits] Commit in mpd/trunk (PKGBUILD mpd.install)
Andrea Scarpino
andrea at archlinux.org
Mon Apr 19 12:33:26 UTC 2010
Date: Monday, April 19, 2010 @ 08:33:25
Author: andrea
Revision: 78124
upgpkg: mpd 0.15.9-5
fix mpd user creation (FS#19173)
Modified:
mpd/trunk/PKGBUILD
mpd/trunk/mpd.install
-------------+
PKGBUILD | 4 ++--
mpd.install | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-04-19 12:09:19 UTC (rev 78123)
+++ PKGBUILD 2010-04-19 12:33:25 UTC (rev 78124)
@@ -5,7 +5,7 @@
pkgname=mpd
pkgver=0.15.9
-pkgrel=4
+pkgrel=5
pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files"
arch=('i686' 'x86_64')
license=('GPL')
@@ -46,6 +46,6 @@
install -Dm644 doc/mpdconf.example ${pkgdir}/etc/mpd.conf.example || return 1
- install -D ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd || return 1
+ install -Dm755 ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd || return 1
install -d ${pkgdir}/var/{lib/mpd/playlists,log/mpd} || return 1
}
Modified: mpd.install
===================================================================
--- mpd.install 2010-04-19 12:09:19 UTC (rev 78123)
+++ mpd.install 2010-04-19 12:33:25 UTC (rev 78124)
@@ -5,7 +5,7 @@
post_upgrade() {
getent group "mpd" &>/dev/null || groupadd -r -g 45 mpd 1>/dev/null
- getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" 1>/dev/null
+ getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" mpd 1>/dev/null
for dir in /var/{lib,log}/mpd; do
chown -R mpd:mpd "$dir" 1>/dev/null
done
@@ -15,4 +15,4 @@
getent passwd "mpd" &>/dev/null && userdel mpd 1>/dev/null
getent group "mpd" &>/dev/null && groupdel mpd 1>/dev/null
[ -f etc/mpd.conf ] && mv etc/mpd.conf etc/mpd.conf.pacsave 1>/dev/null
-}
\ No newline at end of file
+}
More information about the arch-commits
mailing list