--- mpc-0.22+git20120612.119609c.orig/debian/changelog +++ mpc-0.22+git20120612.119609c/debian/changelog @@ -0,0 +1,5 @@ +mpc (0.22+git20120612.119609c-0ubuntu1~ripps1~maverick) maverick; urgency=low + + * Daily Build Release + + -- Taylor LeMasurier-Wren Wed, 08 Aug 2012 04:11:46 -0500 --- mpc-0.22+git20120612.119609c.orig/debian/rules +++ mpc-0.22+git20120612.119609c/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f +DEBIAN_NAME := $(shell dpkg-parsechangelog | sed -n 's/^Source: *\(.*\)$$/\1/ p') +DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)$$/\1/ p') +DEBIAN_UPSTREAM_VERSION := $(shell echo $(DEBIAN_VERSION) | sed 's/^\(.*\)-[^-]*$$/\1/') +DEBIAN_REVISION := $(shell echo $(DEBIAN_VERSION) | sed 's/^.*r\([^-]*\)-.*/\1/') + +DEB_BUILDDIR:=build-dir +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +install/mpc:: + cd debian/mpc && ( \ + mv usr/share/doc/mpc/mpc-bashrc etc/bash_completion.d/mpc; \ + rm -f usr/share/doc/mpc/COPYING ) + + # dunno why autotools puts stuff here, forwarded to upstream + -rmdir --ignore-fail-on-non-empty \ + debian/$(DEB_SOURCE_PACKAGE)/usr/share/$(DEB_SOURCE_PACKAGE) + + # the shell scripts are in the usr/share/doc/examples dir: + rm debian/mpc/usr/share/doc/mpc/*.sh + +# uncomment as needed for user customization: + +#DEB_CONFIGURE_USER_FLAGS += --disable-iconv # disable iconv support + +# Use as host when MPD_HOST environment variable is not set +#DEB_CONFIGURE_USER_FLAGS += --with-default-host=HOST + +# Use as port when MPD_PORT environment variable is not set +#DEB_CONFIGURE_USER_FLAGS += --with-default-port=PORT + +makebuilddir/mpc:: + NOCONFIGURE=true ./autogen.sh + + +#RELEASE:=0.17 +DEB_ORIG_URI:=git://git.musicpd.org/master/mpc.git +TMP_DIR := tmp-$(shell echo $$$$) + +get-orig-source: + rm -rf $(TMP_DIR) + mkdir $(TMP_DIR) + if [ ! -d $(LOCAL_BRANCH) ]; then git clone $(DEB_ORIG_URI) $(LOCAL_BRANCH); fi + cd $(LOCAL_BRANCH) && git pull + cp -la $(LOCAL_BRANCH) $(TMP_DIR)/$(DEBIAN_NAME) +ifneq (,$(DEBIAN_TAG)) + cd $(TMP_DIR)/$(DEBIAN_NAME) && \ + git branch $(DEBIAN_TAG) $(DEBIAN_TAG) && \ + git checkout $(DEBIAN_TAG) +endif + @cd $(TMP_DIR)/$(DEBIAN_NAME) ; \ + VERS=`git for-each-ref --format="%(taggerdate:raw)%(committerdate:raw)%(refname:short)" refs/tags | sort -n | tail -n1 | sed 's/^.*release-//;s/_/~/'` ; \ + REV=`git log --pretty=format:%cd.%h --date=short -1 | tr -d -` ; \ + VERSION=$$VERS+git$$REV ; \ + #VERSION=$(RELEASE)+git$$REV ; \ + echo VERSION=$$VERSION ; \ + cd .. ; \ + mv $(DEBIAN_NAME) $(DEBIAN_NAME)-$$VERSION ; \ + rm -f ../$(DEBIAN_NAME)_$$VERSION.orig.tar.gz ; \ + tar zcf ../$(DEBIAN_NAME)_$$VERSION.orig.tar.gz --exclude=.git $(DEBIAN_NAME)-$$VERSION ; \ + cd .. ; \ + rm -rf $(TMP_DIR) ; \ + echo "# Done (created $(DEBIAN_NAME)_$$VERSION.orig.tar.gz)" ; \ + ls -l $(DEBIAN_NAME)_$$VERSION.orig.tar.gz --- mpc-0.22+git20120612.119609c.orig/debian/mpc.examples +++ mpc-0.22+git20120612.119609c/debian/mpc.examples @@ -0,0 +1,2 @@ +debian/examples/* +doc/*.sh --- mpc-0.22+git20120612.119609c.orig/debian/control +++ mpc-0.22+git20120612.119609c/debian/control @@ -0,0 +1,22 @@ +Source: mpc +Section: sound +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Taylor LeMasurier-Wren +Build-Depends: debhelper (>> 4.1.0), libmpdclient-dev (>= 2.7+git20120808.0845c79-0ubuntu1~ripps1~maverick), cdbs, automake, pkg-config +Standards-Version: 3.8.1 +Homepage: http://mpd.wikia.com/wiki/Client:Mpc + +Package: mpc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: mpd +Enhances: mpd +Provides: mpd-client +Description: A command-line tool to interface MPD + MPC, music player command, is a command line tool to interface MPD, Music + Player Daemon. It is fast and lightweight like MPD, making it ideal for + scripting commands and binding to hotkeys. Completion for the Bash shell + is provided. + . + URL: http://mpd.wikia.com/?page=mpc --- mpc-0.22+git20120612.119609c.orig/debian/changelog.old +++ mpc-0.22+git20120612.119609c/debian/changelog.old @@ -0,0 +1,160 @@ +mpc (0.17~git090530-0ubuntu2~rippsh) hardy; urgency=low + + * Intial PPA port to Hardy + * Added automake1.9 to build-deps + + -- Taylor LeMasurier-Wren Sat, 30 May 2009 13:53:53 -0500 + +mpc (0.16-1) unstable; urgency=low + + * New upstream release + * Use debhelper 5 for now. + + -- Decklin Foster Thu, 28 May 2009 11:22:07 -0400 + +mpc (0.15-1) unstable; urgency=low + + * New upstream release + * Update copyright file + * Policy 3.8.0 + + -- Decklin Foster Thu, 05 Feb 2009 11:44:54 -0500 + +mpc (0.14-1) unstable; urgency=low + + * New upstream release (Closes: #358618, #502578, #495430) + * Include playstream example script (Closes: #357157) + + -- Decklin Foster Mon, 22 Dec 2008 19:46:42 -0500 + +mpc (0.12.1-1) unstable; urgency=low + + * New upstream release (Closes: #402579, #408388) + - No longer uses MAXPATHLEN (Closes: #394731) + + -- Decklin Foster Tue, 27 Mar 2007 20:48:37 -0400 + +mpc (0.11.2-2) unstable; urgency=low + + * Adopting package. + + -- Decklin Foster Sat, 27 May 2006 19:51:23 -0400 + +mpc (0.11.2-1) unstable; urgency=low + + * New upstream: small bug fixes and features + * Updated manpage (upstream) Closes: #295029 + * update email addresses, URL, documentation and Standards-Version + * Acknowledge NMU + + -- Eric Wong Sat, 12 Mar 2005 02:25:23 -0800 + +mpc (0.11.1-2.1) unstable; urgency=low + + * Non-maintainer upload (Sponsor for Eric) + + -- Richard A. Hecker Fri, 30 Jul 2004 09:05:34 -0700 + +mpc (0.11.1-2) unstable; urgency=low + + * remove empty/unused directories + + -- Eric Wong Sat, 19 Jun 2004 22:00:33 -0700 + +mpc (0.11.1-1) unstable; urgency=low + + * new upstream + + -- Eric Wong Fri, 18 Jun 2004 15:09:18 -0700 + +mpc (0.11.0-1) unstable; urgency=low + + * new upstream + * updated mppledit + new examples from upstream + + -- Eric Wong Thu, 17 Jun 2004 23:17:34 -0700 + +mpc (0.10.3-4) unstable; urgency=low + + * re-add mppledit to examples + + -- Eric Wong Mon, 17 May 2004 22:19:44 -0700 + +mpc (0.10.3-3) unstable; urgency=low + + * update copyright to include 2004 + + -- Eric Wong Mon, 19 Apr 2004 02:21:52 -0700 + +mpc (0.10.3-2) unstable; urgency=low + + * take out Arch directories in the diff.gz + + -- Eric Wong Tue, 6 Apr 2004 14:44:03 -0700 + +mpc (0.10.3-1) unstable; urgency=low + + * new upstream + * document customizations in debian/rules + + -- Eric Wong Fri, 2 Apr 2004 21:16:33 -0800 + +mpc (0.10.2-1) unstable; urgency=low + + * new upstream + + -- Eric Wong Wed, 24 Mar 2004 23:04:54 -0800 + +mpc (0.10.1-1) unstable; urgency=low + + * new upstream + + -- Eric Wong Sun, 7 Mar 2004 10:16:06 -0800 + +mpc (0.10.0-2) unstable; urgency=low + + * update mppledit in /usr/share/doc/mpc/examples to allow sorting: + mppledit sort + + -- Eric Wong Sat, 6 Mar 2004 15:01:53 -0800 + +mpc (0.10.0-1) unstable; urgency=low + + * new upstream + + -- Eric Wong Tue, 2 Mar 2004 21:00:14 -0800 + +mpc (0.9.2-2) unstable; urgency=low + + * updated Description a bit + * updated to Standards-Version 3.6.1 + * bash completion installed to /etc/bash_completion.d + * new maintainer + + -- Eric Wong Sun, 22 Feb 2004 17:27:13 -0800 + +mpc (0.9.2-1) unstable; urgency=low + + * Updated to 0.9.2. + * Switch to using cdbs. + + -- Warren Dukes (aka shank) Tue, 28 Oct 2003 22:10:00 -0400 + +mpc (0.9.1-1) unstable; urgency=low + + * Updated to 0.9.1. + + -- Warren Dukes (aka shank) Tue, 06 Sep 2003 22:10:00 -0400 + +mpc (0.9.0-1) unstable; urgency=low + + * Initial Release. + + -- Warren Dukes Tue, 29 Aug 2003 20:07:00 -0400 + +mpc (0.8.1-1) unstable; urgency=low + + * Initial Release. + + -- Warren Dukes Tue, 12 Aug 2003 19:14:01 -0400 + --- mpc-0.22+git20120612.119609c.orig/debian/compat +++ mpc-0.22+git20120612.119609c/debian/compat @@ -0,0 +1 @@ +5 --- mpc-0.22+git20120612.119609c.orig/debian/mpc.dirs +++ mpc-0.22+git20120612.119609c/debian/mpc.dirs @@ -0,0 +1,2 @@ +usr/bin +etc/bash_completion.d --- mpc-0.22+git20120612.119609c.orig/debian/copyright +++ mpc-0.22+git20120612.119609c/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Warren Dukes on +Tue, 12 Aug 2003 19:14:01 -0400. It is currently maintained by Decklin +Foster . +Ported to Launchpad ppa mpd-trunk by Taylor LeMasurier-Wren +. + +It was downloaded from: http://mpd.wikia.com/ + +Upstream Author: Max Kellermann + + Copyright (C) 2003-2008 Warren Dukes , + Eric Wong , + Daniel Brown + Copyright (C) 2008-2009 Max Kellermann + + +mpc is released under the GPLv2. On Debian systems, the complete +text of the GNU General Public License v2 can be found in the file +'/usr/share/common-licenses/GPL-2'. + +'playstream' is distributed under the terms of the Artistic License, +which may be found under '/usr/share/common-licenses/Artistic' on Debian +systems. --- mpc-0.22+git20120612.119609c.orig/debian/examples/mppledit +++ mpc-0.22+git20120612.119609c/debian/examples/mppledit @@ -0,0 +1,99 @@ +#!/bin/bash +# +# Authors: danb, normalperson +# +# Useful for large-segment playlist manipulation. +# +# Opens the current playlist in an editor and lets the user remove/re-arrange +# (existing) tracks. Track addition is not supported (as there is no good +# interface to do so). + +# avoid file name collisions +playlist_orig=`tempfile` +playlist_new=`tempfile` + +while :; do + case "$1" in + --format) + mpc_args="--format $2"; shift 2;; + sort) + sortpl=1; shift;; + *) break;; + esac +done + +# store the playlist in two files +mpc $mpc_args playlist | tee "$playlist_orig" > "$playlist_new" + +# let user edit the new playlist file (use vi by default) +if [ -n "$sortpl" ]; then + sort -k 2 < "$playlist_orig" > "$playlist_new" +else + ${EDITOR-"vi"} "$playlist_new" +fi + +# insert requested songs into the list, keeping track of song positions +declare -a where_is_track +declare -a what_is_index +while read dest_index src_track +do + + # setup default values in lookup arrays, if applicable + for i in $dest_index $src_track + do + if [ -z "${where_is_track[$i]}" ] + then + where_is_track[$i]=$i + fi + if [ -z "${what_is_index[$i]}" ] + then + what_is_index[$i]=$i + fi + done + + # alias the other 2 of {src,dest}_{index,track} + src_index=${where_is_track[$src_track]} + dest_track=${what_is_index[$dest_index]} + + # swap tracks, if necessary (avoid the mpc swap command for back compat.) + if [ $src_index != $dest_index ] + then + + # swap + declare offset + if [ $src_index -lt $dest_index ] + then + offset=-1 + else + offset=1 + fi + mpc move $src_index $dest_index + mpc move $(($dest_index + $offset)) $src_index + + # update locations to reflect the swap + where_is_track[$src_track]=$dest_index + where_is_track[$dest_track]=$src_index + what_is_index[$src_index]=$dest_track + what_is_index[$dest_index]=$src_track + + fi + +done < <( + # parse the line numbers and track numbers from the new playlist + cat -b "$playlist_new" | + tr '#)' ' ' | + sed -e 's/[[:space:]][[:space:]]*/ /g;s/^[[:space:]]*//' | + cut -f 1-2 -d ' ' +) + +# get the (inclusive) range of items to delete +min=$((`wc -l "$playlist_new" | (read n file; echo $n)` + 1)) +max=`wc -l "$playlist_orig" | (read n file; echo $n)` + +# remove deleted songs +if [ $min -le $max ]; then + mpc del $min-$max +fi + +# remove the tempfiles +rm "$playlist_orig" "$playlist_new" --- mpc-0.22+git20120612.119609c.orig/debian/examples/playstream +++ mpc-0.22+git20120612.119609c/debian/examples/playstream @@ -0,0 +1,72 @@ +#!/bin/bash -e +# +# playstream -- smart handler for m3u/pls files for mpd +# version 2006.03.15.0005 +# +# (c) 2006 martin f. krafft +# Released under the terms of the artistic licence. +# + +### begin host configuration +# do whatever you want here. note that my default below automatically +# decides where to play the music based on the ARP cache. it ignores +# existing MPD_HOST values. i am sure you know what to do if you don't +# like that. +# +export MPD_HOST=localhost + +if ip neigh | grep -q '192\.168\.14\.1 .\+ 08:00:46:b1:2d:ee REACHABLE'; then + MPD_HOST="XXXXXXXXX@yy.cccccc.net" +fi +### end host configuration + +declare -a lists +unset verbose + +LONGOPTS=replace,append,queue,verbose +SHORTOPTS=raqv +ME=${0##*/} + +for opt in $(getopt -u -n $ME -l $LONGOPTS -o $SHORTOPTS -- $@); do + case $opt in + -r) # replace list immediately + mpc clear;; + -a) # append to list + :;; + -q) # append, but queue next + mpc crop;; + -v) # verbose + verbose=1;; + --) :;; + *.m3u|*.pls) + if [ -r $opt ]; then + lists=(${lists[@]} $opt) + else + echo "$ME: unreadable file -- $opt" >&2 + exit 2 + fi;; + *) + echo "$ME: invalid argument -- $opt" >&2 + exit 1;; + esac +done + +if [ -z "${lists[@]}" ]; then + [ -n "$verbose" ] && echo $ME: no input files. >&2 + exit 0 +fi + +if [ -n "$verbose" ]; then + echo "I: playing on host ${MPD_HOST#*@}:" + for i in ${lists[@]}; do + echo "I: $i" + done +fi + +# pls files have annoying File[[:digit:]]* prefixes +# m3u files are fine, mpc ignores commented lines +# thus, the following takes care of all: +sed -e 's/^File[[:digit:]]*=//' ${lists[@]} | mpc add >/dev/null +mpc play # doesn't do anything if already playing + +exit 0