--- mpd-0.16.7.orig/debian/watch
+++ mpd-0.16.7/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/musicpd/mpd-([0-9.]*).tar.gz
--- mpd-0.16.7.orig/debian/copyright
+++ mpd-0.16.7/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Warren Dukes <shank@mercury.chem.pitt.edu> on
+Fri, 25 Jul 2003 10:28:30 -0400.
+
+This package is currently maintained by the mpd packaging team
+http://alioth.debian.org/projects/pkg-mpd
+
+Mailinglist: pkg-mpd-maintainers@lists.alioth.debian.org
+
+It was downloaded from http://musicpd.org/
+
+The latest development source is also available via git:
+  git clone git://git.musicpd.org/master/mpc.git
+
+Upstream Author: Max Kellermann <max@duempel.org>
+
+Copyright:
+
+    Copyright (C) 2003-2007 by Warren Dukes (warren.dukes@gmail.com)
+    Copyright (C) 2008 Max Kellermann <max@duempel.org>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL'.
--- mpd-0.16.7.orig/debian/mpd.logrotate
+++ mpd-0.16.7/debian/mpd.logrotate
@@ -0,0 +1,10 @@
+/var/log/mpd/*.log {
+	weekly
+	missingok
+	rotate 7
+	compress
+	notifempty
+	copytruncate
+	create 600
+}
+
--- mpd-0.16.7.orig/debian/mpd.prerm
+++ mpd-0.16.7/debian/mpd.prerm
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+do_mpd_stop () {
+    if [ -x /etc/init.d/mpd ]; then
+        if [ -x /usr/sbin/invoke-rc.d ]; then
+            invoke-rc.d mpd stop
+        else
+            /etc/init.d/mpd stop
+        fi
+    fi
+}
+
+case "$1" in
+    remove|deconfigure)
+        do_mpd_stop
+        ;;
+    upgrade|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+        ;;
+esac
+
+#DEBHELPER#
--- mpd-0.16.7.orig/debian/mpd.manpages
+++ mpd-0.16.7/debian/mpd.manpages
@@ -0,0 +1,2 @@
+doc/mpd.1
+doc/mpd.conf.5
--- mpd-0.16.7.orig/debian/changelog
+++ mpd-0.16.7/debian/changelog
@@ -0,0 +1,908 @@
+mpd (0.16.7-2) unstable; urgency=low
+
+  * [06f520f] Enable lame mp3 encoder (Closes: #559933)
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 10 Mar 2012 14:05:48 +0100
+
+mpd (0.16.7-1) unstable; urgency=low
+
+  * [4b06732] Imported Upstream version 0.16.7
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 11 Feb 2012 19:17:01 +0100
+
+mpd (0.16.5-1) unstable; urgency=low
+
+  * [9bce739] Imported Upstream version 0.16.5
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 15 Oct 2011 10:19:37 +0200
+
+mpd (0.16.4-1) unstable; urgency=low
+
+  * [d91cb09] Imported Upstream version 0.16.4
+    - Fix ffmpeg problems (Closes: #636628)
+
+ -- Alexander Wirt <formorer@debian.org>  Wed, 07 Sep 2011 08:41:37 +0200
+
+mpd (0.16.3-1) unstable; urgency=low
+
+  * [730dbc1] use wildcard to list of non-Linux architectures (Closes: #634724)
+  * [c887ddc] Imported Upstream version 0.16.3
+  * [37a0cfb] Remove quilt
+  * [e70bfa8] Bump debhelper compat to 8
+  * [d69655e] Move from cdbs to dh
+  * [5229745] Get rid of unused deps
+
+ -- Alexander Wirt <formorer@debian.org>  Wed, 03 Aug 2011 15:54:05 +0200
+
+mpd (0.16.2-1) unstable; urgency=low
+
+  * --create-db is deprecated - removed from initscript
+  * New upstream version
+  * [f75af78] Imported Upstream version 0.16.2
+  * [e6b63e3] Bump standards version (No changes)
+  * [a4cf064] Add $named to Should-Require in initscript (Closes: #625973)
+
+ -- Alexander Wirt <formorer@debian.org>  Sat, 14 May 2011 20:28:04 +0200
+
+mpd (0.16.1-2) unstable; urgency=low
+
+  * Update maintainer. Thanks Decklin!
+  * Bump standards version (No changes)
+  * Add vcs headers to control file
+  * Recreate /var/run/mpd in init script if its missing
+  * Add lintian override for /var/run/mpd - we recreate 
+    it in initscript if necessary
+  * Add README.source
+  * Warn if configfile contains the deprecated error_file 
+    option (Closes: #613736)
+  * Add init.d status support and add lsb-base to deps.
+    Thanks to Peter Eisentraut (Closes: #536296)
+  * wrap and sort build dependencies.
+    Thanks to Benjamin Drung for mentioning wrap-and-sort (Closes: #609601)
+  * Update mpd.conf and mention vbrfix package (Closes: #568388)
+  * Add libavahi-glib-dev to build-deps to build avahi support 
+    (Closes: #560860)
+  * Re-enable mikmod support (Closes: #607643, #510675)
+  * Fix NEWS entry
+  * Implement force-reload in initscript (Closes: #515623)
+  * Force deb source format 1.0
+
+ -- Alexander Wirt <formorer@debian.org>  Thu, 03 Mar 2011 22:37:12 +0100
+
+mpd (0.16.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 01 Feb 2011 22:33:15 -0500
+
+mpd (0.15.15-2) unstable; urgency=low
+
+  * Reapply 0.15.12-1.1 (sorry, my bad).
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 14 Nov 2010 01:47:01 -0500
+
+mpd (0.15.15-1) unstable; urgency=low
+
+  * New upstream release
+  * Enable pipe output plugin (Closes: #603026)
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 13 Nov 2010 15:04:41 -0500
+
+mpd (0.15.12-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Disable libcue support.  It has a symbol conflict with libcdio, which we
+    also use (closes: #597731).
+
+ -- Julien Cristau <jcristau@debian.org>  Mon, 04 Oct 2010 15:46:56 +0200
+
+mpd (0.15.12-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 21 Jul 2010 09:28:08 -0400
+
+mpd (0.15.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 14 Jun 2010 20:42:01 -0400
+
+mpd (0.15.9-2) unstable; urgency=low
+
+  * Enable Last.fm radio support
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 18 Apr 2010 22:09:14 -0400
+
+mpd (0.15.9-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 23 Mar 2010 19:28:22 -0400
+
+mpd (0.15.8-1) unstable; urgency=low
+
+  * New upstream release
+    - Fixes CUE playback
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 20 Jan 2010 22:04:16 -0500
+
+mpd (0.15.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Remove 'mpd' user on purge (Closes: #562576)
+  * Add autofs to init.d dependencies (Closes: #555392)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 04 Jan 2010 15:00:58 -0500
+
+mpd (0.15.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 29 Nov 2009 21:37:30 -0500
+
+mpd (0.15.4-1) unstable; urgency=low
+
+  * New upstream release (Closes: #550757)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 12 Oct 2009 17:33:38 -0400
+
+mpd (0.15.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Apply patch taken from upstream to workaround tremor headers
+    (Closes: #547525)
+
+ -- Christophe Mutricy <xtophe@videolan.org>  Wed, 30 Sep 2009 19:56:48 +0200
+
+mpd (0.15.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 01 Sep 2009 23:41:42 -0400
+
+mpd (0.15.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 16 Aug 2009 15:31:37 -0400
+
+mpd (0.15.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Fix crash on discarding db with bad charset (Closes: #535076)
+  * Re-enable ffmpeg (Closes: #534726)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 16 Jul 2009 19:53:21 -0400
+
+mpd (0.15-2) unstable; urgency=low
+
+  * Enable SQLite, libcue, sidplay, and libmms.
+  * Enable state file by default in mpd.conf.
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 26 Jun 2009 08:35:28 -0400
+
+mpd (0.15-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 24 Jun 2009 15:06:53 -0400
+
+mpd (0.15~beta2-1) experimental; urgency=low
+
+  * New upstream release
+  * Nicer message when systemwide daemon is disabled (Closes: #521701,
+    #529524)
+  * Update mpd.conf from upstream
+    - Configure an ALSA output by default
+  * Fix section of mpd-debug
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 24 May 2009 14:22:16 -0400
+
+mpd (0.15~beta1-1) experimental; urgency=low
+
+  * New upstream beta release
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 07 May 2009 15:08:43 -0400
+
+mpd (0.15~alpha1-1) experimental; urgency=low
+
+  * New upstream alpha release
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 06 Apr 2009 18:11:49 -0400
+
+mpd (0.14.2-3) unstable; urgency=low
+
+  * Install NEWS as the upstream changelog (Closes: #516975)
+  * Make -dbg depend on the version of mpd it was built with
+  * Include a non-virtual package in the curl build-dep
+  * Reinstate force-reload as a synonym for restart in init.d (we still
+    don't support reload, unfortunately)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 26 Feb 2009 14:26:12 -0500
+
+mpd (0.14.2-2) unstable; urgency=low
+
+  * Update copyright file
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 14 Feb 2009 21:26:14 -0500
+
+mpd (0.14.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Change section of mpd-dbg to devel
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 14 Feb 2009 10:34:28 -0500
+
+mpd (0.14.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Refreshes stats after update (Closes: #512878)
+    - HTTP proxy support (Closes: #408671)
+  * Don't remove user data on purge (Closes: #480625)
+  * Remove 'reload' action from init.d script (Closes: #481772)
+  * Update watch file (Closes: #510262)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 26 Jan 2009 22:40:59 -0500
+
+mpd (0.14-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 30 Dec 2008 14:28:21 -0500
+
+mpd (0.14~beta2-2) unstable; urgency=low
+
+  * Build a -dbg package
+  * Remove obsolete CDBS clean hack, useless "-1" build-deps
+  * Correctly delete redundant mpd.conf and copy of GPL
+  * Add Suggests: avahi-daemon
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 10 Dec 2008 19:36:43 -0500
+
+mpd (0.14~beta2-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump policy version to 3.8.0
+  * Update Homepage: field
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 04 Dec 2008 09:36:43 -0500
+
+mpd (0.14~beta1-1) unstable; urgency=low
+
+  * New upstream beta release
+  * Sync mpd.conf with upstream and add note about the new socket feature
+  * Generate HTML protocol documentation
+  * Enable wavpack and ffmpeg support
+  * Use -Wl,--as-needed to clean up a few extraneous dependencies
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 02 Dec 2008 19:59:11 -0500
+
+mpd (0.14~alpha3-2) experimental; urgency=low
+
+  * Enable libcurl
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 19 Nov 2008 20:55:08 -0500
+
+mpd (0.14~alpha3-1) experimental; urgency=low
+
+  * New upstream alpha release
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 14 Nov 2008 23:08:04 -0500
+
+mpd (0.14~alpha2-1) experimental; urgency=low
+
+  * New upstream alpha release
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 13 Nov 2008 17:44:57 -0500
+
+mpd (0.14~alpha1-1) experimental; urgency=low
+
+  * New upstream alpha release
+    - Removed stream-block.diff
+    - Grab logging fix from upstream git
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 08 Nov 2008 19:05:56 -0500
+
+mpd (0.13.2-3) unstable; urgency=low
+
+  * Remove "|| true" hack from init.d
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 21 Oct 2008 15:03:42 -0400
+
+mpd (0.13.2-2) unstable; urgency=low
+
+  * Don't die if start-stop-daemon fails (Closes: #478018, #498911)
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 23 Sep 2008 22:00:43 -0400
+
+mpd (0.13.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Remove stale patches
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 18 Jun 2008 10:06:01 -0400
+
+mpd (0.13.1-3) unstable; urgency=low
+
+  * Fix upgrade in prerm (Closes: #464245)
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 05 Feb 2008 22:01:48 -0500
+
+mpd (0.13.1-2) unstable; urgency=low
+
+  * Remove erroneous changelog entry from 0.13.1-1 (fix isn't in the stable
+    branch yet).
+  * Move default rc.d stop order up to 14, to be absolutely sure we stop
+    before pulseaudio. (Hooray for runlevel inflation...)
+  * Update Standards-Version to 3.7.3, and debhelper compat level to 6.
+  * Make watch file ignore alphabetical versions, e.g. the "yesterday"
+    snapshot tarball from 2005. Thanks to DDPO for reminding me of this.
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 05 Feb 2008 09:31:46 -0500
+
+mpd (0.13.1-1) unstable; urgency=low
+
+  * New upstream release, includes avahi-crash.diff
+  * Remove 0.11 cruft from maintainer scripts; we now only support upgrades
+    from etch or later.
+  * Don't attempt to restart on install if no MPD is running (e.g. when
+    installing for the first time.)
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 29 Jan 2008 22:25:42 -0500
+
+mpd (0.13.0-7) unstable; urgency=low
+
+  * Check MPD_START before attempting to stop the daemon, as well, so that
+    LSB logging can work (Closes: #460016, #382634)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 10 Jan 2008 05:34:22 -0500
+
+mpd (0.13.0-6) unstable; urgency=low
+
+  * Several init.d changes:
+    - Fix MPD_DEBUG (Closes: #459517)
+    - Add LSB information (Closes: #459538)
+      + Include dependency info (Closes: #458393), and suggests for various
+        sound outputs. Nothing for icecast now, as it is not LSB-ized yet, nor
+        for jack as it does not use rc.d.
+  * Trim long description and use Homepage: field.
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon, 07 Jan 2008 22:59:06 -0500
+
+mpd (0.13.0-5) unstable; urgency=low
+
+  * Build-depend on libsamplerate0-dev (Closes: #311343)
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 12 Dec 2007 01:17:05 -0500
+
+mpd (0.13.0-4) unstable; urgency=low
+
+  * Add fix by qball for a possible hang when stopping Ogg streams.
+  * Include note in README.Debian about creating database. (Closes: #455686)
+    Also briefly mention ALSA ipc multi-user stuff.
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 12 Dec 2007 00:28:16 -0500
+
+mpd (0.13.0-3) unstable; urgency=low
+
+  [ Joey Hess ]
+
+  * Build --with-tremor on arm. (Closes: #453746)
+
+  [ Decklin Foster ]
+
+  * Include kfreebsd-amd64 in non-Linux (kfreebsd-i386, hurd-i386)
+    build-deps. (Closes: #451114)
+  * Remove build-depends on libraries only pulled in by Shoutcast.
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 30 Nov 2007 17:25:51 -0500
+
+mpd (0.13.0-2) unstable; urgency=low
+
+  * Include fix from SVN (r6844) for passing NULL to Avahi (Closes: #428551)
+
+ -- Decklin Foster <decklin@red-bean.com>  Sun, 02 Sep 2007 01:04:06 -0400
+
+mpd (0.13.0-1) unstable; urgency=low
+
+  * New upstream release
+    - Build with FLAC 1.1.4, remove liboggflac (Closes: #426657, #427750)
+    - Enable new Avahi and JACK support
+    - Remove SVN patches http-cleanup.diff, seek.diff
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 08 Jun 2007 10:53:45 -0400
+
+mpd (0.12.2-3) unstable; urgency=low
+
+  * Made the init.d script a little more standard, including checking for the
+    existence of the daemon before running it in case we are uninstalled but
+    not purged. (Closes: #422281)
+  * Change default charset in mpd.conf to UTF-8. If you have an existing
+    non-UTF-8 database, you should not merge this change, but new
+    Debian installations should in the majority of cases be using UTF-8.
+    (Closes: #417856)
+  * Remove stray libesd build-dep, and add one for libtheora.
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 25 May 2007 12:46:05 -0400
+
+mpd (0.12.2-2) unstable; urgency=low
+
+  * Include HTTP streaming fixes from SVN:
+    - Seeking support (r5159)
+    - Send "HTTP/1.1" (r5394)
+    - Check snprintf return value (r5395)
+  * Remove --chuid hack from init.d (Closes: #416552)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 29 Mar 2007 10:55:08 -0400
+
+mpd (0.12.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Add OggFLAC support, and enable libao properly.
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 28 Mar 2007 00:54:14 -0400
+
+mpd (0.12.1-3) unstable; urgency=low
+
+  * Fix pid_file detection in init.d script so that stop/restart work
+    correctly.
+
+ -- Decklin Foster <decklin@red-bean.com>  Tue, 27 Mar 2007 23:59:46 -0400
+
+mpd (0.12.1-2) unstable; urgency=low
+
+  * Use start-stop-daemon --stop --retry in init.d so that we don't try to
+    restart before an existing mpd is killed. (Closes: #398698)
+  * Create /var/run/mpd again on startup in case /var/run is mounted on
+    a tmpfs. (Closes: #408848)
+  * Re-sync mpd.conf with example shipped in doc. This fixes instructions
+    for enabling ReplayGain, and improves some other comments and examples.
+    (Closes: #407784)
+  * Build with support for PulseAudio. (Closes: #392763)
+  * Build-depend on libfaad-dev and drop no longer relevant note about
+    lack of AAC support in README.Debian (thanks to Jonas Smedegaard).
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 21 Mar 2007 18:03:57 -0400
+
+mpd (0.12.1-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Added missing dep on adduser (Closes: #408262)
+  * Set urgency to high since we're closing an RC bug.
+
+ -- Bastian Venthur <venthur@debian.org>  Wed, 31 Jan 2007 12:35:08 +0100
+
+mpd (0.12.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Fixes scanning of MP3s with a 0-frame Xing tag (Closes: #390417)
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 11 Oct 2006 15:22:46 -0400
+
+mpd (0.12.0-3) unstable; urgency=low
+
+  * Fix missing build-depends (Closes: #390779)
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon,  2 Oct 2006 21:32:27 -0400
+
+mpd (0.12.0-2) unstable; urgency=low
+
+  * Add patch to fix xmalloc assertion with some MP3 files. This does not
+    really fix #390417, as the files do not play, but mpd --create-db will no
+    longer crash.
+  * When cleaning up after 0.11, check that the PID in the legacy pidfile
+    is actually running before attempting to kill it.
+
+ -- Decklin Foster <decklin@red-bean.com>  Mon,  2 Oct 2006 14:55:17 -0400
+
+mpd (0.12.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #280100)
+    - Enable Ogg speex support (Closes: #341698)
+    - Fixed ID3v2 support (Closes: #288101)
+  * Removed debconf (Closes: #329887, #360113)
+    - No more 'restart' setting, just restart in postinst (Closes: #369590)
+  * Removed lintian override.
+
+ -- Decklin Foster <decklin@red-bean.com>  Sat, 23 Sep 2006 14:18:36 -0400
+
+mpd (0.12.0~rc3-1) experimental; urgency=low
+
+  * New upstream release.
+  * Updated watch file.
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 30 Aug 2006 14:05:02 -0400
+
+mpd (0.12.0~rc2-1) experimental; urgency=low
+
+  * New upstream release.
+  * Change default music directory to /var/lib/mpd/music.
+
+ -- Decklin Foster <decklin@red-bean.com>  Fri, 18 Aug 2006 21:01:22 -0400
+
+mpd (0.12.0~rc1-1) experimental; urgency=low
+
+  [ Decklin Foster ]
+  * New upstream release.
+  * Removed redundant debian/conffiles, and debian/templates since debconf is
+    no longer used.
+  * Include full GPL blurb in debian/copyright.
+  * Start system service by default.
+  * Parse out quoting in check_dbfile (we can't depend on the shell to do it).
+  * Implemented check_conf and simplified init.
+  * Pass -n to dh_installinit rather than removing #DEBHELPER#.
+  * Standards-Version: 3.7.2.
+  * Added an ugly check to kill 0.11 in the postinst, and purge debconf
+    answers if necessary.
+  * Updated and shortened NEWS.Debian.
+
+  [ Eric Wong ]
+  * reenable libao and libmikmod support (disabled by default in upstream)
+
+ -- Decklin Foster <decklin@red-bean.com>  Thu, 17 Aug 2006 22:28:36 -0400
+
+mpd (0.11.5-4) unstable; urgency=low
+
+  * add Czech and Vietnamese translations. Closes: #308027,#312971
+  * clarify state_file documentation (from upstream)
+  * no longer delete the mpd user and group on purge. Closes: #305088
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 11 Jun 2005 22:03:08 -0700
+
+mpd (0.11.5-3) unstable; urgency=low
+
+  * Fix logrotate when the user `mpd' does not exist. Closes: #290640
+  * Apply a patch from upstream trunk to fix segfault with mikmod
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 15 Jan 2005 13:09:30 -0800
+
+mpd (0.11.5-2) unstable; urgency=low
+
+  * Update copyright info (email, dates, svn).
+  * Force to build with libFLAC (>= 1.1.1-3). Closes: #289184
+  * Added logrotate entries.
+  * Updated to Standards-Version 3.6.1.1
+
+ -- Eric Wong <eric@petta-tech.com>  Fri,  7 Jan 2005 21:48:41 -0800
+
+mpd (0.11.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Apply patch to validate UTF-8 tags correctly (forwarded upstream)
+  * Don't rely on sed -i in scripts to make life easier for
+    backporters.  Closes: #278873
+
+ -- Eric Wong <eric@petta-tech.com>  Thu,  4 Nov 2004 03:18:13 -0800
+
+mpd (0.11.4-7) unstable; urgency=low
+
+  * Make sure statoverride cleans up after itself after the user is
+    removed on purge.
+
+ -- Eric Wong <eric@petta-tech.com>  Tue, 21 Sep 2004 20:24:36 -0700
+
+mpd (0.11.4-6) unstable; urgency=low
+
+  * Fix another regular expression bug in the configuration library
+    that was missing matches.  Thanks again to Thorsten Sandfuchs.
+    Closes: #269574, #269576 (yet again)
+
+ -- Eric Wong <eric@petta-tech.com>  Fri, 10 Sep 2004 01:04:04 -0700
+
+mpd (0.11.4-5) unstable; urgency=low
+
+  * Fix a regular expression match in configuration library that was
+    causing duplicate entries to appear.  This was partially worked
+    around in 0.11.4-2 and 0.11.4-3, but we have a real fix now.
+    Thanks to Thorsten Sandfuchs for finding it.
+    Closes: #269574, #269576
+  * Add README.Debian to clear up some questions users had
+
+ -- Eric Wong <eric@petta-tech.com>  Sat,  4 Sep 2004 13:29:01 -0700
+
+mpd (0.11.4-4) unstable; urgency=low
+
+  * Added French debconf translation, thanks to Christian Perrier.
+    Closes: #267458,#268112
+
+ -- Eric Wong <eric@petta-tech.com>  Wed, 25 Aug 2004 23:12:27 -0700
+
+mpd (0.11.4-3) unstable; urgency=low
+
+  * Fix upgrade problem introduced in last release
+
+ -- Eric Wong <eric@petta-tech.com>  Sun,  8 Aug 2004 15:03:34 -0700
+
+mpd (0.11.4-2) unstable; urgency=low
+
+  * Fix problem with state_file creation for some users at
+    configuration.  Closes: #262473
+  * Move state_file from /var/run/mpd/state to /var/lib/mpd/state for
+    FHS compliance.  Thanks to Richard van den Berg for pointing both of
+    these out.
+
+ -- Eric Wong <eric@petta-tech.com>  Mon,  2 Aug 2004 01:25:37 -0700
+
+mpd (0.11.4-1) unstable; urgency=low
+
+  * new upstream release, see upstream changelog for details
+
+ -- Eric Wong <eric@petta-tech.com>  Tue, 27 Jul 2004 02:54:57 -0700
+
+mpd (0.11.3-1) unstable; urgency=low
+
+  * new upstream release, see upstream changelog for details
+
+ -- Eric Wong <eric@petta-tech.com>  Fri, 23 Jul 2004 03:05:15 -0700
+
+mpd (0.11.2-1) unstable; urgency=low
+
+  * new upstream version: fixes flac memory leak, replaygain, and
+    mp3/mp4 seeking.  See upstream changelog for more details.
+
+ -- Eric Wong <eric@petta-tech.com>  Mon,  5 Jul 2004 21:32:10 -0700
+
+mpd (0.11.1-2) unstable; urgency=low
+
+  * fix debconf being listed twice in Depends
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 26 Jun 2004 18:44:20 -0700
+
+mpd (0.11.1-1) unstable; urgency=low
+
+  * new upstream: see upstream changelog for details, 1.0 is imminent!
+
+ -- Eric Wong <eric@petta-tech.com>  Wed, 23 Jun 2004 21:06:53 -0700
+
+mpd (0.11.0-3) unstable; urgency=low
+
+  * don't display debconf note about the 2100 => 6600 port change for new
+    installs
+  * make sure the init script uses /etc/mpd.conf when creating the db
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 19 Jun 2004 20:09:01 -0700
+
+mpd (0.11.0-2) unstable; urgency=low
+
+  * ack! update build-dependency to include libmikmod2-dev
+
+ -- Eric Wong <eric@petta-tech.com>  Fri, 18 Jun 2004 10:53:52 -0700
+
+mpd (0.11.0-1) unstable; urgency=low
+
+  * new upstream: many new features/improvements, see upstream changelog
+    for more details
+  * upstream: default port moved to 6600 (2100 is taken by amiganetfs
+    according to IANA)
+
+ -- Eric Wong <eric@petta-tech.com>  Fri, 18 Jun 2004 01:02:35 -0700
+
+mpd (0.10.4-3) unstable; urgency=low
+
+  * add zlib1g-dev to build-dependencies
+
+ -- Eric Wong <eric@petta-tech.com>  Tue, 15 Jun 2004 21:41:25 -0700
+
+mpd (0.10.4-2) unstable; urgency=low
+
+  * add a note about the creating the config file
+
+ -- Eric Wong <eric@petta-tech.com>  Fri, 11 Jun 2004 17:57:46 -0700
+
+mpd (0.10.4-1) unstable; urgency=low
+
+  * new upstream
+
+ -- Eric Wong <eric@petta-tech.com>  Wed, 26 May 2004 20:37:02 -0700
+
+mpd (0.10.3-8) unstable; urgency=low
+
+  * update description
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 15 May 2004 05:57:34 -0700
+
+mpd (0.10.3-7) unstable; urgency=low
+
+  * clean up purge
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 19 Apr 2004 18:33:37 -0700
+
+mpd (0.10.3-6) unstable; urgency=low
+
+  * update copyright to include 2004
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 19 Apr 2004 02:20:48 -0700
+
+mpd (0.10.3-5) unstable; urgency=low
+
+  * prompt for restarts on future upgrades
+  * add debconf option for using the state_file (in /var/run/mpd/state)
+  * massive maintainer script cleanups and tweaks
+
+ -- Eric Wong <eric@petta-tech.com>  Sun, 18 Apr 2004 19:32:30 -0700
+
+mpd (0.10.3-4) unstable; urgency=low
+
+  * silenced a harmless deluser/delgroup message in purge
+
+ -- Eric Wong <eric@petta-tech.com>  Sun,  4 Apr 2004 17:34:37 -0700
+
+mpd (0.10.3-3) unstable; urgency=low
+
+  * fix upgrade from non-system users
+
+ -- Eric Wong <eric@petta-tech.com>  Sat,  3 Apr 2004 17:59:08 -0800
+
+mpd (0.10.3-2) unstable; urgency=low
+
+  * remove old init links if user chooses to not install the service
+
+ -- Eric Wong <eric@petta-tech.com>  Sat,  3 Apr 2004 03:04:49 -0800
+
+mpd (0.10.3-1) unstable; urgency=low
+
+  * new upstream
+  * debian/rules files documents how to customize
+
+ -- Eric Wong <eric@petta-tech.com>  Fri,  2 Apr 2004 21:09:18 -0800
+
+mpd (0.10.2-4) unstable; urgency=low
+
+  * fixed postinst handling of /etc/mpd.conf
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 29 Mar 2004 22:27:20 -0800
+
+mpd (0.10.2-3) unstable; urgency=low
+
+  * added Build-Depends to libasound2-dev
+  * fixed prerm script
+
+ -- Eric Wong <eric@petta-tech.com>  Sun, 28 Mar 2004 14:16:04 -0800
+
+mpd (0.10.2-2) unstable; urgency=low
+
+  * updated description to reflect released clients only
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 27 Mar 2004 12:48:39 -0800
+
+mpd (0.10.2-1) unstable; urgency=low
+
+  * new upstream
+
+ -- Eric Wong <eric@petta-tech.com>  Wed, 24 Mar 2004 23:06:23 -0800
+
+mpd (0.10.1-3) unstable; urgency=low
+
+  * make translations possible using po-debconf
+
+ -- Eric Wong <eric@petta-tech.com>  Thu, 18 Mar 2004 23:21:10 -0800
+
+mpd (0.10.1-2) unstable; urgency=low
+
+  * reverted state/playlist resuming in init script at the request of upstream
+
+ -- Eric Wong <eric@petta-tech.com>  Sun,  7 Mar 2004 10:33:49 -0800
+
+mpd (0.10.1-1) unstable; urgency=low
+
+  * new upstream
+
+ -- Eric Wong <eric@petta-tech.com>  Sun,  7 Mar 2004 10:15:21 -0800
+
+mpd (0.10.0-2) unstable; urgency=low
+
+  * make the init script start after ALSA and OSS does (S20 -> S30)
+  * enable resuming of playlist and state if mpc and perl are installed
+
+ -- Eric Wong <eric@petta-tech.com>  Sat,  6 Mar 2004 13:56:26 -0800
+
+mpd (0.10.0-1) unstable; urgency=low
+
+  * new upstream
+
+ -- Eric Wong <eric@petta-tech.com>  Tue,  2 Mar 2004 20:51:25 -0800
+
+mpd (0.9.4-5) unstable; urgency=low
+
+  * init script finds DBFILE now
+  * specify /etc/mpd.conf in init script
+  * make sure music and playlist directories are created if they don't exist
+
+ -- Eric Wong <eric@petta-tech.com>  Sat, 28 Feb 2004 12:49:09 -0800
+
+mpd (0.9.4-4) unstable; urgency=low
+
+  * don't create mpddb in the init script anymore
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 23 Feb 2004 12:55:20 -0800
+
+mpd (0.9.4-3) unstable; urgency=low
+
+  * oops, broke debconf
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 23 Feb 2004 12:41:11 -0800
+
+mpd (0.9.4-2) unstable; urgency=low
+
+  * added debconf to Depends
+  * updated to Standards-Version 3.6.1
+  * updated Description a bit, now includes clients
+  * init.d file creates mpddb if it doesn't exist
+  * config file updated with commented out examples for easy editing
+  * remove the never used /etc/mpd/conf file, /etc/mpd.conf is the system-wide
+    config file
+  * new maintainer
+
+ -- Eric Wong <eric@petta-tech.com>  Mon, 23 Feb 2004 01:03:22 -0800
+
+mpd (0.9.4-1) unstable; urgency=low
+
+  * Update to 0.9.4
+
+ -- Warren Dukes (aka shank) <shank@mercury.chem.pitt.edu>  Tue, 20 Jan 2004 22:24:00 -0500
+
+mpd (0.9.3-1) unstable; urgency=low
+
+  * Update to 0.9.3
+  * Switch to cdbs
+  * Use debconf for configure music_directory, playlist_directory, port
+  * Add /etc/mpd.conf and /etc/mpd/conf
+  * Add initd script
+
+ -- Warren Dukes (aka shank) <shank@mercury.chem.pitt.edu>  Tue, 31 Oct 2003 18:16:00 -0400
+
+mpd (0.9.2-1) unstable; urgency=low
+
+  * Update to 0.9.2
+
+ -- Warren Dukes (aka shank) <shank@mercury.chem.pitt.edu>  Tue, 06 Oct 2003 22:04:00 -0400
+
+mpd (0.9.1-1) unstable; urgency=low
+
+  * Update to 0.9.1
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 30 Sep 2003 09:09:00 -0400
+
+mpd (0.9.0-1) unstable; urgency=low
+
+  * Update to 0.9.0
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 29 Sep 2003 19:39:00 -0400
+
+mpd (0.8.7-1) unstable; urgency=low
+
+  * Update to 0.8.7
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 03 Sep 2003 22:39:00 -0400
+
+mpd (0.8.6-1) unstable; urgency=low
+
+  * Update to 0.8.6
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 25 Aug 2003 20:35:00 -0400
+
+mpd (0.8.5-1) unstable; urgency=low
+
+  * Update to 0.8.5
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 17 Aug 2003 22:50:00 -0400
+
+mpd (0.8.4-1) unstable; urgency=low
+
+  * Update to 0.8.4
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 12 Aug 2003 19:35:00 -0400
+
+mpd (0.8.3-1) unstable; urgency=low
+
+  * Update to 0.8.3
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Tue, 12 Aug 2003 19:35:00 -0400
+
+mpd (0.8.2-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Warren Dukes <shank@mercury.chem.pitt.edu>  Fri, 25 Jul 2003 10:28:30 -0400
+
--- mpd-0.16.7.orig/debian/mpd.install
+++ mpd-0.16.7/debian/mpd.install
@@ -0,0 +1,2 @@
+debian/mpd.conf			etc
+usr/bin/mpd             usr/bin
--- mpd-0.16.7.orig/debian/mpd.lintian-overrides
+++ mpd-0.16.7/debian/mpd.lintian-overrides
@@ -0,0 +1 @@
+dir-or-file-in-var-run var/run/mpd/
--- mpd-0.16.7.orig/debian/rules
+++ mpd-0.16.7/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+WITH_TREMOR=
+ifeq ($(ARCH), arm)
+WITH_TREMOR=--with-tremor
+endif
+ifeq ($(ARCH), armel)
+WITH_TREMOR=--with-tremor
+endif
+ifeq ($(ARCH), armeb)
+WITH_TREMOR=--with-tremor
+endif
+
+LDFLAGS += -Wl,--as-needed
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	./configure $(WITH_TREMOR) --enable-sqlite \
+		--enable-un \
+		--enable-ao \
+		--enable-lastfm \
+		--enable-pipe-output \
+		--enable-lame-encoder \
+		--disable-cue \
+		--enable-mikmod \
+		--prefix=/usr \
+		--sysconfdir=/etc/mpd
+
+override_dh_strip:
+	dh_strip  --dbg-package=mpd-dbg
+
+override_dh_installinit:
+	dh_installinit -n
--- mpd-0.16.7.orig/debian/control
+++ mpd-0.16.7/debian/control
@@ -0,0 +1,84 @@
+Source: mpd
+Section: sound
+Priority: optional
+Maintainer: mpd maintainers <pkg-mpd-maintainers@lists.alioth.debian.org>
+Uploaders: Alexander Wirt <formorer@debian.org>
+Build-Depends: debhelper (>= 8),
+               libao-dev (>= 0.8.3),
+               libasound2-dev  [linux-any],
+               libaudiofile-dev,
+               libavahi-client-dev,
+    	       libavahi-glib-dev,
+               libavcodec-dev,
+               libavformat-dev,
+               libcurl4-gnutls-dev | libcurl-dev,
+               libfaad-dev,
+               libflac-dev (>= 1.1.4),
+               libid3tag0-dev,
+               libjack-dev,
+               libmad0-dev,
+               libmikmod2-dev,
+               libmms-dev,
+               libmp3lame-dev,
+               libmpcdec-dev,
+               libogg-dev,
+               libpulse-dev,
+               libresid-builder-dev,
+               libsamplerate0-dev,
+               libshout3-dev,
+               libsidplay2-dev,
+               libsqlite3-dev,
+               libvorbis-dev [!arm !armel !armeb],
+               libvorbisidec-dev [arm armel armeb],
+               libwavpack-dev,
+               xmlto,
+               zlib1g-dev
+Standards-Version: 3.9.2
+Homepage: http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki
+Vcs-Browser: http://git.debian.org/?p=pkg-mpd/pkg-mpd.git
+Vcs-Git: git://git.debian.org/pkg-mpd/pkg-mpd.git
+
+Package: mpd
+Architecture: any
+Depends: adduser, lsb-base (>= 3.2-13), ${misc:Depends}, ${shlibs:Depends}
+Suggests: avahi-daemon, icecast2, mpd-client, pulseaudio
+Description: Music Player Daemon
+ Music Player Daemon (MPD) is a server that allows remote access for
+ playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams
+ (Ogg-Vorbis, MP3) and managing playlists.  Gapless playback, buffered
+ output, and crossfading support is also included.  The design focus is
+ on integrating a computer into a stereo system that provides control
+ for music playback over a TCP/IP network.  The goals are to be easy to
+ install and use, to have minimal resource requirements (it has been
+ reported to run fine on a Pentium 75), and to remain stable and
+ flexible.
+ .
+ The daemon is controlled through a client which need not run on the
+ same computer mpd runs on.  The separate client and server design
+ allows users to choose a user interface that best suites their tastes
+ independently of the underlying daemon (this package) which actually
+ plays music.
+
+Package: mpd-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: mpd (= ${binary:Version}), ${misc:Depends}
+Description: Music Player Daemon debugging symbols
+ Music Player Daemon (MPD) is a server that allows remote access for
+ playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams
+ (Ogg-Vorbis, MP3) and managing playlists.  Gapless playback, buffered
+ output, and crossfading support is also included.  The design focus is
+ on integrating a computer into a stereo system that provides control
+ for music playback over a TCP/IP network.  The goals are to be easy to
+ install and use, to have minimal resource requirements (it has been
+ reported to run fine on a Pentium 75), and to remain stable and
+ flexible.
+ .
+ The daemon is controlled through a client which need not run on the
+ same computer mpd runs on.  The separate client and server design
+ allows users to choose a user interface that best suites their tastes
+ independently of the underlying daemon (this package) which actually
+ plays music.
+ .
+ This package contains the debugging symbols.
--- mpd-0.16.7.orig/debian/mpd.init.d
+++ mpd-0.16.7/debian/mpd.init.d
@@ -0,0 +1,125 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides:          mpd
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:     $local_fs $remote_fs
+# Should-Start:      autofs $network $named alsa-utils pulseaudio
+# Should-Stop:       autofs $network $named alsa-utils pulseaudio
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Music Player Daemon
+# Description:       Start the Music Player Daemon (MPD) service
+#                    for network access to the local audio queue.
+### END INIT INFO
+
+. /lib/lsb/init-functions
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+NAME=mpd
+DESC="Music Player Daemon"
+DAEMON=/usr/bin/mpd
+MPDCONF=/etc/mpd.conf
+START_MPD=true
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+if [ -n "$MPD_DEBUG" ]; then
+    set -x
+    MPD_OPTS=--verbose
+fi
+
+if [ ! -d "/var/run/mpd" ]; then
+	mkdir /var/run/mpd 
+	if dpkg-statoverride --list --quiet /var/run/mpd > /dev/null; then
+		#if dpkg-statoverride is used update it with permissions there
+		dpkg-statoverride --force --quiet --update --add $( dpkg-statoverride --list --quiet /var/run/mpd ) 2> /dev/null
+	else
+		#use defaults
+		chown mpd:audio /var/run/mpd
+		chmod 755 /var/run/mpd
+	fi
+fi
+
+DBFILE=$(sed -n 's/^[[:space:]]*db_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' $MPDCONF)
+PIDFILE=$(sed -n 's/^[[:space:]]*pid_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' $MPDCONF)
+
+mpd_start () {
+    if [ "$START_MPD" != "true" ]; then
+        log_action_msg "Not starting MPD: disabled by /etc/default/$NAME".
+        exit 0
+    fi
+
+    log_daemon_msg "Starting $DESC" "$NAME"
+
+    if [ -z "$PIDFILE" -o -z "$DBFILE" ]; then
+        log_failure_msg \
+            "$MPDCONF must have db_file and pid_file set; cannot start daemon."
+        exit 1
+    fi
+
+    PIDDIR=$(dirname "$PIDFILE")
+    if [ ! -d "$PIDDIR" ]; then
+        mkdir -m 0755 $PIDDIR
+        chown mpd:audio $PIDDIR
+    fi
+
+    start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" \
+        --exec "$DAEMON" -- $MPD_OPTS "$MPDCONF"
+    log_end_msg $?
+}
+
+mpd_stop () {
+    if [ "$START_MPD" != "true" ]; then
+        log_failure_msg "Not stopping MPD: disabled by /etc/default/$NAME".
+        exit 0
+    fi
+    if [ -z "$PIDFILE" ]; then
+        log_failure_msg \
+            "$MPDCONF must have pid_file set; cannot stop daemon."
+        exit 1
+    fi
+
+    log_daemon_msg "Stopping $DESC" "$NAME"
+    start-stop-daemon --stop --quiet --oknodo --retry 5 --pidfile "$PIDFILE" \
+        --exec $DAEMON
+    log_end_msg $?
+}
+
+# note to self: don't call the non-standard args for this in
+# {post,pre}{inst,rm} scripts since users are not forced to upgrade
+# /etc/init.d/mpd when mpd is updated
+case "$1" in
+    start)
+        mpd_start
+        ;;
+    stop)
+        mpd_stop
+        ;;
+    status)
+    	status_of_proc -p $PIDFILE $DAEMON $NAME
+	;;
+    restart|force-reload)
+        mpd_stop
+        mpd_start
+        ;;
+    force-start)
+        mpd_start
+        ;;
+    force-restart)
+        mpd_stop
+        mpd_start
+        ;;
+    force-reload)
+	mpd_stop
+	mpd_start
+	;;
+    *)
+        echo "Usage: $0 {start|start-create-db|stop|restart|force-reload}"
+        exit 2
+        ;;
+esac
--- mpd-0.16.7.orig/debian/README.Debian
+++ mpd-0.16.7/debian/README.Debian
@@ -0,0 +1,33 @@
+Music Player Daemon (MPD) for Debian
+------------------------------------
+
+After installation, you will need to populate the MPD database. It is
+recommended that you do this through a client such as mpc, or by running
+"invoke-rc.d mpd force-restart".
+
+To prevent mpd from running as a system service, comment out
+``START_MPD=true'' in /etc/default/mpd. A normal user account may then
+run mpd using their own ~/.mpdconf.
+
+In the default /etc/mpd.conf, bind_to_address is set to 127.0.0.1 in
+order to prevent other (possibly untrusted) hosts from accessing MPD.
+If you wish to allow other hosts to access MPD, you must change this
+value to an appropriate interface, or comment it out to enable listening
+on all network interfaces.
+
+When using ALSA with dmix, you may run into problems sharing the sound card
+between the "mpd" user and your own account. A workaround is to use ALSA's
+"ipc_key_add_uid" and "ipc_perm" directives. See the ALSA documentation for
+instructions on how to add this to your configuration.
+
+Experimental snapshot builds against the official Subversion repository
+<https://svn.musicpd.org> are available here for the daring:
+
+    deb http://musicpd.org/~decklin/debian/ ./
+    deb-src http://musicpd.org/~decklin/debian/ ./
+
+These are often in flux and sometimes not tested, so stuff may be broken.
+Bugs against snapshot builds should be reported directly to Decklin Foster
+<decklin@red-bean.com> instead of the Debian BTS.
+
+  -- Decklin Foster <decklin@red-bean.com>  Thu, 28 Sep 2006 22:49:49 -0400
--- mpd-0.16.7.orig/debian/mpd.conf
+++ mpd-0.16.7/debian/mpd.conf
@@ -0,0 +1,428 @@
+# An example configuration file for MPD
+# See the mpd.conf man page for a more detailed description of each parameter.
+
+
+# Files and directories #######################################################
+#
+# This setting controls the top directory which MPD will search to discover the
+# available audio files and add them to the daemon's online database. This 
+# setting defaults to the XDG directory, otherwise the music directory will be
+# be disabled and audio files will only be accepted over ipc socket (using
+# file:// protocol) or streaming files over an accepted protocol.
+#
+music_directory		"/var/lib/mpd/music"
+#
+# This setting sets the MPD internal playlist directory. The purpose of this
+# directory is storage for playlists created by MPD. The server will use 
+# playlist files not created by the server but only if they are in the MPD
+# format. This setting defaults to playlist saving being disabled.
+#
+playlist_directory		"/var/lib/mpd/playlists"
+#
+# This setting sets the location of the MPD database. This file is used to
+# load the database at server start up and store the database while the 
+# server is not up. This setting defaults to disabled which will allow
+# MPD to accept files over ipc socket (using file:// protocol) or streaming
+# files over an accepted protocol.
+#
+db_file			"/var/lib/mpd/tag_cache"
+# 
+# These settings are the locations for the daemon log files for the daemon.
+# These logs are great for troubleshooting, depending on your log_level
+# settings.
+#
+# The special value "syslog" makes MPD use the local syslog daemon. This
+# setting defaults to logging to syslog, otherwise logging is disabled.
+#
+log_file			"/var/log/mpd/mpd.log"
+#
+# This setting sets the location of the file which stores the process ID
+# for use of mpd --kill and some init scripts. This setting is disabled by
+# default and the pid file will not be stored.
+#
+pid_file			"/var/run/mpd/pid"
+#
+# This setting sets the location of the file which contains information about
+# most variables to get MPD back into the same general shape it was in before
+# it was brought down. This setting is disabled by default and the server 
+# state will be reset on server start up.
+#
+state_file			"/var/lib/mpd/state"
+#
+# The location of the sticker database.  This is a database which
+# manages dynamic information attached to songs.
+#
+sticker_file                   "/var/lib/mpd/sticker.sql"
+#
+###############################################################################
+
+
+# General music daemon options ################################################
+#
+# This setting specifies the user that MPD will run as. MPD should never run as
+# root and you may use this setting to make MPD change its user ID after
+# initialization. This setting is disabled by default and MPD is run as the
+# current user.
+#
+user				"mpd"
+#
+# This setting specifies the group that MPD will run as. If not specified
+# primary group of user specified with "user" setting will be used (if set).
+# This is useful if MPD needs to be a member of group such as "audio" to
+# have permission to use sound card.
+#
+#group                          "nogroup"
+#
+# This setting sets the address for the daemon to listen on. Careful attention
+# should be paid if this is assigned to anything other then the default, any.
+# This setting can deny access to control of the daemon. Choose any if you want
+# to have mpd listen on every address
+#
+# For network
+bind_to_address		"localhost"
+#
+# And for Unix Socket
+#bind_to_address		"/var/run/mpd/socket"
+#
+# This setting is the TCP port that is desired for the daemon to get assigned
+# to.
+#
+#port				"6600"
+#
+# This setting controls the type of information which is logged. Available 
+# setting arguments are "default", "secure" or "verbose". The "verbose" setting
+# argument is recommended for troubleshooting, though can quickly stretch
+# available resources on limited hardware storage.
+#
+#log_level			"default"
+#
+# If you have a problem with your MP3s ending abruptly it is recommended that 
+# you set this argument to "no" to attempt to fix the problem. If this solves
+# the problem, it is highly recommended to fix the MP3 files with vbrfix
+# (available as vbrfix in the debian archive), at which
+# point gapless MP3 playback can be enabled.
+#
+#gapless_mp3_playback			"yes"
+#
+# This setting enables MPD to create playlists in a format usable by other
+# music players.
+#
+#save_absolute_paths_in_playlists	"no"
+#
+# This setting defines a list of tag types that will be extracted during the 
+# audio file discovery process. Optionally, 'comment' can be added to this
+# list.
+#
+#metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc"
+#
+# This setting enables automatic update of MPD's database when files in 
+# music_directory are changed.
+#
+#auto_update    "yes"
+#
+# Limit the depth of the directories being watched, 0 means only watch
+# the music directory itself.  There is no limit by default.
+#
+#auto_update_depth "3"
+#
+###############################################################################
+
+
+# Symbolic link behavior ######################################################
+#
+# If this setting is set to "yes", MPD will discover audio files by following 
+# symbolic links outside of the configured music_directory.
+#
+#follow_outside_symlinks	"yes"
+#
+# If this setting is set to "yes", MPD will discover audio files by following
+# symbolic links inside of the configured music_directory.
+#
+#follow_inside_symlinks		"yes"
+#
+###############################################################################
+
+
+# Zeroconf / Avahi Service Discovery ##########################################
+#
+# If this setting is set to "yes", service information will be published with
+# Zeroconf / Avahi.
+#
+#zeroconf_enabled		"yes"
+#
+# The argument to this setting will be the Zeroconf / Avahi unique name for
+# this MPD server on the network.
+#
+#zeroconf_name			"Music Player"
+#
+###############################################################################
+
+
+# Permissions #################################################################
+#
+# If this setting is set, MPD will require password authorization. The password
+# can setting can be specified multiple times for different password profiles.
+#
+#password                        "password@read,add,control,admin"
+#
+# This setting specifies the permissions a user has who has not yet logged in. 
+#
+#default_permissions             "read,add,control,admin"
+#
+###############################################################################
+
+
+# Input #######################################################################
+#
+
+input {
+        plugin "curl"
+#       proxy "proxy.isp.com:8080"
+#       proxy_user "user"
+#       proxy_password "password"
+}
+
+#
+###############################################################################
+
+# Audio Output ################################################################
+#
+# MPD supports various audio output types, as well as playing through multiple 
+# audio outputs at the same time, through multiple audio_output settings 
+# blocks. Setting this block is optional, though the server will only attempt
+# autodetection for one sound card.
+#
+# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of 
+# other audio outputs.
+#
+# An example of an ALSA output:
+#
+audio_output {
+	type		"alsa"
+	name		"My ALSA Device"
+	device		"hw:0,0"	# optional
+	format		"44100:16:2"	# optional
+	mixer_device	"default"	# optional
+	mixer_control	"PCM"		# optional
+	mixer_index	"0"		# optional
+}
+#
+# An example of an OSS output:
+#
+#audio_output {
+#	type		"oss"
+#	name		"My OSS Device"
+#	device		"/dev/dsp"	# optional
+#	format		"44100:16:2"	# optional
+#	mixer_device	"/dev/mixer"	# optional
+#	mixer_control	"PCM"		# optional
+#}
+#
+# An example of a shout output (for streaming to Icecast):
+#
+#audio_output {
+#	type		"shout"
+#	encoding	"ogg"			# optional
+#	name		"My Shout Stream"
+#	host		"localhost"
+#	port		"8000"
+#	mount		"/mpd.ogg"
+#	password	"hackme"
+#	quality		"5.0"
+#	bitrate		"128"
+#	format		"44100:16:1"
+#	protocol	"icecast2"		# optional
+#	user		"source"		# optional
+#	description	"My Stream Description"	# optional
+#	genre		"jazz"			# optional
+#	public		"no"			# optional
+#	timeout		"2"			# optional
+#}
+#
+# An example of a recorder output:
+#
+#audio_output {
+#       type            "recorder"
+#       name            "My recorder"
+#       encoder         "vorbis"                # optional, vorbis or lame
+#       path            "/var/lib/mpd/recorder/mpd.ogg"
+##      quality         "5.0"                   # do not define if bitrate is defined
+#       bitrate         "128"                   # do not define if quality is defined
+#       format          "44100:16:1"
+#}
+#
+# An example of a httpd output (built-in HTTP streaming server):
+#
+#audio_output {
+#	type		"httpd"
+#	name		"My HTTP Stream"
+#	encoder		"vorbis"		# optional, vorbis or lame
+#	port		"8000"
+#	quality		"5.0"			# do not define if bitrate is defined
+#	bitrate		"128"			# do not define if quality is defined
+#	format		"44100:16:1"
+#}
+#
+# An example of a pulseaudio output (streaming to a remote pulseaudio server)
+#
+#audio_output {
+#	type		"pulse"
+#	name		"My Pulse Output"
+#	server		"remote_server"		# optional
+#	sink		"remote_server_sink"	# optional
+#}
+#
+## Example "pipe" output:
+#
+#audio_output {
+#	type		"pipe"
+#	name		"my pipe"
+#	command		"aplay -f cd 2>/dev/null"
+## Or if you're want to use AudioCompress
+#	command		"AudioCompress -m | aplay -f cd 2>/dev/null"
+## Or to send raw PCM stream through PCM:
+#	command		"nc example.org 8765"
+#	format		"44100:16:2"
+#}
+#
+## An example of a null output (for no audio output):
+#
+#audio_output {
+#	type		"null"
+#	name		"My Null Output"
+#}
+#
+# This setting will change all decoded audio to be converted to the specified
+# format before being passed to the audio outputs. By default, this setting is
+# disabled.
+#
+#audio_output_format		"44100:16:2"
+#
+# If MPD has been compiled with libsamplerate support, this setting specifies 
+# the sample rate converter to use.  Possible values can be found in the 
+# mpd.conf man page or the libsamplerate documentation. By default, this is
+# setting is disabled.
+#
+#samplerate_converter		"Fastest Sinc Interpolator"
+#
+###############################################################################
+
+
+# Volume control mixer ########################################################
+#
+# These are the global volume control settings. By default, this setting will
+# be detected to the available audio output device, with preference going to 
+# hardware mixing. Hardware and software mixers for individual audio_output
+# sections cannot yet be mixed.
+#
+# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
+# setting is used other sound applications will be affected by the volume
+# being controlled by MPD.
+#
+#mixer_type			"hardware"
+#
+# An example for controlling all mixers through software. This will control
+# all controls, even if the mixer is not supported by the device and will not
+# affect any other sound producing applications.
+#
+#mixer_type			"software"
+#
+# This example will not allow MPD to touch the mixer at all and will disable
+# all volume controls.
+#
+#mixer_type			"disabled"
+#
+###############################################################################
+
+
+# Normalization automatic volume adjustments ##################################
+#
+# This setting specifies the type of ReplayGain to use. This setting can have
+# the argument "album" or "track". See <http://www.replaygain.org> for more
+# details. This setting is disabled by default.
+#
+#replaygain			"album"
+#
+# This setting sets the pre-amp used for files that have ReplayGain tags. By
+# default this setting is disabled.
+#
+#replaygain_preamp		"0"
+#
+# This setting enables on-the-fly normalization volume adjustment. This will
+# result in the volume of all playing audio to be adjusted so the output has 
+# equal "loudness". This setting is disabled by default.
+#
+#volume_normalization		"no"
+#
+###############################################################################
+
+
+# MPD Internal Buffering ######################################################
+#
+# This setting adjusts the size of internal decoded audio buffering. Changing
+# this may have undesired effects. Don't change this if you don't know what you
+# are doing.
+#
+#audio_buffer_size		"2048"
+#
+# This setting controls the percentage of the buffer which is filled before 
+# beginning to play. Increasing this reduces the chance of audio file skipping, 
+# at the cost of increased time prior to audio playback.
+#
+#buffer_before_play		"10%"
+#
+###############################################################################
+
+
+# Resource Limitations ########################################################
+#
+# These settings are various limitations to prevent MPD from using too many
+# resources. Generally, these settings should be minimized to prevent security
+# risks, depending on the operating resources.
+#
+#connection_timeout		"60"
+#max_connections		"10"
+#max_playlist_length		"16384"
+#max_command_list_size		"2048"
+#max_output_buffer_size		"8192"
+#
+###############################################################################
+
+
+# Character Encoding ##########################################################
+#
+# If file or directory names do not display correctly for your locale then you 
+# may need to modify this setting. After modification of this setting mpd 
+# --create-db must be run to change the database.
+#
+filesystem_charset		"UTF-8"
+#
+# This setting controls the encoding that ID3v1 tags should be converted from.
+#
+id3v1_encoding			"UTF-8"
+#
+###############################################################################
+# SIDPlay decoder #############################################################
+#
+# songlength_database:
+#  Location of your songlengths file, as distributed with the HVSC.
+#  The sidplay plugin checks this for matching MD5 fingerprints.
+#  See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
+#
+# default_songlength:
+#  This is the default playing time in seconds for songs not in the
+#  songlength database, or in case you're not using a database.
+#  A value of 0 means play indefinitely.
+#
+# filter:
+#  Turns the SID filter emulation on or off.
+#
+#decoder {
+#       plugin                  "sidplay"
+#       songlength_database     "/media/C64Music/DOCUMENTS/Songlengths.txt"
+#       default_songlength      "120"
+#       filter "true"
+#}
+#
+###############################################################################
+
--- mpd-0.16.7.orig/debian/mpd.default
+++ mpd-0.16.7/debian/mpd.default
@@ -0,0 +1,9 @@
+## Defaults for the MPD init script, sourced by /etc/init.d/mpd on Debian
+## systems.  Uncomment (remove the leading '#') and change values as needed.
+
+## Change this to prevent MPD from being started as a system service (for
+## example, if you want to run it from a regular user account)
+START_MPD=true
+
+## The configuration file location for mpd:
+# MPDCONF=/etc/mpd.conf
--- mpd-0.16.7.orig/debian/mpd.docs
+++ mpd-0.16.7/debian/mpd.docs
@@ -0,0 +1,4 @@
+AUTHORS
+NEWS
+README
+UPGRADING
--- mpd-0.16.7.orig/debian/mpd.examples
+++ mpd-0.16.7/debian/mpd.examples
@@ -0,0 +1 @@
+debian/mpd.conf
--- mpd-0.16.7.orig/debian/compat
+++ mpd-0.16.7/debian/compat
@@ -0,0 +1 @@
+8
--- mpd-0.16.7.orig/debian/NEWS
+++ mpd-0.16.7/debian/NEWS
@@ -0,0 +1,7 @@
+mpd (0.14-1) unstable; urgency=low
+
+    MPD now supports listening on a local socket rather than a TCP port.
+    If you wish to use this feature, change the bind_to_address in mpd.conf.
+    Please note that this will break older clients.
+
+ -- Decklin Foster <decklin@red-bean.com>  Wed, 03 Dec 2008 00:09:44 -0500
--- mpd-0.16.7.orig/debian/mpd.postrm
+++ mpd-0.16.7/debian/mpd.postrm
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ]; then
+	update-rc.d mpd remove defaults >/dev/null
+
+	# clean up all statoverrides that belonged to mpd, so the
+	# user can cleanly remove the mpd system user if they want to
+	for i in $(dpkg-statoverride --list | awk '/^mpd / {print $4}'); do
+		if dpkg-statoverride --list --quiet "$i" >/dev/null; then
+			dpkg-statoverride --force --quiet --remove "$i"
+		fi
+	done
+
+        deluser --quiet --system mpd > /dev/null || true
+
+	rm -rf /var/log/mpd /var/run/mpd/pid /var/lib/mpd/state \
+            /var/lib/mpd/tag_cache > /dev/null 2>&1
+fi
+
+#DEBHELPER#
--- mpd-0.16.7.orig/debian/mpd.changelogs
+++ mpd-0.16.7/debian/mpd.changelogs
@@ -0,0 +1 @@
+NEWS
--- mpd-0.16.7.orig/debian/README.source
+++ mpd-0.16.7/debian/README.source
@@ -0,0 +1,29 @@
+This package uses CDBS (and therefore simple-patchsys.mk) in order to 
+apply patches to the upstream source. Patches are stored in 
+debian/patches and their filenames usually end in .patch or .diff .
+For further details, see the man page for cdbs-edit-patch.
+
+All commands described below should be run from the top directory of the 
+package source tree, unless otherwise stated.
+
+* To generate the fully patched source, in a form ready for
+editing, that would be built to create Debian packages, run: 
+
+make -f debian/rules apply-patches
+
+* To modify the source and save those modifications so that
+they will be applied when building the package, pick a
+suitably informative patch file name, for example
+01_add_README.source_file.patch, and then run:
+
+cdbs-edit-patch 01_add_README.source_file.patch
+
+This will place you in a new shell in a temporary copy of the 
+source tree.  Make your desired modifications to it, and then 
+exit the shell to create the patch file containing them (this 
+		file will appear in debian/patches).
+
+* To remove source modifications that are currently being
+applied when building the package, run:
+
+make -f debian/rules reverse-patches
--- mpd-0.16.7.orig/debian/mpd.postinst
+++ mpd-0.16.7/debian/mpd.postinst
@@ -0,0 +1,69 @@
+#!/bin/sh -e
+
+umask 0022
+ACTION="$1"
+VERSION="$2"
+MPDCONF="/etc/mpd.conf"
+PIDFILE=$(sed -n 's/^[[:space:]]*pid_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' $MPDCONF)
+
+if [ "$ACTION" != "configure" ]; then
+    echo "action: $ACTION not supported"
+    exit 0
+fi
+
+do_mpd_adduser () {
+    if ! getent passwd mpd >/dev/null; then
+        adduser --quiet --ingroup audio --system --no-create-home \
+            --home /var/lib/mpd mpd
+    fi
+}
+
+do_mpd_perms () {
+    for i in /var/log/mpd /var/lib/mpd /var/lib/mpd/playlists /var/run/mpd; do
+        if ! dpkg-statoverride --list --quiet "$i" >/dev/null; then
+            dpkg-statoverride --force --quiet --update \
+                --add mpd audio 0755 "$i"
+        fi
+    done
+}
+
+do_mpd_conf () {
+    if ! dpkg-statoverride --list --quiet "$MPDCONF" >/dev/null; then
+        dpkg-statoverride --force --quiet --update \
+            --add mpd audio 0640 "$MPDCONF"
+    fi
+}
+
+do_mpd_init () {
+		  if [ -x /etc/init.d/mpd ]; then
+					 # Start after ALSA/icecast/etc and stop before them
+					 update-rc.d mpd defaults 30 14 >/dev/null
+					 # check for a deprecated option
+					 if [ -f /etc/mpd.conf ] && grep -q '^\s*error_file\s*=' /etc/mpd.conf
+					 then
+								echo "Your configuration file contains the deprecated option error_file" 
+								echo "mpd won't start until you migrated your configuration"
+					 else
+								if [ -x /usr/sbin/invoke-rc.d ]; then
+										  invoke-rc.d mpd "$@"
+								else
+										  /etc/init.d/mpd "$@"
+								fi
+					 fi
+		  fi
+}
+
+do_mpd_restart () {
+    if [ -e "$PIDFILE" ]; then
+        do_mpd_init restart
+    else
+        do_mpd_init start
+    fi
+}
+
+do_mpd_adduser
+do_mpd_perms
+do_mpd_conf
+do_mpd_restart
+
+#DEBHELPER#
--- mpd-0.16.7.orig/debian/mpd.dirs
+++ mpd-0.16.7/debian/mpd.dirs
@@ -0,0 +1,8 @@
+etc
+usr/bin
+usr/share/man/man1
+var/log/mpd
+var/lib/mpd
+var/lib/mpd/playlists
+var/lib/mpd/music
+var/run/mpd
--- mpd-0.16.7.orig/debian/.pc/.version
+++ mpd-0.16.7/debian/.pc/.version
@@ -0,0 +1 @@
+2
--- mpd-0.16.7.orig/debian/source/format
+++ mpd-0.16.7/debian/source/format
@@ -0,0 +1 @@
+1.0
