--- tangerine-0.3.2.2.orig/debian/changelog
+++ tangerine-0.3.2.2/debian/changelog
@@ -0,0 +1,135 @@
+tangerine (0.3.2.2-6) unstable; urgency=low
+
+  * [7c12c27] Remove duplicate patch entry from series
+  * [7c5366d] Fix security issue CVE-2010-3381 (insecure library
+    loading) (Closes: 598302) - thanks to Etienne Millon
+    <etienne.millon@gmail.com>
+
+ -- Iain Lane <laney@ubuntu.com>  Mon, 25 Oct 2010 16:59:13 +0100
+
+tangerine (0.3.2.2-5) unstable; urgency=low
+
+  * debian/tangerine.install,
+    debian/tangerine-properties.exe.config:
+    + Add dllmaps for libgtk and libgobject (LP: #596461)
+
+ -- Chow Loong Jin <hyperair@ubuntu.com>  Mon, 21 Jun 2010 17:25:56 +0800
+
+tangerine (0.3.2.2-4) unstable; urgency=low
+
+  * debian/patches/kfreebsd_use_assemblyrefs_in_configure.ac.patch,
+    debian/rules,
+    debian/control:
+    + Make sure configure check pulls in assembly refs on things like 
+      NDesk.Glib on non-Linux platforms (Closes: #580009)
+
+ -- Jo Shields <directhex@apebox.org>  Tue, 04 May 2010 12:45:35 +0100
+
+tangerine (0.3.2.2-3) unstable; urgency=low
+
+  * debian/control, debian/rules: Drop beagle support as beagle is being
+    removed from Debian completely
+  * debian/source/format: Create with 1.0 
+
+ -- Iain Lane <laney@ubuntu.com>  Wed, 28 Apr 2010 18:02:19 +0100
+
+tangerine (0.3.2.2-2) unstable; urgency=low
+
+  * debian/control:
+    + No-change bump to Standards 3.8.4
+    + Update build-deps to use -dev packages
+
+ -- Jo Shields <directhex@apebox.org>  Fri, 29 Jan 2010 16:01:00 +0000
+
+tangerine (0.3.2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/watch, debian/control:
+    + Update to new homepage
+  * debian/control:
+    + No-change bump to Standards 3.8.3
+    + Add myself to Uploaders, and drop some inactive contributors' names
+    + Update Vcs-* fields to reflect migration to git
+    + Update build depends:
+      - Update order to reflect configure.ac order
+      - Drop libavahi1.0-cil, libmono-sqlite2.0-cil, cdbs
+      - Add banshee, libmono-zeroconf1.0-cil, libndesk-dbus-glib1.0-cil
+      - Use DH7
+    + Add a debug package, tangerine-dbg
+  * debian/rules:
+    + Rewrite to use DH7
+    + Clean up get-orig-source rule
+    + Add some custom configure flags
+    + Add dh_{,cli}strip overrides to strip into tangerine-dbg
+    + Remove /usr/share/doc/tangerine/sample.conf since it's handled by
+      dh_installexamples
+  * debian/compat:
+    + Bump to 7
+  * debian/copyright:
+    + Update and use DEP-5
+  * debian/tangerine*.1, debian/tangerine.manpages:
+    + Added manpages for tangerine and tangerine-properties.
+  * debian/tangerine.examples:
+    + Install sample.conf as a sample conf file for ~/.tangerine
+  * debian/patches:
+    + Drop all patches, since they are either applied upstream or no
+      longer relevant.
+  * debian/*.dll.config:
+    + Dropped, no longer needed
+
+ -- Chow Loong Jin <hyperair@ubuntu.com>  Tue, 18 Aug 2009 21:38:02 +0800
+
+tangerine (0.3.0+dfsg-5) unstable; urgency=low
+
+  * debian/control:
+    + Removed unused libgnome2.0-cil and libgconf2.0-cil build-deps.
+      (Closes: #525459)
+
+ -- Mirco Bauer <meebey@debian.org>  Sun, 26 Apr 2009 21:10:14 +0200
+
+tangerine (0.3.0+dfsg-4) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Mirco Bauer <meebey@debian.org>  Fri, 06 Mar 2009 00:54:53 +0100
+
+tangerine (0.3.0+dfsg-3) experimental; urgency=low
+
+  [ Jo Shields ]
+  * debian/control:
+    + Specifically build-depend on mono-devel 2.0.1 or higher
+    + No change bump to standards version 3.8.0
+  * debian/rules:
+    + Override MCS variable to build with csc
+
+  [ David Paleino ]
+  * debian/watch added.
+  * debian/patches/:
+    + 04_fix_music_dir_delimiter.patch added, uses "," instead of ";"
+      to specify multiple directories. Thanks to Jo Shields
+      (Closes: #494123)
+    + 05_add_configurable_file_types.patch added, lets the user specify
+      a comma-separated list of extensions to serve via the "filetypes"
+      configuration line. Thanks to Jo Shields (Closes: #494124)
+  * Group Policy:
+    + implemented get-orig-source target in debian/rules
+
+  [ Mirco Bauer ]
+  * debian/control:
+    + Added Homepage, Vcs-Browser and Vcs-Svn fields.
+    + Enhanced package description.
+
+ -- David Paleino <d.paleino@gmail.com>  Fri, 12 Dec 2008 00:51:34 +0100
+
+tangerine (0.3.0+dfsg-2) unstable; urgency=low
+
+  * Rebuild against liblog4net1.2-cil to get proper dependencies.
+
+ -- Sebastian Dröge <slomo@debian.org>  Thu, 03 Apr 2008 20:32:57 +0200
+
+tangerine (0.3.0+dfsg-1) unstable; urgency=low
+
+  * Initial release (Closes: #369115), packaging done by Jose
+    Carlos Garcia Sogo and me.
+
+ -- Sebastian Dröge <slomo@debian.org>  Wed, 19 Mar 2008 23:10:58 +0100
--- tangerine-0.3.2.2.orig/debian/tangerine.examples
+++ tangerine-0.3.2.2/debian/tangerine.examples
@@ -0,0 +1 @@
+sample.conf
--- tangerine-0.3.2.2.orig/debian/tangerine.1
+++ tangerine-0.3.2.2/debian/tangerine.1
@@ -0,0 +1,29 @@
+.TH TANGERINE "1" "August 2009" "Tangerine http://www.launchpad.net/tangerine" "User Commands"
+
+.SH NAME
+Tangerine \- DAAP Server
+
+.SH SYNOPSIS
+.B tangerine
+[\fIconfig\fR]
+
+.SH DESCRIPTION
+Tangerine is a DAAP server. You can use it to listen to music remotely through a
+number of applications, including iTunes, Banshee, and Rhythmbox.
+
+\fIconfig\fR is the configuration file for tangerine, and can be configured
+using the graphical tool tangerine-properties(1). It defaults to ~/.tangerine if
+not provided.
+
+.SH COPYRIGHT
+Tangerine is Copyright (C) 2009 James Willcox and Alex Launi, and is published
+under the GNU General Publication License, Version 2.
+
+This manual page was written by Chow Loong Jin <hyperair@ubuntu.com> for the
+Debian project (but may be used by others). Permission is granted to copy,
+distribute and/or modify this document under the terms of the GNU General
+Publication License, Version 2 or any later version published by the Free
+Software Foundation.
+
+On Debian systems, the complete text of the GNU General Publication License,
+Version 2 can be found in /usr/share/common-licenses/GPL-2.
--- tangerine-0.3.2.2.orig/debian/tangerine-properties.1
+++ tangerine-0.3.2.2/debian/tangerine-properties.1
@@ -0,0 +1,26 @@
+.TH TANGERINE "1" "August 2009" "Tangerine http://www.launchpad.net/tangerine" "User Commands"
+
+.SH NAME
+Tangerine-Properties \- DAAP Server configuration tool
+
+.SH SYNOPSIS
+.B tangerine-properties
+
+.SH DESCRIPTION
+tangerine-properties provides a graphical user interface for configuring
+~/.tangerine which is the configuration file for tangerien(1), and automatically
+launching or terminating tangerine(1) based on whether it is enabled in the
+configuration.
+
+.SH COPYRIGHT
+Tangerine is Copyright (C) 2009 James Willcox and Alex Launi, and is published
+under the GNU General Publication License, Version 2.
+
+This manual page was written by Chow Loong Jin <hyperair@ubuntu.com> for the
+Debian project (but may be used by others). Permission is granted to copy,
+distribute and/or modify this document under the terms of the GNU General
+Publication License, Version 2 or any later version published by the Free
+Software Foundation.
+
+On Debian systems, the complete text of the GNU General Publication License,
+Version 2 can be found in /usr/share/common-licenses/GPL-2.
--- tangerine-0.3.2.2.orig/debian/tangerine-properties.exe.config
+++ tangerine-0.3.2.2/debian/tangerine-properties.exe.config
@@ -0,0 +1,4 @@
+<configuration>
+  <dllmap dll="libgobject-2.0.dll" target="libgobject-2.0.so.0" />
+  <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0" />
+</configuration>
--- tangerine-0.3.2.2.orig/debian/rules
+++ tangerine-0.3.2.2/debian/rules
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST)))
+CURVER ?= $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \
+			sed -n 's/-.*$$//; s/^Version: //p')
+USCAN = uscan \
+			--package=tangerine \
+			--watchfile=$(DEBIAN_DIR)/watch \
+			--upstream-version=$(CURVER)
+
+include /usr/share/cli-common/cli.make
+include /usr/share/quilt/quilt.make
+
+get-orig-source:
+	$(USCAN) \
+		--force-download \
+		--download \
+		--destdir=. \
+		--rename
+
+override_dh_auto_configure:
+	autoreconf -f -i -I m4/shamrock
+	dh_auto_configure -- \
+		MCS=/usr/bin/mono-csc \
+		--enable-debug \
+		--enable-banshee \
+		--disable-beagle \
+		--enable-file
+
+override_dh_strip:
+	dh_strip --dbg-package=tangerine-dbg
+
+override_dh_clistrip:
+	dh_clistrip --dbg-package=tangerine-dbg
+
+# disable dh_makeshlibs (problems with /usr/lib/tangerine/*.so*)
+override_dh_makeshlibs:
+
+# delete sample.conf (handled by dh_installexamples)
+override_dh_auto_install:
+	dh_auto_install -- DESTDIR="$(CURDIR)/debian/tangerine"
+	rm debian/tangerine/usr/share/doc/tangerine/sample.conf
+
+%:
+	dh --with quilt $@
--- tangerine-0.3.2.2.orig/debian/watch
+++ tangerine-0.3.2.2/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+dfsg// \
+	https://www.launchpad.net/tangerine/+download/ .*/tangerine-([0-9.]+)\.tar\.gz
--- tangerine-0.3.2.2.orig/debian/tangerine.install
+++ tangerine-0.3.2.2/debian/tangerine.install
@@ -0,0 +1 @@
+debian/tangerine-properties.exe.config /usr/lib/tangerine
--- tangerine-0.3.2.2.orig/debian/docs
+++ tangerine-0.3.2.2/debian/docs
@@ -0,0 +1 @@
+README
--- tangerine-0.3.2.2.orig/debian/compat
+++ tangerine-0.3.2.2/debian/compat
@@ -0,0 +1 @@
+7
--- tangerine-0.3.2.2.orig/debian/tangerine.manpages
+++ tangerine-0.3.2.2/debian/tangerine.manpages
@@ -0,0 +1,2 @@
+debian/tangerine.1
+debian/tangerine-properties.1
--- tangerine-0.3.2.2.orig/debian/control
+++ tangerine-0.3.2.2/debian/control
@@ -0,0 +1,55 @@
+Source: tangerine
+Section: gnome
+Priority: optional
+Maintainer: Debian CLI Applications Team <pkg-cli-apps-team@lists.alioth.debian.org>
+Uploaders: Jose Carlos Garcia Sogo <jsogo@debian.org>,
+           Sebastian Dröge <slomo@debian.org>,
+           Chow Loong Jin <hyperair@ubuntu.com>
+Build-Depends: debhelper (>= 7.0.50),
+               mono-devel (>= 2.4.3),
+               cli-common-dev (>= 0.5.7),
+               pkg-config,
+               autotools-dev,
+               intltool,
+               libtool,
+               quilt (>= 0.46-7~),
+               libdb4o-cil-dev,
+               libmono-zeroconf-cil-dev,
+               libtaglib-cil-dev,
+               liblog4net-cil-dev,
+               libnini-cil-dev,
+               libgtk2.0-cil-dev,
+               libglade2.0-cil-dev,
+               libndesk-dbus-glib1.0-cil-dev,
+               libsm-dev,
+               banshee (>= 1.4.2)
+Standards-Version: 3.8.4
+Homepage: http://launchpad.net/tangerine/
+Vcs-Git: git://git.debian.org/git/pkg-cli-apps/packages/tangerine.git
+Vcs-Browser: http://git.debian.org/?p=pkg-cli-apps/packages/tangerine.git
+
+Package: tangerine
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}
+Suggests: amarok (>= 2.0), banshee (>= 1.4.2), rhythmbox
+Description: music server using DAAP
+ Tangerine is a simple music sharing server that uses DAAP to share your music
+ over the local network.
+ .
+ There are several clients that you can then use to connect to it, such as
+ Apple's iTunes, Banshee, and Rhythmbox.
+
+Package: tangerine-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: tangerine (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends},
+         ${cli:Depends}
+Suggests: banshee-dbg, rhythmbox
+Description: music server using DAAP (debug symbols)
+ Tangerine is a simple music sharing server that uses DAAP to share your music
+ over the local network.
+ .
+ this package contains the debugging symbols for Tangerine.
--- tangerine-0.3.2.2.orig/debian/copyright
+++ tangerine-0.3.2.2/debian/copyright
@@ -0,0 +1,91 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
+Name: tangerine
+Source: https://launchpad.net/tangerine/+download
+
+Files: *
+Copyright: 2005-2006, James Willcox <snorp@snorp.net>
+           2009, Alex Launi <alex.launi@gmail.com>
+License: GPL-2+
+
+Files: libtangglue/src/inotify-glue.c,
+       Tangerine/src/Inotify.cs,
+       Tangerine/src/UnixSignal.cs,
+       TangerineProperties/src/IconThemeUtils.cs
+Copyright: 2004-2005, Novell, Inc.
+License: MIT/X11
+
+Files: daap-sharp/*
+Copyright: 2005, James Willcox <snorp@snorp.net>
+License: LGPL-2.1+
+
+Files: daap-sharp/src/Hasher.cs
+Copyright: 2005, James Willcox <snorp@snorp.net>
+           2005, Jon Lech Johansen <jon@nanocrew.net>
+           2004, David Hammerton <david@crazney.net>
+License: MIT/X11 and LGPL-2.1+
+
+Files: daap-sharp/src/BrokenMD5.cs
+Copyright: 2005, James Willcox <snorp@snorp.net>
+           2004-2005 Novell, Inc.
+           2001, Matthew S. Ford
+License: MIT/X11 and LGPL-2.1+
+
+Files: debian/*
+Copyright: 2006, Brandon Hale <brandon@ubuntu.com>
+           2009, Chow Loong Jin <hyperair@ubuntu.com
+License: GPL-2+
+
+License: GPL-2+
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA.
+ .
+ On Debian systems, a full copy of this license can be found in
+ /usr/share/common-licenses/GPL-2
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, a full copy of this license can be found in
+ /usr/share/common-licenses/LGPL-2.1
+
+License: MIT/X11
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
--- tangerine-0.3.2.2.orig/debian/source/format
+++ tangerine-0.3.2.2/debian/source/format
@@ -0,0 +1 @@
+1.0
--- tangerine-0.3.2.2.orig/debian/patches/CVE-2010-3381-insecure-library-loading
+++ tangerine-0.3.2.2/debian/patches/CVE-2010-3381-insecure-library-loading
@@ -0,0 +1,24 @@
+Index: tangerine.git/Tangerine.Daemon/tangerine.in
+===================================================================
+--- tangerine.git.orig/Tangerine.Daemon/tangerine.in	2010-10-24 16:58:40.074049837 +0100
++++ tangerine.git/Tangerine.Daemon/tangerine.in	2010-10-24 16:58:14.092044082 +0100
+@@ -4,7 +4,7 @@
+ libdir=@libdir@
+ includedir=@includedir@
+ 
+-export LD_LIBRARY_PATH=@libdir@/tangerine:$LD_LIBRARY_PATH
++export LD_LIBRARY_PATH=@libdir@/tangerine${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+ export MONO_PATH=$MONO_PATH:@BANSHEE_INDEXER_DLL@
+ 
+ if test "x$TANGERINE_DEBUG" != "x"; then \
+Index: tangerine.git/TangerineProperties/tangerine-properties.in
+===================================================================
+--- tangerine.git.orig/TangerineProperties/tangerine-properties.in	2010-10-24 16:58:39.834031305 +0100
++++ tangerine.git/TangerineProperties/tangerine-properties.in	2010-10-24 16:58:35.203673858 +0100
+@@ -5,5 +5,5 @@
+ libdir=@libdir@
+ includedir=@includedir@
+ 
+-export LD_LIBRARY_PATH=@libdir@/tangerine:$LD_LIBRARY_PATH
++export LD_LIBRARY_PATH=@libdir@/tangerine${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+ exec -a tangerine-properties mono @libdir@/tangerine/tangerine-properties.exe "$@"
--- tangerine-0.3.2.2.orig/debian/patches/kfreebsd_use_assemblyrefs_in_configure.ac.patch
+++ tangerine-0.3.2.2/debian/patches/kfreebsd_use_assemblyrefs_in_configure.ac.patch
@@ -0,0 +1,59 @@
+Index: tangerine.git/configure.ac
+===================================================================
+--- tangerine.git.orig/configure.ac	2010-10-24 16:55:23.438870031 +0100
++++ tangerine.git/configure.ac	2010-10-24 16:55:31.419486112 +0100
+@@ -117,6 +117,54 @@
+         build_session_plugin="yes"
+         platform="LINUX"
+         ;;
++    *-*-kfreebsd*)
++        PKG_CHECK_MODULES(GLIB_SHARP_20, glib-sharp-2.0)
++        AC_SUBST(GLIB_SHARP_20_LIBS)
++
++        PKG_CHECK_MODULES(GTK_SHARP_20, gtk-sharp-2.0)
++        AC_SUBST(GTK_SHARP_LIBS_20)
++
++        PKG_CHECK_MODULES(GLADE_SHARP_20, glade-sharp-2.0)
++        AC_SUBST(GLADE_SHARP_LIBS_20)
++
++        PKG_CHECK_MODULES(NDESK_DBUS_10, ndesk-dbus-1.0)
++        AC_SUBST([NDESK_DBUS_10_LIBS])
++
++        PKG_CHECK_MODULES(NDESK_DBUS_GLIB_10, ndesk-dbus-glib-1.0)
++        AC_SUBST([NDESK_DBUS_GLIB_10_LIBS])
++
++        PKG_CHECK_MODULES(X_SESSION, sm)
++        AC_SUBST([X_SESSION_LIBS])
++
++        have_inotify="no"
++        build_gui="yes"
++        build_session_plugin="yes"
++        platform="LINUX"
++        ;;
++    *-*-kfreebsd*)
++        PKG_CHECK_MODULES(GLIB_SHARP_20, glib-sharp-2.0)
++        AC_SUBST(GLIB_SHARP_20_LIBS)
++
++        PKG_CHECK_MODULES(GTK_SHARP_20, gtk-sharp-2.0)
++        AC_SUBST(GTK_SHARP_LIBS_20)
++
++        PKG_CHECK_MODULES(GLADE_SHARP_20, glade-sharp-2.0)
++        AC_SUBST(GLADE_SHARP_LIBS_20)
++
++        PKG_CHECK_MODULES(NDESK_DBUS_10, ndesk-dbus-1.0)
++        AC_SUBST([NDESK_DBUS_10_LIBS])
++
++        PKG_CHECK_MODULES(NDESK_DBUS_GLIB_10, ndesk-dbus-glib-1.0)
++        AC_SUBST([NDESK_DBUS_GLIB_10_LIBS])
++
++        PKG_CHECK_MODULES(X_SESSION, sm)
++        AC_SUBST([X_SESSION_LIBS])
++
++        have_inotify="no"
++        build_gui="yes"
++        build_session_plugin="yes"
++        platform="LINUX"
++        ;;
+     *-*-darwin*)
+         have_inotify="no"
+         build_gui="no"
--- tangerine-0.3.2.2.orig/debian/patches/series
+++ tangerine-0.3.2.2/debian/patches/series
@@ -0,0 +1,2 @@
+kfreebsd_use_assemblyrefs_in_configure.ac.patch
+CVE-2010-3381-insecure-library-loading
