--- musica-1.11.orig/debian/docs
+++ musica-1.11/debian/docs
@@ -0,0 +1 @@
+docs/README
--- musica-1.11.orig/debian/rules
+++ musica-1.11/debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+#
+# debian/rules makefile for musica
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+PKG=musica
+VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'`
+
+get-orig-source:
+ bzr export ../${PKG}_${VER}.orig.tar.gz
+
+build:
+
+clean:
+ rm -rf debian/musica debian/files debian/musica.debhelper.log
+
+install:build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs -X.bzr
+ dh_install -X.bzr
+
+# Everything else is handled by dh_install
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs -X.bzr
+ dh_installchangelogs docs/README
+ dh_installcron
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_builddeb
+
+binary: binary-indep
+.PHONY: build clean binary-indep binary install
+
+binary-arch:
--- musica-1.11.orig/debian/apache.conf
+++ musica-1.11/debian/apache.conf
@@ -0,0 +1,8 @@
+Alias /musica /usr/share/musica
+
+
+ Options +FollowSymLinks
+ AllowOverride All
+ order allow,deny
+ allow from all
+
--- musica-1.11.orig/debian/copyright
+++ musica-1.11/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Dustin Kirkland
+Fri, 18 Jul 2008 00:24:37 +0100
+
+It was downloaded from: http://launchpad.net/musica
+
+Upstream Authors: Dustin Kirkland
+
+Copyright:
+ Copyright (C) 2002-2009 Dustin Kirkland
+ All rights reserved.
+
+License:
+
+ musica: web application for browsing and listening to your music
+ Copyright (C) 2000-2009 Dustin Kirkland
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, version 3 of the
+ License.
+
+ 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+
+ The icons are licensed under the Creative Commons Attribution 2.5 license,
+ . In accordance with CCA2.5,
+ the icons are available at .
+
+The Ubuntu packaging:
+ Copyright (C) 2008 by Dustin Kirkland
+ released under the GPL-3.
--- musica-1.11.orig/debian/cron.hourly
+++ musica-1.11/debian/cron.hourly
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+PKG=musica
+DIR=/usr/share/$PKG/music
+
+if [ -d "$DIR" ]; then
+ cd "$DIR"
+else
+ echo "ERROR: [$DIR] does not exist" 1>&2
+ exit 1
+fi
+
+# Get Songs
+find . -type f -iname "*.mp3" -o -iname "*.oga" -o -iname "*.ogg" -o -iname "*.wav" -o -iname "*.flac" | sed "s:^\./::" > /var/lib/$PKG/songs
+wc -l /var/lib/$PKG/songs | awk '{print $1}' > /var/lib/$PKG/songs.count
+
+# Get Albums
+awk -F/ '{print $2}' /var/lib/$PKG/songs | sort -u > /var/lib/$PKG/albums
+wc -l /var/lib/$PKG/albums | awk '{print $1}' > /var/lib/$PKG/albums.count
+
+# Get Artists
+awk -F/ '{print $1}' /var/lib/$PKG/songs | sort -u > /var/lib/$PKG/artists
+wc -l /var/lib/$PKG/artists | awk '{print $1}' > /var/lib/$PKG/artists.count
--- musica-1.11.orig/debian/changelog
+++ musica-1.11/debian/changelog
@@ -0,0 +1,104 @@
+musica (1.11-0ubuntu1.1) lucid-security; urgency=low
+
+ * SECURITY UPDATE: information disclosure (LP: #888218)
+ - debian/cron.hourly: bail out if the expected directory doesn't
+ exist yet instead of indexing from the root of the filesystem
+ - patch thanks to Dustin Kirkland, musica upstream.
+
+ -- Steve Beattie Tue, 15 Nov 2011 00:21:30 -0800
+
+musica (1.11-0ubuntu1) lucid; urgency=low
+
+ * debian/postrm: dissite and rm etc config
+
+ -- Dustin Kirkland Mon, 08 Feb 2010 18:30:24 -0600
+
+musica (1.10) lucid; urgency=low
+
+ * debian/postrm: safely clean up
+
+ -- Dustin Kirkland Mon, 08 Feb 2010 12:19:35 -0600
+
+musica (1.9) lucid; urgency=low
+
+ * debian/postinst: cache no longer used
+ * debian/postrm: clean up link and statistics
+
+ -- Dustin Kirkland Mon, 08 Feb 2010 12:14:54 -0600
+
+musica (1.8) lucid; urgency=low
+
+ * debian/cron.hourly, debian/rules:
+ - maintain an hourly updated list of artists/albums/songs, for
+ more efficient and secure printing of statists and doing searches
+ * debian/rules: drop debconf stuff, as it's not used
+ * index.php:
+ - read statistics from file
+ - no border on images
+ - don't hide permission denied errors
+ * debian/dirs, debian/postrm: clean up cache and lib dirs on purge
+ * debian/links, debian/postinst, debian/rules: improve install/config
+
+ -- Dustin Kirkland Sat, 06 Feb 2010 22:26:23 -0600
+
+musica (1.7) lucid; urgency=low
+
+ * index.php:
+ - s/Music/Musica/
+ - extend artist hyperlink to include icon, like the others
+ - update copyright to 2010
+ - update copyright text
+
+ -- Dustin Kirkland Sat, 30 Jan 2010 19:25:36 -0800
+
+musica (1.6) lucid; urgency=low
+
+ * index.php:
+ - add support for .oga file format, LP: #320360
+ * index.php, debian/musica.dirs, debian/rules:
+ - drop use of tmp files, instead use content type header, LP: #480509
+ - drop /var/lib/musica/tmp directory
+
+ -- Dustin Kirkland Tue, 10 Nov 2009 23:34:19 -0600
+
+musica (1.5) karmic; urgency=low
+
+ * index.php, debian/copyright: re-license under Affero Public License
+
+ -- Dustin Kirkland Tue, 28 Apr 2009 12:40:18 -0500
+
+musica (1.4) jaunty; urgency=low
+
+ * index.php: support ogg, wav, and flac files, LP: #288839 and LP: #313408
+
+ -- Dustin Kirkland Thu, 15 Jan 2009 22:39:55 -0600
+
+musica (1.3) intrepid; urgency=low
+
+ * Fix a couple of minor issues to get musica working immediately on
+ installation (LP: #285322)
+ * index.php: must insert script name in url preamble
+ * debian/rules: link tmpdir into web share
+ * debian/apache.conf: tmp section no longer needed (using symlink)
+
+ -- Dustin Kirkland Sat, 18 Oct 2008 01:05:02 -0500
+
+musica (1.2) intrepid; urgency=low
+
+ * debian/musica.install: actually install star_on.png and star_off.png
+ LP: #285134
+
+ -- Dustin Kirkland Fri, 17 Oct 2008 14:11:16 -0500
+
+musica (1.1) intrepid; urgency=low
+
+ * index.php, debian/copyright, docs/LICENSE_CCA2.5, docs/LICENSE_GPL3,
+ docs/README: fixed licensing inconsistencies
+
+ -- Dustin Kirkland Mon, 06 Oct 2008 11:49:02 -0500
+
+musica (1.0) intrepid; urgency=low
+
+ * Initial upload, (LP: #254801).
+
+ -- Dustin Kirkland Mon, 29 Sep 2008 13:26:26 -0500
--- musica-1.11.orig/debian/control
+++ musica-1.11/debian/control
@@ -0,0 +1,18 @@
+Source: musica
+Section: web
+Priority: optional
+Maintainer: Dustin Kirkland
+Standards-Version: 3.8.3
+Build-Depends: debhelper (>= 6.0)
+Homepage: http://launchpad.net/musica
+Vcs-Bzr: http://bazaar.launchpad.net/~kirkland/musica/main
+
+Package: musica
+Architecture: all
+Depends: ${misc:Depends}, apache2, libapache2-mod-php5
+Description: a web application for browsing and listening to your music
+ Musica is a web application for browsing and listening to your music. Songs
+ are organized hierarchically in folders of Artists, and sub-folders of Albums.
+ The PHP script presents an interface for navigating among artists and albums.
+ It dynamically generates playlists, allows for downloading single songs,
+ entire albums, and links to Wikipedia articles on artists and albums.
--- musica-1.11.orig/debian/postinst
+++ musica-1.11/debian/postinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+package="musica"
+webserver="apache2"
+
+case "$1" in
+ configure)
+ a2ensite $package
+ invoke-rc.d $webserver reload
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- musica-1.11.orig/debian/links
+++ musica-1.11/debian/links
@@ -0,0 +1 @@
+etc/musica/apache.conf etc/apache2/sites-available/musica
--- musica-1.11.orig/debian/postrm
+++ musica-1.11/debian/postrm
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+PKG="musica"
+case "$1" in
+ remove)
+ a2dissite $PKG
+ ;;
+ purge)
+ rm -f /var/lib/$PKG/* /etc/$PKG/apache.conf
+ [ -h /usr/share/$PKG/music ] && rm -f /usr/share/$PKG/music || true
+ ;;
+esac
+
+#DEBHELPER#
--- musica-1.11.orig/debian/install
+++ musica-1.11/debian/install
@@ -0,0 +1,10 @@
+book_open.png usr/share/musica
+cd.png usr/share/musica
+control_play_blue.png usr/share/musica
+disk.png usr/share/musica
+group.png usr/share/musica
+index.php usr/share/musica
+music.png usr/share/musica
+star_on.png usr/share/musica
+star_off.png usr/share/musica
+debian/apache.conf etc/musica
--- musica-1.11.orig/debian/compat
+++ musica-1.11/debian/compat
@@ -0,0 +1 @@
+6
--- musica-1.11.orig/debian/dirs
+++ musica-1.11/debian/dirs
@@ -0,0 +1 @@
+var/lib/musica