Date: Friday, July 6, 2012 @ 11:22:01
  Author: ibiru
Revision: 163064

db-move: moved mpd from [staging] to [testing] ( i686,  x86_64)

Added:
  mpd/repos/testing-i686/
  mpd/repos/testing-i686/PKGBUILD
    (from rev 163051, mpd/repos/staging-i686/PKGBUILD)
  mpd/repos/testing-i686/install
    (from rev 163051, mpd/repos/staging-i686/install)
  mpd/repos/testing-i686/rc.d
    (from rev 163051, mpd/repos/staging-i686/rc.d)
  mpd/repos/testing-i686/tmpfiles.d
    (from rev 163051, mpd/repos/staging-i686/tmpfiles.d)
  mpd/repos/testing-x86_64/
  mpd/repos/testing-x86_64/PKGBUILD
    (from rev 163051, mpd/repos/staging-x86_64/PKGBUILD)
  mpd/repos/testing-x86_64/install
    (from rev 163051, mpd/repos/staging-x86_64/install)
  mpd/repos/testing-x86_64/rc.d
    (from rev 163051, mpd/repos/staging-x86_64/rc.d)
  mpd/repos/testing-x86_64/tmpfiles.d
    (from rev 163051, mpd/repos/staging-x86_64/tmpfiles.d)
Deleted:
  mpd/repos/staging-i686/
  mpd/repos/staging-x86_64/

---------------------------+
 testing-i686/PKGBUILD     |   65 ++++++++++++++++++++++++++++++++++++++++++++
 testing-i686/install      |   11 +++++++
 testing-i686/rc.d         |   25 ++++++++++++++++
 testing-i686/tmpfiles.d   |    1 
 testing-x86_64/PKGBUILD   |   65 ++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/install    |   11 +++++++
 testing-x86_64/rc.d       |   25 ++++++++++++++++
 testing-x86_64/tmpfiles.d |    1 
 8 files changed, 204 insertions(+)

Copied: mpd/repos/testing-i686/PKGBUILD (from rev 163051, 
mpd/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Gaetan Bisson <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+# Contributor: Damir Perisa <[email protected]>
+# Contributor: Ben <[email protected]>
+
+pkgname=mpd
+pkgver=0.17
+pkgrel=2
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 
'faad2'
+         'sqlite' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
+         'libpulse')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2";
+        'tmpfiles.d'
+        'rc.d') 
+sha1sums=('36201f32ca5729b62b0e6cbddb19ade20ee3f7d7'
+          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+          '3470d489565f0ed479f1665dd2876f66acb5a585')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+
+       ./configure \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+               --enable-lastfm \
+               --enable-jack \
+               --enable-pulse \
+               --enable-documentation \
+               --disable-libwrap \
+               --disable-cue \
+               --disable-sidplay \
+               --disable-documentation \
+               --with-systemdsystemunitdir=/usr/lib/systemd/system
+
+       make
+}
+
+package() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+
+       make DESTDIR="${pkgdir}" install
+
+       sed \
+               -e '/^#playlist_directory/c playlist_directory 
"/var/lib/mpd/playlists"' \
+               -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
+               -e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \
+               -e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \
+               -e '/^#user/c user "mpd"' \
+               -i doc/mpdconf.example
+
+       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}"/etc/mpd.conf
+       install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+}

Copied: mpd/repos/testing-i686/install (from rev 163051, 
mpd/repos/staging-i686/install)
===================================================================
--- testing-i686/install                                (rev 0)
+++ testing-i686/install        2012-07-06 15:22:01 UTC (rev 163064)
@@ -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
+       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/testing-i686/rc.d (from rev 163051, 
mpd/repos/staging-i686/rc.d)
===================================================================
--- testing-i686/rc.d                           (rev 0)
+++ testing-i686/rc.d   2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+       start)
+               stat_busy 'Starting Music Player Daemon'
+               /usr/bin/mpd /etc/mpd.conf &> /dev/null &&
+               { add_daemon mpd; stat_done; } || stat_fail
+               ;;
+       stop)
+               stat_busy 'Stopping Music Player Daemon'
+               /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null &&
+               { rm_daemon mpd; stat_done; } || stat_fail
+               ;;
+       restart)
+               $0 stop
+               sleep 1
+               $0 start
+               ;;
+       *)
+               echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Copied: mpd/repos/testing-i686/tmpfiles.d (from rev 163051, 
mpd/repos/staging-i686/tmpfiles.d)
===================================================================
--- testing-i686/tmpfiles.d                             (rev 0)
+++ testing-i686/tmpfiles.d     2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd

Copied: mpd/repos/testing-x86_64/PKGBUILD (from rev 163051, 
mpd/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Gaetan Bisson <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+# Contributor: Damir Perisa <[email protected]>
+# Contributor: Ben <[email protected]>
+
+pkgname=mpd
+pkgver=0.17
+pkgrel=2
+pkgdesc='Flexible, powerful, server-side application for playing music'
+url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 
'faad2'
+         'sqlite' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
+         'libpulse')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2";
+        'tmpfiles.d'
+        'rc.d') 
+sha1sums=('36201f32ca5729b62b0e6cbddb19ade20ee3f7d7'
+          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+          '3470d489565f0ed479f1665dd2876f66acb5a585')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+
+       ./configure \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+               --enable-lastfm \
+               --enable-jack \
+               --enable-pulse \
+               --enable-documentation \
+               --disable-libwrap \
+               --disable-cue \
+               --disable-sidplay \
+               --disable-documentation \
+               --with-systemdsystemunitdir=/usr/lib/systemd/system
+
+       make
+}
+
+package() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+
+       make DESTDIR="${pkgdir}" install
+
+       sed \
+               -e '/^#playlist_directory/c playlist_directory 
"/var/lib/mpd/playlists"' \
+               -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
+               -e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \
+               -e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \
+               -e '/^#user/c user "mpd"' \
+               -i doc/mpdconf.example
+
+       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}"/etc/mpd.conf
+       install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
+}

Copied: mpd/repos/testing-x86_64/install (from rev 163051, 
mpd/repos/staging-x86_64/install)
===================================================================
--- testing-x86_64/install                              (rev 0)
+++ testing-x86_64/install      2012-07-06 15:22:01 UTC (rev 163064)
@@ -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
+       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/testing-x86_64/rc.d (from rev 163051, 
mpd/repos/staging-x86_64/rc.d)
===================================================================
--- testing-x86_64/rc.d                         (rev 0)
+++ testing-x86_64/rc.d 2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+       start)
+               stat_busy 'Starting Music Player Daemon'
+               /usr/bin/mpd /etc/mpd.conf &> /dev/null &&
+               { add_daemon mpd; stat_done; } || stat_fail
+               ;;
+       stop)
+               stat_busy 'Stopping Music Player Daemon'
+               /usr/bin/mpd --kill /etc/mpd.conf &> /dev/null &&
+               { rm_daemon mpd; stat_done; } || stat_fail
+               ;;
+       restart)
+               $0 stop
+               sleep 1
+               $0 start
+               ;;
+       *)
+               echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Copied: mpd/repos/testing-x86_64/tmpfiles.d (from rev 163051, 
mpd/repos/staging-x86_64/tmpfiles.d)
===================================================================
--- testing-x86_64/tmpfiles.d                           (rev 0)
+++ testing-x86_64/tmpfiles.d   2012-07-06 15:22:01 UTC (rev 163064)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd

Reply via email to