[arch-commits] Commit in mpd (11 files)
Gaetan Bisson
bisson at archlinux.org
Fri Apr 3 18:47:02 UTC 2015
Date: Friday, April 3, 2015 @ 20:47:01
Author: bisson
Revision: 235395
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
mpd/repos/staging-i686/
mpd/repos/staging-i686/PKGBUILD
(from rev 235394, mpd/trunk/PKGBUILD)
mpd/repos/staging-i686/conf
(from rev 235394, mpd/trunk/conf)
mpd/repos/staging-i686/install
(from rev 235394, mpd/trunk/install)
mpd/repos/staging-i686/tmpfiles.d
(from rev 235394, mpd/trunk/tmpfiles.d)
mpd/repos/staging-x86_64/
mpd/repos/staging-x86_64/PKGBUILD
(from rev 235394, mpd/trunk/PKGBUILD)
mpd/repos/staging-x86_64/conf
(from rev 235394, mpd/trunk/conf)
mpd/repos/staging-x86_64/install
(from rev 235394, mpd/trunk/install)
mpd/repos/staging-x86_64/tmpfiles.d
(from rev 235394, mpd/trunk/tmpfiles.d)
Modified:
mpd/trunk/PKGBUILD
---------------------------------+
repos/staging-i686/PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++
repos/staging-i686/conf | 6 ++++
repos/staging-i686/install | 11 +++++++
repos/staging-i686/tmpfiles.d | 1
repos/staging-x86_64/PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++
repos/staging-x86_64/conf | 6 ++++
repos/staging-x86_64/install | 11 +++++++
repos/staging-x86_64/tmpfiles.d | 1
trunk/PKGBUILD | 4 +-
9 files changed, 148 insertions(+), 2 deletions(-)
Copied: mpd/repos/staging-i686/PKGBUILD (from rev 235394, mpd/trunk/PKGBUILD)
===================================================================
--- repos/staging-i686/PKGBUILD (rev 0)
+++ repos/staging-i686/PKGBUILD 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: Ben <ben at benmazer.net>
+
+pkgname=mpd
+pkgver=0.19.9
+pkgrel=3
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='http://www.musicpd.org/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2'
+ 'sqlite' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl' 'libmpdclient'
+ 'icu' 'libupnp' 'libnfs')
+makedepends=('boost' 'doxygen')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+ 'tmpfiles.d'
+ 'conf')
+sha1sums=('6683bee5f132eda318c5a61ec14b2df8d9164d60'
+ 'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+ '291fd5cda9f0845834a553017327c4586bd853f6')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-libmpdclient \
+ --enable-jack \
+ --enable-soundcloud \
+ --enable-pipe-output \
+ --enable-pulse \
+ --disable-sidplay \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../conf "${pkgdir}"/etc/mpd.conf
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+ install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
+
+ install -Dm644 "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
+ sed '/\[Service\]/a User=mpd' -i "${pkgdir}"/usr/lib/systemd/system/mpd.service
+ sed '/WantedBy=/c WantedBy=default.target' -i "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
+}
Copied: mpd/repos/staging-i686/conf (from rev 235394, mpd/trunk/conf)
===================================================================
--- repos/staging-i686/conf (rev 0)
+++ repos/staging-i686/conf 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1,6 @@
+# See: /usr/share/doc/mpd/mpdconf.example
+
+pid_file "/run/mpd/mpd.pid"
+db_file "/var/lib/mpd/mpd.db"
+state_file "/var/lib/mpd/mpdstate"
+playlist_directory "/var/lib/mpd/playlists"
Copied: mpd/repos/staging-i686/install (from rev 235394, mpd/trunk/install)
===================================================================
--- repos/staging-i686/install (rev 0)
+++ repos/staging-i686/install 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +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
+ usr/bin/systemd-tmpfiles --create mpd.conf || true
+}
+
+post_remove() {
+ getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+ getent group mpd &>/dev/null && groupdel mpd >/dev/null
+ true
+}
Copied: mpd/repos/staging-i686/tmpfiles.d (from rev 235394, mpd/trunk/tmpfiles.d)
===================================================================
--- repos/staging-i686/tmpfiles.d (rev 0)
+++ repos/staging-i686/tmpfiles.d 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd
Copied: mpd/repos/staging-x86_64/PKGBUILD (from rev 235394, mpd/trunk/PKGBUILD)
===================================================================
--- repos/staging-x86_64/PKGBUILD (rev 0)
+++ repos/staging-x86_64/PKGBUILD 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: Ben <ben at benmazer.net>
+
+pkgname=mpd
+pkgver=0.19.9
+pkgrel=3
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='http://www.musicpd.org/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2'
+ 'sqlite' 'jack' 'libmms' 'wavpack' 'avahi' 'libid3tag' 'yajl' 'libmpdclient'
+ 'icu' 'libupnp' 'libnfs')
+makedepends=('boost' 'doxygen')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+ 'tmpfiles.d'
+ 'conf')
+sha1sums=('6683bee5f132eda318c5a61ec14b2df8d9164d60'
+ 'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+ '291fd5cda9f0845834a553017327c4586bd853f6')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-libmpdclient \
+ --enable-jack \
+ --enable-soundcloud \
+ --enable-pipe-output \
+ --enable-pulse \
+ --disable-sidplay \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../conf "${pkgdir}"/etc/mpd.conf
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+ install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
+
+ install -Dm644 "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
+ sed '/\[Service\]/a User=mpd' -i "${pkgdir}"/usr/lib/systemd/system/mpd.service
+ sed '/WantedBy=/c WantedBy=default.target' -i "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
+}
Copied: mpd/repos/staging-x86_64/conf (from rev 235394, mpd/trunk/conf)
===================================================================
--- repos/staging-x86_64/conf (rev 0)
+++ repos/staging-x86_64/conf 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1,6 @@
+# See: /usr/share/doc/mpd/mpdconf.example
+
+pid_file "/run/mpd/mpd.pid"
+db_file "/var/lib/mpd/mpd.db"
+state_file "/var/lib/mpd/mpdstate"
+playlist_directory "/var/lib/mpd/playlists"
Copied: mpd/repos/staging-x86_64/install (from rev 235394, mpd/trunk/install)
===================================================================
--- repos/staging-x86_64/install (rev 0)
+++ repos/staging-x86_64/install 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +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
+ usr/bin/systemd-tmpfiles --create mpd.conf || true
+}
+
+post_remove() {
+ getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+ getent group mpd &>/dev/null && groupdel mpd >/dev/null
+ true
+}
Copied: mpd/repos/staging-x86_64/tmpfiles.d (from rev 235394, mpd/trunk/tmpfiles.d)
===================================================================
--- repos/staging-x86_64/tmpfiles.d (rev 0)
+++ repos/staging-x86_64/tmpfiles.d 2015-04-03 18:47:01 UTC (rev 235395)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd
Modified: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD 2015-04-03 18:46:20 UTC (rev 235394)
+++ trunk/PKGBUILD 2015-04-03 18:47:01 UTC (rev 235395)
@@ -17,10 +17,10 @@
'icu' 'libupnp' 'libnfs')
makedepends=('boost' 'doxygen')
validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
-source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
+source=("http://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
'tmpfiles.d'
'conf')
-sha1sums=('6683bee5f132eda318c5a61ec14b2df8d9164d60'
+sha1sums=('6683bee5f132eda318c5a61ec14b2df8d9164d60' 'SKIP'
'f4d5922abb69abb739542d8e93f4dfd748acdad7'
'291fd5cda9f0845834a553017327c4586bd853f6')
More information about the arch-commits
mailing list