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

Gaetan Bisson bisson at nymeria.archlinux.org
Tue Mar 5 11:03:54 UTC 2013


    Date: Tuesday, March 5, 2013 @ 12:03:53
  Author: bisson
Revision: 179309

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

Added:
  mpd/repos/extra-i686/PKGBUILD
    (from rev 179308, mpd/trunk/PKGBUILD)
  mpd/repos/extra-i686/ffmpeg.patch
    (from rev 179308, mpd/trunk/ffmpeg.patch)
  mpd/repos/extra-i686/install
    (from rev 179308, mpd/trunk/install)
  mpd/repos/extra-i686/rc.d
    (from rev 179308, mpd/trunk/rc.d)
  mpd/repos/extra-i686/tmpfiles.d
    (from rev 179308, mpd/trunk/tmpfiles.d)
  mpd/repos/extra-x86_64/PKGBUILD
    (from rev 179308, mpd/trunk/PKGBUILD)
  mpd/repos/extra-x86_64/ffmpeg.patch
    (from rev 179308, mpd/trunk/ffmpeg.patch)
  mpd/repos/extra-x86_64/install
    (from rev 179308, mpd/trunk/install)
  mpd/repos/extra-x86_64/rc.d
    (from rev 179308, mpd/trunk/rc.d)
  mpd/repos/extra-x86_64/tmpfiles.d
    (from rev 179308, mpd/trunk/tmpfiles.d)
Deleted:
  mpd/repos/extra-i686/PKGBUILD
  mpd/repos/extra-i686/install
  mpd/repos/extra-i686/rc.d
  mpd/repos/extra-i686/tmpfiles.d
  mpd/repos/extra-x86_64/PKGBUILD
  mpd/repos/extra-x86_64/install
  mpd/repos/extra-x86_64/rc.d
  mpd/repos/extra-x86_64/tmpfiles.d

---------------------------+
 extra-i686/PKGBUILD       |  126 ++++++++++++++++++++++----------------------
 extra-i686/ffmpeg.patch   |   15 +++++
 extra-i686/install        |   22 +++----
 extra-i686/rc.d           |   50 ++++++++---------
 extra-i686/tmpfiles.d     |    2 
 extra-x86_64/PKGBUILD     |  126 ++++++++++++++++++++++----------------------
 extra-x86_64/ffmpeg.patch |   15 +++++
 extra-x86_64/install      |   22 +++----
 extra-x86_64/rc.d         |   50 ++++++++---------
 extra-x86_64/tmpfiles.d   |    2 
 10 files changed, 234 insertions(+), 196 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-i686/PKGBUILD	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,61 +0,0 @@
-# $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.17.3
-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' 'avahi' 'libid3tag' 'yajl')
-makedepends=('doxygen')
-source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
-        'tmpfiles.d'
-        'rc.d') 
-sha1sums=('f684d73a7517371a4461afdb2439f9533b51a49d'
-          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
-          '3470d489565f0ed479f1665dd2876f66acb5a585')
-
-backup=('etc/mpd.conf')
-install=install
-
-build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-
-	./configure \
-		--prefix=/usr \
-		--sysconfdir=/etc \
-		--enable-jack \
-		--enable-lastfm \
-		--enable-soundcloud \
-		--enable-pulse \
-		--disable-sidplay \
-		--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/extra-i686/PKGBUILD (from rev 179308, mpd/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1,65 @@
+# $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.17.3
+pkgrel=3
+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' 'avahi' 'libid3tag' 'yajl')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
+        'ffmpeg.patch'
+        'tmpfiles.d'
+        'rc.d') 
+sha1sums=('f684d73a7517371a4461afdb2439f9533b51a49d'
+          '8a06d04bfdf4e0dc43479907dc9b3bd7fba6dd10'
+          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+          '3470d489565f0ed479f1665dd2876f66acb5a585')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	patch -p1 -i ../ffmpeg.patch
+
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--enable-jack \
+		--enable-lastfm \
+		--enable-soundcloud \
+		--enable-pulse \
+		--disable-sidplay \
+		--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/extra-i686/ffmpeg.patch (from rev 179308, mpd/trunk/ffmpeg.patch)
===================================================================
--- extra-i686/ffmpeg.patch	                        (rev 0)
+++ extra-i686/ffmpeg.patch	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1,15 @@
+diff -Naur old/src/decoder/ffmpeg_decoder_plugin.c new/src/decoder/ffmpeg_decoder_plugin.c
+--- old/src/decoder/ffmpeg_decoder_plugin.c	2013-01-07 11:39:40.000000000 +1100
++++ new/src/decoder/ffmpeg_decoder_plugin.c	2013-03-05 21:54:27.116585462 +1100
+@@ -395,6 +395,11 @@
+ #endif
+ 		return SAMPLE_FORMAT_S32;
+ 
++#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,17,0)
++	case AV_SAMPLE_FMT_FLTP:
++		return SAMPLE_FORMAT_FLOAT;
++#endif
++
+ 	default:
+ 		break;
+ 	}

Deleted: extra-i686/install
===================================================================
--- extra-i686/install	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-i686/install	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,11 +0,0 @@
-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/extra-i686/install (from rev 179308, mpd/trunk/install)
===================================================================
--- extra-i686/install	                        (rev 0)
+++ extra-i686/install	2013-03-05 11:03:53 UTC (rev 179309)
@@ -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
+}

Deleted: extra-i686/rc.d
===================================================================
--- extra-i686/rc.d	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-i686/rc.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,25 +0,0 @@
-#!/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/extra-i686/rc.d (from rev 179308, mpd/trunk/rc.d)
===================================================================
--- extra-i686/rc.d	                        (rev 0)
+++ extra-i686/rc.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -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

Deleted: extra-i686/tmpfiles.d
===================================================================
--- extra-i686/tmpfiles.d	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-i686/tmpfiles.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1 +0,0 @@
-d /run/mpd 0755 mpd mpd

Copied: mpd/repos/extra-i686/tmpfiles.d (from rev 179308, mpd/trunk/tmpfiles.d)
===================================================================
--- extra-i686/tmpfiles.d	                        (rev 0)
+++ extra-i686/tmpfiles.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-x86_64/PKGBUILD	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,61 +0,0 @@
-# $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.17.3
-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' 'avahi' 'libid3tag' 'yajl')
-makedepends=('doxygen')
-source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
-        'tmpfiles.d'
-        'rc.d') 
-sha1sums=('f684d73a7517371a4461afdb2439f9533b51a49d'
-          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
-          '3470d489565f0ed479f1665dd2876f66acb5a585')
-
-backup=('etc/mpd.conf')
-install=install
-
-build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-
-	./configure \
-		--prefix=/usr \
-		--sysconfdir=/etc \
-		--enable-jack \
-		--enable-lastfm \
-		--enable-soundcloud \
-		--enable-pulse \
-		--disable-sidplay \
-		--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/extra-x86_64/PKGBUILD (from rev 179308, mpd/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1,65 @@
+# $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.17.3
+pkgrel=3
+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' 'avahi' 'libid3tag' 'yajl')
+makedepends=('doxygen')
+source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
+        'ffmpeg.patch'
+        'tmpfiles.d'
+        'rc.d') 
+sha1sums=('f684d73a7517371a4461afdb2439f9533b51a49d'
+          '8a06d04bfdf4e0dc43479907dc9b3bd7fba6dd10'
+          'f4d5922abb69abb739542d8e93f4dfd748acdad7'
+          '3470d489565f0ed479f1665dd2876f66acb5a585')
+
+backup=('etc/mpd.conf')
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	patch -p1 -i ../ffmpeg.patch
+
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--enable-jack \
+		--enable-lastfm \
+		--enable-soundcloud \
+		--enable-pulse \
+		--disable-sidplay \
+		--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/extra-x86_64/ffmpeg.patch (from rev 179308, mpd/trunk/ffmpeg.patch)
===================================================================
--- extra-x86_64/ffmpeg.patch	                        (rev 0)
+++ extra-x86_64/ffmpeg.patch	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1,15 @@
+diff -Naur old/src/decoder/ffmpeg_decoder_plugin.c new/src/decoder/ffmpeg_decoder_plugin.c
+--- old/src/decoder/ffmpeg_decoder_plugin.c	2013-01-07 11:39:40.000000000 +1100
++++ new/src/decoder/ffmpeg_decoder_plugin.c	2013-03-05 21:54:27.116585462 +1100
+@@ -395,6 +395,11 @@
+ #endif
+ 		return SAMPLE_FORMAT_S32;
+ 
++#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,17,0)
++	case AV_SAMPLE_FMT_FLTP:
++		return SAMPLE_FORMAT_FLOAT;
++#endif
++
+ 	default:
+ 		break;
+ 	}

Deleted: extra-x86_64/install
===================================================================
--- extra-x86_64/install	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-x86_64/install	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,11 +0,0 @@
-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/extra-x86_64/install (from rev 179308, mpd/trunk/install)
===================================================================
--- extra-x86_64/install	                        (rev 0)
+++ extra-x86_64/install	2013-03-05 11:03:53 UTC (rev 179309)
@@ -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
+}

Deleted: extra-x86_64/rc.d
===================================================================
--- extra-x86_64/rc.d	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-x86_64/rc.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1,25 +0,0 @@
-#!/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/extra-x86_64/rc.d (from rev 179308, mpd/trunk/rc.d)
===================================================================
--- extra-x86_64/rc.d	                        (rev 0)
+++ extra-x86_64/rc.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -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

Deleted: extra-x86_64/tmpfiles.d
===================================================================
--- extra-x86_64/tmpfiles.d	2013-03-05 11:02:41 UTC (rev 179308)
+++ extra-x86_64/tmpfiles.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -1 +0,0 @@
-d /run/mpd 0755 mpd mpd

Copied: mpd/repos/extra-x86_64/tmpfiles.d (from rev 179308, mpd/trunk/tmpfiles.d)
===================================================================
--- extra-x86_64/tmpfiles.d	                        (rev 0)
+++ extra-x86_64/tmpfiles.d	2013-03-05 11:03:53 UTC (rev 179309)
@@ -0,0 +1 @@
+d /run/mpd 0755 mpd mpd




More information about the arch-commits mailing list