--- ll-scope-0.2.1.orig/debian/control
+++ ll-scope-0.2.1/debian/control
@@ -0,0 +1,16 @@
+Source: ll-scope
+Section: sound
+Priority: optional
+Maintainer: Debian Multimedia Team <debian-multimedia@lists.debian.org>
+Uploaders: Willem van Engen <debrepo@willem.engen.nl>, Free Ekanayaka <freee@debian.org>
+Build-Depends: debhelper (>= 4.0.0), liblo0-dev, dssi-dev, libglademm-2.4-dev ( >= 2.2.0), libsigc++-2.0-dev, libasound2-dev, dpatch
+Standards-Version: 3.7.2
+
+Package: ll-scope
+Architecture: any
+Provides: dssi-plugin
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: an oscilloscope DSSI plugin
+ The Oscilloscope is a DSSI plugin with a GUI that displays the audio input in
+ an oscilloscope view. It can be useful when working with modular synths, to
+ view the waveforms with at different places in the synth graph.
--- ll-scope-0.2.1.orig/debian/copyright
+++ ll-scope-0.2.1/debian/copyright
@@ -0,0 +1,27 @@
+This package was debianized by Willem <wvengen+demudi@stack.nl> on
+Fri,  5 Aug 2005 01:42:44 +0000.
+
+It was downloaded from http://www.student.nada.kth.se/~d00-llu/music_dssi.php
+
+Copyright Holder: Lars Luthman <larsl@users.sourceforge.net>
+
+License:
+
+   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; either version 2 of the License, or
+   (at your option) any later version.
+
+   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, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
--- ll-scope-0.2.1.orig/debian/rules
+++ ll-scope-0.2.1/debian/rules
@@ -0,0 +1,90 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g -fPIC
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+build: build-stamp
+
+build-stamp:  patch-stamp
+
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE) CFLAGS="$(CFLAGS)"
+	#docbook-to-man debian/dssi0.9-plugin-ll-scope.sgml > dssi0.9-plugin-ll-scope.1
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/ll-scope.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/ll-scope
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- ll-scope-0.2.1.orig/debian/docs
+++ ll-scope-0.2.1/debian/docs
@@ -0,0 +1 @@
+README
--- ll-scope-0.2.1.orig/debian/install
+++ ll-scope-0.2.1/debian/install
@@ -0,0 +1 @@
+debian/ll-scope.desktop	usr/share/applications
--- ll-scope-0.2.1.orig/debian/dirs
+++ ll-scope-0.2.1/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+
--- ll-scope-0.2.1.orig/debian/ll-scope.desktop
+++ ll-scope-0.2.1/debian/ll-scope.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Oscilloscope
+Comment=An oscilloscope DSSI plugin
+Exec=jack-dssi-host ll-scope.so
+Icon=/usr/lib/dssi/ll-scope/icon.png
+Terminal=false
+Type=Application
+Categories=GNOME;Application;AudioVideo;Audio;Synthesis;
--- ll-scope-0.2.1.orig/debian/changelog
+++ ll-scope-0.2.1/debian/changelog
@@ -0,0 +1,21 @@
+ll-scope (0.2.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add sigcnamespace.dpatch patch that specifies sigc:: namespace to avoid
+    conflict with signal(2). (Closes: #521962)
+
+ -- Chris Lamb <lamby@debian.org>  Sun, 16 Aug 2009 21:34:45 +0100
+
+ll-scope (0.2.1-2) unstable; urgency=low
+
+  * Fixed broken INSTALL_DIR variable in Makefile
+  * Added .desktop file
+
+ -- Free Ekanayaka <freee@debian.org>  Mon,  4 Jun 2007 23:50:57 +0200
+
+ll-scope (0.2.1-1) unstable; urgency=low
+
+  * Initial Release (Closes: #321468)
+
+ -- Free Ekanayaka <freee@debian.org>  Mon, 19 Feb 2007 14:27:09 +0100
+
--- ll-scope-0.2.1.orig/debian/watch
+++ ll-scope-0.2.1/debian/watch
@@ -0,0 +1,4 @@
+version=3
+# Homepage  Pattern  [Version  [Action]]
+http://www.student.nada.kth.se/~d00-llu/music_dssi.php plugins/ll-scope/ll-scope-(.*)\.tar\.bz2 
+
--- ll-scope-0.2.1.orig/debian/compat
+++ ll-scope-0.2.1/debian/compat
@@ -0,0 +1 @@
+4
--- ll-scope-0.2.1.orig/debian/patches/destdir.dpatch
+++ ll-scope-0.2.1/debian/patches/destdir.dpatch
@@ -0,0 +1,46 @@
+#! /bin/sh -e
+## destdir.dpatch by Free Ekanayaka <free@agnula.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+if [ $# -lt 1 ]; then
+    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+    exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+    -patch) patch -p1 ${patch_opts} < $0;;
+    -unpatch) patch -R -p1 ${patch_opts} < $0;;
+    *)
+        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+        exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+--- a/Makefile	2007-06-04 23:48:24.000000000 +0200
++++ b/Makefile	2007-06-04 23:49:24.000000000 +0200
+@@ -1,4 +1,5 @@
+-INSTALL_DIR=/usr/local/lib/dssi
++DESTDIR=
++INSTALL_DIR=/usr/lib/dssi
+ 
+ all:	ll-scope.so ll-scope_gtk
+ 
+@@ -16,7 +17,7 @@
+ 	rm -f ll-scope.so ll-scope_gtk *.o
+ 
+ install:	ll-scope.so ll-scope_gtk
+-	mkdir -p $(INSTALL_DIR)
+-	cp -f ll-scope.so $(INSTALL_DIR)
+-	mkdir -p $(INSTALL_DIR)/ll-scope
+-	cp -f ll-scope_gtk ll-scope.glade pixmaps/icon.png $(INSTALL_DIR)/ll-scope/
++	mkdir -p $(DESTDIR)$(INSTALL_DIR)
++	cp -f ll-scope.so $(DESTDIR)$(INSTALL_DIR)
++	mkdir -p $(DESTDIR)$(INSTALL_DIR)/ll-scope
++	cp -f ll-scope_gtk ll-scope.glade pixmaps/icon.png $(DESTDIR)$(INSTALL_DIR)/ll-scope/
--- ll-scope-0.2.1.orig/debian/patches/00list
+++ ll-scope-0.2.1/debian/patches/00list
@@ -0,0 +1,2 @@
+destdir
+sigcnamespace
--- ll-scope-0.2.1.orig/debian/patches/sigcnamespace.dpatch
+++ ll-scope-0.2.1/debian/patches/sigcnamespace.dpatch
@@ -0,0 +1,48 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## sigcnamespace.dpatch by Chris Lamb <lamby@debian.org>
+##
+## DP: Specify sigc:: namespace to avoid conflicts with signal(2)
+
+@DPATCH@
+
+diff -Nru a/dssiuiclient.hpp b/dssiuiclient.hpp
+--- a/dssiuiclient.hpp	2005-05-31 11:31:25.000000000 +0100
++++ b/dssiuiclient.hpp	2009-08-16 21:37:13.000000000 +0100
+@@ -89,13 +89,13 @@
+   // Host to UI
+   /** This signal is emitted when the host sends a new control value.
+       The parameters are the control port number and the new control value. */
+-  signal<void, int, float> control_received;
++  sigc::signal<void, int, float> control_received;
+   /** Emitted when the host sends a program change. The parameters are the 
+       bank and program numbers. */
+-  signal<void, int, int> program_received;
++  sigc::signal<void, int, int> program_received;
+   /** Emitted when the host sends a configuration value. The parameters are
+       the configuration key and the configuration value. */
+-  signal<void, const string, const string> configure_received;
++  sigc::signal<void, const string, const string> configure_received;
+   /** Emitted when the host wants the UI to be visible. A DSSI GUI should not
+       show any windows until this signal is emitted. */
+   Dispatcher show_received;
+@@ -124,7 +124,7 @@
+   void* allocate_shared_memory(int bytes);
+   
+   /** Emitted when the plugin has attached to the shared memory segment. */
+-  signal<void> plugin_attached;
++  sigc::signal<void> plugin_attached;
+   
+   /** Returns true if the plugin has attached to the shared memory segment. */
+   bool plugin_has_attached();
+diff -Nru ll-scope-0.2.1/scopewidget.hpp ll-scope-0.2.1/scopewidget.hpp
+--- ll-scope-0.2.1/scopewidget.hpp	2005-05-31 11:31:25.000000000 +0100
++++ ll-scope-0.2.1/scopewidget.hpp	2009-08-16 21:37:13.000000000 +0100
+@@ -59,7 +59,7 @@
+   void clear();
+   
+   // signals
+-  signal<void> middle_button_pressed;
++  sigc::signal<void> middle_button_pressed;
+   
+ private:
+   
