summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 18:35:13 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 18:35:13 +0200
commit608e7e94423585d4fff5e31c9c9a98b3165ed3c9 (patch)
treed6aaa12c05632529f95e00c8726f8ba0b2e0dc3c /debian
parent44a1fdd0075c7818b65d4191290cdce733687146 (diff)
new maintainer, new upstream releasedebian/3.13.4.2-1
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog358
-rw-r--r--debian/compat1
-rw-r--r--debian/control57
-rw-r--r--debian/copyright32
-rw-r--r--debian/gbp.conf3
-rw-r--r--debian/patches/01-zlib.patch28
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules54
-rw-r--r--debian/simple-scan.bug-script28
-rw-r--r--debian/simple-scan.install3
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options2
-rw-r--r--debian/source_simple-scan.py23
-rw-r--r--debian/watch2
14 files changed, 593 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f807564
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,358 @@
+simple-scan (3.13.4.2-1) unstable; urgency=medium
+
+ * New Maintainer ( Closes: #720540 ).
+ * debian/control
+ - change Standards-Version to 3.9.5 ( no changes ).
+ - Build-Depends
+ - valac <= 0.16 will be removed. Therefor change
+ valac release to >= 0.22 ( Closes: #739167, #755204 ).
+ - remove unused lsb-release ( Closes: #737536 ).
+ - add Depends on Package sample-scan
+ - dbus-x11 because dbus-launch is requested ( Closes: #750392 ).
+ - remove the upstream Vcs-Bzr.
+ * Add debian/source/options:
+ - set compression to xz & compression-level to 9 to save space.
+ * Add debian/simple-scan.bug-script to get the logfile into the bugreports.
+ * debian/copyright:
+ - add new maintainer to debian/*.
+ - replace old copyright years with 2014.
+ * debian/rules:
+ - enabling hardening.
+ - install NEWS as upstream changelog.
+ * New upstream release.
+ * Refresh patches.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 19 Jul 2014 11:08:59 +0200
+
+simple-scan (3.12.0-1) unstable; urgency=low
+
+ * QA upload.
+ * Set Maintainer to Debian QA Group.
+ * New upstream release.
+ * Refresh patches.
+ * Drop build dependency on sqlite3, no longer needed.
+
+ -- Alessio Treglia <alessio@debian.org> Thu, 10 Apr 2014 15:39:34 +0100
+
+simple-scan (3.10.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Refresh patches.
+ * Build-depend on libsqlite3-dev.
+ * Update debian/watch as latest release is being published as XZ file.
+
+ -- Alessio Treglia <alessio@debian.org> Sat, 05 Oct 2013 15:33:01 +0100
+
+simple-scan (3.6.1-1) unstable; urgency=low
+
+ * Upload to unstable.
+ * New upstream release:
+ - Fix scan no longer working after an ADF scan completes.
+ - Fix erroneous warning about failing to set ADF source.
+
+ -- Alessio Treglia <alessio@debian.org> Mon, 13 May 2013 08:59:05 +0100
+
+simple-scan (3.6.0-2) experimental; urgency=low
+
+ * Drop build-depend on gconf2. (Closes: #698251)
+ * Use dh_autoreconf instead of calling autoreconf before the configure.
+ * Properly purge the symlink to gnome-doc-utils.make once the build's
+ completed.
+
+ -- Alessio Treglia <alessio@debian.org> Wed, 16 Jan 2013 00:03:37 +0000
+
+simple-scan (3.6.0-1) experimental; urgency=low
+
+ * New upstream release.
+ * Add -DBG package. (Closes: #687213)
+ * Fix Vcs tags.
+ * Bump debhelper compatibility.
+ * Bump Standards.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 15 Jan 2013 00:51:40 +0000
+
+simple-scan (3.4.2-1) unstable; urgency=low
+
+ * New upstream bugfix release.
+ * Remove 02-file-filter-labels.patch, applied upstream.
+ * Generate with Vala 0.16. (Closes: #675664)
+ * Enable hardening flags.
+
+ -- Alessio Treglia <alessio@debian.org> Sun, 03 Jun 2012 01:01:58 +0200
+
+simple-scan (3.4.1-3) unstable; urgency=low
+
+ * Drop 20-lpi.patch as launchpad-integration has been removed from Ubuntu.
+ Thanks to Jeremy Bicha for the great work. (Closes: #673780)
+
+ -- Alessio Treglia <alessio@debian.org> Mon, 21 May 2012 14:48:40 +0200
+
+simple-scan (3.4.1-2) unstable; urgency=low
+
+ * Fix save dialog filter incorrect names. Thanks to Jeremy Bicha
+ for reporting this. (Closes: #673593) (LP: #876135)
+
+ -- Alessio Treglia <alessio@debian.org> Mon, 21 May 2012 01:33:47 +0200
+
+simple-scan (3.4.1-1) unstable; urgency=low
+
+ * New upstream bugfix release.
+ * Install apport file on Debian systems too.
+
+ -- Alessio Treglia <alessio@debian.org> Fri, 20 Apr 2012 12:08:03 +0200
+
+simple-scan (3.4.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Refresh patches.
+ * Build-dep on libcolord-dev.
+ * Replace gnome-doc-utils build-dependency with yelp-tool.
+ * Update debian/watch.
+ * Refresh debian/copyright.
+ * Bump Standards.
+
+ -- Alessio Treglia <alessio@debian.org> Wed, 04 Apr 2012 21:14:45 +0200
+
+simple-scan (3.2.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Alessio Treglia <alessio@debian.org> Wed, 07 Dec 2011 12:49:05 +0100
+
+simple-scan (3.2.0-1) unstable; urgency=low
+
+ * Upload to unstable.
+ * New upstream release
+ * Fix watch file.
+
+ -- Alessio Treglia <alessio@debian.org> Fri, 07 Oct 2011 18:14:05 +0200
+
+simple-scan (3.1.5-1) experimental; urgency=low
+
+ * New upstream release:
+ - Fix compile warnings
+ - Port to Vala
+ - Port to GTK3
+ - Port to GDBus
+ - Port to GSettings
+ - Port to colord
+ * debian/control:
+ - Port build-deps to Vala.
+ * Refresh patches.
+ * debian/watch: Look for *.bz2 tarballs.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 30 Aug 2011 12:58:27 +0200
+
+simple-scan (2.32.0.2-2) unstable; urgency=low
+
+ * Build-depend on libjpeg-dev instead of libjpeg62-dev (Closes: #634633).
+ * Bump Standards.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 19 Jul 2011 13:14:46 +0200
+
+simple-scan (2.32.0.2-1) unstable; urgency=low
+
+ * New upstream release:
+ - Add binary comment as recommended in PDF spec.
+ - Add comments about other PDF/A features.
+ - Update translations.
+ * debian/gbp.conf: Set compression to bzip2.
+ * Add debian/source/local-options file.
+
+ -- Alessio Treglia <alessio@debian.org> Thu, 21 Apr 2011 16:38:02 +0200
+
+simple-scan (2.32.0.1-2) unstable; urgency=low
+
+ * Upload to unstable.
+ * Set 3.0 (quilt) as packaging definitive format.
+ * Handle distribution specific patches.
+ * Revert previous changes in debian/rules,
+ Ubuntu-specific patches are now properly handled.
+ * Build with scour for SVG optimization.
+ * Build-depend on autotools-dev.
+ * On Ubuntu, install the apport package hook.
+
+ -- Alessio Treglia <alessio@debian.org> Wed, 16 Mar 2011 12:50:20 +0100
+
+simple-scan (2.32.0.1-1) experimental; urgency=low
+
+ * New upstream release.
+ * Update debian/gbp.conf.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 26 Oct 2010 17:18:13 +0200
+
+simple-scan (2.32.0-1) experimental; urgency=low
+
+ * New upstream release.
+ * Add Vcs-Bzr field to make Robert Ancell happy.
+ * Switch back to format 1.0
+ * Change tarball compression.
+
+ -- Alessio Treglia <alessio@debian.org> Thu, 30 Sep 2010 11:21:17 +0200
+
+simple-scan (2.31.91-1) experimental; urgency=low
+
+ * Imported Upstream version 2.31.91
+ * Refresh 01_lpi.patch.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 31 Aug 2010 01:03:07 +0200
+
+simple-scan (2.31.90.2-1) unstable; urgency=low
+
+ * New upstream bugfix release.
+
+ -- Alessio Treglia <alessio@debian.org> Tue, 17 Aug 2010 11:02:56 +0200
+
+simple-scan (2.31.90.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Remove DMUA field.
+ * Update Standards to 3.9.1.
+ * Drop Recommends on imagemagick.
+ * Build-Depends on zlib2g-dev, libjpeg62-dev.
+ * Update watch file.
+ * Refresh 01_lpi.patch patch.
+ * Switch to 3.0 (quilt) format.
+ * Add debian/gbp.conf,.gitignore files.
+ * Update changelog.
+ * Fix debian/control.
+ * Install gnome-doc-utils.make.
+ * Add zlib patch.
+ * debian/gbp.conf: Set tarball compression to bzip2.
+ * Change my email address.
+
+ -- Alessio Treglia <alessio@debian.org> Sun, 15 Aug 2010 12:45:16 +0200
+
+simple-scan (2.31.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * All patches have been applied upstream.
+ * debian/source_simple-scan.py: Sync with Ubuntu.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Thu, 13 May 2010 20:42:09 +0200
+
+simple-scan (1.0.3-1) unstable; urgency=low
+
+ * New upstream release.
+ - Set resolution on ImageMagick generated PDFs (LP: #564106).
+ * debian/patches/10-set_supported_flags.patch:
+ - Set duplex and batch-scan flags if supported by driver (LP: #566759).
+ * Set format to 1.0.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Thu, 22 Apr 2010 15:18:11 +0200
+
+simple-scan (1.0.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Fri, 16 Apr 2010 17:45:41 +0200
+
+simple-scan (1.0.0-2) unstable; urgency=low
+
+ * debian/control: Revert last change of Build-Depends field, the previous
+ situation was preferable and even correct (Closes: #577821).
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Wed, 14 Apr 2010 23:55:43 +0200
+
+simple-scan (1.0.0-1) unstable; urgency=low
+
+ * New upstream stable release.
+ * debian/rules:
+ - Call intltool-update to generate a PO template (LP: #551470).
+ * Drop debian/patches/11_thunderbird_workaround.patch patch, applied
+ upstream.
+ * Refresh 01_lpi.patch patch.
+ * debian/control:
+ - udev is not available on kfreebsd-*,hurd architectures.
+ - Add Vcs-{Git,Browser} tags.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Wed, 14 Apr 2010 12:54:33 +0200
+
+simple-scan (0.9.10-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/control:
+ - Build-depend on libdbus-glib-1-dev.
+ - Recommend imagemagick.
+ * debian/patches/11_thunderbird_workaround.patch:
+ - Workaround Thunderbird/Icedove mail bug.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Fri, 09 Apr 2010 12:41:39 +0200
+
+simple-scan (0.9.9-1) unstable; urgency=low
+
+ * New upstream release.
+ * Refresh patches.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Mon, 15 Mar 2010 17:32:51 +0100
+
+simple-scan (0.9.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Tue, 09 Mar 2010 07:25:04 +0100
+
+simple-scan (0.9.6-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/rules: Call autoreconf before calling the configure script.
+ * Bump versioned build-dep on debhelper.
+ * Remove 99_autotools.patch.
+ * Build-Depends on gnome-common.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Mon, 08 Mar 2010 14:58:35 +0100
+
+simple-scan (0.9.5-1) unstable; urgency=low
+
+ * New upstream release.
+ * Include apport hook without installing it in order to mimize the delta
+ between Debian and Ubuntu.
+ * Add README.source to document how-to patch the sources.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Thu, 18 Feb 2010 11:38:37 +0100
+
+simple-scan (0.9.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * Bump standards.
+ * Build-depend on libgudev-1.0-dev,gnome-doc-utils.
+ * Drop manpages from the packaging, upstream now provides them.
+ * Add quilt support.
+ * Provide ubuntu-specific patches without applying them in order to
+ minimze the delta.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Tue, 16 Feb 2010 00:46:46 +0100
+
+simple-scan (0.8.1-3) unstable; urgency=low
+
+ * Append --as-needed to LDFLAGS to avoid excessive dependencies;
+ thanks to Martin Pitt for reporting this (LP: #512048).
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Mon, 25 Jan 2010 00:49:34 +0100
+
+simple-scan (0.8.1-2) unstable; urgency=low
+
+ * Update debian/copyright.
+ * debian/control:
+ - No need to build-depend on debhelper >= 7.0.50.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Wed, 20 Jan 2010 11:26:17 +0100
+
+simple-scan (0.8.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Wed, 20 Jan 2010 10:59:36 +0100
+
+simple-scan (0.8.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Allow DM uploads.
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Wed, 23 Dec 2009 11:26:30 +0100
+
+simple-scan (0.7.6-1) unstable; urgency=low
+
+ * Initial release (Closes: #561790).
+
+ -- Alessio Treglia <quadrispro@ubuntu.com> Mon, 21 Dec 2009 00:31:16 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..78d90a3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,57 @@
+Source: simple-scan
+Section: gnome
+Priority: optional
+Maintainer: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Standards-Version: 3.9.5
+Build-Depends:
+ debhelper (>= 9),
+ dh-autoreconf,
+ gnome-common,
+ gnome-pkg-tools (>= 0.10),
+ intltool,
+ libcairo2-dev,
+ libcolord-dev,
+ libdbus-glib-1-dev,
+ libglib2.0-dev,
+ libgtk-3-dev,
+ libgudev-1.0-dev,
+ libjpeg-dev,
+ libsane-dev,
+ python-scour,
+ valac (>= 0.22),
+ yelp-tools,
+ zlib1g-dev
+Homepage: https://launchpad.net/simple-scan
+Vcs-Git: git://anonscm.debian.org/collab-maint/simple-scan.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/simple-scan.git
+
+Package: simple-scan
+Architecture: any
+Depends:
+ dbus-x11 (>= 1.8),
+ gnome-icon-theme,
+ xdg-utils,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: Simple Scanning Utility
+ Simple Scan is an easy-to-use application, designed to let users
+ connect their scanner and quickly have the image/document in an
+ appropriate format.
+ .
+ Simple Scan is basically a frontend for SANE - which is the same
+ backend as XSANE uses. This means that all existing scanners will
+ work and the interface is well tested.
+
+Package: simple-scan-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends:
+ simple-scan (= ${binary:Version}),
+ ${misc:Depends}
+Description: Simple Scanning Utility - debugging symbols
+ Simple Scan is an easy-to-use application, designed to let users
+ connect their scanner and quickly have the image/document in an
+ appropriate format.
+ .
+ This package provides the debugging symbols for simple-scan.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..28e96e4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Simple Scan
+Upstream-Contact: Robert Ancell <robert.ancell@canonical.com>
+Source: https://launchpad.net/simple-scan/+download
+
+Files: *
+Copyright: 2009-2014 Canonical Ltd
+License: GPL-3+
+
+Files: debian/*
+Copyright:
+ 2009-2012 Alessio Treglia <alessio@debian.org>
+ 2009 Robert Ancell <robert.ancell@canonical.com>
+ 2014 Jörg Frings-Fürst <debian@jff-webhosting.net>
+License: GPL-3+
+
+License: GPL-3+
+ 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 3 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.
+Comment:
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-3’.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..d0c1355
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+compression = xz
diff --git a/debian/patches/01-zlib.patch b/debian/patches/01-zlib.patch
new file mode 100644
index 0000000..0656f92
--- /dev/null
+++ b/debian/patches/01-zlib.patch
@@ -0,0 +1,28 @@
+Description: add zlib
+Last-Update: 2014-07-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/configure.ac
+===================================================================
+--- trunk.orig/configure.ac 2014-07-19 15:43:15.000000000 +0200
++++ trunk/configure.ac 2014-07-19 15:48:14.745109540 +0200
+@@ -38,6 +38,7 @@
+
+ AC_CHECK_HEADERS([sane/sane.h],[],[AC_MSG_ERROR([SANE not found])])
+ AC_CHECK_HEADERS([sane/saneopts.h],[],[AC_MSG_ERROR([SANE not found])])
++AC_CHECK_HEADERS([zlib.h],[],[AC_MSG_ERROR([ZLib not found])])
+
+ dnl ###########################################################################
+ dnl Documentation
+Index: trunk/src/Makefile.am
+===================================================================
+--- trunk.orig/src/Makefile.am 2014-07-19 15:43:15.000000000 +0200
++++ trunk/src/Makefile.am 2014-07-19 15:47:51.812626560 +0200
+@@ -46,6 +46,7 @@
+ $(SIMPLE_SCAN_LIBS) \
+ $(COLORD_LIBS) \
+ -lsane \
++ -lz \
+ -lm
+
+ CLEANFILES = \
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f505775
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-zlib.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c652ac6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+
+#
+# 2014-07-22 Jörg Frings-Fürst <debian@jff-webhosting.net>
+#
+# - enable hardening
+# - install NEWS as upstream changelog
+#
+#
+
+
+#
+# Hardening
+#
+#
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
+LDFLAGS+=-Wl,--as-needed
+
+%:
+ dh $@ --with=autoreconf,scour
+
+# Fixes FTBFS
+override_dh_auto_test:
+
+# Autoreconf due to 01_lpi.patch
+override_dh_autoreconf:
+ [ -e gnome-doc-utils.make ] || \
+ ln -s /usr/share/gnome-doc-utils/gnome-doc-utils.make
+ dh_autoreconf
+
+override_dh_auto_clean:
+ dh_auto_clean
+ [ ! -h gnome-doc-utils.make ] || \
+ rm gnome-doc-utils.make
+
+override_dh_auto_build:
+ cd po; intltool-update -p
+ dh_auto_build
+
+override_dh_strip:
+ dh_strip -psimple-scan --dbg-package=simple-scan-dbg
+
+override_dh_installdocs:
+ dh_installdocs --link-doc=simple-scan
+
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS
+
diff --git a/debian/simple-scan.bug-script b/debian/simple-scan.bug-script
new file mode 100644
index 0000000..87ce84a
--- /dev/null
+++ b/debian/simple-scan.bug-script
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
+LOG_FILE = '~/.cache/simple-scan/simple-scan.log'
+
+# Depending on whether reportbug is new enough, we either write the output of
+# our various commands to a file and attach them to the report (this needs
+# reportbug ≥ 6.5.0) or just write them to the body of the bug report.
+if dpkg --compare-versions "$REPORTBUG_VERSION" ge "6.5.0"; then
+
+ # We don’t clean up this directory because there is no way to know when
+ # reportbug finished running, and reportbug needs the files around.
+ # Given that those are just a couple of kilobytes in size and people
+ # generally don’t file a lot of bugs, I don’t think it’s a big deal.
+ DIR=$(mktemp -d)
+
+ echo "-- BEGIN ATTACHMENTS --" >&3
+
+ #
+ # logfile
+ #
+ if [ -f ${LOG_FILE} ]; then
+ cat ${LOG_FILE} >$DIR/logfile.user
+ echo $DIR/logfile.user >&3
+ fi
+
+ echo "-- END ATTACHMENTS --" >&3
+fi
diff --git a/debian/simple-scan.install b/debian/simple-scan.install
new file mode 100644
index 0000000..b7d9a09
--- /dev/null
+++ b/debian/simple-scan.install
@@ -0,0 +1,3 @@
+debian/source_simple-scan.py usr/share/apport/package-hooks/
+usr/bin
+usr/share
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/source_simple-scan.py b/debian/source_simple-scan.py
new file mode 100644
index 0000000..6fab46c
--- /dev/null
+++ b/debian/source_simple-scan.py
@@ -0,0 +1,23 @@
+'''apport package hook for simple-scan
+
+(c) 2010 Canonical Ltd.
+Author: Robert Ancell <robert.ancell@canonical.com>
+'''
+
+import os.path
+from apport.hookutils import *
+
+LOG_FILE = os.path.expanduser('~/.cache/simple-scan/simple-scan.log')
+driver_packages = ['libsane', 'libsane-extras', 'hplip', 'hpoj']
+
+def add_info(report):
+ attach_hardware(report)
+ versions = ''
+ for package in driver_packages:
+ try:
+ version = packaging.get_version(package)
+ except ValueError:
+ version = 'N/A'
+ versions += '%s %s\n' % (package, version)
+ report['DriverPackageVersions'] = versions
+ attach_file_if_exists(report, LOG_FILE, 'SimpleScanLog')
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9d546c6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://launchpad.net/simple-scan/+download .*/simple-scan-([0-9.]+)\.tar\.xz