[arch-commits] Commit in mpd/repos (8 files)

Gaetan Bisson bisson at archlinux.org
Wed Mar 21 11:58:12 UTC 2012


    Date: Wednesday, March 21, 2012 @ 07:58:11
  Author: bisson
Revision: 154008

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  mpd/repos/testing-i686/
  mpd/repos/testing-i686/PKGBUILD
    (from rev 154007, mpd/trunk/PKGBUILD)
  mpd/repos/testing-i686/install
    (from rev 154007, mpd/trunk/install)
  mpd/repos/testing-i686/rc.d
    (from rev 154007, mpd/trunk/rc.d)
  mpd/repos/testing-x86_64/
  mpd/repos/testing-x86_64/PKGBUILD
    (from rev 154007, mpd/trunk/PKGBUILD)
  mpd/repos/testing-x86_64/install
    (from rev 154007, mpd/trunk/install)
  mpd/repos/testing-x86_64/rc.d
    (from rev 154007, mpd/trunk/rc.d)

-------------------------+
 testing-i686/PKGBUILD   |   64 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-i686/install    |   10 +++++++
 testing-i686/rc.d       |   27 +++++++++++++++++++
 testing-x86_64/PKGBUILD |   64 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/install  |   10 +++++++
 testing-x86_64/rc.d     |   27 +++++++++++++++++++
 6 files changed, 202 insertions(+)

Copied: mpd/repos/testing-i686/PKGBUILD (from rev 154007, mpd/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,64 @@
+# $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.16.7
+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'
+         'sqlite3' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
+         'libpulse')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
+        'rc.d') 
+sha1sums=('878f3ce82d4f00f6cbad63a625b2c0274c4a704a'
+          '3777bdb4fff4b7911be3b1242aabae9d2912ef18')
+
+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 \
+		--with-systemdsystemunitdir=/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}"/usr/share/mpd/mpd.conf.example
+
+	cd "${pkgdir}"/usr/share/doc/mpd
+	tar cfJ api.tar.xz --remove-files api
+	rmdir developer protocol user
+}

Copied: mpd/repos/testing-i686/install (from rev 154007, mpd/trunk/install)
===================================================================
--- testing-i686/install	                        (rev 0)
+++ testing-i686/install	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,10 @@
+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/true -G audio mpd >/dev/null
+	echo '==> Now create a /etc/mpd.conf file; see: /usr/share/mpd/mpd.conf.example'
+}
+
+post_remove() {
+	getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+	getent group mpd &>/dev/null && groupdel mpd >/dev/null
+}

Copied: mpd/repos/testing-i686/rc.d (from rev 154007, mpd/trunk/rc.d)
===================================================================
--- testing-i686/rc.d	                        (rev 0)
+++ testing-i686/rc.d	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+. /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'
+		/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/PKGBUILD (from rev 154007, mpd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,64 @@
+# $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.16.7
+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'
+         'sqlite3' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
+         'libpulse')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
+        'rc.d') 
+sha1sums=('878f3ce82d4f00f6cbad63a625b2c0274c4a704a'
+          '3777bdb4fff4b7911be3b1242aabae9d2912ef18')
+
+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 \
+		--with-systemdsystemunitdir=/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}"/usr/share/mpd/mpd.conf.example
+
+	cd "${pkgdir}"/usr/share/doc/mpd
+	tar cfJ api.tar.xz --remove-files api
+	rmdir developer protocol user
+}

Copied: mpd/repos/testing-x86_64/install (from rev 154007, mpd/trunk/install)
===================================================================
--- testing-x86_64/install	                        (rev 0)
+++ testing-x86_64/install	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,10 @@
+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/true -G audio mpd >/dev/null
+	echo '==> Now create a /etc/mpd.conf file; see: /usr/share/mpd/mpd.conf.example'
+}
+
+post_remove() {
+	getent passwd mpd &>/dev/null && userdel mpd >/dev/null
+	getent group mpd &>/dev/null && groupdel mpd >/dev/null
+}

Copied: mpd/repos/testing-x86_64/rc.d (from rev 154007, mpd/trunk/rc.d)
===================================================================
--- testing-x86_64/rc.d	                        (rev 0)
+++ testing-x86_64/rc.d	2012-03-21 11:58:11 UTC (rev 154008)
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+. /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'
+		/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




More information about the arch-commits mailing list