summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/99-libsane1.rules2
-rw-r--r--debian/NEWS14
-rw-r--r--debian/README.source18
-rw-r--r--debian/TROUBLESHOOTING.Debian39
-rw-r--r--debian/changelog3247
-rw-r--r--debian/control159
-rw-r--r--debian/copyright1428
-rw-r--r--debian/libsane-common.dirs13
-rw-r--r--debian/libsane-common.docs8
-rw-r--r--debian/libsane-common.examples2
-rw-r--r--debian/libsane-common.install18
-rw-r--r--debian/libsane-common.maintscript1
-rw-r--r--debian/libsane-common.manpages1
-rw-r--r--debian/libsane-common.postrm10
-rw-r--r--debian/libsane-dev.dirs1
-rw-r--r--debian/libsane-dev.install5
-rw-r--r--debian/libsane1.NEWS19
-rw-r--r--debian/libsane1.README.Debian172
-rw-r--r--debian/libsane1.dirs1
-rw-r--r--debian/libsane1.docs1
-rw-r--r--debian/libsane1.install3
-rw-r--r--debian/libsane1.postinst24
-rw-r--r--debian/libsane1.symbols82
-rw-r--r--debian/not-installed8
-rw-r--r--debian/patches/0011-test.patch34
-rw-r--r--debian/patches/0035-trim-libraries-in-sane-backends.pc.in.patch24
-rw-r--r--debian/patches/0040-remove_git.patch12
-rw-r--r--debian/patches/0045-disable_lock_test_at_build_time.patch27
-rw-r--r--debian/patches/0050-Use-python3-shebang.patch16
-rw-r--r--debian/patches/0055-Fix_build_error.patch36
-rw-r--r--debian/patches/0060-cross.patch54
-rw-r--r--debian/patches/0100-source_spelling.patch194
-rw-r--r--debian/patches/0125-multiarch_dll_search_path.patch44
-rw-r--r--debian/patches/0140-avahi.patch90
-rw-r--r--debian/patches/0145-avahi.patch34
-rw-r--r--debian/patches/0150-i386-test.patch48
-rw-r--r--debian/patches/0155-hurd_PATH_MAX.patch364
-rw-r--r--debian/patches/0165-respect_local_only_parameter.patch768
-rw-r--r--debian/patches/0170-return_empty_list_when_local_devices_requested.patch43
-rw-r--r--debian/patches/0175-fix_tests.patch96
-rw-r--r--debian/patches/0180-gt68xx_fix_use-after-free_two_memleaks.patch55
-rw-r--r--debian/patches/0185-Change_output_from_sane-find-scanner.patch51
-rw-r--r--debian/patches/0190-remove-kernel-driver-for-plustek_pp.patch2949
-rw-r--r--debian/patches/0195-genesys_fix_total_file_size_exceeding.patch100
-rw-r--r--debian/patches/0200-disable-check-equal-stderr.patch23
-rw-r--r--debian/patches/0600-scanimage_manpage.patch21
-rw-r--r--debian/patches/0605-fix_groff-warnings.patch20
-rw-r--r--debian/patches/0705-kfreebsd.patch17
-rw-r--r--debian/patches/0725-fix_link_60-libsane_rule.patch33
-rw-r--r--debian/patches/series25
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/ca.po116
-rw-r--r--debian/po/cs.po110
-rw-r--r--debian/po/da.po111
-rw-r--r--debian/po/de.po114
-rw-r--r--debian/po/es.po140
-rw-r--r--debian/po/eu.po116
-rw-r--r--debian/po/fi.po114
-rw-r--r--debian/po/fr.po118
-rw-r--r--debian/po/gl.po125
-rw-r--r--debian/po/it.po112
-rw-r--r--debian/po/ja.po111
-rw-r--r--debian/po/nl.po115
-rw-r--r--debian/po/pl.po114
-rw-r--r--debian/po/pt.po112
-rw-r--r--debian/po/pt_BR.po114
-rw-r--r--debian/po/ru.po114
-rw-r--r--debian/po/sk.po112
-rw-r--r--debian/po/sv.po111
-rw-r--r--debian/po/templates.pot91
-rw-r--r--debian/po/vi.po113
-rw-r--r--debian/po/zh_CN.po105
-rwxr-xr-xdebian/rules159
-rw-r--r--debian/sane-utils.README.Debian83
-rw-r--r--debian/sane-utils.config12
-rw-r--r--debian/sane-utils.dirs1
-rw-r--r--debian/sane-utils.install6
-rw-r--r--debian/sane-utils.links1
-rw-r--r--debian/sane-utils.logrotate9
-rw-r--r--debian/sane-utils.manpages2
-rw-r--r--debian/sane-utils.postinst74
-rw-r--r--debian/sane-utils.postrm61
-rw-r--r--debian/sane-utils.preinst27
-rw-r--r--debian/sane-utils.saned.default4
-rw-r--r--debian/sane-utils.saned.init90
-rw-r--r--debian/sane-utils.saned.socket10
-rw-r--r--debian/sane-utils.saned@.service16
-rw-r--r--debian/sane-utils.templates35
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata6
-rw-r--r--debian/watch9
91 files changed, 13449 insertions, 0 deletions
diff --git a/debian/99-libsane1.rules b/debian/99-libsane1.rules
new file mode 100644
index 0000000..42d0dd4
--- /dev/null
+++ b/debian/99-libsane1.rules
@@ -0,0 +1,2 @@
+
+ENV{DEVNAME}!="", ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..12d594c
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,14 @@
+sane-backends (1.0.25-3) unstable; urgency=medium
+
+ With release 1.0.24-14 sane-config must move from the Multi-Arch same
+ packages libsane-dev to the new Multi-Arch foreign package libsane-bin.
+ .
+ Now I get the lintian error "old-style-config-script-multiarch-path". After
+ the diskussion at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820964
+ I think it is the best to remove sane-config from Debian.
+ .
+ All other options are still not Multi-Arch conform.
+ .
+ Please use pkg-config instead of sane-config from the package pkg-config.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 10 Dec 2016 13:45:15 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a62f7b9
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,18 @@
+Hello,
+
+now I use the branching model from Vincent Driessen[1].
+
+I use the gitflow-avh[2]. with the Documentation[3].
+The Debian package can be found here[4].
+
+Please upload unattended uploads use a branch feature/<your title>.
+
+
+Many thanks.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 02 Jun 2017 19:00:40 +0200
+
+[1] http://nvie.com/posts/a-successful-git-branching-model/
+[2] https://github.com/petervanderdoes/gitflow-avh
+[3] https://github.com/petervanderdoes/gitflow-avh/wiki
+[4] https://tracker.debian.org/pkg/git-flow
diff --git a/debian/TROUBLESHOOTING.Debian b/debian/TROUBLESHOOTING.Debian
new file mode 100644
index 0000000..1412219
--- /dev/null
+++ b/debian/TROUBLESHOOTING.Debian
@@ -0,0 +1,39 @@
+
+1.) usbfs: interface 1 claimed by usblp while ‘scanimage’ sets config #1
+2.) ACL: device file system does not support ACLs
+3.) TLP and sane-backends
+
+1.) usbfs: interface 1 claimed by usblp while ‘scanimage’ sets config #1
+
+If you get this error meessage you can try
+
+ echo -e "\nblacklist usblp" >> /etc/modprobe.d/blacklist.conf
+
+and reboot. After that your scanner can used.
+
+REMARK: Sometimes usblp is used to access your printer.
+
+
+2.) ACL: device file system does not support ACLs
+
+From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789593
+
+The file /etc/udev/rules.d/99-libsane1.rules uses the command "/bin/setfacl -m g:scanner:rw
+$env{DEVNAME}" to add the "scanner" group with rw access to the device permissions.
+
+In my case, with /dev on an ext4 filesystem with no ACL support enabled in the kernel, setfacl
+returns "Operation not supported". I assume this is because it's trying to add a group, which is not
+possible in its fallback mode of traditional Unix-style file permissions.
+
+As a workaround, I have substituted "/bin/chown root:scanner $env{DEVNAME}" as the command at the
+end of 99-libsane1.rules (an alternative would be to use a UDEV rule element to change the ownership).
+
+
+3.) TLP and sane-backends
+
+From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954096
+
+If the scanner frontends works only once you can add your scanner into
+the blacklist in /etc/default/tlp. For more Infos please read the bugreport.
+
+Thanks to Eduardo Casais <casaise@bluewin.ch>.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..67966a1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,3247 @@
+sane-backends (1.1.1-6) unstable; urgency=medium
+
+ * debian/rules:
+ - Remove # before $(INS_CONF).
+ * Fix build error with gcc12 (Closes: #1013034):
+ - New debian/patches/0200-disable-check-equal-stderr.patch.
+ + Thanks to Nathan Pratta Teodosio <nathan.teodosio@canonical.com>.
+ * debian/sane-utils.postrm:
+ - Fix purge error (Closes: #1008822).
+ * debian/sane-utils.postinst:
+ - Fix inetd handling (Closes: #1009354).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 02 Oct 2022 09:54:28 +0200
+
+sane-backends (1.1.1-5) unstable; urgency=medium
+
+ * debian/rules:
+ - Change configure parameter --enable-parport-directio to use only on
+ hurd-i386 (Closes: #1008488).
+ * debian/control:
+ - Change Build-Depend from virtual package libltdl3-dev to libltdl-dev.
+ * New debian/patches/0195-genesys_fix_total_file_size_exceeding.patch:
+ - Fix out off memory on high resultions (Closes: #942176)
+ Cherry-picked from upstream.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 27 Mar 2022 18:31:28 +0200
+
+sane-backends (1.1.1-4) unstable; urgency=medium
+
+ * debian/sane-utils.preinst: Remove man file only on update.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 26 Feb 2022 14:47:49 +0100
+
+sane-backends (1.1.1-3) unstable; urgency=medium
+
+ * Remove test artefact (debian/1.sh).
+ * debian/changelog:
+ - Fix spelling error (Closes: #1006116).
+ * debian/sane-utils.postinst:
+ - Remove not longer requested home directory move.
+ * debian/sane-utils.postrm:
+ - Don't remove group scanner (Closes: #1005737).
+ * debian/control:
+ - Add Recommends: sane-airscan to libsane1 (Closes: 1005817).
+ * Move man page sane-umax_pp.5 back to libsane-common (Closes: #1005736):
+ - debian/rules:
+ - Remove delete manpage from libsane-common.
+ - New debian/sane-utils.preinst to remove man page and symlink.
+ - debian/sane-utils.link:
+ - Remove create link from sane-umax_pp.5
+ - debian/control:
+ - Add new Breaks and Replace.
+ * New debian/patches/0185-Change_output_from_sane-find-scanner.patch:
+ - Improve output for possible USB scanners (Closes: #983332).
+ * debian/libsane1.symbols:
+ - Add !kfreebsd-any to missing symbol.
+ * debian/copyright:
+ - Refresh Upstream Contact and Source.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Wed, 23 Feb 2022 09:28:33 +0100
+
+sane-backends (1.1.1-2) unstable; urgency=medium
+
+ * debian/sane-utils.postinst:
+ - Fix syntax error (Closes: #1005102).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Mon, 07 Feb 2022 20:35:48 +0100
+
+sane-backends (1.1.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ - Remove not longer needed patches:
+ + 0180-gt68xx_fix_use-after-free_two_memleaks.patch
+ + 0600-scanimage_manpage.patch
+ - Refresh patches:
+ + 0605-fix_groff-warnings.patch
+ + 0100-source_spelling.patch
+ - Closes: #920216, #998616.
+ * debian/copyright:
+ - Refresh to the new upstream release.
+ - Add 2022 to myself.
+ * Remove *.lintian-overrides.
+ * debian/sane-utils.postinst:
+ - Add home dir for user/group saned (Closes: #995732).
+ * debian/sane-utils.postrm:
+ - Use --remove-home instead --remove-all-files (Closes: #1001960).
+ * Reactivate debian/patches/0125-multiarch_dll_search_path.patch
+ (Closes: #1002704).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 06 Feb 2022 10:51:26 +0100
+
+sane-backends (1.0.32-4) unstable; urgency=medium
+
+ * Upload into unstable.
+ * Declare compliance with Debian Policy 4.6.0 (No changes needed).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 20 Aug 2021 13:44:57 +0200
+
+sane-backends (1.0.32-3) experimental; urgency=medium
+
+ * Fix use-after-free and two mem leaks:
+ - New debian/patches/0180-gt68xx_fix_use-after-free_two_memleaks.patch.
+ Cherry-picked from upstream (Closes: #980311).
+ * Add some Debian files / directories into .gitignore.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 11 Jul 2021 17:44:43 +0200
+
+sane-backends (1.0.32-2) experimental; urgency=high
+
+ * debian/sane-utils.postrm: Fix pathfind handling (Closes: #989879).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Wed, 16 Jun 2021 18:52:25 +0200
+
+sane-backends (1.0.32-1) experimental; urgency=medium
+
+ * New Upstream release:
+ - Refresh patches:
+ + patches/0040-remove_git.patch
+ + patches/0045-disable_lock_test_at_build_time.patch
+ + patches/0060-cross.patch
+ + patches/0140-avahi.patch
+ + patches/0145-avahi.patch
+ + patches/0150-i386-test.patch
+ + patches/0155-hurd_PATH_MAX.patch
+ + patches/0600-scanimage_manpage.patch
+ + patches/0705-kfreebsd.patch
+ + patches/0725-fix_link_60-libsane_rule.patch
+ - Remove not longer needed patches:
+ + patches/0100-source_spelling.patch
+ + patches/0125-multiarch_dll_search_path.patch
+ + patches/0055-Fix_build_error.patch
+ + patches/0165-respect_local_only_parameter.patch
+ + patches/0170-return_empty_list_when_local_devices_requested.patch
+ - New Patches:
+ + patches/0175-fix_tests.patch to fix build - tests.
+ + patches/0605-fix_groff-warnings.patch to fix groff warnings.
+ - Fix ftbfs with autoconf 2.70 (Closes: #978902).
+ * debian/copyright:
+ - Refresh to the new upstream release.
+ * debian/libsane1.symbols:
+ - Add 1 new symbol.
+ - Remove MISSING from last release.
+ * debian/libsane-common.lintian-overrides:
+ - Remove double lines.
+ * New debian/libsane1.lintian-overrides to override afe spelling.
+ * TROUBLESHOOTING.Debian:
+ - Add part if sane-backends and tlp runs on the same system
+ (Closes: #954096, #887745).
+ * Declare compliance with Debian Policy 4.5.1 (No changes needed).
+ * Fix FTCBFS: Annotate python3-minimal dependency :any. (Closes: #984747).
+ - Thanks to Helmut Grohne <helmut@subdivi.de>.
+ * debian/sane-utils.postrm:
+ - Fix package doesn't purge cleanly (user/group not purged)
+ (Closes: #987837).
+ - Fix package doesn't purge cleanly (fix test with pathfind())
+ (Closes: #987805).
+ * Fix filtering out libsane-dll (Closes: #971592):
+ - Cherry-picked from 1.0.25-4.1+deb9u2 (Thanks to
+ Sylvain Beucler <beuc@beuc.net>).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 01 May 2021 12:09:06 +0200
+
+sane-backends (1.0.31-4) unstable; urgency=medium
+
+ * debian/rules:
+ - Add the --disable-locking option to dh_auto_configure.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 04 Dec 2020 17:08:57 +0100
+
+sane-backends (1.0.31-3) unstable; urgency=medium
+
+ * debian/sane-utils.postrm (Closes: #941625):
+ - On purge remove pid file if sysvinit are used.
+ * debian/99-libsane1.rules (Closes: #960083):
+ - Add condition ENV{DEVNAME}!="" to run setfacl only on usb scanners.
+ * debian/rules:
+ - Replace the --enable-avahi option with an --with-avahi.
+ - Remove the --enable-locking option from dh_auto_configure
+ (Closes: #973490, #971584).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Mon, 02 Nov 2020 08:19:03 +0100
+
+sane-backends (1.0.31-2) unstable; urgency=medium
+
+ * Upload into unstable (Closes: #969592).
+ * New patch:
+ - debian/patches/0170-return_empty_list_when_local_devices_requested.patch.
+ * Remove not longer needed patches from debian/patches:
+ - 0160-big_endian.patch
+ - 0700-mk_reproducible_results.patch
+ - 0715-20-sane.hwdb_multi-arch.patch
+ * Fix typos in the Forwarded tag in the patch headers.
+ * debian/upstream/metadata:
+ - Change to gitlab.
+ * Fix some trailing whitespaces / blank lines.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 27 Sep 2020 13:38:48 +0200
+
+sane-backends (1.0.31-1~experimental1) experimental; urgency=medium
+
+ * New upstream release (Closes: #968949, #962539).
+ * Add back libsane transitional package, to ease upgrades (Closes: #962936):
+ - debian/control: Add package libsane as oldlibs.
+ Thanks to Gianfranco Costamagna <locutusofborg@debian.org>.
+ * debian/copyright:
+ - Fix lintian *-globbing-patterns errors.
+ - Refresh to the new upstream release.
+ * Convert debian/po/de.po to utf-8.
+ * New patches:
+ - debian/patches/0045-disable_lock_test_at_build_time.patch
+ - debian/patches/0050-Use-python3-shebang.patch
+ - debian/patches/0055-Fix_build_error.patch
+ - debian/patches/0165-respect_local_only_parameter.patch
+ * debian/rules:
+ - Use --enable-locking instead --disable-locking.
+ * debian/control:
+ - Add libpoppler-glib-dev to Build-Depends.
+ - Add ipp-usb to libsane1 Recommends (Closes: #968953).
+ * debian/libsane1.symbols:
+ - Remove 7 not longer available symbols.
+ * debian/saned@.service:
+ - Switch Standard[Output|Error] from syslog to append:/var/log/saned.log.
+ - New debian/sane-utils.logrotate to pack and remove old logs.
+ * debian/libsane-common.lintian-overrides:
+ - Rename tags.
+ * debian/patches/0125-multiarch_dll_search_path.patch:
+ - Add $(prefix)/lib64/sane to lib search path (Closes: #931297).
+ * Fix FTCBFS: (Closes: #948711)
+ - 0060-cross.patch: Make gphoto2 detection use the host architecture
+ pkg-config.
+ - Build tools/sane-desc for the build architecture.
+ - Thanks to Helmut Grohne <helmut@subdivi.de>.
+ * Remove files no longer needed:
+ - debian/saned.socket
+ - debian/saned@.service
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 05 Sep 2020 17:48:20 +0200
+
+sane-backends (1.0.30-1~experimental2) experimental; urgency=medium
+
+ * debian/not-installed:
+ - Add usr/share/doc/libsane/backend-writing.txt.
+ * debian/libsane1.symbols:
+ - Add (arch=!hurd-i386) to cmsg@Base.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 31 May 2020 09:23:01 +0200
+
+sane-backends (1.0.30-1~experimental1) experimental; urgency=medium
+
+ * New upstream release (Closes: #961302):
+ - fixes CVE-2020-12867, CVE-2020-12862, CVE-2020-12863, CVE-2020-12865,
+ CVE-2020-12861, CVE-2020-12864.
+ * Migrate to debhelper 13:
+ - Bump minimum debhelper-compat version in debian/control to = 13.
+ * debian/watch: Fix to new gitlab download structure.
+ * debian/rules:
+ - Remove DEB_LDFLAGS_MAINT_APPEND after lintian warning.
+ - Add override_dh_installman-arch to remove obsolete man page sane-config.1.
+ * debian/control:
+ - Replace Conflicts with Breaks.
+ * Remove debian/libsane-dev.preinst because sane-config was removed in
+ oldstable.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 24 May 2020 19:45:00 +0200
+
+sane-backends (1.0.29-1~experimental4) experimental; urgency=medium
+
+ * Add HOST_NAME_MAX to debian/patches/0155-hurd_PATH_MAX.patch.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 25 Apr 2020 15:38:30 +0200
+
+sane-backends (1.0.29-1~experimental3) experimental; urgency=medium
+
+ * Refresh patches/0155-hurd_PATH_MAX.patch.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 12 Apr 2020 15:55:41 +0200
+
+sane-backends (1.0.29-1~experimental2) experimental; urgency=medium
+
+ * New debian/patches/0150-i386-test.patch:
+ - Remove 4 tests failed tests on i386.
+ * New patches/0155-hurd_PATH_MAX.patch:
+ - Fix missing PATH_MAX on hurd-i386.
+ * New patches/0160-big_endian.patch:
+ - Fix FTBFS on big endian systems.
+ * Remove now useless lintian overrides.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Wed, 01 Apr 2020 22:36:36 +0200
+
+sane-backends (1.0.29-1~experimental1) experimental; urgency=medium
+
+ * New upstream release (Closes: #951213, #942727, #944998).
+ - New debian/patches/0040-remove_git.patch to remove git access at
+ build time.
+ - Refresh patches:
+ + debian/patches/0700-mk_reproducible_results.patch.
+ + debian/patches/0710-sane-desc.c_debian_mods.patch.
+ + debian/patches/0715-20-sane.hwdb_multi-arch.patch.
+ + debian/patches/0725-fix_link_60-libsane_rule.patch.
+ + debian/patches/0100-source_spelling.patch.
+ - Refresh symbols file.
+ - Refresh lintian overrides.
+ * debian/rules:
+ - Add --exclude=/sane/ to override_dh_makeshlibs-arch to generate
+ only public symbols (Closes: #911597).
+ - Don't install obsolete hal fdi file (Closes: #913282).
+ * Remove architecture dependent symbols files.
+ * Merge release 1.0.27-3.2 into source tree.
+ - Thanks to John Paul Adrian Glaubitz for the bug fix.
+ * New debian/patches/0725-fix_link_60-libsane_rule.patch:
+ - Fix directory for 20-sane.hwdb (Closes: #916239).
+ * New debian/patches/0155-genesys_gl847.patch:
+ - Fix discolored bar on GL847 chip based scanners (Closes: #912603).
+ * Fix missing set device to group scanner (Closes: #918358);
+ - New debian/99-libsane.rules.
+ - debian/libsane.install: Install File into /etc/udev/rules.d/
+ - Change debian/TROUBLESHOOTING.Debian
+ * debian/sane-utils.config: Remove the RUN parameter in compliance with
+ Debian Policy Manual section 9.3.3.1 (Closes: #915197).
+ * debian/copyright:
+ - Add year 2020 for debian/*.
+ - Add missing Uploaders to debian/*.
+ - Refresh for the new upstream release.
+ * Fix the lintian warning "libsane: package-name-doesnt-match-sonames
+ libsane1":
+ - debian/control: rename package libsane to libsane1.
+ - debian/rules: Change filenames and directories from libsane to libsane1.
+ - Rename debian/99-libsane.rules to debian/99-libsane1.rules.
+ * Refresh debian/patches/0100-source_spelling.patch.
+ * New debian/libsane-common.lintian-overrides and
+ debian/libsane1.lintian-overrides to override false positive spelling-error.
+ * Fix autopkgtest.
+ * Migrate to debhelper 12:
+ - Change debian/compat to 12.
+ - Bump minimum debhelper version in debian/control to >= 12.
+ * Declare compliance with Debian Policy 4.5.0 (No changes needed).
+ * New debian/sane-utils.lintian-overrides to override false positive missing
+ init.d script.
+ * debian/control: Add Pre-Depends ${misc:Pre-Depends} to install invoke-rc.d.
+ * debian/watch: Rewrite for the new Gitlab directory layout.
+ * Rename debian/NEWS.Debian to debian/NEWS.
+ * debian/control:
+ - Add missing depends.
+ - Change Conflicts/Replaces to the new release.
+ - Add Rules-Requires-Root.
+ * debian/*.manpages: Rewrite to install from new directory.
+ * Switch to debhelper-compat:
+ - debian/control: Replace debhelper with debhelper-compat.
+ - Remove debian/compat.
+ * Install all docs:
+ - New debian/libsane-common.dirs, debian/libsane-common.docs,
+ debian/not-installed.
+ * Remove autopkgtest.
+ * Remove unused files and patches.
+ * Reuse debian/patches/0125-multiarch_dll_search_path.patch (Closes: #931297).
+ * Override lintian error gzip-file-is-not-multi-arch-same-safe:
+ - Update debian/libsane1.lintian-overrides.
+ - New debian/libsane-dev.lintian-overrides.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Tue, 17 Mar 2020 20:02:16 +0100
+
+sane-backends (1.0.27-3.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * New debian/patches/0720-mustek_usb2-Avoid-stack-smashing.patch
+ - Fix regression in the mustek_usb2 backend (Closes: #886777).
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sat, 23 Mar 2019 17:38:37 +0100
+
+sane-backends (1.0.27-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Rename libsane1 back to libsane, make the renamed package provide libsane1
+ (Closes: #908681)
+
+ -- Laurent Bigonville <bigon@debian.org> Fri, 02 Nov 2018 20:30:06 +0100
+
+sane-backends (1.0.27-3) unstable; urgency=medium
+
+ * debian/rules:
+ - Remove superfluous man page sane-config.1 (Closes: #910255).
+ (Thanks to Michael Westwind <wormrunner@gmail.com>).
+ * Declare compliance with Debian Policy 4.2.1 (No changes needed).
+ * Remove outdated makedev dependency (Closes: #907017).
+ * Reactivate and refresh debian/patches/0125-multiarch_dll_search_path.patch
+ to allow driver from non-multiarch directories (Closes: #910103).
+ * debian/control:
+ - Change Breaks to Conflicts for binary package libsane1.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 05 Oct 2018 07:18:56 +0200
+
+sane-backends (1.0.27-2) unstable; urgency=medium
+
+ * debian/control:
+ - Remove obsolete section about sane-backends-extras.
+ - Revert change from Breaks to Conflicts for binary package libsane1
+ (Closes: #908681).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Thu, 27 Sep 2018 08:30:18 +0200
+
+sane-backends (1.0.27-1) unstable; urgency=medium
+
+ * Upload to unstable (Closes: #905838, #905913).
+ * debian/control:
+ - Change Breaks to Conflicts for binary package libsane1
+ (Thanks to Jeremy Bicha <jbicha@debian.org>).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 31 Aug 2018 11:00:57 +0200
+
+sane-backends (1.0.27-1~experimental6) experimental; urgency=medium
+
+ * Refresh symbols file for sparc64.
+ * Rewrite debian/watch for gitlab (Thanks to
+ Sebastiaan Couwenberg <sebastic@xs4all.nl>).
+ * Declare compliance with Debian Policy 4.1.5 (No changes needed).
+ * Replace manual installation of systemd files with
+ installation via dh_installsystemd (Closes: #905275).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Fri, 03 Aug 2018 18:17:11 +0200
+
+sane-backends (1.0.27-1~experimental5) experimental; urgency=medium
+
+ * debian/rules:
+ - Add rule to enable --enable-parport-directio for all
+ architectures except hurd-i386.
+ * debian/control:
+ - Fix FTBFS on kfreebsd-*:
+ + Exclude libsnmp-dev from Build-Depends for kfreebsd-any.
+ - Change VCS-* to point to the new repository.
+ * Refresh symbols files for the following architectures:
+ - arm64, hppa, m68k, mips, mips64el, mipsel, powerpc,
+ powerpcspe, ppc64, ppc64el, s390x, sh4.
+ * Refresh debian/patches/0100-source_spelling.patch to
+ fix typo in backend/apple.c.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Thu, 31 May 2018 08:48:38 +0200
+
+sane-backends (1.0.27-1~experimental4) experimental; urgency=medium
+
+ * Change to my new email address.
+ * debian/rules:
+ - Add override_dh_autoreconf to prevent removal of libtool.m4
+ (Closes: #887032).
+ - Remove outdated configure parameter --enable-translations.
+ - Add configure parameter --enable-parport-directio
+ for better parallel port handling.
+ - Rename configure parameter --with-docdir to --docdir.
+ - Fix source directory for backend-writing.txt.
+ * debian/copyright:
+ - Use secure copyright format URI.
+ * Migrate to debhelper 11:
+ - Change debian/compat to 11.
+ - Bump minimum debhelper version in debian/control to >= 11.
+ * Declare compliance with Debian Policy 4.1.4:
+ - Remove the RUN parameter from /etc/default/saned and /etc/init.d/saned
+ in compliance with Debian Policy Manual section 9.3.3.1.
+ * Refresh debian/patches/0100-source_spelling.patch.
+ * New debian/patches/0715-20-sane.hwdb_multi-arch.patch:
+ - Remove buildtime from 20-sane.hwdb to make the file ready for multi-arch.
+ (Closes: #880391)
+ * debian/libsane1.README.Debian:
+ - Replace ConsoleKit with ConsoleKit/systemd-logind (Closes: #872364).
+ * debian/control:
+ - Add libsnmp-dev to Build-Depends to enable SNMP support.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 14 Apr 2018 13:30:56 +0200
+
+sane-backends (1.0.27-1~experimental3) experimental; urgency=medium
+
+ * debian/control:
+ - Drop outdated Recommends libsane-extras-dev to libsane-dev
+ binary package (Closes: #868265).
+ - Drop outdated texlive and texlive-latex-extra Build-Dependency.
+ * debian/rules:
+ - Drop create and install the /etc/sane.d/dll.d directory.
+ - Move rules from override_dh_install-arch and override_dh_auto_install-arch
+ to override_dh_install-indep and override_dh_auto_install-indep
+ to build the arch all packages without error (CLoses: #870455).
+ - At dh_systemd_enable use debian/saned.socket instead saned.socket.
+ - Use DEB* vars via default.mk instead own functions.
+ * Move libsane-common.install.in to libsane-common.install.
+ * debian/copyright:
+ - Add year 2017 for debian/*.
+ * New debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch:
+ - Initializing usb_mode (Closes:# 869673).
+ Thanks to Florian Lindemann <linde@bfw-online.de> and
+ Olaf Meeuwissen <paddy-hack@member.fsf.org>.
+ * Move install of man pages from debian/rules to libsane-common.manpages and
+ sane-utils.manpages (Closes: #872366).
+ * Move umax_pp.5 from libsane-common to sane-utils.
+ * debian/sane-utils.saned.init:
+ - Add parameter to --retry at the stop section (Closes: #871543).
+ * libsane1.README.Debian:
+ - Remove references to the libsane-extras package.
+ * Correct typos in the previous changelog entry.
+ * Declare compliance with Debian Policy 4.1.1 (No changes needed).
+ * Move rm_conffile from libsane-common.preinst to libsane-common.maintscript.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 28 Oct 2017 13:26:26 +0200
+
+sane-backends (1.0.27-1~experimental2) experimental; urgency=medium
+
+ * debian/rules:
+ - Rename libsane.udev to libsane1.udev to make sure that
+ 60-libsane1.rules is actually created (Closes: #868312).
+ * Rename libsane.udev to libsane1.udev in TROUBLESHOOTING.Debian
+ and libsane1.README.Debian.
+ * debian/control:
+ - Add Breaks and Replaces against libsane to libsane1
+ binary package (Closes: #868308).
+ - Remove outdated Recommends libsane-extras to libsane1
+ binary package (Closes: #868265).
+ - Remove [!hurd-i386] from libusb-1.0-0-dev Build-Dependency.
+ * debian/sane-utils.postrm:
+ - Add set -e and silence update-inetd calls with "|| true".
+ * Regenerate symbols files from build logs (Closes: #868309).
+ * Use the hwdb+udev format (Closes: #869244):
+ - debian/rules: Call sane-desc with -m udev+hwdb and -m hwdb,
+ disable -m udev+acl call in override_dh_installudev-arch.
+ - New file libsane1.dirs for /lib/udev/hwdb.d/.
+ * Drop both dh-autoreconf/dh-systemd from both Build-Depends
+ and dh command line as both are enabled by default for
+ dh compat level 10.
+ * Drop --parallel from the dh command line because parallel
+ builds are enabled by default for dh compat level 10.
+ * Drop .la files from libsane1.install (Closes: #868307).
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 28 Jul 2017 13:53:30 +0200
+
+sane-backends (1.0.27-1~experimental1) experimental; urgency=medium
+
+ * New upstream release
+ - sane.ps is not longer included (Closes: #818544).
+ - Fix a timing issue on USB3 hardware (Closes: #792465).
+ - Support CanoScan LiDE 120 (Closes: #853873).
+ - Refresh patches:
+ + 0020-nousbtest.patch
+ + 0025-multiarch_manpages_libdir.patch
+ + 0705-kfreebsd.patch
+ + 0710-sane-desc.c_debian_mods.patch
+ - Remove patches applied upstream:
+ + 0005-libsane_deps.patch
+ + 0010-unneeded_doc.patch
+ + 0015-frontend_libs.patch
+ + 0030-ppc64el.patch
+ + 0100-source_spelling.patch
+ + 0105-hp3900.patch
+ + 0110-dll_backend_conf.patch
+ + 0115-license_typo.patch
+ + 0120-typo.patch
+ + 0125-multiarch_dll_search_path.patch
+ + 0135-saned-remotescanners.patch
+ + 0500-CVE-2017-6318.patch
+ + 0605-man_typo.patch
+ + 0700-mk_reproducible_results.patch
+ * New debian/patches/0140-avahi.patch
+ - Avoid assertion failure when net_avahi_init failed (Closes: #861112).
+ * New debian/patches/0145-avahi.patch:
+ - Fix race condition (Closes: #743420).
+ * debian/rules:
+ - Remove outdated configure flag --enable-libusb_1_0.
+ - Add new configure flag --withusb.
+ - Use dh_auto_configure instead of ./configure.
+ * Remove outdated debian/libsane-dev.NEWS (Closes: #852842).
+ * debian/sane-uitls.postinst:
+ - Add "|| true" after adduser call to continue installation if
+ adduser fails (Closes: #860078).
+ * Refresh debian/libsane.symbols.
+ * New README.source to explain the branching model used.
+ * Use the automatic debug symbol packages:
+ - Remove libsane-dbg section from debian/control.
+ - Remove override_dh_strip from debian/rules.
+ * Declare compliance with Debian Policy 4.0.0. (No changes needed).
+ * debian/saned.socket:
+ - Change MaxConnections to the default value of 64 (Closes: 850649).
+ * Refresh debian/copyright.
+ * Rename libsane to libsane1 to match with the soname.
+ * Remove useless *.lintan-overrides.
+ * Remove autopkgtest:
+ - The test needs networking which isn't available on the buildds.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 20 Jun 2017 23:17:47 +0200
+
+sane-backends (1.0.25-4.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Correct missing error handler in (generated) prerm script by dropping the
+ "error" handler entirely; it was only printing a generic message anyway.
+ (Closes: #862334)
+
+ -- Chris Lamb <lamby@debian.org> Sun, 21 May 2017 10:04:48 +0200
+
+sane-backends (1.0.25-4) unstable; urgency=medium
+
+ * CVE-2017-6318:
+ - New debian/patches/0500-CVE-2017-6318.patch
+ + cherry-picked from upstream to fix memory corruption and
+ information leakage (Closes: #854804).
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 19 Apr 2017 12:07:38 +0200
+
+sane-backends (1.0.25-3) unstable; urgency=medium
+
+ * debian/rules:
+ - Fix FTBFS when building with 'dpkg-buildpackage -A' (Closes: #806104):
+ + Split file into *-arch and *-indep parts.
+ + Move "empty dependency_libs in all .la files" to
+ override_dh_makeshlibs-arch.
+ + Move installing of doc files for libsane-dev to
+ override_dh_installdocs-arch.
+ + New debian/libsane-dev.dirs.
+ * Drop package libsane-bin binary package (Closes: #820964):
+ - Remove libsane-bin binary package section, remove it from
+ reverse dependencies of other packages in debian/control.
+ - Remove debian/libsane-bin.*.
+ - New debian/NEWS.Debian.
+ * debian/patches:
+ - Refresh and fix new typos:
+ + 0100-source_spelling.patch
+ + 0605-man_typo.patch.
+ - New 0135-saned-remotescanners.patch:
+ + Add patch to allow saned to report network-attached
+ devices (Closes: #821255).
+ Thanks to Dhionel Díaz <ddiaz@cenditel.gob.ve>.
+ * debian/watch:
+ - Bump version to 4 (no changes required).
+ * debian/control:
+ - Bump Standards-Version to 3.9.8 (no changes required).
+ - Change Vcs-Browser to secure URI.
+ - Add lsb-base to Depends for sane-utils.
+ * Add year 2016 for debian/* in debian/copyright.
+ * debian/sane-utils.saned.init:
+ - Fix handling of stop and restart actions (Closes: #829244).
+ Thanks to Chris Lamb <lamby@debian.org>.
+ * Remove unused lintian overrides.
+ * Migrate to debhelper 10:
+ - Change debian/compat to 10.
+ - Bump minimum debhelper version in debian/control to >= 10.
+ - Refresh debian/patches to add changes in Makefile.am:
+ + 0005-libsane_deps.patch
+ + 0010-unneeded_doc.patch
+ + 0015-frontend_libs.patch
+ + 0025-multiarch_manpages_libdir.patch
+ + 0125-multiarch_dll_search_path.patch
+ - Refresh debian/libsane.shlibs
+ - Refresh debian/libsane.symbols
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 10 Dec 2016 13:45:15 +0100
+
+sane-backends (1.0.25-2) unstable; urgency=medium
+
+ * Undelete, refresh and rename debian/patches/
+ 0125-multiarch_dll_search_path.patch (Closes: #804240).
+ * debian/rules:
+ - Remove "UPSTREAM_VERSION" and use "VERSION" instead.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 07 Nov 2015 08:50:49 +0100
+
+sane-backends (1.0.25-1) unstable; urgency=medium
+
+ * New upstream release (Closes: #740256).
+ * Refresh patches:
+ - debian/patches/0005-mk_reproducible_results.patch
+ - debian/patches/001-scanimage_manpage.patch
+ - debian/patches/ppc64el.patch
+ - debian/patches/unneeded_doc.patch
+ - debian/patches/libsane_deps.patch
+ - debian/patches/frontend_libs.patch
+ - debian/patches/multiarch_manpages_libdir.patch
+ - debian/patches/dll_backend_conf.patch
+ - debian/patches/sane-desc.c_debian_mods.patch
+ * Remove patches applied upstream:
+ - debian/patches/0105-artec_missing_home_environment.patch
+ - debian/patches/multiarch_dll_search_path.patch
+ - debian/patches/fix-FTBFS-format-not-a-string-literal-error.patch
+ - debian/patches/kodakaio.patch
+ - debian/patches/saned.man.patch
+ - debian/patches/man-page-spelling.patch
+ - debian/patches/source-spelling.patch
+ - debian/patches/hp5370c.patch
+ - debian/patches/out_of_bounds.patch
+ - debian/patches/0500-systemd_configure.patch
+ - debian/patches/0100-usb3-corrections.patch
+ * Remove obsolete lintian-overrides.
+ * Rename and reorder patches.
+ * New debian/patches/0100-source_spelling.patch:
+ - Correct typo in backend/hp-scl.c
+ * debian/libsane-common.postrm:
+ - Move #DEBHELPER# token to the end of the script.
+ * debian/libsane-common.preinst:
+ - Use dpkg-maintscript-helper to remove obsolete configuration
+ file /etc/sane.d/v4l.conf during upgrade (Closes: #803535).
+ * debian/rules:
+ - Remove parameter -c0 from dh_makeshlibs call.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 02 Nov 2015 09:04:17 +0100
+
+sane-backends (1.0.24-14) unstable; urgency=medium
+
+ * debian/TROUBLESHOOTING.Debian:
+ - Add troubleshooting section for cases where the device file
+ system does not support ACLs (Closes: #789593).
+ * debian/control:
+ - To prevent error messages on startup, disable snmp by
+ removing libsnmp-dev from Build-Depends (Closes: #787567).
+ * debian/sane-utils.lintian-overrides:
+ - Add maintainer-script-should-not-use-adduser-system-without-home.
+ * Architecture-dependent binaries (Closes: #786923):
+ - debian/control:
+ + New package libsane-bin:
+ Move architecture-dependent binaries from libsane-dev to libsane-bin.
+ + Remove useless build dependency "dh-exec (>=0.3)".
+ - debian/rules:
+ + Delete command to move sane-config to sane-config.${DEB_HOST_MULTIARCH}.
+ - New debian/libsane-dev.preinst:
+ + Remove /usr/bin/sane-config.*.
+ + Remove symbolic link to /usr/bin/sane-config.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 30 Aug 2015 19:02:57 +0200
+
+sane-backends (1.0.24-13) unstable; urgency=medium
+
+ * debian/rules:
+ - Move architecture-dependent file sane-config to
+ sane-config.${DEB_HOST_MULTIARCH} (Closes: #786923).
+ * debian/control:
+ - Add "dh-exec (>=0.3)" to Build-Depends. dh-exec is required
+ for the new file libsane-dev.links.
+ * New debian/libsane-dev.links:
+ - Create link from sane-config.${DEB_HOST_MULTIARCH} to
+ sane-config.
+ * New debian/upstream/metadata:
+ - Add some DEP-12 upstream metadata.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 27 May 2015 12:25:28 +0200
+
+sane-backends (1.0.24-12) unstable; urgency=medium
+
+ * debian/sane-utils.postinst:
+ - Fix home directory move (Closes: #785709).
+ * debian/patches/0005-mk_reproducible_results.patch:
+ - Build sane.ps without comments containing date/time.
+ * New debian/patches/0105-artec_missing_home_environment.patch:
+ - Test the environment variable $HOME before use (Closes: #786452).
+ * debian/control:
+ - Add "Multi-Arch: same" to package libsane-dev to make
+ it co-installable (Closes: #786560).
+ * New debian/sane-utils.links:
+ - Add a link from /dev/null to /lib/systemd/system/saned.service
+ to prevent start via fallback script /etc/init.d/saned.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 25 May 2015 09:23:16 +0200
+
+sane-backends (1.0.24-11) unstable; urgency=medium
+
+ * debian/control:
+ - Add dpkg (>= 1.15.7.2) to Pre-Depends of package libsane-common since
+ dpkg needs to be installed for the rm_conffile command to work
+ (Closes: #784763).
+ * debian/libsane-common.preinst:
+ - Fix syntax for calling dpkg-maintscript-helper.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 08 May 2015 22:02:11 +0200
+
+sane-backends (1.0.24-10) unstable; urgency=high
+
+ * New debian/TROUBLESHOOTING.debian:
+ - Add part for "usbfs: interface 1 claimed by usblp while
+ ‘scanimage’ sets config #1 (Closes: #726588).
+ * Add reference to TROUBLESHOOTING.debian in debian/README.debian.
+ * New debian/patches/001-scanimage_manpage.patch:
+ - Add remark for parameter to manpage (Closes: #418630).
+ * New debian/patches/0005-mk_reproducible_results.patch:
+ - Make builds reproducible.
+ * debian/control:
+ - On package libsane-dev change Depends from libgphoto2-2-dev to
+ libgphoto2-dev (auto-libgphoto2 transition) (Closes: #783822).
+ - On package libsane remove package hpoj from Suggests.
+ - Remove useless replaces because latest release in stable is 1.0.22-7:
+ + sane-utils: libsane (<< 1.0.11-4)
+ + libsane-common: libsane (<< 1.0.22-4~)
+ + libsane: libsane-extras (<< 1.0.18.14)
+ + libsane-dev: libsane-extras-dev (<< 1.0.18.14)
+ + libsane-dbg: libsane-extras-dbg (<< 1.0.18.14)
+ - Remove "libv4l-dev [linux-any]" from Build-Depends and Depends.
+ - To enable net SNMP, add libsnmp-dev to Build-Depends.
+ - To autodetect network scanners in kodakaio, add libcups2-dev
+ to Build-Depends.
+ - Remove unnecessary *-dev and pkg-config from Depends of libsane-dev.
+ * debian/rules:
+ - Enable pnm backend for testing.
+ - Remove override_dh_builddeb because xz compression is now standard.
+ - Add configure parameter --without-vl4 to disable v4l backend:
+ + The backend was written for kernel 2.4 and v4l, now
+ we are at kernel 3.16 and v4l2 (Closes: #446015).
+ - Remove configure parameter -with-snmp=no to enable net SNMP.
+ * debian/saned@.service:
+ - Remove Alias from [Install] section (Closes: #778268).
+ * sane-utils.[postinst|postrm]:
+ - Replace fixed path with a POSIX-compliant shell function to check
+ the existence of a command.
+ * Add autopkgtests:
+ - debian/control:
+ + Add Testsuite: autopkgtest.
+ - New debian/tests/control.
+ - New debian/tests/start-net:
+ + Test network interface activation with systemd.
+ * Add symbols file:
+ - debian/rules: Rewrite override_dh_makeshlibs.
+ * Comment out "set -e" at debian/sane-utils.postrm
+ to fix some minor errors during piuparts.
+ * debian/saned@.service:
+ - Change StandardInput=socket to StandardInput=null to enable
+ working over network (Closes: #782971).
+ * debian/libsane-common.preinst:
+ - Remove oldstyle rm_conffile() function.
+ - Remove obsolete transition from the old-style udev setup.
+ - Add removal for obsolete /etc/sane.d/v4l.conf via
+ dpkg-maintscript-helper command rm_conffile.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 08 May 2015 11:01:35 +0200
+
+sane-backends (1.0.24-9) unstable; urgency=medium
+
+ * debian/sane-utils.postinst:
+ - Correct typo and add missing -q option to grep (Closes: #773826).
+ Thanks to "Nelson A. de Oliveira" <naoliv@debian.org>.
+ - Add start/stop around the move of the home directory
+ if scanbd is running during postinst (Closes: #774941).
+ Thanks to "Olaf Meeuwissen" <olaf.meeuwissen@avasys.jp>.
+ * debian/rules:
+ - Add line to extract the version from debian/changelog.
+ - Add version string to dpkg-gensymbols.
+ * debian/copyright:
+ - Add year to 2015 on my debian/* tag.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 10 Jan 2015 13:56:10 +0100
+
+sane-backends (1.0.24-8) unstable; urgency=medium
+
+ * New debian/patches/0100-usb3-corrections.patch:
+ - Cherry-picked from upstream to address
+ USB3/xhci problems (Closes: #738592).
+ * debian/saned@.service:
+ - Move Alias to section [Install] (Closes: #773371).
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 27 Dec 2014 09:36:22 +0100
+
+sane-backends (1.0.24-7) unstable; urgency=medium
+
+ * debian/rules:
+ - Split dh_installinit in two parts for systemd and SysV-style.
+ - Install systemd files without dh to prevent
+ side effects (Closes: #773320).
+ - Override dh_systemd_enable to not enable saned.socked.
+ * debian/sane-utils.lintian-overrides:
+ - Override systemd-no-service-for-init-script.
+ * debian/sane-utils.postrm:
+ - Add purge for the manually installed files.
+ * debian/sane-utils.README.Debian:
+ - Add instructions for use with systemd.
+ * debian/sane-utils.saned.default:
+ - Add note for enabling under systemd.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 17 Dec 2014 09:18:47 +0100
+
+sane-backends (1.0.24-6) unstable; urgency=medium
+
+ * Revert changes from 1.0.24-5.
+ * Rename sane-utils.saned.service to sane-utils.saned@.service to
+ install it as template (Closes: #769196).
+ * For test for newer versions of systemd:
+ - New debian/patches/0500-systemd_configure.patch
+ + Add part into configure.in to find systemd >=209
+ - debian/control:
+ + Add autoconf and libsystemd-dev to Built-Depends.
+ - debian/rules:
+ + Add autoconf before running configure to build the patched
+ configure script.
+ - Thanks to Michael Biebl <biebl@debian.org>.
+ * Change sane-utils.saned@.service and sane-utils.saned.socket
+ for running as template (Closes: #772955).
+ * debian/sane-utils.postinst:
+ - Add part to move the homedir from /home/saned to /var/lib/saned.
+ (Closes: #665915)
+ * New debian/sane-utils.lintian-overrides:
+ - Override postrm-contains-additional-updaterc.d-calls.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 13 Dec 2014 11:20:55 +0100
+
+sane-backends (1.0.24-5) unstable; urgency=medium
+
+ * debian/rules:
+ - change saned.service to saned@.service to install it as
+ template (Closes: #769196).
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 10 Dec 2014 11:50:44 +0100
+
+sane-backends (1.0.24-4) unstable; urgency=medium
+
+ * debian/rules:
+ - Move the creation of /etc/sane.d/dll.d to libsane-common.
+ * Move libsane.(postrm|preinst) to libsane-common.* to handle
+ in the right package. (Closes: #766340)
+ * Remose useless ( < "1.0.19-25" ) from libsane-common.preinst.
+ * debian/patches:
+ - New typo.patch:
+ + Correct typo in backend/gennesys.conf.in. (Closes: #743848)
+ Thanks to Jakub Wilk <jwilk@debian.org>.
+ - New hp3900.patch:
+ + Set startup gamma to the standalone default. (Closes: #629470)
+ Thanks to Peter Walser <pjw1965@gmail.com>.
+ - New hp5370c.patch:
+ + Improved recognizability.(LP: #1080787)
+ - New out_of_bounds.patch:
+ + Prevent some out-of-bounds.
+ * debian/control:
+ - Change Build-Depends from the transitional package libgphoto2-2-dev
+ to libgphoto2-dev. (Closes: #736451)
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 27 Oct 2014 22:36:01 +0100
+
+sane-backends (1.0.24-3) unstable; urgency=medium
+
+ * debian/rules:
+ - Revert moving of HTML documentation to previous method to fix FTBFS
+ and simply delete duplicate HTML files afterwards. (Closes: #765339)
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 14 Oct 2014 14:25:25 +0200
+
+sane-backends (1.0.24-2) unstable; urgency=medium
+
+ * New Maintainer. (Closes: #764198)
+ * debian/control:
+ - Set myself as Maintainer.
+ - Add missing Vcs-* fields.
+ - Bump Standards-Version to 3.9.6 (no changes required).
+ - Add dh-systemd to Build-Depends.
+ * debian/copyright:
+ - Rewrite into machine-readable format.
+ - Add myself to the list of authors for debian/*.
+ * debian/sane-utils.saned.init:
+ - Replace avahi with avahi-daemon to make it systemd-
+ compatible. (Closes: #731610)
+ - Add fancy lsb output. (Closes: #676845)
+ Thanks to Dirk Sandbrink <d.sandbrink@gmail.com>.
+ * debian/libsane/README.Debian:
+ - TROUBLESHOOTING section: Add handling of "HP ScanJet 3400 C
+ type C7720A" on Device busy message. (Closes: #653857)
+ Thanks to Joost van Baal-Ilić <joostvb-debian-bugs-20111231-2@mdcc.cx>.
+ * debian/sane-utils.postinst:
+ - Set the home directory to /var/lib/saned at adduser call.
+ (Closes: #665915)
+ * debian/rules:
+ - libsane-common: Correct moving of HTML files to prevent
+ duplicate files within the package.
+ - Add systemd to dh commandline.
+ - Manuelly install the systemd .socket file.
+ * Add systemd support:
+ - New file sane-utils.saned.system.
+ - New file sane-utils.saned.socket.
+ * Move /etc from libsane to libsane-common.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 14 Oct 2014 08:57:02 +0200
+
+sane-backends (1.0.24-1.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * update config.* without dh-autoreconf because of local patches
+ to build on ppc64el. (Closes: #759289)
+
+ -- Andreas Barth <aba@ayous.org> Sat, 30 Aug 2014 11:57:08 +0000
+
+sane-backends (1.0.24-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTBFS for binary-arch builds:
+ + Install examples through debian/libsane-common.examples.
+ + Use proper source paths for sane.ps and backend-writing.txt;
+ also fix the source path for the HTML files installed into
+ libsane-common.
+ * Clean up debian/changelog.
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sat, 18 Jan 2014 21:07:24 +0100
+
+sane-backends (1.0.24-1) unstable; urgency=low
+
+ * New upstream release.
+ * New maintainer. (Closes: #688531)
+ * Disable USB testing since it (probably) doesn't work on autobuilders.
+ * Fixed a bunch of lintian warnings.
+ * Change architecture for libsane-common from "any" to "all".
+
+ -- Mark Buda <hermit@acm.org> Sun, 24 Nov 2013 10:05:18 -0500
+
+sane-backends (1.0.23-3) unstable; urgency=low
+
+ * QA upload.
+ * Revert move to libtiff5-dev.
+
+ -- Rene Engelhard <rene@debian.org> Sat, 06 Jul 2013 15:20:16 +0200
+
+sane-backends (1.0.23-2) unstable; urgency=low
+
+ * QA upload.
+ * Add sane-desc.c_debian_mods.patch to series file. (Closes: #714993)
+
+ -- Markus Koschany <apo@gambaru.de> Fri, 05 Jul 2013 11:52:37 +0200
+
+sane-backends (1.0.23-1) unstable; urgency=low
+
+ * QA upload.
+ * Upload to unstable.
+ * This package has been orphaned. Set maintainer to the Debian QA Group.
+ * Bump compat level to 9 (was 5) and require debhelper >= 9.
+ * debian/control:
+ + sane-utils: Inherit Section: graphics from source package sane-backends.
+ + Remove versioned dependencies. They are trivially satisfied.
+ * Drop the following patches. They are merged upstream now.
+ + fix_v4l_build.patch
+ + hurd_path_max_fix.patch
+ + sane_desc_udev+acl.patch
+ + scanimage_man_batch_start.patch
+ + udev_usb_suspend.patch
+ + xerox_mfp_add_scx_4623fw.patch
+ + xerox_mfp_fix_usb_device.patch
+ * Drop disable_rpath.patch because the RPATH is already removed by chrpath
+ in debian/rules.
+ * Rebase and refresh all other patches against the new upstream relase.
+ * debian/rules:
+ + Simplify debian/rules by using dh sequencer.
+ + Build with --parallel and with autotools_dev.
+ + Enable all hardening build flags.
+ + Install umax_pp with sane-utils.install.
+ * Build-Depend on libtiff5-dev. Thanks to Michael Terry for the patch.
+ (Closes: #681079)
+ * Build-Depend on libusb-1.0-0-dev and enable libusb1.0 support in
+ debian/rules. Thanks to Martin Pitt for the report and Whoopie for the
+ patch. (Closes: #687137)
+
+ -- Markus Koschany <apo@gambaru.de> Thu, 04 Jul 2013 17:41:47 +0200
+
+sane-backends (1.0.23-0.1~experimental1) experimental; urgency=low
+
+ * Non-maintainer upload.
+ * New upstream release.
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sat, 23 Feb 2013 20:12:58 +0100
+
+sane-backends (1.0.22-7.4) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Compress all binaries with xz to free up some space on CD#1.
+
+ -- Cyril Brulebois <kibi@debian.org> Mon, 17 Sep 2012 16:44:07 +0200
+
+sane-backends (1.0.22-7.3) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix build failure on kFreeBSD. (Closes: #680234)
+
+ -- Michael Gilbert <mgilbert@debian.org> Sun, 15 Jul 2012 17:07:15 -0400
+
+sane-backends (1.0.22-7.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Set sane-utils as 'Multi-Arch: foreign'. (Closes: #675797)
+
+ -- Michael Gilbert <mgilbert@debian.org> Thu, 28 Jun 2012 16:53:15 -0400
+
+sane-backends (1.0.22-7.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix pending l10n issues. Debconf translations:
+ + Catalan; (Innocent De Marchi). (Closes: #646505)
+ + Slovak (Slavko). (Closes: #639235)
+ + Polish (Michał Kułach). (Closes: #658351)
+
+ -- Christian Perrier <bubulle@debian.org> Wed, 28 Mar 2012 07:39:00 +0200
+
+sane-backends (1.0.22-7) unstable; urgency=low
+
+ * debian/patches/sane-desc.c_debian_mods.patch:
+ + Updated; do not output a timestamp as part of the udev rules file
+ header, it is a source of conflict for MultiArch.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 21 Nov 2011 15:39:26 +0100
+
+sane-backends (1.0.22-6) unstable; urgency=low
+
+ * debian/control:
+ + Fix ibcam-dev -> libcam-dev typo.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 21 Jul 2011 17:54:48 +0200
+
+sane-backends (1.0.22-5) unstable; urgency=low
+
+ * debian/control:
+ + Replace explicit architecture lists with appropriate architecture
+ wildcards; patch from Robert Millan. (Closes: #634518)
+ + Use kfreebsd-any architecture wildcard for libcam-dev in libsane-dev's
+ Depends field, getting rid of the custom libcam-dev substvar.
+ + Use linux-any architecture wildcard for udev | makedev, acl in libsane's
+ Depends field, gettind rid of the custom udev substvar.
+ * debian/rules:
+ + Remove custom libcam-dev and udev substvars in dh_gencontrol call.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 20 Jul 2011 19:52:51 +0200
+
+sane-backends (1.0.22-4) unstable; urgency=low
+
+ * Convert for MultiArch.
+ * debian/control:
+ + Bump debhelper build-dep to >= 8.1.3 for multiarch.
+ + Add Pre-Depends: ${misc:Pre-Depends} to libsane.
+ + Tag libsane with Multi-Arch: same.
+ + New Multi-Arch: foreign libsane-common binary package.
+ + Add libsane-common dependency to libsane.
+ * debian/rules:
+ + Use multiarch path.
+ + libsane.install.in is now libsane-common.install.in.
+ + libsane.docs is gone.
+ + Create the multiarch pkgconfig directory and install the .pc file here.
+ + Stop creating the gt68xx firmware directory in libsane.
+ + Move HAL FDI file to libsane-common.
+ + Disable SNMP support explicitly (needs Net-SNMP 5.6).
+ * debian/libsane-dev.install:
+ + Adapt for multiarch.
+ * debian/libsane.install.in -> debian/libsane.install:
+ + Adapt for multiarch, transfer multiarch-incompatible content to
+ libsane-common.
+ * debian/libsane-common.install.in:
+ + Adopt multiarch-incompatible content previously found in libsane.
+ * debian/libsane.links -> debian/libsane-common.links:
+ + Transfer documentation symlinks to libsane-common.
+ * debian/libsane-dev.dirs:
+ + Removed; pkgconfig directory created in debian/rules.
+ * debian/patches/multiarch_dll_search_path.patch:
+ + Added; make /usr/lib/arch_triplet/sane the default location for SANE
+ backends but keep /usr/lib/sane as a fallback for now.
+ * debian/patches/multiarch_manpages_libdir.patch:
+ + Added; use a generic /usr/lib/arch_triplet/sane path for backend
+ location in the man pages (otherwise substituted from LIBDIR).
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 13 Jun 2011 17:07:05 +0200
+
+sane-backends (1.0.22-3) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.9.2 (no changes).
+ * debian/libsane.NEWS:
+ + Added; document the switch to ACLs starting with 1.0.22-1.
+ * debconf translations:
+ + pt_BR.po: update from Eder L. Marques. (Closes: #619612)
+ + nl.po: courtesy of Jeroen Schot. (Closes: #627043)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 02 Jun 2011 14:57:53 +0200
+
+sane-backends (1.0.22-2) unstable; urgency=low
+
+ * debian/patches/udev_usb_suspend.patch:
+ + Added; switch to using power/control instead of power/level for
+ device power setting, if available.
+ * debian/patches/xerox_mfp_fix_usb_devices.patch:
+ + Added; fix detection/handling of USB devices in xerox_mfp.
+ (Closes: #617307)
+ * debian/patches/xerox_mfp_add_scx_4623fw.patch:
+ + Added; add IDs for the Samsung SCX-4623FW.
+ * debian/patches/hurd_path_max_fix.patch:
+ + Added; fix build on HURD where PATH_MAX is not defined.
+ (Closes: #616299)
+ * debian/patches/scanimage_man_batch_start.patch:
+ + Added; fix improper documentation of --batch-start. (Closes: #614009)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 12 Mar 2011 11:32:32 +0100
+
+sane-backends (1.0.22-1) unstable; urgency=low
+
+ * New upstream release.
+ + epson2: reject scan area settings that would lead to a division by zero.
+ (Closes: #581181)
+ * debian/control:
+ + Bump Standards-Version to 3.9.1 (no changes).
+ + Demote libsane-extras-* to Recommends again.
+ * debian/rules:
+ + Add acl (>= 2.2.49-4) to udev substvar for ACL utilities in /bin.
+ + Use sane-desc -m udev+acl. (Closes: #591767, #612815)
+ * debian/libsane.README.Debian:
+ + Update; mention ConsoleKit and the udev rules now using ACLs.
+
+ * debian/patches/sane-desc_udev+acl.patch:
+ + Added; compared to experimental, setfacl is now in /bin.
+ * debian/patches/fix_xerox_mfp_color_mode.patch,
+ debian/patches/use_libsane_matched_for_scsi.patch,
+ debian/patches/allow_dll.d_symlinks.patch,
+ debian/patches/saned_exit_avahi_process.patch,
+ debian/patches/xerox_mfp_new_ids.patch,
+ debian/patches/scsi_perfection_2450.patch,
+ debian/patches/scsi_scanjet_4c.patch,
+ debian/patches/genesys_disable_raw_data_log.patch,
+ debian/patches/fix_epson2_commands.patch,
+ debian/patches/fix_epson2_cancel.patch:
+ - removed; merged upstream.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 16 Feb 2011 19:00:55 +0100
+
+sane-backends (1.0.22~git1.0.21-157-g126c70d-1) experimental; urgency=low
+
+ * Git snapshot.
+ * debian/rules:
+ + Add dependency on acl to libsane when depending on udev.
+ + Use udev+acl mode when generating udev rules.
+ + debian/patches/sane-desc_udev+acl.patch:
+ + Added; try using ACLs for USB scanners in an effort to deconflict with
+ MFP devices.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 21 Jul 2010 18:36:37 +0200
+
+sane-backends (1.0.22~git1.0.21-87-g323ed01-1) experimental; urgency=low
+
+ * Git snapshot.
+ + genesys now has some support for LiDE 100 & 200. (Closes: #586189)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 23 Jun 2010 18:37:59 +0200
+
+sane-backends (1.0.21-9) unstable; urgency=low
+
+ * debian/patches/fix_epson2_cancel.patch:
+ + Added; fix handling of scanner errors by sending a cancel command.
+ (Closes: #597922)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 12 Dec 2010 16:31:25 +0100
+
+sane-backends (1.0.21-8) unstable; urgency=low
+
+ * debian/patches/fix_epson2_commands.patch:
+ + Added; fix list of supported commands for levels D1 and D2.
+ (Closes: #582066)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 29 Nov 2010 18:12:16 +0100
+
+sane-backends (1.0.21-7) unstable; urgency=low
+
+ * debian/patches/genesys_disable_raw_data_log.patch:
+ + Added; disable raw data logging. Raw data logging was enabled
+ upstream at some point before 1.0.21 most probably as an oversight
+ when committing new code. When enabled, a raw.pnm file is left
+ behind in the cwd when using the genesys backend. (Closes: #602995)
+ * debconf translations:
+ + Properly install vi.po, mistakenly put in po/ instead of
+ debian/po in 1.0.21-6.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 15 Nov 2010 19:00:34 +0100
+
+sane-backends (1.0.21-6) unstable; urgency=low
+
+ * debian/patches/saned_exit_avahi_process.patch:
+ + Added; exit Avahi process on error/loop termination.
+ * debian/patches/xerox_mfp_new_ids.patch:
+ + Added; add USB IDs for supported machines in xerox_mfp. (Closes: #601748)
+ * debian/patches/scsi_perfection_2450.patch:
+ + Added; add SCSI IDs for the Perfection 2450 via FireWire.
+ (Closes: #601810)
+ * debian/patches/scsi_scanjet_4c.patch:
+ + Added; add SCSI IDs for the ScanJet 4c. (Closes: #601656)
+ * debconf translations:
+ + vi.po: courtesy of Clytie Siddall. (Closes: #601530)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 06 Nov 2010 11:21:40 +0100
+
+sane-backends (1.0.21-5) unstable; urgency=low
+
+ * debconf translations:
+ + cs.po: courtesy of Miroslav Kure. (Closes: #598338)
+ + zh_CN.po: courtesy of YunQiang Su (Closes: #599590, #599591).
+ + da.po: courtesy of Joe Dalton. (Closes: #599642)
+ + eu.po: courtesy of Iñaki Larrañaga Murgoitio. (Closes: #599810)
+ + es.po: courtesy of Camaleón. (Closes: #600342)
+ + fi.po: courtesy of Esko Arajärvi. (Closes: #600514)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 18 Oct 2010 10:08:12 +0200
+
+sane-backends (1.0.21-4) unstable; urgency=low
+
+ * debconf translations:
+ + it.po: courtesy of Luca Monducci. (Closes: #593722)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 05 Sep 2010 09:44:28 +0200
+
+sane-backends (1.0.21-3) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.9.0 (no changes).
+ * debian/patches/use_libsane_matched_for_scsi.patch:
+ + Added; use libsane_matched for SCSI scanners rules too.
+ * debian/patches/allow_dll.d_symlinks.patch:
+ + Added; allow symlinks under /etc/sane.d/dll.d. (Closes: #588392)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 09 Jul 2010 18:21:58 +0200
+
+sane-backends (1.0.21-2) unstable; urgency=low
+
+ * debian/patches/fix_xerox_mfp_color_mode.patch:
+ + Added; fix xerox_mfp color mode, from upstream. (Closes: #583789)
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 01 Jun 2010 19:34:19 +0200
+
+sane-backends (1.0.21-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #579254)
+ * Moved to source format 3.0 (quilt).
+ * debian/control:
+ + Removed dpatch build-dep.
+ + Add dependency on pkg-config to libsane-dev.
+ * debian/rules:
+ + Removed dpatch code.
+ + --disable-fork-process -> --enable-pthread.
+ + Install the pkg-config file for sane-backends.
+ * All patches refreshed, tagged with DEP-3 headers.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 26 Apr 2010 19:59:08 +0200
+
+sane-backends (1.0.20-14) unstable; urgency=low
+
+ * debian/control:
+ + Depend and build-depend on libjpeg-dev instead of libjpeg62-dev.
+ (Closes: #569240)
+ + Bump Standards-Version to 3.8.4 (no changes).
+ * debian/sane-utils.saned.init:
+ + Add $remote_fs to Required-Start & Required-Stop.
+ * debconf translations:
+ + fr.po: courtesy of Christian Perrier. (Closes: #564595)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 13 Feb 2010 10:03:12 +0100
+
+sane-backends (1.0.20-13) unstable; urgency=low
+
+ * debian/patches/34_genesys_gl841_cal_fix.dpatch:
+ + Added; fix calibration on gl841-based scanners. (Closes: #563163)
+ * debconf translations:
+ + ja.po: courtesy of Hideki Yamane. (Closes: #564294)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 10 Jan 2010 15:21:22 +0100
+
+sane-backends (1.0.20-12) unstable; urgency=low
+
+ * debian/patches/33_epson2_update.dpatch:
+ + Update epson2 from git HEAD. (Closes: #534746)
+ * debconf translations:
+ + de.po: courtesy of Helge Kreutzmann. (Closes: #562709)
+ + sv.po: courtesy of Martin Bagge. (Closes: #562931)
+ + ru.po: courtesy of Yuri Kozlov. (Closes: #563076)
+ + pt.po: courtesy of Américo Monteiro. (Closes: #563174)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 01 Jan 2010 12:49:10 +0100
+
+sane-backends (1.0.20-11) unstable; urgency=medium
+
+ * Urgency set to medium to unbreak saned in testing.
+ * debian/patches/12_saned_polling_fix.dpatch:
+ + Added; unbreak saned's polling loop for more than 1 fds. (Closes: #562248)
+ * debian/patches/13_saned_aliasing_fix.dpatch:
+ + Added; fix strict aliasing issues in saned for gcc 4.4.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 24 Dec 2009 17:33:35 +0100
+
+sane-backends (1.0.20-10) unstable; urgency=low
+
+ * debian/libsane.README.Debian:
+ + Updated udev-related information and instructions, added a note about
+ only adding rules for scanners supported by libsane.
+ * debian/sane-utils.saned.init:
+ + Add missing --oknodo in s-s-d stop call in restart case.
+ (Closes: #558648)
+ * debian/sane-utils.templates:
+ + Rework the standalone saned template and mention Avahi explicitly.
+ (Closes: #556877)
+ * debian/patches/22_dll_backend_conf.dpatch:
+ + Updated; use better wording for the comment about the net backend
+ in dll.conf. (Closes: #556912)
+ * debian/patches/32_epson_perfection636.dpatch:
+ + Added; add the Epson Perfection 636 SCSI scanner. (Closes: #555971)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 12 Dec 2009 11:33:09 +0100
+
+sane-backends (1.0.20-9) unstable; urgency=low
+
+ * debian/patches/11_udev_147.dpatch:
+ + Added; remove NAME= from SCSI rules as udev 147 complains about it. Also
+ remove support for kernel < 2.6.22. (Closes: #555443)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 09 Nov 2009 21:01:32 +0100
+
+sane-backends (1.0.20-8) unstable; urgency=low
+
+ * debian/rules:
+ + Fix nostrip builds, thanks to Tollef Fog Heen. (Closes: #548152)
+ * debian/patches/31_genesys_raw_log_fix.dpatch:
+ + Added; add missing check when logging raw data. Patch by
+ Tollef Fog Heen <tfheen@err.no>. (Closes: #548154)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 26 Sep 2009 11:44:04 +0200
+
+sane-backends (1.0.20-7) unstable; urgency=low
+
+ * debian/control:
+ + Demote avahi-daemon to a Suggests. (Closes: #543335)
+ + libv4l-dev is not available on hurd-i386 either. (Closes: #545995)
+ * debian/patches/30_xerox_samsung_ids.dpatch:
+ + Added; add USB IDs for various Samsung-branded MFPs. (Closes: #545290)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 11 Sep 2009 19:16:15 +0200
+
+sane-backends (1.0.20-6) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.8.3 (no changes).
+ * debian/rules:
+ + Empty dependency_libs in all .la files.
+ * debian/patches/10_sanei_usb_update.dpatch:
+ + Added; from git, favour the interface detected by sanei_usb_init().
+ This helps with some machines like the Canon MP730.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 29 Aug 2009 16:55:34 +0200
+
+sane-backends (1.0.20-5) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.8.2 (no changes).
+ * debian/patches/08_cardscan_usbids.dpatch:
+ + Added; fix USB IDs for the CardScan 800c. (Closes: #528829)
+ * debian/patches/09_po_update_es_add_gl.dpatch:
+ + Added; update es translation and add new gl translation, courtesy of
+ Miguel Bouzada <mbouzada@gmail.com>.
+ * debian/patches/20_disable_rpath.dpatch:
+ + Added; do not use rpath. For some reason this decided to pop up now,
+ even though the previous revision of the package did not suffer from
+ this. Go figure.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 26 Jun 2009 14:39:41 +0200
+
+sane-backends (1.0.20-4) unstable; urgency=low
+
+ * debian/rules:
+ + Serialize autotools/patch/configure for parallel builds, now that
+ parallel builds are possible with the upstream build system.
+ (Closes: #506620)
+ * debian/control:
+ + Bump libsane-extras dependencies to 1.0.20.1.
+ * debian/sane-utils.saned.init:
+ + Add status action, taken from iaxmodem. (Closes: #528265)
+ * debian/patches/07_tools_missing_libcam.dpatch:
+ + Added; fix sane_find_scanner build on kFreeBSD by adding missing SCSI
+ libraries. From upstream via Aurélien JARNO. (Closes: #528594)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 14 May 2009 12:06:47 +0200
+
+sane-backends (1.0.20-3) unstable; urgency=low
+
+ * debian/patches/06_cap_always_settable.dpatch:
+ + Added; add back SANE_CAP_ALWAYS_SETTABLE which was mistakenly
+ removed from SANE 1.0.20. (Closes: #527675, #527682)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 08 May 2009 21:03:56 +0200
+
+sane-backends (1.0.20-2) unstable; urgency=low
+
+ * Update previous changelog entry with regard to #519101 resolution.
+ * debian/patches/04_udev_rules_fix.dpatch:
+ + Added; fix udev rules, use ATTRS instead of ATTR. (Closes: #527196)
+ * debian/patches/05_saned_avahi_fds_fix.dpatch:
+ + Added; fix a possible net backend hang when saned is run in debug
+ mode. Could also happen in standalone mode, but a lot less likely.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 06 May 2009 12:02:59 +0200
+
+sane-backends (1.0.20-1) unstable; urgency=low
+
+ * New upstream release.
+ + Unsupported devices are no longer included in the udev rules.
+ (Closes: #519101)
+ * debian/control:
+ + Bump Standards-Version to 3.8.1 (no changes).
+ + Add build-dep on libv4l-dev.
+ + Add dependency on libv4l-dev to libsane-dev.
+ + Move libsane-dbg to debug section.
+ * debian/rules:
+ + Use DESTDIR at install time.
+ + Remove rpath from sane-find-scanner.
+ * debian/patches/01_missing_pthreads.dpatch:
+ + Added; new build system breaks build when using pthreads.
+ * debian/patches/02_frontends_libs.dpatch:
+ + Added; only link the frontends with the libraries they need.
+ * debian/patches/03_libsane_deps.dpatch:
+ + Added; reduce libsane.so deps to the bare minimum.
+ * debian/patches/11_minimum_linkage.dpatch:
+ + Removed; build system was redone using automake and this isn't
+ needed anymore.
+ * debian/patches/12_new_configure.dpatch:
+ + Removed; not needed anymore, due to #11 going away.
+ * debian/patches/21_sane-config.in_no_rpath.dpatch:
+ + Updated; updated for new build system.
+ * debian/patches/23_unneeded_doc.dpatch:
+ + Updated; updated for new build system.
+ * debian/patches/22_dll_backend_conf.dpatch:
+ + Updated; dll.d support has been merged upstream, update dll.conf header.
+ * debian/patches/01_manpages_fixes.dpatch, 02_pixma_update.dpatch,
+ 03_snapscan_usb_ftok_fix.dpatch, 04_sane-desc_hal_new.dpatch,
+ 05_hp_timing_fix.dpatch, 06_sanei_scsi_attach_fix.dpatch,
+ 07_epson2_be_nice.dpatch, 08_epson2_be_nice_to_saned.dpatch,
+ 09_avision_fixes.dpatch, 10_sm3840_unbreak_sane_open.dpatch,
+ 30_new_saned.dpatch, 31_sanei_pthread_64bit_fix.dpatch,
+ 32_net_backend_standard_fix.dpatch, 33_scanimage_options_fix.dpatch,
+ 40_fujitsu_fixes.dpatch, 41_epjitsu_fixes.dpatch:
+ - removed; fixes and enhancements taken from upstream or merged upstream
+ in this release.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 04 May 2009 12:45:50 +0200
+
+sane-backends (1.0.19-26) unstable; urgency=low
+
+ * debian/rules:
+ + Do not generate /etc/modprobe.d/libsane anymore.
+ * debian/libsane.preinst:
+ + Remove obsolete /etc/modprobe.d/libsane conffile.
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; workaround for backends writing to stdin/stderr/stdout when
+ run via inetd, which breaks the network dialog and causes the remote
+ net backend to crash. (Closes: #516982)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 04 Mar 2009 10:49:42 +0100
+
+sane-backends (1.0.19-25) unstable; urgency=low
+
+ * debian/rules:
+ + Remove comment bit, breaking configure invocation.
+ * debian/control:
+ + Add ${misc:Depends}.
+ * debian/sane-utils.postrm:
+ + Make the script set -e.
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; (net backend) do not attempt to lock the Avahi polling
+ thread before stopping it, it now produces a deadlock. Looks like
+ a change/fix was made in Avahi. (Closes: #513122)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 18 Feb 2009 11:50:31 +0100
+
+sane-backends (1.0.19-24) unstable; urgency=low
+
+ * debian/rules:
+ + Enable use of pthread instead of fork for reader processes.
+ * debian/libsane.postinst:
+ + Remove code dealing with devfs/hotplug/hotplug-ng.
+ * debian/patches/11_minimum_linkage.dpatch:
+ + Update; add $(LIBPTHREAD) to library dependencies where needed.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 15 Feb 2009 11:50:13 +0100
+
+sane-backends (1.0.19-23) unstable; urgency=low
+
+ * debian/patches/09_avision_fixes.dpatch:
+ + Updated; fix reader task handling to not signal the whole process group
+ erroneously.
+ * debconf translations:
+ + it.po: courtesy of Luca Monducci. (Closes: #507563)
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 09 Dec 2008 16:14:06 +0100
+
+sane-backends (1.0.19-22) unstable; urgency=low
+
+ * debian/patches/41_epjitsu_fixes.dpatch:
+ + Added; from CVS, fix double-free issues in epjitsu. (Closes: #506750)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 24 Nov 2008 15:02:04 +0100
+
+sane-backends (1.0.19-21) unstable; urgency=low
+
+ * debian/rules:
+ + Use an error handler for saned's init.
+ * debian/sane-utils.postinst:
+ + Added error handler for saned init. (Closes: #493745)
+ * debconf translations:
+ + es.po: courtesy of Ignacio Mondino. (Closes: #499202)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 19 Sep 2008 10:50:04 +0200
+
+sane-backends (1.0.19-20) unstable; urgency=low
+
+ * debian/control:
+ + Make sane-utils depend on update-inetd (>= 4.31) which won't break
+ with debconf.
+ * debian/sane-utils.postinst:
+ + update-inetd needs debconf sometimes, so keep debconf enabled until
+ after the update-inetd call.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 05 Sep 2008 11:04:59 +0200
+
+sane-backends (1.0.19-19) unstable; urgency=low
+
+ * debian/rules:
+ + Install umax_pp into sane-utils. (Closes: #496833)
+ * debian/patches/40_fujitsu_fixes.dpatch:
+ + Added; upstream backport of fujitsu backend fixes, fixes a string
+ initialization issue in config file parsing, adds color mode for the
+ fi-6130, 6230, 6140, 6240 and fixes fi-6230 hangs at wakeup from
+ powersave mode. (Closes: #494156) Thanks to M. Allan Noah for
+ providing a backport.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 28 Aug 2008 10:31:35 +0200
+
+sane-backends (1.0.19-18) unstable; urgency=low
+
+ * debian/patches/10_sm3840_unbreak_sane_open.dpatch:
+ + Added; from CVS, fix the way sane_open() checks for sanei_usb_open()
+ errors. (Closes: #496249)
+ * debconf translations:
+ + ja.po: courtesy of Hideki Yamane. (Closes: #493568)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 27 Aug 2008 19:58:15 +0200
+
+sane-backends (1.0.19-17) unstable; urgency=low
+
+ * debian/patches/33_scanimage_options_fix.dpatch:
+ + Added; get the option descriptor for option 0 before getting the value
+ for option 0. This is a standard-compliance fix needed for proper
+ operation with the net backend.
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; fix initialization of runas_{g,u}id and ngroups, preventing
+ failures later on in some cases (saned -a without username).
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 05 Aug 2008 12:10:44 +0200
+
+sane-backends (1.0.19-16) unstable; urgency=low
+
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; Fix seteuid()/setegid() call order and set supplemental group
+ list. (Closes: #493084)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 31 Jul 2008 11:46:53 +0200
+
+sane-backends (1.0.19-15) unstable; urgency=low
+
+ * debian/patches/09_avision_fixes.dpatch:
+ + Enable this patch for real.
+ * debian/patches/31_sanei_pthread_64bit_fix.dpatch:
+ + Updated.
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 22 Jul 2008 23:05:50 +0200
+
+sane-backends (1.0.19-14) unstable; urgency=low
+
+ * debian/patches/32_net_backend_standard_fix.dpatch:
+ + Updated; fix sane_control_option() in the net backend so as to bring
+ the net backend behaviour back in line with standard backends. This
+ should fix some issues reported with the net backend lately.
+ * debian/patches/01_manpages_fixes.dpatch:
+ + Updated; fix some more hyphen vs. minus sign issues.
+ * debian/rules:
+ + Include debug symbols for sane-utils into libsane-dbg.
+ * debian/copyright:
+ + Update.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 20 Jul 2008 12:51:25 +0200
+
+sane-backends (1.0.19-13) unstable; urgency=low
+
+ * debian/libsane.README.Debian:
+ + Fix udev rules filename. (Closes: #490656)
+ * debian/patches/01_manpages_fixes.dpatch:
+ + Updated; fix hyphen vs. minus sign issues reported by lintian.
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; manpage fixes.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 14 Jul 2008 13:17:44 +0200
+
+sane-backends (1.0.19-12) unstable; urgency=low
+
+ * debian/control:
+ + Bump Standards-Version to 3.8.0 (no changes).
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; properly terminate child processes when exiting from the
+ debug mode.
+ * debian/patches/32_net_backend_standard_fix.dpatch:
+ + Added; do not reload the option descriptors cache behind the frontend's
+ back in sane_control_option(). Fetch options descriptors in sane_open()
+ so GET_VALUE on option 0 can still work without explicitely getting
+ option descriptor 0 first.
+ * debconf translations:
+ + sv.po: courtesy of Martin Bagge. (Closes: #487369)
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 24 Jun 2008 22:10:35 +0200
+
+sane-backends (1.0.19-11) unstable; urgency=low
+
+ * debian/patches/30_new_saned.dpatch:
+ + Updated; lock the Avahi thread before stopping it and tearing down the
+ Avahi objects. (Closes: #484464)
+ * debian/patches/09_avision_fixes.dpatch:
+ + Added; from CVS, misc avision backend fixes. (Closes: #474706, #475198)
+ * debconf translations:
+ + ru.po: courtesy of Yuri Kozlov. (Closes: #481656)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 06 Jun 2008 17:37:28 +0200
+
+sane-backends (1.0.19-10) unstable; urgency=low
+
+ * debian/sane-utils.postinst:
+ + Make proper use of debconf !@#%$. (Closes: #481442)
+ * debconf translations:
+ + fr.po: update by Christian Perrier. (Closes: #481439)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 16 May 2008 19:26:48 +0200
+
+sane-backends (1.0.19-9) unstable; urgency=low
+
+ * debian/sane-utils.postinst:
+ + Do not attempt to remove saned from the scanner group if it isn't part
+ of the group in the first place. (Closes: #481288)
+ * debian/patches/31_sanei_pthread_64bit_fix.dpatch:
+ + Added; from CVS, fix sanei_pthread on 64bit platforms.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 15 May 2008 18:54:37 +0200
+
+sane-backends (1.0.19-8) unstable; urgency=low
+
+ * Reupload 1.0.19-7 to unstable.
+
+ * debconf translations:
+ + pt.po: courtesy of Américo Monteiro. (Closes: #480219)
+ + cs.po: courtesy of Miroslav Kure. (Closes: #480313)
+ + de.po: courtesy of Helge Kreutzmann. (Closes: #480366)
+ + vi.po: courtesy of Clytie Siddall. (Closes: #480483)
+ + fi.po: courtesy of Esko Arajärvi. (Closes: #480550)
+ + fr.po: update by Christian Perrier.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 14 May 2008 19:13:29 +0200
+
+sane-backends (1.0.19-7) experimental; urgency=low
+
+ * Introducing new saned & net backend features.
+ + saned can now run as a standalone daemon and offers mDNS/DNS-SD.
+ The net backend can discover saned servers on the (local) network.
+ * debian/patches/01_manpages_fixes.dpatch:
+ + Fix man warnings in sane-config.1 and sane-mustek_pp.5.
+ * debian/patches/30_new_saned.dpatch:
+ + Added; from CVS HEAD, backport new saned and net backend.
+ * debian/sane-utils.README.Debian:
+ + Enhancements, typo fixes.
+ * debian/sane-utils.templates, debian/sane-utils.config,
+ debian/sane-utils.postinst:
+ + Add a debconf question to automatically add the saned user to the
+ scanner group.
+ + Add a debconf question to enable saned as a standalone daemon.
+ * debian/rules:
+ + Enable Avahi support at configure time.
+ + Call dh_installdebconf.
+ + Call dh_installinit.
+ * debian/control:
+ + Build-Depend on po-debconf, libavahi-client-dev (>= 0.6.4).
+ + sane-utils: add ${misc:Depends} to get the appropriate debconf
+ dependencies.
+ + sane-utils: recommend avahi-daemon.
+ + libsane: recommend avahi-daemon.
+ + libsane-dev: depend on libavahi-client-dev.
+ * debian/sane-utils.saned.init, debian/sane-utils.saned.default:
+ + Add an initscript & default file for saned.
+
+ * debconf translations:
+ + eu.po: courtesy of Piarres Beobide. (Closes: #479380, #479808)
+ + fr.po: courtesy of Christian Perrier.
+ + pt_BR.po: courtesy of Eder L. Marques. (Closes: #479785)
+ + gl.po: courtesy of Jacobo Tarrio. (Closes: #479838)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 07 May 2008 18:37:07 +0200
+
+sane-backends (1.0.19-6) unstable; urgency=low
+
+ * debian/patches/08_epson2_be_nice_to_saned.dpatch:
+ + Added; from CVS, be nice to saned and do not pollute fd 0.
+ (Closes: #479052)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 03 May 2008 16:46:12 +0200
+
+sane-backends (1.0.19-5) unstable; urgency=low
+
+ * debian/patches/07_epson2_be_nice.dpatch:
+ + Added; from CVS, be nice to other backends and close the scanner device
+ when the device is not recognized (or another error happens).
+ (Closes: #476468)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 19 Apr 2008 17:16:13 +0200
+
+sane-backends (1.0.19-4) unstable; urgency=low
+
+ * debian/patches/03_snapscan_usb_ftok_fix.dpatch:
+ + Updated; improve the patch by falling back to ftok() for non-libusb
+ devices.
+ * debian/patches/04_sane-desc_hal_new.dpatch:
+ + Added; add support for newer HAL versions.
+ * debian/patches/05_hp_timing_fix.dpatch:
+ + Added; fix timing issue with HP scanners. (Closes: #472819)
+ * debian/patches/06_sanei_scsi_attach_fix.dpatch:
+ + Added; from CVS, continue to iterate over the list of devices even
+ if an attempt to attach one of the devices fails.
+ * debian/rules:
+ + Generate HAL FDI file for newer HAL versions. (Closes: #472664)
+ * debian/libsane-dev.doc-base:
+ + Fix doc-base section.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 28 Mar 2008 22:39:17 +0100
+
+sane-backends (1.0.19-3) unstable; urgency=low
+
+ * debian/patches/01_disable_epson2.dpatch:
+ + Removed; reenable the epson2 backend.
+ * debian/patches/03_snapscan_usb_ftok_fix.dpatch:
+ + Added; work around the usage of ftok() in the snapscan backend. See
+ the patch description for details. (Closes: #466855)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 15 Mar 2008 16:16:38 +0100
+
+sane-backends (1.0.19-2) unstable; urgency=low
+
+ * debian/patches/02_pixma_update.dpatch:
+ + Added; update pixma backend from CVS, adding support for
+ - Pixma MP210, MP470, MP520, MP610, MultiPASS MP710
+ - MP140, MP220, MultiPASS MP740 (untested)
+ - MP970 (experimental, untested)
+ (Closes: #468270)
+ * debian/rules:
+ + Generate and install HAL fdi file. (Closes: #466540)
+ * debian/control:
+ + Add update-inetd dependency for sane-utils.
+ * debian/sane-utils.postinst, debian/sane-utils.postrm:
+ + Add support for update-inetd. (Closes: #426514)
+ * debian/sane-utils.README.Debian:
+ + Document update-inetd usage.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 01 Mar 2008 14:11:29 +0100
+
+sane-backends (1.0.19-1) unstable; urgency=low
+
+ * New upstream release.
+ + New backends: cardscan (Corex Cardscan 800c), epjitsu (Epson-based
+ Fujitsu), epson2 (various Epson scanners), hp3900 (HP ScanJet 3970 and
+ more), hp5590 (HP ScanJet 5590 and more), hpljm1005 (HP LaserJet M1005
+ and more), hs2p (Ricoh IS400 series)
+ + Fix for the pixma backend. (Closes: #459663)
+ + Regression fix for the avision backend. (Closes: #458478, #458932)
+ * debian/patches/02_hurd_no_plustek_pp.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/11_minimum_linkage.dpatch:
+ + Updated.
+ * debian/patches/12_new_configure.dpatch:
+ + Updated.
+ * debian/control:
+ + Adjust libsane-extras dependencies for 1.0.19.
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 12 Feb 2008 21:44:19 +0100
+
+sane-backends (1.0.19~cvs20071213-5) unstable; urgency=low
+
+ * debian/control:
+ + Build-Depends: xutils-dev instead of xutils.
+ + Depend on libsane-extras{,-dev,-dbg} to help fix up the
+ buggy udev rules in libsane-extras.
+ + Promote libgphoto2-2-dev to Depends: for libsane-dev.
+ * debian/patches/02_hurd_no_plustek_pp.dpatch:
+ + Added; do not build plustek_pp on Hurd. (Closes: #457378)
+ * debian/patches/12_new_configure.dpatch:
+ + Updated.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 07 Jan 2008 12:07:27 +0100
+
+sane-backends (1.0.19~cvs20071213-4) unstable; urgency=low
+
+ * debian/patches/11_minimum_linkage.dpatch:
+ + Updated; add libcam for coolscan & umax, remove it for cardscan.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 31 Dec 2007 14:11:34 +0100
+
+sane-backends (1.0.19~cvs20071213-3) unstable; urgency=low
+
+ * debian/control:
+ + Tighten relationship with libsane-extras due to the udev rules renaming.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 28 Dec 2007 11:45:30 +0100
+
+sane-backends (1.0.19~cvs20071213-2) unstable; urgency=low
+
+ * debian/rules:
+ + Generate udev rules as debian/libsane.udev, clean as needed.
+ + Use dh_installudev.
+ + Remove libsane-dll.* from /usr/lib/sane; libsane.so and libsane-dll.so
+ are the same backend.
+ * debian/libsane.postinst:
+ + Remove udev installation code.
+ * debian/libsane.preinst:
+ + Added; handle upgrade from previous udev code to dh_installudev.
+ * debian/patches/11_minimum_linkage.dpatch:
+ + Added; only link backends to the libraries they need.
+ * debian/patches/12_new_configure.dpatch:
+ + Added; new configure script.
+ * debian/patches/12_gphoto2_link_backend_only.dpatch:
+ + Removed; obsoleted by 11_minimum_linkage.dpatch.
+ * debian/patches/13_new_configure.dpatch:
+ + Removed; now 12_new_configure.dpatch.
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 25 Dec 2007 22:58:26 +0100
+
+sane-backends (1.0.19~cvs20071213-1) unstable; urgency=low
+
+ * New CVS snapshot.
+ + New backend: hp3900.
+ * debian/control:
+ + Bump Standards-Version to 3.7.3 (no changes).
+ + Bump libsane-extras{,-dev} dependencies/conflicts/replaces to 1.0.18.13.
+ + Remove module-init-tools recommendation, enforced by udev which is a
+ dependency.
+ * debian/rules:
+ + Remove ${module-init-tools} substvar.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 13 Dec 2007 21:59:02 +0100
+
+sane-backends (1.0.19~cvs20071028-1) unstable; urgency=low
+
+ * New CVS snapshot.
+ + All backends now declare OPT_NUM_OPTS of type SANE_TYPE_INT.
+ (Closes: #448162)
+ + Fixed USB IDs for the Epson CX-6600. (Closes: #419349)
+ + Added USB IDs for the Epson DX-6000. (Closes: #442051)
+ * debian/control:
+ + libsane-dev Recommends: libgphoto2-2-dev.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 28 Oct 2007 11:17:36 +0100
+
+sane-backends (1.0.19~cvs20070730-1) unstable; urgency=low
+
+ * New CVS snapshot.
+ + Workaround for CONFIG_USB_SUSPEND. (Closes: #434276)
+ * debian/control, debian/rules:
+ + Make libsane depend on makedev | udev on Linux. (Closes: #428220)
+ * debian/libsane.postinst:
+ + Change MAKEDEV invocation to invoke /dev/MAKEDEV instead of /sbin/MAKEDEV.
+ * debian/control:
+ + Do not {build-,}depend on libusb-dev nor libieee1284-dev on hurd-i386.
+ (Closes: #434575)
+ + Use ${binary:Version} instead of ${Source-Version}.
+ * debian/rules:
+ + Do not ignore make distclean errors.
+ * debian/patches/30_sanei_scsi_sg_ioctl.dpatch:
+ + Removed; merged upstream.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 30 Jul 2007 14:03:13 +0200
+
+sane-backends (1.0.19~cvs20070505-3) unstable; urgency=low
+
+ * debian/patches/30_sanei_scsi_sg_ioctl.dpatch:
+ + Added; use the SG_IO ioctl interface instead of the asynchronous
+ read/write SG3 interface. This allows the use of SCSI scanners in
+ mixed 32/64bit environments, thanks to the ioctl 32bit compatibility
+ layer taking care of the 32/64bit sg_hdr conversion. (Closes: #420193)
+
+ If you own a SCSI scanner, please report back on this change; especially
+ if, compared to the previous version (1.0.19~cvs20070505-2):
+ - the scanner backtracks more than it used to with the previous version
+ - you see weird errors OR you see no error and you should be seeing some
+ - performance sucks
+ - resulting image is broken in one way or another
+ - ...
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 20 May 2007 10:46:00 +0200
+
+sane-backends (1.0.19~cvs20070505-2) unstable; urgency=low
+
+ * debian/patches/01_disable_epson2.dpatch:
+ + Added; disable epson2 backend by default. (Closes: #422697)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 12 May 2007 10:37:11 +0200
+
+sane-backends (1.0.19~cvs20070505-1) unstable; urgency=low
+
+ * New CVS snapshot.
+ + New backend: hp5590.
+ * debian/patches/31_epson_remove_check.dpatch:
+ + Removed; merged upstream.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 05 May 2007 20:37:07 +0200
+
+sane-backends (1.0.19~cvs20070421-1) unstable; urgency=low
+
+ * debian/control:
+ + Update Build-Depends for the TeXLive migration.
+ + Removed old Conflicts.
+ + Upgrade libsane-extras minimum version to 1.0.18.6.
+ * debian/rules:
+ + Drop hotplug support.
+ + Drop code for Sarge backports.
+ * debian/libsane.postinst:
+ + Remove old hotplug-ng files, code taken from Ubuntu.
+ * debian/libsane.README.Debian, debian/sane-utils.README.Debian:
+ + Removed hotplug notes.
+ * debian/patches/03_usb_perms_664.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/11_hotplug_wait_for_device.dpatch:
+ + Removed; not needed anymore.
+ * debian/patches/30_udev_long_comment_lines.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/32_microtek2_add_check.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/33_manpages_fixes.dpatch:
+ + Removed; merged upstream.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 21 Apr 2007 13:33:26 +0200
+
+sane-backends (1.0.18-6) unstable; urgency=low
+
+ * Enable libieee1284 support on kFreeBSD-amd64. (Closes: #413178)
+ * debian/control:
+ + Build-depend on libieee1284-3-dev (>= 0.2.10-5) for all architectures.
+ + libsane-dev depends on libieee1284-3-dev (>= 0.2.10-5) for all architectures.
+ * debian/rules:
+ + Remove the libieee1284-3-dev substitution variable.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 3 Mar 2007 11:39:33 +0100
+
+sane-backends (1.0.18-5) unstable; urgency=medium
+
+ * debian/patches/32_microtek2_add_check.dpatch:
+ + Added; Add missing return status check, preventing a segfault later
+ on. (Closes: #398153)
+ * debian/patches/33_manpages_fixes.dpatch:
+ + Added; fix man warnings in some manpages.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 8 Jan 2007 19:52:22 +0100
+
+sane-backends (1.0.18-4) unstable; urgency=medium
+
+ * debian/patches/31_epson_remove_check.dpatch:
+ + Added; Remove bogus check in epson backend get_identity2_information()
+ affecting Stylus CX5xxx models. (Closes: #399119, #402444)
+ * debian/sane-utils.README.Debian:
+ + Fix typo, the manpage for saned is in section 8 not 1.
+ * debian/control:
+ + libsane-dbg is Priority: extra.
+ + Remove Uploaders.
+
+ Thank you Aurélien JARNO for your help during these years.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 6 Jan 2007 18:46:43 +0100
+
+sane-backends (1.0.18-3) unstable; urgency=low
+
+ * debian/patches/30_udev_long_comment_lines.dpatch:
+ + Added; split very long comment lines in the udev rules file.
+ (Closes: #376859)
+ * debian/libsane.README.Debian:
+ + Updated; udev no longer sets permissions on /proc/bus/usb/xxx/yyy,
+ /dev/bus/usb/xxx/yyy is used instead now.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 30 Jul 2006 20:40:09 +0200
+
+sane-backends (1.0.18-2) unstable; urgency=low
+
+ * debian/control:
+ + Build-Depends: libltdl3-dev, needed to link with libgphoto2-2.
+ + sane-utils Suggests: unpaper.
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 4 Jul 2006 09:09:04 +0200
+
+sane-backends (1.0.18-1) unstable; urgency=low
+
+ * New upstream release.
+ + New backends: dell1600n_net, hp3500, pixma, stv680. (Closes: #360303)
+ + Canon LiDE 60 USBids added to the genesys description file. (Closes: #366871)
+ * debian/patches/01_usbids.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/26_manpages_spelling_fixes.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/25_glibc_sys_io_h.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/03_usb_perms_664.dpatch:
+ + Updated; the convert-usermap.sh scripts are gone.
+ * debian/patches/04_udev_rules_fix.dpatch:
+ + Removed; merged upstream.
+ * debian/rules:
+ + Use sane-desc to generate the udev rules file and the hotplug data file.
+ + Improve manpage list generation for the libsane package.
+ * debian/control:
+ + Build-Depends: libtiff4-dev, for the dell1600n_net backend.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 3 Jul 2006 20:30:17 +0200
+
+sane-backends (1.0.17-4) unstable; urgency=low
+
+ * debian/compat:
+ + Bumped DH_COMPAT to 5.
+ * debian/control:
+ + Bumped Standards-Version to 3.7.2 (no changes).
+ + Build-Depend on debhelper (>= 5.0.0) for DH_COMPAT=5.
+ + New libsane-dbg binary for debugging symbols. (Closes: #366767)
+ * debian/rules:
+ + Tell dh_strip to put debugging symbols into libsane-dbg.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 26 May 2006 13:40:01 +0200
+
+sane-backends (1.0.17-3) unstable; urgency=low
+
+ * debian/control:
+ + Add ${libieee1284-3-dev} to libsane-dev Depends. (Closes: #364294)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 22 Apr 2006 19:58:12 +0200
+
+sane-backends (1.0.17-2) unstable; urgency=low
+
+ [ Aurélien JARNO ]
+ * debian/control:
+ + Build-depends: libcam-dev on kfreebsd-i386 and kfreebsd-amd64.
+ + Build-depends: !libieee1284-dev on kfreebsd-amd64.
+ + libsane-dev depends: libcam-dev on GNU/kFreeBSD.
+ * debian/patches/25_glibc_sys_io_h.dpatch:
+ + New; check for GNU libc instead of Linux kernel.
+
+ [ Julien BLACHE ]
+ * debian/patches/02_udev_rules.dpatch:
+ + Removed; coldplugging now works OK, the hotplug script aren't needed
+ anymore. (Closes: #359800)
+ * debian/patches/03_usb_perms_664.dpatch:
+ + Updated.
+ * debian/patches/04_udev_rules_fix.dpatch:
+ + Added; fix udev rules file so that the rules only run for ACTION=add
+ on the usb subsystem. (Closes: #359797)
+ * debian/patches/01_usbids.dpatch:
+ + Added; add Epson Stylus CX7800 USB IDs. (Closes: #350436)
+ * debian/patches/26_manpages_spelling_fixes.dpatch:
+ + Added; various spelling fixes to the manpages. (Closes: #357568)
+ * debian/control:
+ + Removed Conflicts: on very old SANE versions.
+ + Recommends: module-init-tools (>= 3.2.2-1). (Closes: #344541)
+ + Recommends: udev (>= 0.88-1) for a version of udev with working
+ coldplugging support. Let me know if the version can be lowered,
+ thanks.
+ * debian/rules:
+ + Add variable substitution for module-init-tools on Linux.
+ + Add version to the udev variable substitution.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 13 Apr 2006 21:40:58 +0200
+
+sane-backends (1.0.17-1) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * New upstream release.
+ + New backends: hp4200, lexmark, mustek_usb2.
+ + Now ignores EBUSY on set_configuration for real. (Closes: #332281)
+ + Fixed USB IDs for BearPaw 2448 TA Plus to use only lowercase letters. (Closes: #341046)
+ * debian/patches/01_hotplug_usbids.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/02_tools_udev.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/02_udev_rules.dpatch:
+ + Added; add a RUN rule to run the hotplug.d script (for coldplugging).
+ * debian/control:
+ + Build-Depends: xutils as makedepend is now used by the build system.
+ + Adjust conflicts/suggests for libsane-extras.
+
+ [ Aurélien JARNO ]
+ * debian/patches/03_usb_perms_664.dpatch:
+ + Added; lsusb needs read access to USB devices to work properly.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 18 Dec 2005 17:09:47 +0100
+
+sane-backends (1.0.16-5) unstable; urgency=low
+
+ * debian/patches/02_tools_udev.dpatch:
+ + Run the hotplug.d script to ensure a working coldplug. (Closes: #334068)
+ * debian/patches/30_misc_fixes.dpatch:
+ + Fix a typo in sane-find-scanner(1). (Closes: #310333)
+ * debian/patches/34_sanei_usb_ignore_set_config_ebusy.dpatch:
+ + Ignore EBUSY on set_configuration to better accomodate MFC devices. (Closes: #332281)
+ * debian/libsane.postrm:
+ + Remove /etc/udev/rules.d/025_libsane.rules on purge. (Closes: #333569)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 27 Oct 2005 20:25:16 +0200
+
+sane-backends (1.0.16-4) unstable; urgency=low
+
+ * debian/patches/02_tools_udev.dpatch:
+ + Fix broken tools/udev/convert-usermap.sh script.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 28 Sep 2005 22:59:41 +0200
+
+sane-backends (1.0.16-3) unstable; urgency=low
+
+ * The udev release. Thanks to Marco d'Itri for his help.
+ * debian/patches/02_tools_udev.dpatch:
+ + Added; adds tools/udev from CVS.
+ * debian/rules:
+ + Generate the udev rules file for libsane and install it.
+ + Generate a modprobe blacklist (same as the hotplug blacklist).
+ * debian/libsane.postinst:
+ + Symlink the udev rules file under /etc/udev/rules.d; do that only once.
+ * debian/control:
+ + Recommends: hotplug | udev
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 28 Sep 2005 22:42:38 +0200
+
+sane-backends (1.0.16-2) unstable; urgency=low
+
+ * debian/patches/11_hotplug_wait_for_device.dpatch:
+ + Bump timeout to 25 seconds.
+ * debian/patches/01_hotplug_usbids.dpatch:
+ + Added; pulled from CVS. (Closes: #323607)
+ * debian/patches/32_plustek_update.dpatch:
+ + Supersedes 32_add_lide25.dpatch; plustek backend update, adds LiDE 25
+ support and fixes LiDE 20 support.
+ * debian/patches/33_sm3600_update.dpatch:
+ + Added; pulled from CVS, sm3600 adapted to sanei_usb.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 28 Aug 2005 18:33:18 +0200
+
+sane-backends (1.0.16-1) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * New upstream release.
+ + New backends: sm3840, genesys.
+ + Fixed typos in manpages. (Closes: #310332, #310333)
+ * Patches removed (integrated upstream):
+ + 01_hotplug_usbids.dpatch
+ + 02_tools_hotplug-ng.dpatch
+ + 03_manpages_fixes.dpatch
+ + Most of 30_misc_fixes.dpatch
+ + 31_gt68xx_fixes.dpatch
+ + 32_snapscan_update.dpatch
+ + 33_avision_update.dpatch
+ + 34_plustek_update.dpatch
+ + 35_libusbscanner_2.6_fixes.dpatch
+ + 36_sane-find-scanner_message.dpatch
+ + 37_epson_usbids.dpatch
+ * debian/libsane.postinst:
+ + Removed the udev check, it's broken and MAKEDEV now does the Right
+ Thing (tm) on its own. (Closes: #310216)
+ + Remove anything debconf-related.
+ * debian/control:
+ + Bumped Standards-Version to 3.6.2 (no changes).
+ + Update the conflict on libsane-extras.
+ + Downgrade Depends: sane-utils to Recommends: sane-utils now that Sarge
+ has been released.
+ + Drop dependency on debconf.
+ * debian/rules:
+ + Generate sane-backends.pot, patch from Martin Pitt. (Closes: #313527)
+ + Comment call to dh_installdebconf, we don't use debconf anymore.
+
+ [ Aurélien JARNO ]
+ * DEB_HOST_GNU_SYSTEM replaced by DEB_HOST_ARCH_OS.
+ * Get rid of debian/control.in by using the -V option of dpkg-gencontrol.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 7 Aug 2005 15:00:05 +0200
+
+sane-backends (1.0.15-10) unstable; urgency=low
+
+ * debian/patches/01_hotplug_usbids.dpatch:
+ + Updated; added Genius ColorPage Vivid3XE. (Closes: #305993)
+ + Added Microtek ScanMaker 3700. (Closes: #307952)
+ + Added Epson Stylus RX620. (Closes: #308867)
+ * debian/patches/11_hotplug_wait_for_device.dpatch:
+ + Added; try to wait for the device to appear in the FS. (Closes: #302891)
+ * debian/patches/30_misc_fixes.dpatch:
+ + Updated; fixed "device model referenced not duplicated" in the v4l
+ backend. (Closes: #306458)
+ * debian/control.in:
+ + Build-Depend on a fixed libusb.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 22 May 2005 11:09:19 +0200
+
+sane-backends (1.0.15-9) unstable; urgency=low
+
+ * debian/patches/22_dll_backend_conf.dpatch:
+ + Process /etc/sane.d/dll.d first, so that those backends will be loaded
+ last. This will prevent buggy extras backends to perturb other backends.
+ * debian/patches/03_manpages_fixes.dpatch:
+ + Fix a typo in sane(7), reported by A Costa. (Closes: #302675)
+ + Fix 3 typos in scanimage(1), also reported by A Costa. (Closes: #302334)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 20 Apr 2005 16:17:20 +0200
+
+sane-backends (1.0.15-8) unstable; urgency=low
+
+ [ Aurélien Jarno ]
+ * Drop support for the scanner kernel module. Switch to libusb NOW.
+ + Drop the devfs config file, remove /etc/devfs/conf.d/devfs
+ in libsane.postinst.
+ * Transition to the new hotplug hook scheme (pulled from CVS), which is
+ compatible with both hotplug and hotplug-ng.
+ + Remove /etc/hotplug/usb/libsane.usermap and /etc/hotplug/usb/libusbscanner
+ in libsane.postinst.
+ + Conflicts with libsane-extras (<< 1.0.15.7) to avoid partial upgrades, as
+ 1.0.15.7 is the version compatible with the new hotplug script.
+
+ [ Julien Blache ]
+ * Added support for GNU/kFreeBSD. (Closes: #297979)
+ + debian/rules: generate control at clean time.
+ + debian/rules: install README.{linux,freebsd} depending on the system.
+ + debian/patches/23_unneeded_doc.dpatch: do not install OS-specific READMEs.
+ + debian/control.in: do not depend on makedev on !linux (via debian/rules).
+ + debian/libsane.postinst: do not create device nodes on !linux.
+ * debian/rules:
+ + Install only the manpages for the backends which have been built.
+ + Cut the head of libsane.usermap to remove the comments pertaining to the
+ old usermap format.
+ * debian/libsane.README.Debian:
+ + Updated to relfect the hotplug changes.
+ * debian/libsane.postinst:
+ + Do not create device nodes when udev is in use.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 6 Mar 2005 00:36:43 +0100
+
+sane-backends (1.0.15-7) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * debian/patches/22_dll.conf_debian.dpatch
+ + Removed; renamed to 22_dll_backend_conf.dpatch.
+ * debian/patches/22_dll_backend_conf.dpatch
+ + Added; adds a Debian-specific comment to the dll.conf file, and patches
+ the dll backend to look for pieces of dll.conf in the /etc/sane.d/dll.d
+ directory; this is a facility for packages providing external backends,
+ like libsane-extras, hpoj and hplip.
+
+ [ Aurélien Jarno ]
+ * debian/patches/01_hotplug_usbids.dpatch
+ + Added Epson Corp. Stylus CX6600 to libsane.usermap. (Closes: #293082)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 21 Feb 2005 16:43:41 +0100
+
+sane-backends (1.0.15-6) unstable; urgency=low
+
+ * debian/control
+ + Recommends: hotplug (was Suggests: hotplug).
+ + Suggests: hpoj, hplip.
+ * debian/rules
+ + Blacklist the scanner module wrt hotplug.
+ * debian/libsane.README.Debian
+ + Explain that the scanner module is going away, and that we're now
+ blacklisting it wrt hotplug upon installation of the package.
+ * debian/patches/01_hotplug_usbids.dpatch
+ + Updated; added Epson Stylus RX-425.
+ * debian/patches/37_epson_usbids.dpatch
+ + Added; adds Epson Stylus RX-425.
+ * debian/patches/30_misc_fixes.dpatch
+ + Updated; added initialization of dev->scanning in coolscan.c.
+ * debian/patches/02_manpages_fixes.dpatch
+ + Added; manpages fixes from esr.
+ * debian/patches/32_snapscan_deinterlacer.dpatch
+ + Removed; renamed to 32_snapscan_update.dpatch.
+ * debian/patches/32_snapscan_update.dpatch
+ + Added; contains all of the previous 32_snapscan_deinterlacer.dpatch,
+ plus it adds support for the Epson Perfection 1270, BenQ 5250C and
+ quality calibration for the Epson Perfection 2480.
+ * debian/patches/22_dll.conf_debian.dpatch
+ + Updated; added the sm3840 backend provided by libsane-extras and the
+ hpaio backend provided by hplip. (Closes: #291435)
+ * debian/patches/38_artec_e+48_conf.dpatch
+ + Added; adds proper configuration for the Umax AstraSlim SE.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 22 Jan 2005 13:54:58 +0100
+
+sane-backends (1.0.15-5) unstable; urgency=medium
+
+ * debian/patches/34_plustek_update.dpatch:
+ + Added; pulled from CVS, contains fixes for Epson Perfection 1260
+ scanners. (Closes: #290029)
+ * debian/patches/35_libusbscanner_2.6_fixes.dpatch:
+ + Added; applied patch from Martin Pitt to use sysfs to determine the
+ device number, instead of guessing it in a semi-broken way.
+ (Closes: #289666)
+ * debian/patches/36_sane-find-scanner_message.dpatch
+ + Added; adds a "make sure your scanner is powered up and plugged in"
+ message to sane-find-scanner. (Closes: #287592)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 12 Jan 2005 17:48:30 +0100
+
+sane-backends (1.0.15-4) unstable; urgency=medium
+
+ * debian/control:
+ + Added build-dependency on pkg-config. (Closes: #286140)
+ * debian/patches/13_new_configure.dpatch:
+ + Fixed; remove unwanted autom4te.cache directory from the patch.
+ (Closes: #286143)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 19 Dec 2004 18:08:23 +0100
+
+sane-backends (1.0.15-3) unstable; urgency=low
+
+ * debian/patches/31_gt68xx_fixes.dpatch:
+ + Updated; added a fix for Mustek BearPaw 2448 TA/CS Plus scanners.
+ (Closes: #284674)
+ * debian/patches/33_avision_update.dpatch:
+ + Added; improved avision backend from CVS.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 9 Dec 2004 16:01:50 +0100
+
+sane-backends (1.0.15-2) unstable; urgency=low
+
+ * debian/patches/01_hotplug_usbids.dpatch:
+ + Added; taken from CVS, adds missing USB IDs to the hotplug scripts.
+ (Closes: #280821, #281003)
+ * debian/patches/31_gt68xx_fixes.dpatch:
+ + Added; taken from CVS, fixes incorrect mode check for some scanners.
+ (Closes: #281061)
+ * debian/patches/30_misc_fixes.dpatch:
+ + Added; miscellaneous fixes from CVS/sane-devel.
+ * debian/patches/32_snapscan_deinterlacer.dpatch:
+ + Added; taken from CVS, adds a deinterlacer filter to the snapscan
+ backend, which is needed to scan at 2400 DPI with some scanners.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 14 Nov 2004 15:39:36 +0100
+
+sane-backends (1.0.15-1) unstable; urgency=low
+
+ * New upstream release.
+ + Patch for Microtek Phantom C6 on PowerPC merged upstream.
+ (Closes: #274523)
+ + New backend: niash.
+ * debian/control:
+ + Update conflicts/replaces on libsane-extras 1.0.15.1.
+ * debian/patches/01_libusbscanner.dpatch:
+ + Removed; taken from CVS, included in this version.
+ * debian/patches/02_epson_usbids.dpatch:
+ + Removed; taken from CVS, included in this version.
+ * debian/patches/03_hotplug_usbids.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/11_libtool_unneeded_checks.dpatch:
+ + Removed.
+ * debian/patches/12_gphoto2_link_backend_only.dpatch:
+ + Updated; revert unwanted backend/Makefile.in patch causing an incorrect
+ rpath in /usr/lib/libsane.la. (Closes: #279082)
+ * debian/patches/13_new_configure.dpatch:
+ + Updated.
+ * debian/patches/22_dll.conf_debian.dpatch:
+ + Updated; the niash backend is now part of SANE.
+ * debian/patches/25_saned_man_section.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/26_scanimage_batch.dpatch:
+ + Removed; merged upstream.
+ * debian/patches/27_snapscan-usb_count_urb.dpatch:
+ + Removed; taken from CVS, included in this version.
+ * debian/sane-utils.README.Debian:
+ + Fix reference to /usr/share/doc/libsane/README.Debian.gz
+ (Closes: #278670)
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 9 Nov 2004 23:28:23 +0100
+
+sane-backends (1.0.14-7) unstable; urgency=medium
+
+ * Co-maintainer upload.
+ * debian/patches/27_snapscan-usb_count_urb.dpatch:
+ + Added, backported from CVS: Don't enforce even number of URB packages
+ on snapscan 1212u_2. (Closes: #250885)
+ * debian/patches/03_hotplug_usbids.dpatch:
+ + Added Epson Corp. Stylus CX6400 to libsane.usermap. (Closes: #293946)
+
+ -- Aurelien Jarno <aurel32@debian.org> Mon, 9 Aug 2004 11:17:13 +0200
+
+sane-backends (1.0.14-6) unstable; urgency=medium
+
+ * Urgency=medium as this revision will fix the upgrade path from Woody.
+ * debian/control:
+ + Removed obsolete gcc-3.3 build-depends. (Closes: #262245)
+ + Upgraded the sane-utils recommendation to a dependency as an upgrade
+ path from Woody. (Closes: #263408)
+ * debian/rules:
+ + Create /etc/hotplug/blacklist.d/libsane to prevent hotplug
+ from loading the no-longer-needed hpusbscsi module. (Closes: #260734)
+ * debian/patches/03_hotplug_usbids.dpatch:
+ + Added; adds HP ScanJet 5300C to libsane.usermap. (Closes: #260736)
+ * debian/patches/26_scanimage_batch.dpatch:
+ + Added; adds possibility to interrupt a batch scan in scanimage by
+ pressing ^D. (Closes: #260230)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 4 Aug 2004 22:12:40 +0200
+
+sane-backends (1.0.14-5) unstable; urgency=low
+
+ * debian/patches/02_epson_usbids.dpatch
+ + Put back the USB IDs for the Perfection 1650, remove the USB IDs for the
+ Perfection 1250, which now really fixes the bug.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 13 Jun 2004 13:48:27 +0200
+
+sane-backends (1.0.14-4) unstable; urgency=low
+
+ * debian/libsane.postinst
+ + modutils is Required, not Essential; replace kernelversion (provided by
+ modutils) by uname -r | cut. (Closes: #254140)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 13 Jun 2004 12:12:02 +0200
+
+sane-backends (1.0.14-3) unstable; urgency=low
+
+ * debian/libsane.postinst
+ + Do not create /dev/usb/scanner* if running a 2.6 kernel.
+ * debian/patches/02_espon_usbids.dpatch
+ + Remove USB IDs for Perfection 1250 and 1260; these scanners are handled
+ by the plustek backend (pulled from CVS). (Closes: #248859)
+ * debian/patches/25_saned_man_section.dpatch
+ + Added; saned goes to /usr/sbin, its manpage should go to section 8.
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 11 Jun 2004 21:37:18 +0200
+
+sane-backends (1.0.14-2) unstable; urgency=low
+
+ * debian/patches/22_dll.conf_debian.dpatch
+ + Enable the hpoj backend by default. (Closes: #246985, #248379)
+ * debian/patches/01_libusbscanner.dpatch
+ + Pulled from CVS, fixes hotplug's lack of backward compatibility
+ (Closes: #248770)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 20 May 2004 20:25:18 +0200
+
+sane-backends (1.0.14-1) unstable; urgency=low
+
+ * New upstream release.
+ + USB IDs for EPSON Stylus CX5400 added. (Closes: #243295)
+ + USB IDs for Nikon CoolScan 5000 added. (Closes: #243792)
+ * debian/hotplug/*
+ + removed, integrated upstream (tools/hotplug).
+ * debian/patches/01_mustek_pp_unified.dpatch
+ + removed, integrated in this release.
+ * debian/patches/02_hp_backend_usb_fix.dpatch
+ + removed, integrated in this release.
+ * debian/rules
+ + install the provided hotplug script and config file.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 1 May 2004 16:26:47 +0200
+
+sane-backends (1.0.13-4) unstable; urgency=low
+
+ * debian/patches/02_hp_backend_usb_fix.dpatch
+ + added, pulled from CVS, fixes USB problems on kernel 2.6. (Closes: #242188)
+ * Updated libsane.usermap from CVS. (Closes: #242090)
+ * Updated README.Debian, fixed a couple of typos.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 11 Apr 2004 10:31:41 +0200
+
+sane-backends (1.0.13-3) unstable; urgency=low
+
+ * debian/libsane.config, debian/libsane.templates, debian/po:
+ + Removed, we don't use debconf anymore.
+ * debian/postinst:
+ + Fixed the /dev/usb/parport0 typo that should have read /dev/parport0.
+ Thanks to Tore Anderson for catching this one.
+ + Removed anything debconf-related, only purge whatever is left in the
+ debconf DB. (Closes: #224597)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 20 Dec 2003 18:44:37 +0100
+
+sane-backends (1.0.13-2) unstable; urgency=low
+
+ * debian/patches: order of the patches changed (slightly).
+ + 01_mustek_pp_unified.dpatch: scan area fixes.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 1 Dec 2003 19:19:19 +0100
+
+sane-backends (1.0.13-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/patches:
+ + 20_net.c_fixes.dpatch : removed, merged upstream.
+ + 21_gt68xx_uhci_fixes.dpatch : ditto.
+ + 04_hp5400_sanei_config2.dpatch : ditto.
+ + 03_new_configure : updated.
+ + 04_mustek_pp_unified: added; with this patch the mustek_pp backend
+ supports both CIS and CCD scanners. (Closes: #190998)
+ * debconf:
+ + Direct users to README.Debian.gz instead of README.Debian
+ . (Closes: #217347)
+ + Added Japanese translation. (Closes: #214040)
+ + Added Dutch translation. (Closes: #218905)
+ + Added German translation, thanks to Dirk Ritter and debian-l10n-german.
+ * debian/sane-utils.README.Debian:
+ + More details about the saned user and group, and the reason why the saned
+ user is not part of the scanner group by default. (Closes: #220024)
+ * debian/devfs/scanner:
+ + Added an example for SCSI devices, thanks to Dirk Ritter.
+ * debian/control:
+ + Standards-Version bumped to 3.6.1 (no changes).
+ * debian/rules, debian/compat:
+ + Switch to DH_COMPAT 4, and moved from dh_movefiles to dh_install.
+ * debian/control, debian/rules:
+ + Build-depend on chrpath and use it to remove rpath from the binaries.
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 24 Nov 2003 18:35:21 +0100
+
+sane-backends (1.0.12-7) unstable; urgency=low
+
+ * The "Maintainer's birthday" release.
+ * Simplified the needlessly complex debconf questions. Now use a multiselect
+ question instead of 3 independent questions:
+ + debian/libsane.templates: rewritten to use a multiselect type
+ + debian/libsane.config: ditto, try to convert from the older questions,
+ then purge them once done.
+ + debian/libsane.postinst: rewritten to parse the answer from the new
+ debconf thingy.
+ + debian/control: now Depends: debconf (>= 0.5.0) due to the use of db_fset
+ in debian/libsane.config.
+ * debian/libsane.postinst: use ':' as a separator for chown instead of '.'.
+ * debian/libsane.README.Debian: ditto.
+ * debian/control: only Suggests: hotplug. (Closes: #205291)
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 20 Aug 2003 14:03:14 +0200
+
+sane-backends (1.0.12-6) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * debian/control
+ + Bumped Standards-Version to 3.6.0 (no changes).
+ + libsane depends on adduser (>= 3.47).
+ + libsane recommends hotplug.
+ * debian/libsane.templates: templates slightly rewritten to accomodate the
+ various debconf frontends. (Closes: #202744)
+ * debconf-related items:
+ + Switched debconf templates to debconf-po, thus build-depends on
+ debhelper (>= 4.1.16). (Closes: #203669)
+ + Added french debconf translation based on translation from Michel
+ Grentzinger <mic.grentz(AT)online.fr> for sane-backends 1.0.12-5.
+ (Closes: #203670)
+ * debian/libsane.postinst:
+ + Add a scanner system group, and chown root.scanner /dev/usb/scanner* if
+ we create them. (Closes: #201851)
+ * debian/libsane.README.Debian:
+ + Added a Setup paragraph, detailing permissions issues and solutions
+ implemented by this package.
+ * debian/sane-utils.README.Debian:
+ + Added, deals with permissions issues wrt the saned daemon.
+ * hotplug support:
+ + debian/hotplug/libusbscanner: added, hotplug script for scanners used
+ with libusb, courtesy of Max Kutny <mkut(AT)umc.com.ua>. Installed as
+ /etc/hotplug/usb/libusbscanner.
+ + debian/hotplug/libsane.usermap: example map file for use with hotplug.
+ Installed as /etc/hotplug/usb/libsane.usermap.
+
+ [ Aurélien JARNO ]
+ * debian/devfs/scanner:
+ + Added, installed as /etc/devfs/conf.d/scanner.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 6 Aug 2003 13:08:11 +0200
+
+sane-backends (1.0.12-5) unstable; urgency=low
+
+ * 21_gt68xx_uhci_fixes.dpatch : fix timeout with UHCI host controllers.
+ * debian/control:
+ - Added temporary Build-Dependency on gcc-3.3 (>= 3.3.1-0pre0), which should
+ fix the ICE on m68k.
+ * debian/rules:
+ - Should build with -O2 on m68k again.
+
+ -- Julien BLACHE <jblache@debian.org> Wed, 2 Jul 2003 12:04:59 +0200
+
+sane-backends (1.0.12-4) unstable; urgency=low
+
+ [ Julien BLACHE ]
+ * The "I fucking hate libtool" release. Prevent libtool from checking things
+ we do not need at all, such as a C++ or an F77 compiler. Sigh.
+ * Converted to dpatch. Build-depends on dpatch.
+ * Re-enable the gphoto2 backend, -but- do so that frontends do not get linked
+ against libgphoto2. Only the backend is linked against it. (Closes: #195613)
+ * Thus, adds back the libgphoto2-2-dev build-dependency.
+ * Effectively move the html doc to the html subdir, instead of copying them
+ with dh_install.
+
+ [ Aurélien JARNO ]
+ * Add autotools-stamp, so that configure won't be run twice.
+ * Do not link sanei_config2 in hp5400 : not needed (fixes an undefined
+ symbol, too).
+
+ -- Julien BLACHE <jblache@debian.org> Tue, 3 Jun 2003 22:34:48 +0200
+
+sane-backends (1.0.12-3) unstable; urgency=low
+
+ * Fix the net backend so that it _does_ try all alternatives before giving
+ up connecting to the server. (Closes: #195396)
+
+ -- Julien BLACHE <jblache@debian.org> Fri, 30 May 2003 19:22:54 +0200
+
+sane-backends (1.0.12-2) unstable; urgency=low
+
+ * Build with -O1 on m68k; -O2 triggers an ICE.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 29 May 2003 11:36:41 +0200
+
+sane-backends (1.0.12-1) unstable; urgency=low
+
+ * New upstream release.
+ + Should now work on m68k. Yeah. (Closes: #77356)
+ + sane(7) has been improved. (Closes: #188647)
+ + scanimage(1) has been fixed, wrt --batch.
+ + The hp5400 backend has been included, replaces libsane-extras (<< 1.0.12.1).
+ + IPv6 support.
+ * Standards-Version bumped to 3.5.10 (no changes).
+ * libsane-dev belongs to libdevel.
+ * Do not generate manpages and documentation we do not need.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 25 May 2003 21:14:37 +0200
+
+sane-backends (1.0.11-4) unstable; urgency=medium
+
+ * Move saned.conf to the sane-utils package. Woops. (Closes: #192742)
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 10 May 2003 08:41:23 +0200
+
+sane-backends (1.0.11-3) unstable; urgency=medium
+
+ * The "We want to enter testing" release.
+ * Do not build the gphoto2 backend. Gphoto2 is blocked by a bunch of other
+ packages (KDE, ...) and we're free of RC bugs. Enough.
+ * Moved libphoto2-2-dev to Build-Conflicts.
+ * Bumped shlibs.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 3 May 2003 21:09:58 +0200
+
+sane-backends (1.0.11-2) unstable; urgency=low
+
+ * Do not tell how to configure libusb. (Closes: #180570)
+ * Do not print "Adding saned..." in sane-utils postinst
+ when the user already exists.
+ * Pulled fixed gphoto2 backend from CVS. (Closes: #180514)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 13 Feb 2003 13:22:21 +0100
+
+sane-backends (1.0.11-1) unstable; urgency=low
+
+ * New upstream release.
+ + security fixes to saned. (Closes: #180203)
+ * Added some debconf dialogs:
+ + /dev/parport*
+ + /dev/sg*
+ + note about /proc/bus/usb
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 9 Feb 2003 21:17:16 +0100
+
+sane-backends (1.0.10-2) unstable; urgency=low
+
+ * Fix postrm breakage. (Closes: #179586)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 3 Feb 2003 12:39:14 +0100
+
+sane-backends (1.0.10-1) unstable; urgency=low
+
+ * New upstream release.
+ + fixed sane-scsi manpage. (Closes: #174136)
+ + mustek_pp now has CIS support. (Closes: #152321)
+ * Added http://www.mostang.com/sane/sane-mfgs.html
+ as /usr/share/doc/libsane/supported.html. (Closes: #174131)
+ * New backends, previously included in libsane-extras :
+ + gt68xx
+ + artec_eplus48u (known as tevion9693usb)
+ * datadir is ${prefix}/share, not ${prefix}/share/sane.
+ * Remove /usr/lib/sane/libsane.so.1, as it's not libsane.so.1
+ (looks like a libtool side-effect).
+ * Remove a couple more unwanted READMEs.
+ * Bumped Standards-Version to 3.5.8.
+ * Added a debconf dialog to create /dev/usb/*. (Closes: #177979)
+ * Added missing dependency on adduser to sane-utils.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 2 Feb 2003 11:22:24 +0100
+
+sane-backends (1.0.9-4) unstable; urgency=low
+
+ * Pulled dll.c from CVS, fixes in-line comments. (Closes: #171521)
+ * Applied patch for Plustek backend rounding bug. (Closes: #172012)
+
+ -- Julien BLACHE <jblache@debian.org> Mon, 9 Dec 2002 11:51:26 +0100
+
+sane-backends (1.0.9-3) unstable; urgency=low
+
+ * Rebuilt against new libgphoto2 package.
+ * Changed Uploaders: filed so that Aurélien's uploads won't be tagged as
+ NMU again.
+ * Do not generate debian/libsane.conffiles at build time, this is handled
+ by dh_installdeb automatically ; otherwise we end up with each conffile
+ being listed twice...
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 1 Dec 2002 11:29:43 +0100
+
+sane-backends (1.0.9-2) unstable; urgency=low
+
+ * Co-maintainer upload.
+ * Remove /etc/sane.d directory on purge. (Closes: #167603)
+
+ -- Aurelien Jarno <aurel32@debian.org> Mon, 4 Nov 2002 14:10:54 +0100
+
+sane-backends (1.0.9-1) unstable; urgency=low
+
+ * New upstream release.
+ + Video for Linux (v4l) backend cleanup. (Closes: #159634)
+ + Updated Avision backend. (Closes: #146054)
+ + Updated Epson backend. (Closes: #114017)
+ + Fixed char signedness in backend/plustek-usbshading.c. (Closes: #164464)
+ * Fixed debian/copyright. (Closes: #146057)
+ * Enabled translations.
+ * Do not install the upstream changelog twice.
+ * sane-utils does not create /home/saned.
+ * Fixed packages descriptions. (Closes: #165138)
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 24 Oct 2002 18:52:29 +0200
+
+sane-backends (1.0.8-4) unstable; urgency=low
+
+ * libsane-extras has its own source package now.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 13 Oct 2002 10:49:54 +0200
+
+sane-backends (1.0.8-3) unstable; urgency=low
+
+ * New maintainers.
+ * New upstream release. (Closes: #162532, #149317)
+ + saned manpage mentions /usr/sbin/saned. (Closes: #141464)
+ + Symlinks for manpages are properly created. (Closes: #99551)
+ + Fixed hostnames handling in saned.conf. (Closes: #51171)
+ + HP backend update. (Closes: #116962)
+ + Backend loader respects LD_LIBRARY_PATH. (Closes: #143771)
+ + Path for Epson USB scanner corrected in conf file. (Closes: #154296, #154305)
+ + A test backend is included, safer than the pnm backend. (Closes: #139256)
+ + Umax backend fixed. (Closes: #158676)
+ + HP backend fixed, no longer segfaults. (Closes: 154827)
+ * Repackaged from scratch, using debhelper.
+ * Standards-Version bumped to 3.5.6.
+ * Do not include rpath informations in sane-config. (Closes: #143603)
+ * Fixed build problem wrt umask. (Closes: #95440)
+ * Updated libsane-dev Depends. (Closes: #142679)
+ * Fixed typos in umax_pp.conf. (Closes: #158742)
+ * Fixed hp.conf for some scanners. (Closes: #154828)
+ * Fixed README.Debian. (Closes: #146039)
+ * Fixed sane-plustek(5) manpage. (Closes: #159435)
+ * New package sane-utils, contains sane-find-scanner, scanimage and saned.
+ + sane-utils creates user and group saned. (Closes: #141465)
+ * New package libsane-extras, containing some extra backends
+ + hp4200 (v0.2p1)
+ + gt68xx (v1.0-23)
+ + niash (v20020217) (Closes: #160327)
+ + tevion9693 (v0.0.9)
+ * Disabled translations until 1.0.9.
+
+ -- Julien BLACHE <jblache@debian.org> Sat, 12 Oct 2002 10:28:09 +0200
+
+sane-backends (1.0.8-2) unstable; urgency=low
+
+ * Added build-depends on gettext. (Closes: #163681)
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 7 Oct 2002 09:32:21 -0700
+
+sane-backends (1.0.8-1) unstable; urgency=low
+
+ * New upstream release.
+ + Many new backends
+ + Many more updated backends
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 6 Oct 2002 18:09:28 -0700
+
+sane-backends (1.0.7-3.2) unstable; urgency=high
+
+ * Non-Maintainer Upload.
+ * Fix build on SPARC.
+ * Fix build on HPPA, although it's not RC. (Closes: #138108)
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 7 Apr 2002 11:39:41 +0200
+
+sane-backends (1.0.7-3.1) unstable; urgency=medium
+
+ * Non-Maintainer upload.
+ * Fixes compilation on Alpha, using the frontend/scanimage.c file from
+ the current CVS. (Closes: #138108)
+ * Apply patch submitted for #139509, regarding config.{sub,guess} issues
+ on MIPS. (Closes: #139509)
+ * Fix lintian complaint wrt misplaced Conflicts: field in control file.
+ * Fix lintian complaint about .comment section in /usr/lib/sane/*.so.*.
+
+ -- Julien BLACHE <jblache@debian.org> Sun, 31 Mar 2002 20:24:48 +0200
+
+sane-backends (1.0.7-3) unstable; urgency=low
+
+ * Link against libusb-0.1-4. (Closes: #119393)
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 15 Mar 2002 18:31:08 +0000
+
+sane-backends (1.0.7-2) unstable; urgency=low
+
+ * Don't link against libusb due to inconsistencies with versions of libusb
+ libraries. When libusb installation is cleaned up, then usb support
+ will be added again. Unfortunately, this re-opens #119393, though
+ with a lower severity. (Closes: #138349)
+
+ -- Kevin Dalley <kevind@rahul.net> Thu, 14 Mar 2002 22:25:53 +0000
+
+sane-backends (1.0.7-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add libusb, which includes ScanMaker 3600 drivers. (Closes: #119393)
+ * Install plustek-share.h so that plustek driver can be built.
+ (Closes: #72341)
+
+ -- Kevin Dalley <kevind@rahul.net> Thu, 14 Mar 2002 01:02:21 +0000
+
+sane-backends (1.0.6-1) unstable; urgency=low
+
+ * New upstream release.
+ + New backend: gphoto2.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 27 Jan 2002 23:30:19 -0800
+
+sane-backends (1.0.5-3) unstable; urgency=low
+
+ * Rebuilt with new version of libgimp-1.2.2-2.
+
+ -- Kevin Dalley <kevind@rahul.net> Tue, 2 Oct 2001 22:31:15 -0700
+
+sane-backends (1.0.5-2) unstable; urgency=low
+
+ * Removed incorrect build dependency on libc6-dev. (Closes: #108639)
+
+ -- Kevin Dalley <kevind@rahul.net> Thu, 16 Aug 2001 08:12:40 -0700
+
+sane-backends (1.0.5-1) unstable; urgency=low
+
+ * New backends: bh (Bell+Howell Copiscan II series), dc240 (Kodak DC240
+ Digital Camera), sm3600 (Microtek ScanMaker 3600), umax_pp (Umax paralell
+ port scanners).
+ * Fix security bug in saned.c that allowed access to scanner without
+ password.
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 28 Jul 2001 12:38:46 -0700
+
+sane-backends (1.0.4-2) unstable; urgency=low
+
+ * Increase timeout in sanei_scsi.c, which removes problem with 2.4
+ kernels. (Closes: #84407)
+
+ -- Kevin Dalley <kevind@rahul.net> Thu, 31 May 2001 04:36:29 -0700
+
+sane-backends (1.0.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add backend as63driver. (Closes: #69625)
+
+ -- Kevin Dalley <kevin@seti.org> Sun, 28 Jan 2001 09:17:24 -0800
+
+sane-gimp1.1 (1.0.3-4) unstable; urgency=low
+
+ * Link sane-gimp1.1 against libgimp1.1-1.1.29.
+ * Change control files so that packages sane and sane-gimp1.1 are
+ explicitly described as working with gimp and gimp1.1 respectively.
+ The package sane now mentions the packages sane-gimp1.1 and vice
+ versa.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 5 Nov 2000 13:56:49 -0800
+
+sane (1.0.3-3) unstable; urgency=low
+
+ * Link sane-gimp1.1 against libgimp1.1-1.1.28, which is new library.
+ (Closes: #75029)
+ * Define GIMP_ENABLE_COMPAT_CRUFT to allow use of newer libgimp.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 22 Oct 2000 21:52:29 -0700
+
+sane (1.0.3-2) unstable; urgency=low
+
+ * Fix dependency in libsane-dev. (Closes: #71578)
+ * Remove extraneous file which contains space in its name, which causes
+ patch and dpkg-source to fail. (Closes: #71566, #71564, #71540)
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 22 Sep 2000 23:04:17 -0700
+
+sane (1.0.3-1) unstable; urgency=low
+
+ * New upstream release.
+ + New backends:
+ - mustek_pp
+ - plustek
+ - st400
+ - v41
+ + Many updated backends.
+ + 16 bit support for scanimage.
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 2 Sep 2000 11:32:08 -0700
+
+sane (1.0.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Aliased and hidden backend support.
+ * Added Ricoh IS50 support.
+ * updated many backends.
+ * New Linux SCSI Generic driver.
+ * sane-gimp1.1 linked with libsane-1,1.22. (Closes: #66544)
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 3 Jul 2000 23:38:42 -0700
+
+sane (1.0.1-1999-10-21-12) unstable; urgency=low
+
+ * Add libjpeg62-dev, tetex-bin, tetex-extra to Build-Depends.
+ (Closes: #61834, 61835)
+
+ -- Kevin Dalley <kevind@rahul.net> Wed, 5 Apr 2000 10:37:38 -0700
+
+sane-gimp1.1 (1.0.1-1999-10-21-11) unstable; urgency=low
+
+ * Add Build-Depends to control files for sane and sane-gimp1.1.
+ (Closes: #60923)
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 27 Mar 2000 03:16:55 -0800
+
+sane (1.0.1-1999-10-21-10) unstable; urgency=low
+
+ * Improve description in control file. (Closes: #57032)
+ * Link sane-gimp1.1 with libgimp1.1.17, which is the most recent
+ libgimp1.1 in frozen unstable.
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 28 Feb 2000 02:37:20 +0000
+
+sane (1.0.1-1999-10-21-9) unstable; urgency=low
+
+ * Link sane-gimp1.1 with libgimp1.1.15, which is the most recent
+ libgimp1.1 in frozen unstable.
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 22 Jan 2000 01:57:55 -0800
+
+sane (1.0.1-1999-10-21-8) unstable; urgency=low
+
+ * sane now conflicts with gimp1.1, which increases the chances of
+ getting the correct versions of gimp with each version of sane.
+ Unfortunately, sane-gimp1.1 cannot conflict with gimp, since
+ gimp1.1 provides gimp. (Closes: #55070)
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 16 Jan 2000 11:41:52 -0800
+
+sane (1.0.1-1999-10-21-7) unstable; urgency=low
+
+ * Link against libgimp1.1.14. (Closes: #53982)
+ * Remove conflict of libsane-gimp1.1 with itself. (Closes: #49709)
+ * Each version of sane and sane-gimp1.1 now depend upon the same release
+ of libsane. (Closes: #50927)
+ * shlibs dependencies are updated to ">= 1.0.1-1999-10-21-7" to reduce
+ chances of problem #50927.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 9 Jan 2000 13:22:57 -0800
+
+sane (1.0.1-1999-10-21-6) unstable; urgency=low
+
+ * Add conflict between libsane and older version of sane, sane-gimp1.1
+ due to moving documentation from sane to libsane. (Closes: #50735)
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 20 Nov 1999 15:15:30 -0400
+
+sane (1.0.1-1999-10-21-5) unstable; urgency=low
+
+ * Add symbolic link to /usr/lib/libsane-dll.so, again.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 19 Nov 1999 00:03:40 -0400
+
+sane (1.0.1-1999-10-21-4) unstable; urgency=low
+
+ * Fix problematic stripping of "libsane.la". (Closes: #50099)
+ * Move much of documentation from the sane package to the libsane
+ and libsane-dev packages.
+ * Move find-scanner to libsane package.
+
+ -- Kevin Dalley <kevind@rahul.net> Wed, 17 Nov 1999 23:08:44 -0400
+
+sane (1.0.1-1999-10-21-3) unstable; urgency=low
+
+ * Add symbolic link for /usr/lib/libsane-dll.so.
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 25 Oct 1999 01:24:30 -0700
+
+sane (1.0.1-1999-10-21-2) unstable; urgency=low
+
+ * Fix symbolic link for libsane.so.1.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 24 Oct 1999 14:43:14 -0700
+
+sane (1.0.1-1999-10-21-1) unstable; urgency=low
+
+ * New CVS snapshot.
+ + Fixes many bugs in various backends.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 22 Oct 1999 22:06:52 -0700
+
+sane (1.0.1-6) unstable; urgency=low
+
+ * Relink sane-gimp1.1 with libgimp1.1.10
+
+ -- Kevin Dalley <kevind@rahul.net> Thu, 14 Oct 1999 23:33:18 -0700
+
+sane (1.0.1-5) unstable; urgency=low
+
+ * Relink sane-gimp1.1 with libgimp1.1.9
+ * Separate sane-gimp1.1 from sane.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 10 Oct 1999 03:42:37 -0700
+
+sane (1.0.1-4) unstable; urgency=low
+
+ * Added sane-gimp1.1 (used with gimp1.1) at the same time as sane for
+ gimp-1.0.x.
+
+ -- Kevin Dalley <kevind@rahul.net> Wed, 30 Jun 1999 00:54:57 -0700
+
+sane (1.0.1-3) unstable; urgency=low
+
+ * Try to fix problems with shared libraries. Install libsane-dll.so in
+ /usr/lib so that programs linked with libsane will run.
+ (Closes: #37756)
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 31 May 1999 22:15:16 -0700
+
+sane (1.0.1-2) unstable; urgency=low
+
+ * Remove dependencies for libsane.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 30 Apr 1999 23:08:50 -0700
+
+sane (1.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * New backend for Sharp scanners
+ * Update backends for Kodak DC25, HP, Microtek, Micro, Mustek, Nikon
+ Coolscan, snapscan, UMAX.
+ * Fixes a problem with HP scanners. (Closes: #32516)
+ * Includes backend for dc210. (Closes: #31377)
+
+ -- Kevin Dalley <kevind@rahul.net> Tue, 27 Apr 1999 01:24:33 -0700
+
+sane (1.00-2) unstable; urgency=low
+
+ * Removed examples directory. Moved examples/tools to tools directory.
+
+ -- Kevin Dalley <kevind@rahul.net> Mon, 5 Apr 1999 02:04:53 -0700
+
+sane (1.00-1) unstable; urgency=low
+
+ * New upstream release.
+ * Artec backend is back in dll.conf.
+ * Many more scanner are supported now and more changes.
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 5 Dec 1998 01:00:30 -0800
+
+sane (0.74-2) unstable; urgency=low
+
+ * Temporarily comment out Artec backend in dll.conf, due to bad
+ interaction with Umax scanner. When using an Artec scanner,
+ uncomment "artec" in dll.conf.
+ * Automatically generates conffiles. (Closes: #26545)
+ Thanks to Roman Hodek <roman.hodek@informatik.uni-erlangen.de>.
+ * Fix a problem with creation of /usr/share/sane during the
+ build process. (Closes: #26314)
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 20 Sep 1998 18:00:28 -0700
+
+sane (0.74-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 22 Aug 1998 23:06:26 -0700
+
+sane (0.72-1) unstable; urgency=low
+
+ * New upstream release.
+ * First official release to support libgtk1-0.99.9.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 10 Apr 1998 02:29:52 -0700
+
+sane (0.71-2) unstable; urgency=low
+
+ * Fixed spelling in control files. (Closes: # 19003)
+ * Modified to match latest change in libgtk-0.99.5
+ * Change datadir to /usr/share/sane
+ * Compatible with libgtk1-0.99.8. (Closes: #19595)
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 22 Mar 1998 19:44:10 -0800
+
+sane (0.71-1) unstable; urgency=low
+
+ * New upstream release.
+ + New backends:
+ - Polaroid Digital Microscope Cameras (DMC)
+ - Apple scanners
+ - Nikon CoolScan
+ * Remove execute permission in doc directory. (Closes: #17949)
+ * Modify manual page referring to symbolic link of xscanimage.
+ (Closes: #18071)
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 27 Feb 1998 23:03:08 -0800
+
+sane (0.70-1) unstable; urgency=low
+
+ * New upstream release:
+ + New and updated backends:
+ - AGFA SnapScan
+ - UMAX scanners
+ * Add patches 2-5 to SnapScan backend which allows other scanners
+ to work as well with the backend
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 31 Jan 1998 17:32:53 -0800
+
+sane (0.69-2) unstable; urgency=low
+
+ * Modify umax-scanner.h so that Astra 1200S is legal.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 25 Jan 1998 09:44:45 -0800
+
+sane (0.69-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 23 Jan 1998 20:24:01 -0800
+
+sane (0.68-4) unstable; urgency=low
+
+ * Modify gtkglue.c to correspond with changes to libgtk1.
+
+ -- Kevin Dalley <kevind@rahul.net> Tue, 6 Jan 1998 22:24:14 -0800
+
+sane (0.68-3) unstable; urgency=low
+
+ * Change plug-in directory to 0.99 to match gimp changes,
+ add explicit gimp dependency.
+ * Add README.debian.
+ * Install find-scanner.
+ * Install many documentation files.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 2 Jan 1998 21:51:52 -0800
+
+sane (0.68-2) unstable; urgency=low
+
+ * Fix control file.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 21 Dec 1997 18:26:23 -0800
+
+sane (0.68-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Kevin Dalley <kevind@rahul.net> Fri, 5 Dec 1997 00:42:27 -0800
+
+sane (0.67-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Kevin Dalley <kevind@rahul.net> Tue, 18 Nov 1997 21:38:41 -0800
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..87c1306
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,159 @@
+Source: sane-backends
+Section: graphics
+Priority: optional
+Maintainer: Jörg Frings-Fürst <debian@jff.email>
+Standards-Version: 4.6.0
+Build-Depends:
+ autoconf,
+ autoconf-archive,
+ chrpath,
+ debhelper-compat (= 13),
+ gettext,
+ libavahi-client-dev,
+ libcam-dev [kfreebsd-any],
+ libcups2-dev,
+ libcurl4-gnutls-dev,
+ libgphoto2-dev,
+ libieee1284-3-dev [!hurd-i386],
+ libjpeg-dev,
+ libltdl-dev,
+ libpoppler-glib-dev,
+ libsnmp-dev [!kfreebsd-any],
+ libsystemd-dev [linux-any],
+ libtiff-dev,
+ libusb-1.0-0-dev,
+ libxml2-dev,
+ pkg-config,
+ po-debconf,
+ xutils-dev,
+ python3-minimal:any
+Homepage: http://www.sane-project.org
+Vcs-Git: git://jff.email/opt/git/sane-backends.git
+Vcs-Browser: https://jff.email/cgit/sane-backends.git
+Rules-Requires-Root: no
+
+Package: sane-utils
+Architecture: any
+Multi-Arch: foreign
+Depends:
+ adduser,
+ lsb-base (>= 3.0-6),
+ update-inetd,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Pre-Depends:
+ ${misc:Pre-Depends}
+Breaks: libsane-common (<<1.1.1-3~)
+Suggests: avahi-daemon, unpaper
+Description: API library for scanners -- utilities
+ SANE stands for "Scanner Access Now Easy" and is an application
+ programming interface (API) that provides standardized access to any
+ raster image scanner hardware (flatbed scanner, hand-held scanner,
+ video- and still-cameras, frame-grabbers, etc.). The SANE standard is
+ free and its discussion and development are open to everybody. The
+ current source code is written to support several operating systems,
+ including GNU/Linux, OS/2, Win32 and various Unices and is available
+ under the GNU General Public License (commercial applications and
+ backends are welcome, too, however).
+ .
+ This package includes the command line frontend scanimage, the saned
+ server and the sane-find-scanner utility, along with their documentation.
+
+Package: libsane-common
+Section: libs
+Architecture: all
+Multi-Arch: foreign
+Pre-Depends:
+ dpkg (>= 1.15.7.2)
+Depends: ${misc:Depends}
+Breaks: sane-utils (<<1.1.1-3~)
+Replaces: sane-utils (<<1.1.1-3~)
+Description: API library for scanners -- documentation and support files
+ SANE stands for "Scanner Access Now Easy" and is an application
+ programming interface (API) that provides standardized access to any
+ raster image scanner hardware (flatbed scanner, hand-held scanner,
+ video- and still-cameras, frame-grabbers, etc.). The SANE standard is
+ free and its discussion and development are open to everybody. The
+ current source code is written to support several operating systems,
+ including GNU/Linux, OS/2, Win32 and various Unices and is available
+ under the GNU General Public License (commercial applications and
+ backends are welcome, too, however).
+ .
+ This package includes documentation for libsane, such as the man pages
+ and list of supported scanners, and support files (i18n data).
+
+Package: libsane1
+Section: libs
+Architecture: any
+Multi-Arch: same
+Breaks: libsane (<< 1.0.29-1~)
+Replaces: libsane (<< 1.0.29-1~)
+Provides: libsane (= ${binary:Version})
+Depends:
+ acl [linux-any],
+ adduser,
+ libsane-common (= ${source:Version}),
+ udev [linux-any],
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends:
+ sane-airscan,
+ sane-utils (>= ${binary:Version}),
+ ipp-usb
+Suggests: avahi-daemon, hplip
+Description: API library for scanners
+ SANE stands for "Scanner Access Now Easy" and is an application
+ programming interface (API) that provides standardized access to any
+ raster image scanner hardware (flatbed scanner, hand-held scanner,
+ video- and still-cameras, frame-grabbers, etc.). The SANE standard is
+ free and its discussion and development are open to everybody. The
+ current source code is written to support several operating systems,
+ including GNU/Linux, OS/2, Win32 and various Unices and is available
+ under the GNU General Public License (commercial applications and
+ backends are welcome, too, however).
+ .
+ Graphical frontends for sane are available in the packages sane and
+ xsane. Command line frontend scanimage, saned and sane-find-scanner are
+ available in the sane-utils package.
+
+Package: libsane-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends:
+ libsane1 (= ${binary:Version}),
+ ${misc:Depends}
+Description: API development library for scanners [development files]
+ SANE stands for "Scanner Access Now Easy" and is an application
+ programming interface (API) that provides standardized access to any
+ raster image scanner hardware (flatbed scanner, hand-held scanner,
+ video- and still-cameras, frame-grabbers, etc.). The SANE standard is
+ free and its discussion and development are open to everybody. The
+ current source code is written to support several operating systems,
+ including GNU/Linux, OS/2, Win32 and various Unices and is available
+ under the GNU General Public License (commercial applications and
+ backends are welcome, too, however).
+ .
+ This package contains the files needed to build your applications
+ using SANE.
+
+Package: libsane
+Architecture: any
+Multi-Arch: same
+Section: oldlibs
+Depends:
+ libsane1 (>= ${source:Version}),
+ ${misc:Depends}
+Description: API library for scanners [transitional package]
+ SANE stands for "Scanner Access Now Easy" and is an application
+ programming interface (API) that provides standardized access to any
+ raster image scanner hardware (flatbed scanner, hand-held scanner,
+ video- and still-cameras, frame-grabbers, etc.). The SANE standard is
+ free and its discussion and development are open to everybody. The
+ current source code is written to support several operating systems,
+ including GNU/Linux, OS/2, Win32 and various Unices and is available
+ under the GNU General Public License (commercial applications and
+ backends are welcome, too, however).
+ .
+ This package is here to ensure smooth upgrades. It can be removed when
+ you see fit.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6671360
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,1428 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sane-backends
+Upstream-Contact: <sane-devel@alioth-lists.debian.net>
+Source: https://gitlab.com/sane-project/backends/-/archive/master/
+
+Files: *
+Copyright: 1997-2014 Andreas Beck
+ 1997-2014 David Mosberger
+License: GPL-2+ with sane exception
+
+Files: debian/*
+Copyright: 1997-2002 Kevin Dalley <kevind@rahul.net>
+ 2002-2011 Julien BLACHE <jblache@debian.org>
+ 2002-2006 Aurélien Jarno <aurel32@debian.org>
+ 2013 Mark Buda <hermit@acm.org>
+ 2018 Laurent Bigonville <bigon@debian.org>
+ 2019 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
+ 2014-2022 Jörg Frings-Fürst <debian@jff.email>
+License: GPL-2+ with sane exception
+
+Files: backend/abaton.*
+Copyright: 1998-1998 David Huggins-Daines
+License: GPL-2+ with sane exception
+
+Files: backend/agfafocus.*
+Copyright: 1997 Ingo Schneider
+ 1998 Karl Anders Øygard
+License: GPL-2+
+
+Files: backend/apple.*
+Copyright: 1998 Milon Firikis
+License: GPL-2+ with sane exception
+
+Files: backend/artec.*
+ backend/qcam.*
+ backend/dll.*
+ include/sane/sanei_scsi.h
+ include/sane/sanei_wire.h
+ sanei/sanei_DomainOS.c
+ sanei/sanei_codec_ascii.c
+ sanei/sanei_codec_bin.c
+ sanei/sanei_config2.c
+ sanei/sanei_net.c
+ sanei/sanei_wire.c
+Copyright: 1996-1997 David Mosberger-Tang
+License: GPL-2+ with sane exception
+
+Files: backend/artec_eplus48u.*
+Copyright: 2002 Michael Herder <crapsite@gmx.net>
+License: GPL-2+ with sane exception
+
+Files: backend/as6e.*
+Copyright: 2000 Eugene S. Weiss
+License: GPL-2+ with sane exception
+
+Files: backend/avision.*
+Copyright: 1999-2015 Rene Rebe <rene@exactcode.de>
+ 1999-2001 Meino Christian Cramer <mccramer@s.netic.de>
+ 2002 Jose Paulo Moitinho de Almeida <moitinho@civil.ist.utl.pt>
+ 2010-2011 Mike Kelly <mike@piratehaven.org>
+License: GPL-2+ with sane exception
+
+Files: backend/bh.*
+Copyright: 1999-2000 Tom Martone
+License: GPL-2+ with sane exception
+
+Files: backend/canon-scsi.c
+ backend/canon.*
+Copyright: 1997 BYTEC GmbH Germany
+License: GPL-2+ with sane exception
+
+Files: backend/canon_lide70*
+Copyright: 2019-2021 Juergen Ernst and pimvantend
+License: GPL-2+ with sane exception
+
+Files: backend/canon630u.c
+Copyright: 2002 Nathan Rutman <nathan@gordian.com>
+ 2001 Marcio Luis Teixeira
+ 1996-1997 Andreas Beck
+ 2000-2001 Michael Herder <crapsite@gmx.net>
+ 2001 Henning Meier-Geinitz <henning@meier-geinitz.de>
+License: GPL-2+ with sane exception
+
+Files: backend/canon_dr.*
+ backend/cardscan.*
+ include/sane/sanei_magic.h
+ sanei/sanei_magic.c
+Copyright: 2007-2021 m. allan noah
+License: GPL-2+ with sane exception
+
+Files: backend/canon_pp-*.*
+ backend/canon_pp.*
+Copyright: 2001-2002 Matthew C. Duggan
+ 2001-2002 Simon Krix
+License: GPL-2+ with sane exception
+
+Files: backend/coolscan2.*
+Copyright: 2001-2002 András Major <andras@users.sourceforge.net>
+License: GPL-2+ with sane exception
+
+Files: backend/coolscan3.*
+ include/sane/sanei_tcp.h
+ include/sane/sanei_udp.h
+ sanei/sanei_tcp.c
+ sanei/sanei_udp.c
+Copyright: 2006-2008 Tower Technologies <a.zummo@towertech.it>>
+License: GPL-2+ with sane exception
+
+Files: backend/dc210.*
+ backend/dc240.*
+Copyright: 1998 Brian J. Murrell
+License: GPL-2+ with sane exception
+
+Files: backend/dc25.*
+Copyright: 1998 Peter Fales
+License: GPL-2+ with sane exception
+
+Files: backend/dell1600n_net.*
+Copyright: 2006 Jon Chambers <jon@jon.demon.co.uk>
+License: GPL-2+ with sane exception
+
+Files: backend/dmc.*
+Copyright: 1998 David F. Skoll
+License: GPL-2+ with sane exception
+
+Files: backend/escl/*
+Copyright: 2019 Touboul Nathane
+ 2019-2020 Thierry HUCHARD <thierry@ordissimo.com>
+License: GPL-2+ with sane exception
+
+Files: backend/epjitsu*.*
+Copyright: 2007-2015 m. allan noah <kitno455@gmail.com>
+ 2009 Richard Goedeken <richard@fascinationsoftware.com>
+License: GPL-2+ with sane exception
+
+Files: backend/epson.*
+Copyright: 1997 Hypercore Software Design, Ltd.
+ 1998-1999 Christian Bucher <bucher@vernetzt.at>
+ 1998-1999 Kling & Hautzinger GmbH
+ 1999 Norihiko Sawa <sawa@yb3.so-net.ne.jp>
+ 2000 Mike Porter <mike@udel.edu>
+ 2003 EPSON KOWA Corporation
+ 1999-2005 Karl Heinz Kremer <khk@khk.net>
+ 2006 Claus Boje <claus@egehuset.dk>
+License: GPL-2+ with sane exception
+
+Files: backend/epson2-cct.*
+Copyright: 2001-2009 SEIKO EPSON Corporation
+ 2009 Tower Technologies
+License: GPL-2+
+
+Files: backend/epson2-commands.*
+ backend/epson2-io.*
+ backend/epson2-ops.*
+ backend/epson2_net.*
+ backend/epson2.*
+ backend/epsonds*.*
+Copyright: 2006-2015 Tower Technologies
+License: GPL-2+
+
+Files: backend/fujitsu.*
+Copyright: 2000 Randolph Bentson
+ 2001 Frederik Ramm
+ 2001-2004 Oliver Schirrmeister
+ 2003-2021 m. allan noah
+License: GPL-2+ with sane exception
+
+Files: backend/genesys/genesys.h
+Copyright: 2003-2004 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2004-2005 Gerhard Jaeger <gerhard@gjaeger.de>
+ 2004-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2005-2009 Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
+License: GPL-2+ with sane exception
+
+Files: backend/genesys/gl124.*
+ backend/genesys/gl841.h
+ backend/genesys/gl843.*
+ backend/genesys/gl846.*
+ backend/genesys/gl847.*
+ backend/rts88*.*
+ backend/umax_pp*.*
+Copyright: 2010-2016 Stéphane Voltz <stef.dev@free.fr>
+License: GPL-2+ with sane exception
+
+Files: backend/genesys/error.cpp
+ backend/genesys/serialize.h
+ backend/genesys/error.h
+ backend/genesys/value_filter.h
+ backend/genesys/tables_memory_layout.cpp
+ backend/genesys/gl842.cpp
+Copyright: 2019-2020 Povilas Kanapickas <povilas@radix.lt>
+License: GPL-2+ with sane exception
+
+Files: backend/genesys/gl646.h
+Copyright: 2003-2004 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2004 Gerhard Jaeger <gerhard@gjaeger.de>
+ 2004-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2005-2009 Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
+License: GPL-2+ with sane exception
+
+Files: backend/genesys/low.h
+Copyright: 2003 Oliver Rauch
+ 2003-2004 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2004-2005 Gerhard Jaeger <gerhard@gjaeger.de>
+ 2004-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2005-2009 Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
+ 2006 Laurent Charpentier <laurent_pubs@yahoo.com>
+License: GPL-2+ with sane exception
+
+Files: backend/gphoto2.*
+Copyright: 2001 Peter Fales <gphoto2-devel@fales-lorenz.net>
+License: GPL-2+ with sane exception
+
+Files: backend/gt68xx.c
+ backend/gt68xx_high.c
+Copyright: 2002 Sergey Vlasov <vsu@altlinux.ru>
+ 2002-2007 Henning Geinitz <sane@geinitz.org>
+ 2009 Stéphane Voltz <stef.dev@free.fr>
+License: GPL-2+ with sane exception
+
+Files: backend/gt68xx.h
+Copyright: 2002 Sergey Vlasov <vsu@altlinux.ru>
+License: GPL-2+ with sane exception
+
+Files: backend/gt68xx_devices.*
+ backend/gt68xx_generic.c
+ backend/gt68xx_gt6801.c
+ backend/gt68xx_gt6816.c
+ backend/gt68xx_high.h
+ backend/gt68xx_low.*
+ backend/gt68xx_mid.c
+Copyright: 2002 Sergey Vlasov <vsu@altlinux.ru>
+ 2002-2007 Henning Geinitz <sane@geinitz.org>
+License: GPL-2+ with sane exception
+
+Files: backend/gt68xx_generic.h
+ backend/gt68xx_gt6801.h
+ backend/gt68xx_gt6816.h
+ backend/gt68xx_mid.h
+ backend/gt68xx_shm_channel.*
+Copyright: 2002 Sergey Vlasov <vsu@altlinux.ru>
+License: GPL-2+ with sane exception
+
+Files: backend/hp-*.*
+ backend/hp.*
+Copyright: 1997 Geoffrey T. Dairiki
+License: GPL-2+ with sane exception
+
+Files: backend/hp3900*.*
+Copyright: 2005-2008 Jonathan Bravo Lopez <jkdsoft@gmail.com>
+License: GPL-2+ with sane exception
+
+Files: backend/hp4200*.*
+Copyright: 2000 Adrian Perez Jorge
+License: GPL-2+ with sane exception
+
+Files: backend/hp5400.*
+ backend/hp5400_debug.*
+ backend/hp5400_sane.*
+ backend/hp5400_xfer.*
+Copyright: 2003 Martijn van Oosterhout <kleptog@svana.org>
+ 2003 Thomas Soumarmon <thomas.soumarmon@cogitae.net>
+ 2020 Ralph Little <skelband@gmail.com>
+License: GPL-2+ with sane exception
+
+Files: backend/hp5400_internal.*
+ backend/hp5400_sanei.*
+Copyright: 2003 Martijn van Oosterhout <kleptog@svana.org>
+ 2003 Thomas Soumarmon <thomas.soumarmon@cogitae.net>
+ 2003 Henning Meier-Geinitz, <henning@meier-geinitz.de>
+ 2020 Ralph Little <skelband@gmail.com>
+License: GPL-2+ with sane exception
+
+Files: backend/hp5590*.*
+Copyright: 2007 Ilia Sotnikov <hostcc@gmail.com>
+License: GPL-2+ with sane exception
+
+Files: backend/hpljm1005.c
+Copyright: 2007-2008 Philippe Rétornaz
+License: GPL-2+ with sane exception
+
+Files: backend/hpsj5s*.*
+Copyright: 2002 Max Vorobiev <pcwizard@telecoms.sins.ru>
+License: GPL-2+ with sane exception
+
+Files: backend/hs2p*.*
+Copyright: 2007 Jeremy Johnson
+License: GPL-2+ with sane exception
+
+Files: backend/kodakaio.*
+Copyright: 2011-2017 Paul Newall
+License: GPL-2+
+
+Files: backend/kvs1025.c
+ backend/kvs20xx*.*
+ backend/kvs40xx.c
+ backend/kvs40xx_*.c
+Copyright: 2008 Panasonic Russia Ltd.
+ 2010-2011 m. allan noah
+License: GPL-2+
+
+Files: backend/kvs1025.h
+ backend/kvs1025_*.*
+ backend/kvs40xx.h
+Copyright: 2008 Panasonic Russia Ltd.
+License: GPL-2+
+
+Files: backend/leo.*
+ backend/matsushita.*
+ backend/sceptre.*
+ backend/teco1.*
+ backend/teco3.*
+ backend/umax-usb.c
+Copyright: 2002-2004 Frank Zago <sane@zago.net>
+License: GPL-2+ with sane exception
+
+Files: backend/lexmark.*
+Copyright: 2003-2004 Lexmark International, Inc.
+ 2005 Fred Odendaal
+ 2006-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2010 Torsten Houwaart <ToHo@gmx.de>
+License: GPL-2+ with sane exception
+
+Files: backend/lexmark_low.c
+Copyright: 2005 Fred Odendaal
+ 2006-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2010 Torsten Houwaart <ToHo@gmx.de>
+License: GPL-2+ with sane exception
+
+Files: backend/lexmark_models.c
+ backend/lexmark_sensors.c
+Copyright: 2006-2013 Stéphane Voltz <stef.dev@free.fr>
+ 2010 Torsten Houwaart <ToHo@gmx.de>
+License: GPL-2+ with sane exception
+
+Files: backend/lm9830.h
+Copyright: 2001 Nathan Rutman <nathan@gordian.com>
+License: GPL-2+
+
+Files: backend/ma1509.*
+ backend/test-picture.c
+ backend/test.*
+Copyright: 2003 Henning Meier-Geinitz <henning@meier-geinitz.de>.
+License: GPL-2+ with sane exception
+
+Files: backend/magicolor.*
+Copyright: 2010 Reinhold Kainhofer <reinhold@kainhofer.com>
+License: GPL-2+
+
+Files: backend/microtek.*
+Copyright: 2002 Matthew Marjanovic
+License: GPL-2+ with sane exception
+
+Files: backend/microtek2.*
+Copyright: 1998-1999 Bernd Schroeder
+ 2000-2001 Karsten Festag
+License: GPL-2+ with sane exception
+
+Files: backend/mustek.c
+Copyright: 1996-1997 David Mosberger-Tang
+ 1996-1997 Andreas Czechanowski
+ 1998 Andreas Bolsch
+ 2000-2005 Henning Meier-Geinitz
+ 2003 James Perry
+License: GPL-2+ with sane exception
+
+Files: backend/mustek.h
+Copyright: 1996-1997 David Mosberger-Tang
+ 1998 Andreas Bolsch
+ 2000-2005 Henning Meier-Geinitz
+License: GPL-2+ with sane exception
+
+Files: backend/mustek_pp.*
+ backend/mustek_pp_ccd300.*
+ backend/mustek_pp_null.*
+ include/sane/sanei_auth.h
+ include/sane/sanei_pa4s2.h
+ sanei/sanei_auth.c
+Copyright: 2000-2003 Jochen Eisinger <jochen.eisinger@gmx.net>
+License: GPL-2+ with sane exception
+
+Files: backend/mustek_pp_cis.*
+Copyright: 2001-2003 Eddy De Greef <eddy_de_greef@scarlet.be>
+License: GPL-2+ with sane exception
+
+Files: backend/mustek_scsi_pp.*
+Copyright: 2003 James Perry
+License: GPL-2+ with sane exception
+
+Files: backend/mustek_usb.*
+ backend/mustek_usb_*.*
+ backend/mustek_usb2.*
+Copyright: 2000-2005 Mustek
+ 2001-2005 Henning Meier-Geinitz
+License: GPL-2+ with sane exception
+
+Files: backend/mustek_usb2_*.*
+Copyright: 2000-2005 Mustek
+License: GPL-2+ with sane exception
+
+Files: backend/nec.*
+Copyright: 2000-2001 Kazuya Fukuda
+License: GPL-2+ with sane exception
+
+Files: backend/net.*
+Copyright: 1997 David Mosberger-Tang
+ 2003-2008 Julien BLACHE <jb@jblache.org>
+License: GPL-2+ with sane exception
+
+Files: backend/niash.*
+Copyright: 2001 Bertrik Sikken <bertrik@zonnet.nl>
+License: GPL-2+
+
+Files: backend/p5*.*
+Copyright: 2009-12 Stéphane Voltz <stef.dev@free.fr>
+License: GPL-2+
+
+Files: backend/pie*.*
+Copyright: 2000 Simon Munton
+ 2012-2015 Jan Vleeshouwers, Michael Rickmann, Klaus Kaempf
+License: GPL-2+ with sane exception
+
+Files: backend/pint.c
+Copyright: 1997 Gordon Matzigkeit
+ 1997 David Mosberger-Tang
+License: GPL-2+ with sane exception
+
+Files: backend/pint.h
+Copyright: 1997 Gordon Matzigkeit
+License: GPL-2+ with sane exception
+
+Files: backend/pixma/pixma*.*
+Copyright: 2007-2008 Nicolas Martin, <nicols-guest@alioth.debian.org>
+ 2006-2007 Wittawat Yamwong <wittawat@web.de>
+ 2011-2020 Rolf Bensch <rolf@bensch-online.de>
+License: GPL-2+ with sane exception
+
+Files: backend/pixma/pixma_bjnp*.*
+Copyright: 2008-2012 Louis Lagendijk
+License: GPL-2+ with sane exception
+
+Files: backend/pixma/pixma_common.h
+ backend/pixma/pixma_io_sanei.c
+ backend/pixma/pixma_mp750.c
+Copyright: 2006-2007 Wittawat Yamwong <wittawat@web.de>
+ 2011-2016 Rolf Bensch <rolf@bensch-online.de>
+License: GPL-2+ with sane exception
+
+Files: backend/pixma/pixma_io.h
+ backend/pixma/pixma_rename.h
+Copyright: 2006-2007 Wittawat Yamwong <wittawat@web.de>
+License: GPL-2+ with sane exception
+
+Files: backend/plustek-pp.h
+ backend/plustek.h
+Copyright: 1997 Hypercore Software Design, Ltd.
+ 2001-2013 Gerhard Jaeger <gerhard@gjaeger.de>
+License: GPL-2+ with sane exception
+
+Files: backend/plustek-pp_dac.c
+ backend/plustek-pp_detect.c
+ backend/plustek-pp_genericio.c
+ backend/plustek-pp_hwdefs.h
+ backend/plustek-pp_image.c
+ backend/plustek-pp_io.c
+ backend/plustek-pp_map.c
+ backend/plustek-pp_misc.c
+ backend/plustek-pp_models.c
+ backend/plustek-pp_motor.c
+ backend/plustek-pp_p12.c
+ backend/plustek-pp_p12ccd.c
+ backend/plustek-pp_p48xx.c
+ backend/plustek-pp_p9636.c
+ backend/plustek-pp_procs.h
+ backend/plustek-pp_ptdrv.c
+ backend/plustek-pp_scandata.h
+ backend/plustek-pp_tpa.c
+ backend/plustek-pp_wrapper.c
+ backend/plustek-usb.*
+ backend/plustek-usbcal.c
+ backend/plustek-usbdevs.c
+ backend/plustek-usbhw.c
+ backend/plustek-usbimg.c
+ backend/plustek-usbio.c
+ backend/plustek-usbmap.c
+ backend/plustek-usbscan.c
+ backend/plustek-usbshading.c
+Copyright: 1998 Plustek Inc.
+ 2000-2013 Gerhard Jaeger <gerhard@gjaeger.de>
+License: GPL-2+ with sane exception
+
+Files: backend/plustek-pp_dbg.h
+ backend/plustek-pp_procfs.c
+ backend/plustek-pp_scale.c
+ backend/plustek-pp_scan.h
+ backend/plustek-pp_sysdep.h
+ backend/plustek-pp_types.h
+ backend/plustek-usbcalfile.c
+ backend/plustek.c
+ backend/u12*.*
+ include/sane/sanei_access.h
+ include/sane/sanei_lm983x.h
+ include/sane/sanei_pp.h
+ sanei/sanei_access.c
+ sanei/sanei_lm983x.c
+ sanei/sanei_pp.c
+Copyright: 2000-2013 Gerhard Jaeger <gerhard@gjaeger.de>
+License: GPL-2+ with sane exception
+
+Files: backend/pnm.c
+Copyright: 1996-1997 Andreas Beck
+ 2000-2001 Michael Herder <crapsite@gmx.net>
+ 2001-2002 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2008 Stéphane Voltz <stef.dev@free.fr>
+License: GPL-2+ with sane exception
+
+Files: backend/ricoh*.*
+Copyright: 1998 F.W. Dillema <dillema@acm.org>
+License: GPL-2+ with sane exception
+
+Files: backend/ricoh2.c
+ backend/ricoh2_buffer.c
+Copyright: 2018 Stanislav Yuzvinsky
+License: GPL-2+ with sane exception
+
+Files: backend/s9036*.*
+Copyright: 1997 Ingo Schneider
+License: GPL-2+ with sane exception
+
+Files: backend/sane_strstatus.c
+ include/sane/sane.h
+ include/sane/sanei_codec_ascii.h
+ include/sane/sanei_codec_bin.h
+ include/sane/sanei_net.h
+ include/sane/saneopts.h
+ sanei/sanei_constrain_value.c
+ sanei/sanei_init_debug.c
+Copyright: 1996-1999 David Mosberger-Tang
+ 1996-1999 Andreas Beck
+License: GPL-2+ with sane exception
+
+Files: backend/sharp.*
+Copyright: 1998-1999 Kazuya Fukuda
+ 1998-1999 Abel Deuring
+License: GPL-2+ with sane exception
+
+Files: backend/sm3600*.*
+Copyright: 2001 Marian Eichholz
+License: GPL-2+ with sane exception
+
+Files: backend/sm3840*.*
+Copyright: 2005-2007 Earle F. Philhower, III
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-data.c
+Copyright: 2006 Oliver Schwartz
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-mutex.c
+Copyright: 2000-2004 Henrik Johansson
+ 2000-2004 Oliver Schwartz
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-options.c
+Copyright: 1997-2013 Franck Schnefra
+ 1997-2013 Michel Roelofs
+ 1997-2013 Emmanuel Blot
+ 1997-2013 Mikko Tyolajarvi
+ 1997-2013 David Mosberger-Tang
+ 1997-2013 Wolfgang Goeller
+ 1997-2013 Petter Reinholdtsen
+ 1997-2013 Gary Plewa
+ 1997-2013 Sebastien Sable
+ 1997-2013 Mikael Magnusson
+ 1997-2013 Andrew Goodbody
+ 1997-2013 Oliver Schwartz
+ 1997-2013 Kevin Charter
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-scsi.c
+Copyright: 1997-2013 Franck Schnefra
+ 1997-2013 Michel Roelofs
+ 1997-2013 Emmanuel Blot
+ 1997-2013 Mikko Tyolajarvi
+ 1997-2013 David Mosberger-Tang
+ 1997-2013 Wolfgang Goeller
+ 1997-2013 Petter Reinholdtsen
+ 1997-2013 Gary Plewa
+ 1997-2013 Sebastien Sable
+ 1997-2013 Mikael Magnusson
+ 1997-2013 Max Ushakov
+ 1997-2013 Andrew Goodbody
+ 1997-2013 Oliver Schwartz
+ 1997-2013 Kevin Charter
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-sources.c
+Copyright: 1997-2013 Franck Schnefra
+ 1997-2013 Michel Roelofs
+ 1997-2013 Emmanuel Blot
+ 1997-2013 Mikko Tyolajarvi
+ 1997-2013 David Mosberger-Tang
+ 1997-2013 Wolfgang Goeller
+ 1997-2013 Petter Reinholdtsen
+ 1997-2013 Gary Plewa
+ 1997-2013 Sebastien Sable
+ 1997-2013 Max Ushakov
+ 1997-2013 Andrew Goodbody
+ 1997-2013 Oliver Schwartz
+ 1997-2013 Kevin Charter
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan-sources.h
+ backend/snapscan-usb.*
+Copyright: 2000 Henrik Johansson
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan.c
+Copyright: 1997-2013 Franck Schnefra
+ 1997-2013 Michel Roelofs
+ 1997-2013 Emmanuel Blot
+ 1997-2013 Mikko Tyolajarvi
+ 1997-2013 David Mosberger-Tang
+ 1997-2013 Wolfgang Goeller
+ 1997-2013 Simon Munton
+ 1997-2013 Petter Reinholdtsen
+ 1997-2013 Gary Plewa
+ 1997-2013 Sebastien Sable
+ 1997-2013 Mikael Magnusson
+ 1997-2013 Max Ushakov
+ 1997-2013 Andrew Goodbody
+ 1997-2013 Oliver Schwartz
+ 1997-2013 Kevin Charter
+License: GPL-2+ with sane exception
+
+Files: backend/snapscan.h
+Copyright: 1997-2013 Franck Schnefra
+ 1997-2013 Michel Roelofs
+ 1997-2013 Emmanuel Blot
+ 1997-2013 Mikko Tyolajarvi
+ 1997-2013 David Mosberger-Tang
+ 1997-2013 Wolfgang Goeller
+ 1997-2013 Petter Reinholdtsen
+ 1997-2013 Gary Plewa
+ 1997-2013 Sebastien Sable
+ 1997-2013 Mikael Magnusson
+ 1997-2013 Andrew Goodbody
+ 1997-2013 Oliver Schwartz
+ 1997-2013 Kevin Charter
+License: GPL-2+ with sane exception
+
+Files: backend/st400.*
+Copyright: 1999-2000 Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
+License: GPL-2+ with sane exception
+
+Files: backend/stv680.*
+Copyright: 2004-2006 Gerard Klaver <gerard@gkall.hobby.nl>
+License: GPL-2
+
+Files: backend/tamarack.*
+Copyright: 1996-1997 David Mosberger-Tang
+ 1997 R.E.Wolff@BitWizard.nl
+License: GPL-2+
+
+Files: backend/teco2.*
+Copyright: 2002-2003 Frank Zago <sane@zago.net>
+ 2003-2008 Gerard Klaver <gerard@gkall.hobby.nl>
+License: GPL-2+ with sane exception
+
+Files: backend/umax-scanner.*
+ backend/umax-uc*.c
+ backend/umax-ug*.c
+ backend/umax.*
+ tools/gamma4scanimage.c
+Copyright: 1997-2004 Oliver Rauch
+License: GPL-2+ with sane exception
+
+Files: backend/umax-scsidef.h
+Copyright: 1996-1997 Michael K. Johnson
+ 1997-2002 Oliver Rauch
+License: GPL-2+ with sane exception
+
+Files: backend/umax1220u-common.c
+Copyright: 1999 Paul Mackerras
+ 2000 Adrian Perez Jorge
+ 2001 Frank Zago
+ 2001 Marcio Teixeira
+ 2006 Patrick Lessard
+License: GPL-2+ with sane exception
+
+Files: backend/umax1220u.c
+Copyright: 2001 Marcio Luis Teixeira
+ 1996-1997 Andreas Beck
+ 2000-2001 Michael Herder <crapsite@gmx.net>
+ 2001 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2006 Patrick Lessard
+License: GPL-2+ with sane exception
+
+Files: backend/v4l.*
+Copyright: 1999 Juergen G. Schimmer
+ 2002-2004 Henning Meier-Geinitz
+License: GPL-2+ with sane exception
+
+Files: backend/xerox_mfp-tcp.c
+Copyright: 2010 Alexander Kuznetsov <acca@cpan.org>
+License: GPL-2+ with sane exception
+
+Files: backend/xerox_mfp-usb.c
+ backend/xerox_mfp.*
+Copyright: 2008-2016 ABC <abc@telekom.ru>
+License: GPL-2+ with sane exception
+
+Files: doc/descriptions/epson2.desc
+ doc/descriptions/epsonds.desc
+Copyright: 2009-2015 Alessandro Zummo
+License: GPL-2
+
+Files: doc/descriptions/magicolor.desc
+Copyright: 2010-2011 Reinhold Kainhofer
+License: GPL-2
+
+Files: doc/descriptions-external/epkowa.desc
+Copyright: 2010-2011 Reinhold Kainhofer
+ 2004-2015 Olaf Meeuwissen
+License: GPL-2+
+
+Files: doc/descriptions-external/utsushi.desc
+Copyright: 2004-2021 Olaf Meeuwissen
+License: GPL-3+
+
+Files: po/Makevars
+Copyright: 2016-2019 Olaf Meeuwissen and the SANE developers
+License: GPL-2+ with sane exception
+
+Files: po/he.po
+ po/ca@valencia.po
+ po/ca.po
+Copyright: 2018-2020 The SANE developers
+License: GPL-2+ with sane exception
+
+Files: po/de.po
+Copyright: 2002-2020 SANE Project
+License: GPL-2+ with sane exception
+
+Files: po/fr.po
+Copyright: 2002 Frank Zago <fzago@austin.rr.com>
+ 2003-2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
+License: GFDL-1.1
+
+Files: frontend/saned.c
+Copyright: 1997 Andreas Beck
+ 2001-2004 Henning Meier-Geinitz
+ 2003-2008 Julien BLACHE <jb@jblache.org>2010-2011 Reinhold Kainhofer
+License: GPL-2+
+
+Files: frontend/jpegtopdf.*
+Copyright: 2021 Thierry HUCHARD <thierry@ordissimo.com>
+License: GPL-2+
+
+Files: frontend/scanimage.c
+Copyright: 1996-1998 Andreas Beck
+ 1996-1998 David Mosberger
+ 2015 Rolf Bensch
+License: GPL-2+
+
+Files: frontend/stiff.c
+Copyright: 2000 Peter Kirchgessner
+ 2002 Oliver Rauch
+ 2017 Aaron Muir Hamilton <aaron@correspondwith.me>
+License: GPL-2+
+
+Files: frontend/stiff.h
+Copyright: 2000 Peter Kirchgessner
+License: GPL-2+
+
+Files: frontend/sicc.*
+Copyright: 2017 Aaron Muir Hamilton <aaron@correspondwith.me>
+License: GPL-2+
+
+Files: frontend/test.c
+Copyright: 1997 Andreas Beck
+License: GPL-2+
+
+Files: frontend/tstbackend.c
+Copyright: 2002 Frank Zago <sane@zago.net>
+ 2013 Stéphane Voltz <stef.dev@free.fr>
+License: GPL-2+
+
+Files: include/sane/sanei.h
+Copyright: 1996 David Mosberger-Tang
+ 1996 Andreas Beck
+ 2002-2003 Henning Meier-Geinitz
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_ab306.h
+Copyright: 1996 Andreas Czechanowski
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_cderror.h
+ include/sane/sanei_jinclude.h
+ include/sane/sanei_jpeg.h
+Copyright: 1991-1994 Thomas G. Lane
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_config.h
+ japi/*
+ sanei/sanei_config.c
+Copyright: 1997 Jeffrey S. Freedman
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_pio.h
+ sanei/sanei_pio.c
+Copyright: 1998 Christian Bucher
+ 1998 Kling & Hautzinger GmbH
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_pv8630.h
+ sanei/sanei_pv8630.c
+Copyright: 2000 Adrian Perez Jorge
+ 2001 Frank Zago
+ 2001 Marcio Teixeira
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_thread.h
+Copyright: 1998-2001 Yuri Dario
+ 2002-2003 Henning Meier-Geinitz
+ 2003-2004 Gerhard Jaeger
+License: GPL-2+ with sane exception
+
+Files: include/sane/sanei_usb.h
+Copyright: 2001-2002 Henning Meier-Geinitz
+ 2003-2005 Rene Rebe
+ 2008 m. allan noah
+ 2011 Reinhold Kainhofer
+License: GPL-2+ with sane exception
+
+Files: lib/snprintf.c
+Copyright: 1988-1997 Patrick Powell <papowell@sdsu.edu>
+License: Artistic
+
+Files: lib/getopt.c
+ lib/getopt1.c
+ lib/md5.c
+ lib/sigprocmask.c
+ lib/strcasestr.c
+ lib/strdup.c
+ lib/strndup.c
+ lib/strsep.c
+ lib/usleep.c
+Copyright: 1987-2002 Free Software Foundation
+License: LGPL-2.1+
+
+Files: sanei/sanei_ab306.c
+Copyright: 1997 Andreas Czechanowski
+ 1997 David Mosberger
+License: GPL-2+ with sane exception
+
+Files: sanei/sanei_pa4s2.c
+Copyright: 2000-2003 Jochen Eisinger <jochen.eisinger@gmx.net>
+ 2003 James Perry
+License: GPL-2+ with sane exception
+
+Files: sanei/sanei_scsi.c
+Copyright: 1996-1997 David Mosberger-Tang
+ 2003 Frank Zago
+License: GPL-2+ with sane exception
+
+Files: sanei/sanei_thread.c
+Copyright: 1998-2001 Yuri Dario
+ 2003-2004 Gerhard Jaeger
+License: GPL-2+ with sane exception
+
+Files: sanei/sanei_usb.c
+Copyright: 2001-2005 Henning Meier-Geinitz
+ 2001 Frank Zago
+ 2003 Rene Rebe
+ 2005 Paul Smedley <paul@smedley.info>
+ 2008 m. allan noah
+ 2009 Julien BLACHE <jb@jblache.org>
+ 2011 Reinhold Kainhofer <reinhold@kainhofer.com>
+License: GPL-2+ with sane exception
+
+Files: testsuite/backend/genesys/*
+Copyright: 2019 Povilas Kanapickas <povilas@radix.lt>
+License: GPL-2+ with sane exception
+
+Files: testsuite/backend/Makefile.am
+ testsuite/backend/genesys/Makefile.am
+Copyright: 2019 Sane Developers
+License: GPL-2+ with sane exception
+
+Files: tools/git-version-gen
+Copyright: 2007-2021 Free Software Foundation, Inc.
+License: GPL-3+
+
+Files: tools/create-release.sh
+ tools/create-changelog.sh
+ tools/update-upstreams.sh
+Copyright: 2017-2021 Olaf Meeuwissen
+License: GPL-3+
+
+Files: tools/RenSaneDlls.cmd
+Copyright: 2004-2005 Franz Bakan
+License: GPL-2+
+
+Files: tools/check-usb-chip.c
+Copyright: 2003-2005 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2003 Gerhard Jaeger <gerhard@gjaeger.de>
+ 2003 Gerard Klaver <gerard@gkall.hobby.nl>
+License: GPL-2+ with sane exception
+
+Files: tools/mustek600iin-off.c
+Copyright: 1997-1999 Andreas Czechanowski
+License: GPL-2+
+
+Files: tools/sane-desc.c
+Copyright: 2002-2006 Henning Meier-Geinitz <henning@meier-geinitz.de>
+ 2004 Jose Gato <jgato@gsyc.escet.urjc.es>
+ 2006 Mattias Ellert <mattias.ellert@tsl.uu.se>
+ 2009 Dr. Ing. Dieter Jurzitza <dieter.jurzitza@t-online.de>
+ 2013 Tom Gundersen <teg@jklm.no>
+License: GPL-2+
+
+Files: tools/sane-find-scanner.c
+Copyright: 1997-2013 Oliver Rauch
+ 1997-2013 Henning Meier-Geinitz
+License: GPL-2+
+
+License: Artistic
+ The "Artistic License"
+ .
+ Preamble
+ .
+ The intent of this document is to state the conditions under which a
+ Package may be copied, such that the Copyright Holder maintains some
+ semblance of artistic control over the development of the package,
+ while giving the users of the package the right to use and distribute
+ the Package in a more-or-less customary fashion, plus the right to make
+ reasonable modifications.
+ .
+ Definitions:
+ .
+ "Package" refers to the collection of files distributed by the
+ Copyright Holder, and derivatives of that collection of files
+ created through textual modification.
+ .
+ "Standard Version" refers to such a Package if it has not been
+ modified, or has been modified in accordance with the wishes
+ of the Copyright Holder as specified below.
+ .
+ "Copyright Holder" is whoever is named in the copyright or
+ copyrights for the package.
+ .
+ "You" is you, if you are thinking about copying or distributing
+ this Package.
+ .
+ "Reasonable copying fee" is whatever you can justify on the
+ basis of media cost, duplication charges, time of people involved,
+ and so on. (You will not be required to justify it to the
+ Copyright Holder, but only to the computing community at large
+ as a market that must bear the fee.)
+ .
+ "Freely Available" means that no fee is charged for the item
+ itself, though there may be fees involved in handling the item.
+ It also means that recipients of the item may redistribute it
+ under the same conditions they received it.
+ .
+ 1. You may make and give away verbatim copies of the source form of the
+ Standard Version of this Package without restriction, provided that you
+ duplicate all of the original copyright notices and associated disclaimers.
+ .
+ 2. You may apply bug fixes, portability fixes and other modifications
+ derived from the Public Domain or from the Copyright Holder. A Package
+ modified in such a way shall still be considered the Standard Version.
+ .
+ 3. You may otherwise modify your copy of this Package in any way, provided
+ that you insert a prominent notice in each changed file stating how and
+ when you changed that file, and provided that you do at least ONE of the
+ following:
+ .
+ a) place your modifications in the Public Domain or otherwise make them
+ Freely Available, such as by posting said modifications to Usenet or
+ an equivalent medium, or placing the modifications on a major archive
+ site such as uunet.uu.net, or by allowing the Copyright Holder to include
+ your modifications in the Standard Version of the Package.
+ .
+ b) use the modified Package only within your corporation or organization.
+ .
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided, and provide
+ a separate manual page for each non-standard executable that clearly
+ documents how it differs from the Standard Version.
+ .
+ d) make other distribution arrangements with the Copyright Holder.
+ .
+ 4. You may distribute the programs of this Package in object code or
+ executable form, provided that you do at least ONE of the following:
+ .
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where
+ to get the Standard Version.
+ .
+ b) accompany the distribution with the machine-readable source of
+ the Package with your modifications.
+ .
+ c) give non-standard executables non-standard names, and clearly
+ document the differences in manual pages (or equivalent), together
+ with instructions on where to get the Standard Version.
+ .
+ d) make other distribution arrangements with the Copyright Holder.
+ .
+ 5. You may charge a reasonable copying fee for any distribution of this
+ Package. You may charge any fee you choose for support of this
+ Package. You may not charge a fee for this Package itself. However,
+ you may distribute this Package in aggregate with other (possibly
+ commercial) programs as part of a larger (possibly commercial) software
+ distribution provided that you do not advertise this Package as a
+ product of your own.
+ .
+ 6. The name of the Copyright Holder may not be used to endorse or promote
+ products derived from this software without specific prior written permission.
+ .
+ 7. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+License: GPL-2+ with sane exception
+ 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 2 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+ .
+ As a special exception, the authors of SANE give permission for
+ additional uses of the libraries contained in this release of SANE.
+ The exception is that, if you link a SANE library with other files
+ to produce an executable, this does not by itself cause the
+ resulting executable to be covered by the GNU General Public
+ License. Your use of that executable is in no way restricted on
+ account of linking the SANE library code into it.
+ This exception does not, however, invalidate any other reasons why
+ the executable file might be covered by the GNU General Public
+ License.
+ .
+ If you submit changes to SANE to the maintainers to be included in
+ a subsequent release, you agree by submitting the changes that
+ those changes may be distributed with this exception intact.
+ If you write modifications of your own for SANE, it is your choice
+ whether to permit this exception to apply to your modifications.
+ If you do not wish that, delete this exception notice.
+
+License: GPL-2+
+ 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 2 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+License: GPL-2
+ 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 version
+ 2 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 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 full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+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 Street, Fifth Floor, Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public License
+ version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".
+
+License: GFDL-1.1
+ 0. PREAMBLE
+ .
+ The purpose of this License is to make a manual, textbook, or other written
+ document "free" in the sense of freedom: to assure everyone the effective
+ freedom to copy and redistribute it, with or without modifying it, either
+ commercially or noncommercially. Secondarily, this License preserves for
+ the author and publisher a way to get credit for their work, while not being
+ considered responsible for modifications made by others.
+ .
+ This License is a kind of "copyleft", which means that derivative works of
+ the document must themselves be free in the same sense. It complements the
+ GNU General Public License, which is a copyleft license designed for free
+ software.
+ .
+ We have designed this License in order to use it for manuals for free software,
+ because free software needs free documentation: a free program should come with
+ manuals providing the same freedoms that the software does. But this License is
+ not limited to software manuals; it can be used for any textual work,
+ regardless of subject matter or whether it is published as a printed book. We
+ recommend this License principally for works whose purpose is instruction or
+ reference.
+ .
+ 1. APPLICABILITY AND DEFINITIONS
+ .
+ This License applies to any manual or other work that contains a notice placed
+ by the copyright holder saying it can be distributed under the terms of this
+ License. The "Document", below, refers to any such manual or work. Any member
+ of the public is a licensee, and is addressed as "you".
+ .
+ A "Modified Version" of the Document means any work containing the Document or
+ a portion of it, either copied verbatim, or with modifications and/or
+ translated into another language.
+ .
+ A "Secondary Section" is a named appendix or a front-matter section of the
+ Document that deals exclusively with the relationship of the publishers or
+ authors of the Document to the Document's overall subject (or to related
+ matters) and contains nothing that could fall directly within that overall
+ subject. (For example, if the Document is in part a textbook of mathematics,
+ a Secondary Section may not explain any mathematics.) The relationship could
+ be a matter of historical connection with the subject or with related matters,
+ or of legal, commercial, philosophical, ethical or political position
+ regarding them.
+ .
+ The "Invariant Sections" are certain Secondary Sections whose titles are
+ designated, as being those of Invariant Sections, in the notice that says that
+ the Document is released under this License.
+ .
+ The "Cover Texts" are certain short passages of text that are listed, as
+ Front-Cover Texts or Back-Cover Texts, in the notice that says that the
+ Document is released under this License.
+ .
+ A "Transparent" copy of the Document means a machine-readable copy,
+ represented in a format whose specification is available to the general
+ public, whose contents can be viewed and edited directly and straightforwardly
+ with generic text editors or (for images composed of pixels) generic paint
+ programs or (for drawings) some widely available drawing editor, and that is
+ suitable for input to text formatters or for automatic translation to a variety
+ of formats suitable for input to text formatters. A copy made in an otherwise
+ Transparent file format whose markup has been designed to thwart or discourage
+ subsequent modification by readers is not Transparent. A copy that is not
+ "Transparent" is called "Opaque".
+ .
+ Examples of suitable formats for Transparent copies include plain ASCII
+ without markup, Texinfo input format, LaTeX input format, SGML or XML using a
+ publicly available DTD, and standard-conforming simple HTML designed for human
+ modification. Opaque formats include PostScript, PDF, proprietary formats that
+ can be read and edited only by proprietary word processors, SGML or XML for
+ which the DTD and/or processing tools are not generally available, and the
+ machine-generated HTML produced by some word processors for output purposes
+ only.
+ .
+ The "Title Page" means, for a printed book, the title page itself, plus such
+ following pages as are needed to hold, legibly, the material this License
+ requires to appear in the title page. For works in formats which do not have
+ any title page as such, "Title Page" means the text near the most prominent
+ appearance of the work's title, preceding the beginning of the body of the
+ text.
+ .
+ 2. VERBATIM COPYING
+ .
+ You may copy and distribute the Document in any medium, either commercially or
+ noncommercially, provided that this License, the copyright notices, and the
+ license notice saying this License applies to the Document are reproduced in
+ all copies, and that you add no other conditions whatsoever to those of this
+ License. You may not use technical measures to obstruct or control the reading
+ or further copying of the copies you make or distribute. However, you may
+ accept compensation in exchange for copies. If you distribute a large enough
+ number of copies you must also follow the conditions in section 3.
+ .
+ You may also lend copies, under the same conditions stated above, and you may
+ publicly display copies.
+ .
+ 3. COPYING IN QUANTITY
+ .
+ If you publish printed copies of the Document numbering more than 100, and the
+ Document's license notice requires Cover Texts, you must enclose the copies in
+ covers that carry, clearly and legibly, all these Cover Texts: Front-Cover
+ Texts on the front cover, and Back-Cover Texts on the back cover. Both covers
+ must also clearly and legibly identify you as the publisher of these copies.
+ The front cover must present the full title with all words of the title equally
+ prominent and visible. You may add other material on the covers in addition.
+ Copying with changes limited to the covers, as long as they preserve the title
+ of the Document and satisfy these conditions, can be treated as verbatim
+ copying in other respects.
+ .
+ If the required texts for either cover are too voluminous to fit legibly, you
+ should put the first ones listed (as many as fit reasonably) on the actual
+ cover, and continue the rest onto adjacent pages.
+ .
+ If you publish or distribute Opaque copies of the Document numbering more than
+ 100, you must either include a machine-readable Transparent copy along with
+ each Opaque copy, or state in or with each Opaque copy a publicly-accessible
+ computer-network location containing a complete Transparent copy of the
+ Document, free of added material, which the general network-using public has
+ access to download anonymously at no charge using public-standard network
+ protocols. If you use the latter option, you must take reasonably prudent
+ steps, when you begin distribution of Opaque copies in quantity, to ensure
+ that this Transparent copy will remain thus accessible at the stated location
+ until at least one year after the last time you distribute an Opaque copy
+ (directly or through your agents or retailers) of that edition to the public.
+ .
+ It is requested, but not required, that you contact the authors of the
+ Document well before redistributing any large number of copies, to give them
+ a chance to provide you with an updated version of the Document.
+ .
+ 4. MODIFICATIONS
+ .
+ You may copy and distribute a Modified Version of the Document under the
+ conditions of sections 2 and 3 above, provided that you release the Modified
+ Version under precisely this License, with the Modified Version filling the
+ role of the Document, thus licensing distribution and modification of the
+ Modified Version to whoever possesses a copy of it. In addition, you must
+ do these things in the Modified Version:
+ .
+ A. Use in the Title Page (and on the covers, if any) a title distinct from
+ that of the Document, and from those of previous versions (which should, if
+ there were any, be listed in the History section of the Document). You may
+ use the same title as a previous version if the original publisher of that
+ version gives permission.
+ B. List on the Title Page, as authors, one or more persons or entities
+ responsible for authorship of the modifications in the Modified Version,
+ together with at least five of the principal authors of the Document (all
+ of its principal authors, if it has less than five).
+ C. State on the Title page the name of the publisher of the Modified
+ Version, as the publisher.
+ D. Preserve all the copyright notices of the Document.
+ E. Add an appropriate copyright notice for your modifications adjacent to
+ the other copyright notices.
+ F. Include, immediately after the copyright notices, a license notice
+ giving the public permission to use the Modified Version under the terms
+ of this License, in the form shown in the Addendum below.
+ G. Preserve in that license notice the full lists of Invariant Sections
+ and required Cover Texts given in the Document's license notice.
+ H. Include an unaltered copy of this License.
+ I. Preserve the section entitled "History", and its title, and add to it
+ an item stating at least the title, year, new authors, and publisher of
+ the Modified Version as given on the Title Page. If there is no section
+ entitled "History" in the Document, create one stating the title, year,
+ authors, and publisher of the Document as given on its Title Page, then
+ add an item describing the Modified Version as stated in the previous
+ sentence.
+ J. Preserve the network location, if any, given in the Document for public
+ access to a Transparent copy of the Document, and likewise the network
+ locations given in the Document for previous versions it was based on.
+ These may be placed in the "History" section. You may omit a network
+ location for a work that was published at least four years before the
+ Document itself, or if the original publisher of the version it refers to
+ gives permission.
+ K. In any section entitled "Acknowledgements" or "Dedications", preserve
+ the section's title, and preserve in the section all the substance and
+ tone of each of the contributor acknowledgements and/or dedications given
+ therein.
+ L. Preserve all the Invariant Sections of the Document, unaltered in their
+ text and in their titles. Section numbers or the equivalent are not
+ considered part of the section titles.
+ M. Delete any section entitled "Endorsements". Such a section may not be
+ included in the Modified Version.
+ N. Do not retitle any existing section as "Endorsements" or to conflict
+ in title with any Invariant Section.
+ .
+ If the Modified Version includes new front-matter sections or appendices
+ that qualify as Secondary Sections and contain no material copied from the
+ Document, you may at your option designate some or all of these sections as
+ invariant. To do this, add their titles to the list of Invariant Sections in
+ the Modified Version's license notice. These titles must be distinct from
+ any other section titles.
+ .
+ You may add a section entitled "Endorsements", provided it contains nothing
+ but endorsements of your Modified Version by various parties--for example,
+ statements of peer review or that the text has been approved by an
+ organization as the authoritative definition of a standard.
+ .
+ You may add a passage of up to five words as a Front-Cover Text, and a passage
+ of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts
+ in the Modified Version. Only one passage of Front-Cover Text and one of
+ Back-Cover Text may be added by (or through arrangements made by) any one
+ entity. If the Document already includes a cover text for the same cover,
+ previously added by you or by arrangement made by the same entity you are
+ acting on behalf of, you may not add another; but you may replace the old
+ one, on explicit permission from the previous publisher that added the old
+ one.
+ .
+ The author(s) and publisher(s) of the Document do not by this License give
+ permission to use their names for publicity for or to assert or imply
+ endorsement of any Modified Version.
+ .
+ 5. COMBINING DOCUMENTS
+ .
+ You may combine the Document with other documents released under this License,
+ under the terms defined in section 4 above for modified versions, provided
+ that you include in the combination all of the Invariant Sections of all of
+ the original documents, unmodified, and list them all as Invariant Sections of
+ your combined work in its license notice.
+ .
+ The combined work need only contain one copy of this License, and multiple
+ identical Invariant Sections may be replaced with a single copy. If there
+ are multiple Invariant Sections with the same name but different contents,
+ make the title of each such section unique by adding at the end of it, in
+ parentheses, the name of the original author or publisher of that section
+ if known, or else a unique number. Make the same adjustment to the section
+ titles in the list of Invariant Sections in the license notice of the
+ combined work.
+ .
+ In the combination, you must combine any sections entitled "History" in the
+ various original documents, forming one section entitled "History"; likewise
+ combine any sections entitled "Acknowledgements", and any sections entitled
+ "Dedications". You must delete all sections entitled "Endorsements."
+ .
+ 6. COLLECTIONS OF DOCUMENTS
+ .
+ You may make a collection consisting of the Document and other documents
+ released under this License, and replace the individual copies of this
+ License in the various documents with a single copy that is included in the
+ collection, provided that you follow the rules of this License for verbatim
+ copying of each of the documents in all other respects.
+ .
+ You may extract a single document from such a collection, and distribute it
+ individually under this License, provided you insert a copy of this License
+ into the extracted document, and follow this License in all other respects
+ regarding verbatim copying of that document.
+ .
+ 7. AGGREGATION WITH INDEPENDENT WORKS
+ .
+ A compilation of the Document or its derivatives with other separate and
+ independent documents or works, in or on a volume of a storage or distribution
+ medium, does not as a whole count as a Modified Version of the Document,
+ provided no compilation copyright is claimed for the compilation. Such a
+ compilation is called an "aggregate", and this License does not apply to the
+ other self-contained works thus compiled with the Document, on account of
+ their being thus compiled, if they are not themselves derivative works of the
+ Document.
+ .
+ If the Cover Text requirement of section 3 is applicable to these copies of
+ the Document, then if the Document is less than one quarter of the entire
+ aggregate, the Document's Cover Texts may be placed on covers that surround
+ only the Document within the aggregate. Otherwise they must appear on covers
+ around the whole aggregate.
+ .
+ 8. TRANSLATION
+ .
+ Translation is considered a kind of modification, so you may distribute
+ translations of the Document under the terms of section 4. Replacing Invariant
+ Sections with translations requires special permission from their copyright
+ holders, but you may include translations of some or all Invariant Sections in
+ addition to the original versions of these Invariant Sections. You may include
+ a translation of this License provided that you also include the original
+ English version of this License. In case of a disagreement between the
+ translation and the original English version of this License, the original
+ English version will prevail.
+ .
+ 9. TERMINATION
+ .
+ You may not copy, modify, sublicense, or distribute the Document except as
+ expressly provided for under this License. Any other attempt to copy, modify,
+ sublicense or distribute the Document is void, and will automatically
+ terminate your rights under this License. However, parties who have received
+ copies, or rights, from you under this License will not have their licenses
+ terminated so long as such parties remain in full compliance.
+ .
+ 10. FUTURE REVISIONS OF THIS LICENSE
+ .
+ The Free Software Foundation may publish new, revised versions of the GNU Free
+ Documentation License from time to time. Such new versions will be similar in
+ spirit to the present version, but may differ in detail to address new
+ problems or concerns. See http://www.gnu.org/copyleft/.
+ .
+ Each version of the License is given a distinguishing version number. If the
+ Document specifies that a particular numbered version of this License "or any
+ later version" applies to it, you have the option of following the terms and
+ conditions either of that specified version or of any later version that has
+ been published (not as a draft) by the Free Software Foundation. If the
+ Document does not specify a version number of this License, you may choose any
+ version ever published (not as a draft) by the Free Software Foundation.
diff --git a/debian/libsane-common.dirs b/debian/libsane-common.dirs
new file mode 100644
index 0000000..3dc3897
--- /dev/null
+++ b/debian/libsane-common.dirs
@@ -0,0 +1,13 @@
+usr/share/doc/libsane-common/mustek_usb2
+usr/share/doc/libsane-common/teco
+usr/share/doc/libsane-common/u12
+usr/share/doc/libsane-common/niash
+usr/share/doc/libsane-common/mustek_usb
+usr/share/doc/libsane-common/leo
+usr/share/doc/libsane-common/canon
+usr/share/doc/libsane-common/plustek
+usr/share/doc/libsane-common/mustek
+usr/share/doc/libsane-common/gt68xx
+usr/share/doc/libsane-common/matsushita
+usr/share/doc/libsane-common/sceptre
+usr/share/doc/libsane-common/umax
diff --git a/debian/libsane-common.docs b/debian/libsane-common.docs
new file mode 100644
index 0000000..1a13c70
--- /dev/null
+++ b/debian/libsane-common.docs
@@ -0,0 +1,8 @@
+usr/share/doc/libsane/*.html
+usr/share/doc/libsane/PROBLEMS
+usr/share/doc/libsane/NEWS
+usr/share/doc/libsane/ChangeLog
+usr/share/doc/libsane/ChangeLogs/*
+usr/share/doc/libsane/README
+usr/share/doc/libsane/PROJECTS
+usr/share/doc/libsane/AUTHORS
diff --git a/debian/libsane-common.examples b/debian/libsane-common.examples
new file mode 100644
index 0000000..ddd1dab
--- /dev/null
+++ b/debian/libsane-common.examples
@@ -0,0 +1,2 @@
+tools/README
+tools/xerox
diff --git a/debian/libsane-common.install b/debian/libsane-common.install
new file mode 100644
index 0000000..df59302
--- /dev/null
+++ b/debian/libsane-common.install
@@ -0,0 +1,18 @@
+etc/
+usr/share/man/man7
+usr/share/locale/
+usr/share/man/man5/sane-scsi.5
+usr/share/man/man5/sane-usb.5
+usr/share/doc/libsane/mustek_usb2/* usr/share/doc/libsane-common/mustek_usb2
+usr/share/doc/libsane/teco/* usr/share/doc/libsane-common/teco
+usr/share/doc/libsane/u12/* usr/share/doc/libsane-common/u12
+usr/share/doc/libsane/niash/* usr/share/doc/libsane-common/niash
+usr/share/doc/libsane/mustek_usb/* usr/share/doc/libsane-common/mustek_usb
+usr/share/doc/libsane/leo/* usr/share/doc/libsane-common/leo
+usr/share/doc/libsane/canon/* usr/share/doc/libsane-common/canon
+usr/share/doc/libsane/plustek/* usr/share/doc/libsane-common/plustek
+usr/share/doc/libsane/mustek/* usr/share/doc/libsane-common/mustek
+usr/share/doc/libsane/gt68xx/* usr/share/doc/libsane-common/gt68xx
+usr/share/doc/libsane/matsushita/* usr/share/doc/libsane-common/matsushita
+usr/share/doc/libsane/sceptre/* usr/share/doc/libsane-common/sceptre
+usr/share/doc/libsane/umax/* usr/share/doc/libsane-common/umax
diff --git a/debian/libsane-common.maintscript b/debian/libsane-common.maintscript
new file mode 100644
index 0000000..1438dbe
--- /dev/null
+++ b/debian/libsane-common.maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/sane.d/v4l.conf 1.0.24-10~
diff --git a/debian/libsane-common.manpages b/debian/libsane-common.manpages
new file mode 100644
index 0000000..fa664f3
--- /dev/null
+++ b/debian/libsane-common.manpages
@@ -0,0 +1 @@
+usr/share/man/man5/*.5
diff --git a/debian/libsane-common.postrm b/debian/libsane-common.postrm
new file mode 100644
index 0000000..98c45e3
--- /dev/null
+++ b/debian/libsane-common.postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+# remove directory /etc/sane.d/
+if [ "$1" = "purge" ]; then
+ echo "Removing directory /etc/sane.d/ ..."
+ rmdir --ignore-fail-on-non-empty /etc/sane.d/
+fi
+
+#DEBHELPER#
diff --git a/debian/libsane-dev.dirs b/debian/libsane-dev.dirs
new file mode 100644
index 0000000..c701ec2
--- /dev/null
+++ b/debian/libsane-dev.dirs
@@ -0,0 +1 @@
+usr/share/doc/libsane-dev/
diff --git a/debian/libsane-dev.install b/debian/libsane-dev.install
new file mode 100644
index 0000000..6df5f63
--- /dev/null
+++ b/debian/libsane-dev.install
@@ -0,0 +1,5 @@
+usr/include/
+usr/lib/*/*.a
+usr/lib/*/*.so
+usr/lib/*/sane/*.a
+usr/lib/*/sane/*.so
diff --git a/debian/libsane1.NEWS b/debian/libsane1.NEWS
new file mode 100644
index 0000000..e9a90b1
--- /dev/null
+++ b/debian/libsane1.NEWS
@@ -0,0 +1,19 @@
+sane-backends (1.0.24-10) unstable; urgency=high
+
+ The v4l backend is disabled since this version.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 18 Jan 2015 11:46:18 +0100
+
+sane-backends (1.0.22-1) unstable; urgency=low
+
+ Starting with this version, sane-backends requires the /dev filesystem to
+ support ACLs in order to manage the permissions on scanner devices.
+
+ This change was made to provide better support for multi-function (MFP)
+ devices.
+
+ No action is required on standard Debian systems for this to work; however,
+ if you have an unusual setup or use a custom kernel, make sure ACLs are
+ available on /dev on your system.
+
+ -- Julien BLACHE <jblache@debian.org> Thu, 02 Jun 2011 14:57:53 +0200
diff --git a/debian/libsane1.README.Debian b/debian/libsane1.README.Debian
new file mode 100644
index 0000000..b5e4235
--- /dev/null
+++ b/debian/libsane1.README.Debian
@@ -0,0 +1,172 @@
+libsane (sane-backends) for Debian :
+------------------------------------
+
+GENERAL
+-------
+
+The configuration files for Debian releases of SANE are located in /etc/sane.d.
+
+The dll pseudo-backend is responsible for loading other SANE backends that
+provide support for the actual hardware. Which backends are loaded is
+determined by the contents of the /etc/sane.d/dll.conf file. The dll
+pseudo-backend also checks for dll.conf snippets in /etc/sane.d/dll.d; any
+file in this directory that doesn't look like a backup file will be treated
+as a configuration snippet.
+
+This facility is used by packages providing external backends (like
+hpoj or hplip) to "register" the backends they provide without
+much hassle.
+
+Each backend has a configuration file which specifies which devices,
+access methods, options etc. should be used by this backend. The format
+and content of each configuration file is documented in the manpage for
+the backend, e.g. sane-plustek (5).
+
+For USB and some SCSI scanners, the parameters can be auto-detected, and
+manual configuration is not required. If the auto-detection fails, read
+the next paragraph. Again, see the manpage for your backend for more
+information.
+
+For SCSI devices (mostly scanners), the configuration files use the
+/dev/scanner device; /dev/scanner is a symbolic link to the appropriate
+SCSI device node. It's up to you to create this symbolic link, once you
+will have determined which device node it needs to point to. Use the
+sane-find-scanner command in the sane-utils package to determine which
+SCSI device your scanner is attached to. The sane-find-scanner utility
+also discovers USB scanners.
+
+It can be a good idea to try running sane-find-scanner as root to ensure
+there will be no permissions problems while attempting to detect your
+devices.
+
+
+DOCUMENTATION
+-------------
+
+For information on configuring and trouble-shooting the various SANE
+components, please refer to the manual pages listed below:
+
+ Regarding: Read:
+ ----------------- ------------------------------------------
+ General sane(7) -- your starting point
+
+ scanimage scanimage(1)
+ xscanimage xscanimage(1)
+ saned saned(8)
+ xcam xcam(1)
+
+ Dynamic loading sane-dll(5)
+ Backends See sane-<backend name>(5). Each backend
+ comes with a manual page in section 5 of
+ the manual system.
+
+
+SETUP
+-----
+
+In this day and age, SANE integrates with udev and ConsoleKit/systemd-logind
+seemlessly; this means users physically logged into the machine (as opposed
+to users logged in remotely via SSH) have access to the scanners by default.
+
+The solution proposed below is a legacy setup that remains valid for sharing
+scanners with saned or for systems that don't use ConsoleKit/systemd-logind.
+Note that this is only a proposed solution, you are free to come up with and
+implement whatever access control mechanism you see fit.
+
+This package added a scanner group to your system. We recommend you add to
+this group the users that should be able to access your scanner(s), and
+make sure the appropriate device files (eg. /dev/sg0, ...) are owned by root
+and the scanner group, with permissions set to 0660.
+
+For USB and SCSI scanners, the permissions will be automatically set by udev;
+the /lib/udev/rules.d/60-libsane1.rules file contains a list of USB and SCSI
+scanners supported by SANE.
+
+The udev rules now use ACLs instead of standard UNIX permissions; the scanner
+group is added to the ACLs for the corresponding device(s) with read+write
+permissions.
+
+If your scanner is missing from the list, do NOT modify this file; it is not
+a configuration file, which means your changes WILL be overwritten upon
+upgrade. Instead, create /etc/udev/rules.d/60-libsane1.rules and add the udev
+rule for your scanner in this file. /lib/udev/rules.d/60-libsane1.rules will
+then be ignored by udev and /etc/udev/rules.d/60-libsane1.rules will be used
+instead.
+
+Feel free to file a bug report (severity wishlist) against the libsane package
+to get your scanner added; please mention which backend you use and how well
+the scanner is supported (basic, good, ...).
+
+ Note: please do not file bugs requesting the addition of scanners that
+ aren't supported by the libsane package. For these devices, bugs should
+ be filed against the Debian package providing support for the device, if
+ such a package does exist.
+
+udev will automatically set up the permissions and ownership on the device
+node corresponding to your scanner according to the rules defined in the
+libsane1.rules file (default is root:scanner, 0664). If you want to execute
+a script when your scanner is plugged in, add RUN+="/path/to/script" to the
+rule matching your scanner.
+
+
+TROUBLESHOOTING
+---------------
+
+If your scanner does not work, edit the file /etc/sane.d/dll.conf.
+Verify that your scanner is not commented out. You may need to
+comment out all other scanners in dll.conf. It shouldn't matter, but
+sometimes it does.
+
+The most common cause for a non-working scanner is inappropriate
+permissions on the device. So your first reflex should be to check the
+permissions of the device used to access your scanner, e.g. /dev/sg0
+or the device pointed to by /dev/scanner.
+
+If running "scanimage > t.pnm" gives an error like "scanimage: open of
+device niash:libusb:002:005 failed: Device busy", powercycling your
+scanner might help.
+
+If you encounter any problems with getting your device(s) recognized,
+try setting the various environment variables that are there to assist
+in debugging such problems. The environment variables are documented
+in the relevant manual pages. For example, to get the maximum amount
+of debug information when testing a Mustek scanner, set environment
+variables SANE_DEBUG_DLL, SANE_DEBUG_MUSTEK, and SANE_DEBUG_SANEI_SCSI
+to 128 and then invoke scanimage or whatever program you're trying to
+debug. For a Mustek SCSI scanner at /dev/scanner, you might want to
+invoke scanimage as follows:
+
+ scanimage -d mustek:/dev/scanner -h
+
+If this works, you could try to acquire an image with:
+
+ scanimage -d mustek:/dev/scanner > t.pnm
+
+If you are not sure what generic SCSI device your scanner is connected
+to, try the command sane-find-scanner (sane-utils package). It is
+normally sufficient to invoke the program without any arguments. Invoking
+this command should produce output similar to this:
+
+ $ sane-find-scanner
+ sane-find-scanner: found "MUSTEK MFC-06000CZ 1.01" at device /dev/sge
+
+sane-find-scanner will help you discover your USB scanner, too.
+
+For some more help can read TROUBLESHOOTING.debian in the doc directory.
+
+
+REPORTING BUGS
+--------------
+
+When reporting a bug, be it to the SANE developers or to the Debian bug
+tracking system, pleases always provide:
+ - the full version of libsane
+ - the backend you're using
+ - the configuration of the backend
+ - the debug output, obtained by setting the environment variable
+ SANE_DEBUG_<backendname> to a value of 255 (see above, TROUBLESHOOTING)
+
+Without that, your bug report will take longer to be processed, because we'll
+need to ask you for each of these items. Please help us help you.
+
+-- Julien BLACHE <jblache@debian.org>, Wed, 16 Feb 2011 19:00:12 +0100
diff --git a/debian/libsane1.dirs b/debian/libsane1.dirs
new file mode 100644
index 0000000..ad3a3cc
--- /dev/null
+++ b/debian/libsane1.dirs
@@ -0,0 +1 @@
+/lib/udev/hwdb.d/
diff --git a/debian/libsane1.docs b/debian/libsane1.docs
new file mode 100644
index 0000000..0ea0ca5
--- /dev/null
+++ b/debian/libsane1.docs
@@ -0,0 +1 @@
+debian/TROUBLESHOOTING.Debian
diff --git a/debian/libsane1.install b/debian/libsane1.install
new file mode 100644
index 0000000..ba37095
--- /dev/null
+++ b/debian/libsane1.install
@@ -0,0 +1,3 @@
+usr/lib/*/*.so.*
+usr/lib/*/sane/*.so.*
+debian/99-libsane1.rules /lib/udev/rules.d/
diff --git a/debian/libsane1.postinst b/debian/libsane1.postinst
new file mode 100644
index 0000000..971103e
--- /dev/null
+++ b/debian/libsane1.postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ configure)
+ # Add the scanner system group if it doesn't exist
+ if ! getent group | grep -q "^scanner:"; then
+ echo "Adding scanner group..."
+ addgroup --quiet --system scanner || true
+ fi
+
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "$0 called with unknown argument '$1'" >&2
+ exit 1
+ ;;
+esac
+
+
+#DEBHELPER#
diff --git a/debian/libsane1.symbols b/debian/libsane1.symbols
new file mode 100644
index 0000000..b32e02e
--- /dev/null
+++ b/debian/libsane1.symbols
@@ -0,0 +1,82 @@
+libsane.so.1 libsane1 #MINVER#
+* Build-Depends-Package: libsane-dev
+ (arch=!hurd-i386 !kfreebsd-any)cmsg@Base 1.0.29
+ fail_test@Base 1.0.29
+ md5_buffer@Base 1.0.27
+ md5_finish_ctx@Base 1.0.27
+ md5_init_ctx@Base 1.0.27
+ md5_process_block@Base 1.0.27
+ md5_process_bytes@Base 1.0.27
+ md5_read_ctx@Base 1.0.27
+ md5_stream@Base 1.0.27
+ posix_dlsym@Base 1.0.27
+ sane_cancel@Base 1.0.27
+ sane_close@Base 1.0.27
+ sane_control_option@Base 1.0.27
+ sane_dll_cancel@Base 1.0.27
+ sane_dll_close@Base 1.0.27
+ sane_dll_control_option@Base 1.0.27
+ sane_dll_exit@Base 1.0.27
+ sane_dll_get_devices@Base 1.0.27
+ sane_dll_get_option_descriptor@Base 1.0.27
+ sane_dll_get_parameters@Base 1.0.27
+ sane_dll_get_select_fd@Base 1.0.27
+ sane_dll_init@Base 1.0.27
+ sane_dll_open@Base 1.0.27
+ sane_dll_read@Base 1.0.27
+ sane_dll_set_io_mode@Base 1.0.27
+ sane_dll_start@Base 1.0.27
+ sane_exit@Base 1.0.27
+ sane_get_devices@Base 1.0.27
+ sane_get_option_descriptor@Base 1.0.27
+ sane_get_parameters@Base 1.0.27
+ sane_get_select_fd@Base 1.0.27
+ sane_init@Base 1.0.27
+ sane_open@Base 1.0.27
+ sane_read@Base 1.0.27
+ sane_set_io_mode@Base 1.0.27
+ sane_start@Base 1.0.27
+ sane_strstatus@Base 1.0.27
+ sanei_check_value@Base 1.0.27
+ sanei_config_get_paths@Base 1.0.27
+ sanei_config_get_string@Base 1.0.27
+ sanei_config_open@Base 1.0.27
+ sanei_config_read@Base 1.0.27
+ sanei_config_skip_whitespace@Base 1.0.27
+ sanei_configure_attach@Base 1.0.27
+ sanei_constrain_value@Base 1.0.27
+ sanei_debug_dll@Base 1.0.27
+ sanei_debug_msg@Base 1.0.27
+ sanei_debug_sanei_config@Base 1.0.27
+ sanei_debug_sanei_debug@Base 1.0.27
+ sanei_debug_sanei_usb@Base 1.0.29
+ sanei_init_debug@Base 1.0.27
+ sanei_usb_attach_matching_devices@Base 1.0.29
+ sanei_usb_claim_interface@Base 1.0.29
+ sanei_usb_clear_halt@Base 1.0.29
+ sanei_usb_close@Base 1.0.29
+ sanei_usb_control_msg@Base 1.0.29
+ sanei_usb_exit@Base 1.0.29
+ sanei_usb_find_devices@Base 1.0.29
+ sanei_usb_get_descriptor@Base 1.0.29
+ sanei_usb_get_endpoint@Base 1.0.29
+ sanei_usb_get_vendor_product@Base 1.0.29
+ sanei_usb_get_vendor_product_byname@Base 1.0.29
+ sanei_usb_init@Base 1.0.29
+ sanei_usb_is_replay_mode_enabled@Base 1.0.29
+ sanei_usb_open@Base 1.0.29
+ sanei_usb_read_bulk@Base 1.0.29
+ sanei_usb_read_int@Base 1.0.29
+ sanei_usb_release_interface@Base 1.0.29
+ sanei_usb_reset@Base 1.0.29
+ sanei_usb_scan_devices@Base 1.0.29
+ sanei_usb_set_altinterface@Base 1.0.29
+ sanei_usb_set_configuration@Base 1.0.29
+ sanei_usb_set_endpoint@Base 1.0.29
+ sanei_usb_set_timeout@Base 1.0.29
+ sanei_usb_testing_enable_record@Base 1.0.29
+ sanei_usb_testing_enable_replay@Base 1.0.29
+ sanei_usb_testing_get_backend@Base 1.0.29
+ sanei_usb_testing_record_clear@Base 1.0.32
+ sanei_usb_testing_record_message@Base 1.0.29
+ sanei_usb_write_bulk@Base 1.0.29
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..affcd89
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1,8 @@
+usr/lib/*/sane/*.la
+usr/lib/*/*.la
+usr/share/doc/libsane/README.*
+usr/bin/sane-config
+usr/lib/*/pkgconfig/sane-backends.pc
+usr/share/doc/libsane/LICENSE
+usr/share/doc/libsane/COPYING
+usr/share/doc/libsane/backend-writing.txt
diff --git a/debian/patches/0011-test.patch b/debian/patches/0011-test.patch
new file mode 100644
index 0000000..d4d4590
--- /dev/null
+++ b/debian/patches/0011-test.patch
@@ -0,0 +1,34 @@
+Index: trunk/frontend/jpegtopdf.c
+===================================================================
+--- trunk.orig/frontend/jpegtopdf.c
++++ trunk/frontend/jpegtopdf.c
+@@ -184,6 +184,7 @@ static SANE_Int _get_current_time( struc
+ SANE_Int ret = SANE_ERR;
+ time_t t;
+ long tz;
++ long timezone = 0;
+
+ if ( pt == NULL || sign_c == NULL || ptz_h == NULL || ptz_m == NULL ) {
+ goto EXIT;
+@@ -201,7 +202,7 @@ static SANE_Int _get_current_time( struc
+ goto EXIT;
+ }
+ /* get time difference ( OHH'mm' ) */
+- tz = timezone;
++ tz = timezone;
+ if ( tz > 0 ) {
+ *sign_c = '-';
+ }
+Index: trunk/configure.ac
+===================================================================
+--- trunk.orig/configure.ac
++++ trunk/configure.ac
+@@ -671,7 +671,7 @@ ALL_BACKENDS="abaton agfafocus apple art
+ mustek_usb mustek_usb2 nec net niash pie pieusb pint \
+ pixma plustek plustek_pp qcam ricoh ricoh2 rts8891 s9036 \
+ sceptre sharp sm3600 sm3840 snapscan sp15c st400 \
+- stv680 tamarack teco1 teco2 teco3 test u12 umax
++ stv680 tamarack teco1 teco2 teco3 test u12 umax \
+ umax_pp umax1220u v4l xerox_mfp p5"
+
+ # If user specifies backends manually then cause configure
diff --git a/debian/patches/0035-trim-libraries-in-sane-backends.pc.in.patch b/debian/patches/0035-trim-libraries-in-sane-backends.pc.in.patch
new file mode 100644
index 0000000..7452b33
--- /dev/null
+++ b/debian/patches/0035-trim-libraries-in-sane-backends.pc.in.patch
@@ -0,0 +1,24 @@
+From: Markus Koschany <apo@gambaru.de>
+Date: Sun, 30 Jun 2013 19:13:54 +0200
+Subject: trim libraries in sane-backends.pc.in
+
+Update the original sane-config_and_pkg-config_fixes.patch from Julien BLACHE.
+Patching RPATH related flags is no longer necessary. Still trim the libraries
+in sane-backends.pc.in to the bare minimum for what is needed for libsane.
+---
+ tools/sane-backends.pc.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/tools/sane-backends.pc.in
++++ b/tools/sane-backends.pc.in
+@@ -2,8 +2,8 @@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+-ldflags=@LDFLAGS@ @GPHOTO2_LDFLAGS@
+-libs=@LIBS@ @DL_LIBS@ @LIBV4L_LIBS@ @MATH_LIB@ @TIFF_LIBS@ @JPEG_LIBS@ @GPHOTO2_LIBS@ @SOCKET_LIBS@ @AVAHI_LIBS@ @USB_LIBS@ @SCSI_LIBS@ @RESMGR_LIBS@
++ldflags=@LDFLAGS@
++libs=@LIBS@
+
+ Name: SANE Backends
+ Description: Backends for SANE, the universal scanner interface
diff --git a/debian/patches/0040-remove_git.patch b/debian/patches/0040-remove_git.patch
new file mode 100644
index 0000000..6cbe5f7
--- /dev/null
+++ b/debian/patches/0040-remove_git.patch
@@ -0,0 +1,12 @@
+Description: fix missing .tarball-version if git isn't used
+Author: Jörg Frings-Fürst <debian@jff.email>
+Bug: https://gitlab.com/sane-project/backends/-/issues/440
+Last-Update: 2021-02-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/.tarball-version
+===================================================================
+--- /dev/null
++++ trunk/.tarball-version
+@@ -0,0 +1 @@
++1.1.1-debian
diff --git a/debian/patches/0045-disable_lock_test_at_build_time.patch b/debian/patches/0045-disable_lock_test_at_build_time.patch
new file mode 100644
index 0000000..8aeccf8
--- /dev/null
+++ b/debian/patches/0045-disable_lock_test_at_build_time.patch
@@ -0,0 +1,27 @@
+Description: Disable lock test at buildtime
+Author: Jörg Frings-Fürst <debian@jff.emaill>
+Forwarded: not-needed
+Last-Update: 2020-08-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/acinclude.m4
+===================================================================
+--- trunk.orig/acinclude.m4
++++ trunk/acinclude.m4
+@@ -356,11 +356,11 @@ AC_DEFUN([SANE_CHECK_LOCKING],
+ touch sanetest.file
+ chgrp $LOCKPATH_GROUP sanetest.file 2>/dev/null || lasterror=$?
+ rm -f sanetest.file
+- if test ! -z "$lasterror"; then
+- AC_MSG_WARN([Group $LOCKPATH_GROUP does not exist on this system.])
+- AC_MSG_WARN([Locking feature will be disabled.])
+- use_locking=no
+- fi
++# if test ! -z "$lasterror"; then
++# AC_MSG_WARN([Group $LOCKPATH_GROUP does not exist on this system.])
++# AC_MSG_WARN([Locking feature will be disabled.])
++# use_locking=no
++# fi
+ fi
+ if test $use_locking = yes ; then
+ INSTALL_LOCKPATH=install-lockpath
diff --git a/debian/patches/0050-Use-python3-shebang.patch b/debian/patches/0050-Use-python3-shebang.patch
new file mode 100644
index 0000000..c3e85be
--- /dev/null
+++ b/debian/patches/0050-Use-python3-shebang.patch
@@ -0,0 +1,16 @@
+Description: Use python3 shebang
+Author: Jörg Frings-Fürst <debian@jff.email>
+Forwarded: not-needed
+Last-Update: 2020-08-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/pixma/scripts/pixma_gen_options.py
+===================================================================
+--- trunk.orig/backend/pixma/scripts/pixma_gen_options.py
++++ trunk/backend/pixma/scripts/pixma_gen_options.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+
+ from __future__ import print_function
+ import sys,os,re
diff --git a/debian/patches/0055-Fix_build_error.patch b/debian/patches/0055-Fix_build_error.patch
new file mode 100644
index 0000000..b1b09b1
--- /dev/null
+++ b/debian/patches/0055-Fix_build_error.patch
@@ -0,0 +1,36 @@
+Description: Fix build error
+Author: Jörg Frings-Fürst <debian@jff.email>
+Forwarded: not-needed
+Last-Update: 2020-08-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/po/POTFILES.in
+===================================================================
+--- trunk.orig/po/POTFILES.in
++++ trunk/po/POTFILES.in
+@@ -65,7 +65,7 @@ backend/p5.c
+ backend/p5.h
+ backend/p5_device.c
+ backend/pixma/pixma.c
+-backend/pixma/pixma_sane_options.c
++backend/pixma/pixma_sane_options.c
+ backend/plustek.c
+ backend/plustek_pp.c
+ backend/pnm.c
+Index: trunk/backend/Makefile.am
+===================================================================
+--- trunk.orig/backend/Makefile.am
++++ trunk/backend/Makefile.am
+@@ -947,10 +947,10 @@ $(srcdir)/pixma/pixma.c: \
+
+ $(srcdir)/pixma/pixma_sane_options.h:
+ @echo Generating $@ from $(@D)/pixma.c
+- @(cd $(@D); python scripts/pixma_gen_options.py h < pixma.c > $(@F))
++ @(cd $(@D); python3 scripts/pixma_gen_options.py h < pixma.c > $(@F))
+ $(srcdir)/pixma/pixma_sane_options.c:
+ @echo Generating $@ from $(@D)/pixma.c
+- @(cd $(@D); python scripts/pixma_gen_options.py < pixma.c > $(@F))
++ @(cd $(@D); python3 scripts/pixma_gen_options.py < pixma.c > $(@F))
+
+ EXTRA_DIST += pixma/pixma_sane_options.c
+ EXTRA_DIST += pixma/pixma_sane_options.h
diff --git a/debian/patches/0060-cross.patch b/debian/patches/0060-cross.patch
new file mode 100644
index 0000000..a810929
--- /dev/null
+++ b/debian/patches/0060-cross.patch
@@ -0,0 +1,54 @@
+Description: Make gphoto2 detection use the host architecture pkg-config
+Author: Helmut Grohne <helmut@subdivi.de>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948711
+Forwarded: not-needed
+Last-Update: 2020-08-30
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/acinclude.m4
+===================================================================
+--- trunk.orig/acinclude.m4
++++ trunk/acinclude.m4
+@@ -436,15 +436,19 @@ AC_DEFUN([SANE_CHECK_GPHOTO2],
+ # a program. And, if that works, then add the -l flags to
+ # GPHOTO2_LIBS and any other flags to GPHOTO2_LDFLAGS to pass to
+ # sane-config.
+- if test "$with_gphoto2" != "no" ; then
+- AC_CHECK_TOOL(HAVE_GPHOTO2, pkg-config, false)
++ AS_IF([test "$with_gphoto2" != "no"],[
++ AC_REQUIRE([PKG_PROG_PKG_CONFIG])
++ if test "x$PKG_CONFIG" = x; then
++ HAVE_GPHOTO2=false
++ else
++ HAVE_GPHOTO2=$PKG_CONFIG
++ fi
+
+ if test ${HAVE_GPHOTO2} != "false" ; then
+- if pkg-config --exists libgphoto2 ; then
+- with_gphoto2="`pkg-config --modversion libgphoto2`"
+- GPHOTO2_CPPFLAGS="`pkg-config --cflags libgphoto2`"
+- GPHOTO2_LIBS="`pkg-config --libs libgphoto2`"
+-
++ if $PKG_CONFIG --exists libgphoto2 ; then
++ with_gphoto2="`$PKG_CONFIG --modversion libgphoto2`"
++ GPHOTO2_CPPFLAGS="`$PKG_CONFIG --cflags libgphoto2`"
++ GPHOTO2_LIBS="`$PKG_CONFIG --libs libgphoto2`"
+ saved_CPPFLAGS="${CPPFLAGS}"
+ CPPFLAGS="${GPHOTO2_CPPFLAGS}"
+ saved_LIBS="${LIBS}"
+@@ -464,13 +468,13 @@ AC_DEFUN([SANE_CHECK_GPHOTO2],
+ GPHOTO2_LIBS=""
+ else
+ SANE_EXTRACT_LDFLAGS(GPHOTO2_LIBS, GPHOTO2_LDFLAGS)
+- if pkg-config --atleast-version=2.5.0 libgphoto2; then
++ if $PKG_CONFIG --atleast-version=2.5.0 libgphoto2; then
+ AC_DEFINE([GPLOGFUNC_NO_VARGS], [1],
+ [Define if GPLogFunc does not take a va_list.])
+ fi
+ fi
+ fi
+- fi
++ ])
+ AC_SUBST(GPHOTO2_CPPFLAGS)
+ AC_SUBST(GPHOTO2_LIBS)
+ AC_SUBST(GPHOTO2_LDFLAGS)
diff --git a/debian/patches/0100-source_spelling.patch b/debian/patches/0100-source_spelling.patch
new file mode 100644
index 0000000..6bf41f1
--- /dev/null
+++ b/debian/patches/0100-source_spelling.patch
@@ -0,0 +1,194 @@
+Description: Correct source typos
+Author: Jörg Frings-Fürst <debian@jff.email>
+Forwarded: not-needed
+Last-Update: 2022-02-04
+----
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/epsonds-jpeg.c
+===================================================================
+--- trunk.orig/backend/epsonds-jpeg.c
++++ trunk/backend/epsonds-jpeg.c
+@@ -194,7 +194,7 @@ void eds_decode_jpeg(epsonds_scanner*s,
+ }
+ }
+ }
+- DBG(10,"decodded lines = %d\n", sum);
++ DBG(10,"decoded lines = %d\n", sum);
+
+ // abandon unncessary data
+ if ((JDIMENSION)sum < jpeg_cinfo.output_height)
+Index: trunk/frontend/jpegtopdf.c
+===================================================================
+--- trunk.orig/frontend/jpegtopdf.c
++++ trunk/frontend/jpegtopdf.c
+@@ -285,7 +285,7 @@ SANE_Int sane_pdf_start_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -326,7 +326,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -346,7 +346,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -360,7 +360,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -376,7 +376,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -386,7 +386,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( _get_current_time( &tm, &sign_c, &tz_h, &tz_m ) == SANE_ERR ) {
+- fprintf ( stderr, " Error is occured in _get_current_time.\n" );
++ fprintf ( stderr, " Error is occurred in _get_current_time.\n" );
+ goto EXIT;
+ }
+ /* Dates format */
+@@ -404,7 +404,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -420,7 +420,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -434,7 +434,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+ w_count += SANE_PDF_FIRST_PAGE_ID - 1;
+@@ -450,7 +450,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+ w_count ++;
+@@ -472,7 +472,7 @@ SANE_Int sane_pdf_end_doc( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -568,7 +568,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -586,7 +586,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+ /* write Contents(2) */
+@@ -598,7 +598,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -609,7 +609,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -627,7 +627,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -648,7 +648,7 @@ SANE_Int sane_pdf_start_page(
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -680,7 +680,7 @@ SANE_Int sane_pdf_end_page( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
+@@ -698,7 +698,7 @@ SANE_Int sane_pdf_end_page( void *pw )
+ goto EXIT;
+ }
+ if ( ( ldata = re_write_if_fail( pwork->fd, str, len ) ) < 0 ) {
+- fprintf ( stderr, " Error is occured in re_write_if_fail.\n" );
++ fprintf ( stderr, " Error is occurred in re_write_if_fail.\n" );
+ goto EXIT;
+ }
+
diff --git a/debian/patches/0125-multiarch_dll_search_path.patch b/debian/patches/0125-multiarch_dll_search_path.patch
new file mode 100644
index 0000000..67b9484
--- /dev/null
+++ b/debian/patches/0125-multiarch_dll_search_path.patch
@@ -0,0 +1,44 @@
+Description: Keep /usr/lib/sane as a fallback for SANE backends
+ Make /usr/lib/arch_triplet/sane the default location for SANE backends,
+ but keep /usr/lib/sane as a fallback for now.
+Author: Julien BLACHE <jblache@debian.org>
+
+Index: trunk/backend/dll.c
+===================================================================
+--- trunk.orig/backend/dll.c
++++ trunk/backend/dll.c
+@@ -468,18 +468,18 @@ load (struct backend *be)
+
+ if (path)
+ {
+- src_len = strlen (path) + strlen (DIR_SEP) + strlen(LIBDIR) + 1;
++ src_len = strlen (path) + strlen (DIR_SEP) + strlen(DEB_DLL_LIBDIR) + 1;
+ src = malloc (src_len);
+ if (!src)
+ {
+ DBG (1, "load: malloc failed: %s\n", strerror (errno));
+ return SANE_STATUS_NO_MEM;
+ }
+- snprintf (src, src_len, "%s%s%s", path, DIR_SEP, LIBDIR);
++ snprintf (src, src_len, "%s%s%s", path, DIR_SEP, DEB_DLL_LIBDIR);
+ }
+ else
+ {
+- src = LIBDIR;
++ src = DEB_DLL_LIBDIR;
+ src = strdup (src);
+ if (!src)
+ {
+Index: trunk/backend/Makefile.am
+===================================================================
+--- trunk.orig/backend/Makefile.am
++++ trunk/backend/Makefile.am
+@@ -5,7 +5,7 @@
+ ## This file is part of the "Sane" build infra-structure. See
+ ## included LICENSE file for license information.
+
+-AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include $(USB_CFLAGS) -DLIBDIR="\"$(libdir)/sane\""
++AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include $(USB_CFLAGS) -DLIBDIR="\"$(libdir)/sane\"" -DDEB_DLL_LIBDIR="\"$(libdir)/sane:$(prefix)/lib/sane\:$(prefix)/lib64/sane\""
+
+ AM_LDFLAGS += $(STRICT_LDFLAGS)
+ # The -rpath option is added because we are creating _LTLIBRARIES based
diff --git a/debian/patches/0140-avahi.patch b/debian/patches/0140-avahi.patch
new file mode 100644
index 0000000..b666bff
--- /dev/null
+++ b/debian/patches/0140-avahi.patch
@@ -0,0 +1,90 @@
+Description: Avoid assertion failure when net_avahi_init failed
+Author: Andreas Henriksson <andreas@fatal.se>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861112
+Forwarded: not-needed
+Last-Update: 2017-06-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/net.c
+===================================================================
+--- trunk.orig/backend/net.c
++++ trunk/backend/net.c
+@@ -769,7 +769,7 @@ net_avahi_browse_callback (AvahiServiceB
+ {
+ case AVAHI_BROWSER_FAILURE:
+ DBG (1, "net_avahi_browse_callback: %s\n", avahi_strerror (avahi_client_errno (avahi_service_browser_get_client (b))));
+- avahi_threaded_poll_quit (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_quit (avahi_thread);
+ return;
+
+ case AVAHI_BROWSER_NEW:
+@@ -834,7 +834,7 @@ net_avahi_callback (AvahiClient *c, Avah
+ if (avahi_browser == NULL)
+ {
+ DBG (1, "net_avahi_callback: could not create service browser: %s\n", avahi_strerror (avahi_client_errno (c)));
+- avahi_threaded_poll_quit (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_quit (avahi_thread);
+ }
+ break;
+
+@@ -857,14 +857,14 @@ net_avahi_callback (AvahiClient *c, Avah
+ if (avahi_client == NULL)
+ {
+ DBG (1, "net_avahi_init: could not create Avahi client: %s\n", avahi_strerror (error));
+- avahi_threaded_poll_quit (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_quit (avahi_thread);
+ }
+ }
+ else
+ {
+ /* Another error happened - game over */
+ DBG (1, "net_avahi_callback: server connection failure: %s\n", avahi_strerror (error));
+- avahi_threaded_poll_quit (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_quit (avahi_thread);
+ }
+ break;
+ }
+@@ -1043,12 +1043,12 @@ sane_init (SANE_Int * version_code, SANE
+ continue;
+ }
+ #if WITH_AVAHI
+- avahi_threaded_poll_lock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_lock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ DBG (2, "sane_init: trying to add %s\n", device_name);
+ add_device (device_name, 0);
+ #if WITH_AVAHI
+- avahi_threaded_poll_unlock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_unlock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ }
+
+@@ -1094,12 +1094,12 @@ sane_init (SANE_Int * version_code, SANE
+ continue;
+ #endif /* ENABLE_IPV6 */
+ #if WITH_AVAHI
+- avahi_threaded_poll_lock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_lock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ DBG (2, "sane_init: trying to add %s\n", host);
+ add_device (host, 0);
+ #if WITH_AVAHI
+- avahi_threaded_poll_unlock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_unlock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ }
+ free (copy);
+@@ -1517,11 +1517,11 @@ sane_open (SANE_String_Const full_name,
+ "sane_open: device %s not found, trying to register it anyway\n",
+ nd_name);
+ #if WITH_AVAHI
+- avahi_threaded_poll_lock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_lock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ status = add_device (nd_name, &dev);
+ #if WITH_AVAHI
+- avahi_threaded_poll_unlock (avahi_thread);
++ if (avahi_thread) avahi_threaded_poll_unlock (avahi_thread);
+ #endif /* WITH_AVAHI */
+ if (status != SANE_STATUS_GOOD)
+ {
diff --git a/debian/patches/0145-avahi.patch b/debian/patches/0145-avahi.patch
new file mode 100644
index 0000000..a5d98ef
--- /dev/null
+++ b/debian/patches/0145-avahi.patch
@@ -0,0 +1,34 @@
+Description: scanimage assert failure: *** Error in `scanimage': double free or corruption (top)
+Author: Laurent Vivier Laurent@vivier.eu
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1208091
+Forwarded: not-needed
+Last-Update: 2017-06-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/net.c
+===================================================================
+--- trunk.orig/backend/net.c
++++ trunk/backend/net.c
+@@ -962,10 +962,6 @@ sane_init (SANE_Int * version_code, SANE
+ first_device = NULL;
+ first_handle = NULL;
+
+-#if WITH_AVAHI
+- net_avahi_init ();
+-#endif /* WITH_AVAHI */
+-
+ auth_callback = authorize;
+
+ /* Return the version number of the sane-backends package to allow
+@@ -1117,6 +1113,11 @@ sane_init (SANE_Int * version_code, SANE
+ DBG (2, "sane_init: connect timeout set to %d seconds from env\n", connect_timeout);
+ }
+
++#if WITH_AVAHI
++ net_avahi_init ();
++#endif /* WITH_AVAHI */
++
++
+ DBG (2, "sane_init: done\n");
+ return SANE_STATUS_GOOD;
+ }
diff --git a/debian/patches/0150-i386-test.patch b/debian/patches/0150-i386-test.patch
new file mode 100644
index 0000000..70681dd
--- /dev/null
+++ b/debian/patches/0150-i386-test.patch
@@ -0,0 +1,48 @@
+Description: Disable some tests that fail on i386
+Author: Jörg Frings-Fürst <debian@jff.email>
+Forwarded: not-needed
+Last-Update: 2020-04-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/testsuite/backend/genesys/tests_image.cpp
+===================================================================
+--- trunk.orig/testsuite/backend/genesys/tests_image.cpp
++++ trunk/testsuite/backend/genesys/tests_image.cpp
+@@ -122,14 +122,14 @@ void test_set_pixel_to_row()
+
+ pixel = Pixel(0x1200, 0x1200, 0x1200);
+ set_pixel_to_row(data.data(), 0, pixel, PixelFormat::I8);
+- ASSERT_EQ(data, Data({0x12, 0x00, 0x00, 0x00, 0x00, 0x00,
+- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
++// ASSERT_EQ(data, Data({0x12, 0x00, 0x00, 0x00, 0x00, 0x00,
++// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
+ reset();
+
+ pixel = Pixel(0x1200, 0x1200, 0x1200);
+ set_pixel_to_row(data.data(), 2, pixel, PixelFormat::I8);
+- ASSERT_EQ(data, Data({0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
+- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
++// ASSERT_EQ(data, Data({0x00, 0x00, 0x12, 0x00, 0x00, 0x00,
++// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
+ reset();
+
+ pixel = Pixel(0x1200, 0x3400, 0x5600);
+@@ -158,14 +158,14 @@ void test_set_pixel_to_row()
+
+ pixel = Pixel(0x1234, 0x1234, 0x1234);
+ set_pixel_to_row(data.data(), 0, pixel, PixelFormat::I16);
+- ASSERT_EQ(data, Data({0x34, 0x12, 0x00, 0x00, 0x00, 0x00,
+- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
++// ASSERT_EQ(data, Data({0x34, 0x12, 0x00, 0x00, 0x00, 0x00,
++// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
+ reset();
+
+ pixel = Pixel(0x1234, 0x1234, 0x1234);
+ set_pixel_to_row(data.data(), 1, pixel, PixelFormat::I16);
+- ASSERT_EQ(data, Data({0x00, 0x00, 0x34, 0x12, 0x00, 0x00,
+- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
++// ASSERT_EQ(data, Data({0x00, 0x00, 0x34, 0x12, 0x00, 0x00,
++// 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
+ reset();
+
+ pixel = Pixel(0x1234, 0x5678, 0x9abc);
diff --git a/debian/patches/0155-hurd_PATH_MAX.patch b/debian/patches/0155-hurd_PATH_MAX.patch
new file mode 100644
index 0000000..71d4c68
--- /dev/null
+++ b/debian/patches/0155-hurd_PATH_MAX.patch
@@ -0,0 +1,364 @@
+Description: Add PATH_MAX if undefined
+Author: Jörg Frings-Fürst <debian@jff.email>
+Last-Update: 2020-04-17
+Index: trunk/backend/escl/escl_capabilities.c
+===================================================================
+--- trunk.orig/backend/escl/escl_capabilities.c
++++ trunk/backend/escl/escl_capabilities.c
+@@ -34,6 +34,10 @@
+
+ #include "../include/sane/saneopts.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 4096
++#endif
++
+ struct cap
+ {
+ char *memory;
+Index: trunk/backend/escl/escl.h
+===================================================================
+--- trunk.orig/backend/escl/escl.h
++++ trunk/backend/escl/escl.h
+@@ -67,6 +67,10 @@
+ # define DBGDUMP(level, buf, size)
+ #endif
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ #define ESCL_CONFIG_FILE "escl.conf"
+
+
+Index: trunk/backend/canon630u.c
+===================================================================
+--- trunk.orig/backend/canon630u.c
++++ trunk/backend/canon630u.c
+@@ -65,6 +65,10 @@
+
+ #include "canon630u-common.c"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ typedef struct Canon_Device
+ {
+ struct Canon_Device *next;
+Index: trunk/backend/canon_pp.c
+===================================================================
+--- trunk.orig/backend/canon_pp.c
++++ trunk/backend/canon_pp.c
+@@ -77,6 +77,11 @@
+ #include "../include/sane/sanei_backend.h"
+ /* #include "../include/sane/sanei_debug.h" */
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
++
+
+ /* Prototypes */
+ static SANE_Status init_device(struct parport *pp);
+Index: trunk/backend/gt68xx.h
+===================================================================
+--- trunk.orig/backend/gt68xx.h
++++ trunk/backend/gt68xx.h
+@@ -51,4 +51,8 @@
+
+ #define GT68XX_CONFIG_FILE "gt68xx.conf"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ #endif /* not GT68XX_H */
+Index: trunk/backend/hp3900_sane.c
+===================================================================
+--- trunk.orig/backend/hp3900_sane.c
++++ trunk/backend/hp3900_sane.c
+@@ -53,6 +53,11 @@
+
+ #include "hp3900_rts8822.c"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
++
+ struct st_convert
+ {
+ SANE_Int colormode;
+Index: trunk/backend/hp4200.h
+===================================================================
+--- trunk.orig/backend/hp4200.h
++++ trunk/backend/hp4200.h
+@@ -26,6 +26,10 @@
+ #define min(a, b) (((a) < (b)) ? (a) : (b))
+ #define max(a, b) (((a) > (b)) ? (a) : (b))
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+
+ /*--------------------------------------------------------------------------*/
+
+Index: trunk/backend/hp5400_sane.c
+===================================================================
+--- trunk.orig/backend/hp5400_sane.c
++++ trunk/backend/hp5400_sane.c
+@@ -87,6 +87,9 @@
+
+ #define NUM_GAMMA_ENTRIES 65536
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
+
+ /* options enumerator */
+ typedef enum
+Index: trunk/backend/hpsj5s.c
+===================================================================
+--- trunk.orig/backend/hpsj5s.c
++++ trunk/backend/hpsj5s.c
+@@ -56,6 +56,9 @@
+ #include <stdio.h>
+ #include <unistd.h>
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
+
+ #define LINES_TO_FEED 480 /*Default feed length */
+
+Index: trunk/backend/leo.c
+===================================================================
+--- trunk.orig/backend/leo.c
++++ trunk/backend/leo.c
+@@ -75,6 +75,10 @@
+
+ #include "leo.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+
+ /* Lists of possible scan modes. */
+Index: trunk/backend/lexmark.c
+===================================================================
+--- trunk.orig/backend/lexmark.c
++++ trunk/backend/lexmark.c
+@@ -45,6 +45,10 @@
+
+ #include "lexmark.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ #define LEXMARK_CONFIG_FILE "lexmark.conf"
+ #define BUILD 32
+ #define MAX_OPTION_STRING_SIZE 255
+Index: trunk/backend/matsushita.c
+===================================================================
+--- trunk.orig/backend/matsushita.c
++++ trunk/backend/matsushita.c
+@@ -79,6 +79,10 @@
+
+ #include "matsushita.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+
+ /* Lists of possible scan modes. */
+Index: trunk/backend/p5_device.c
+===================================================================
+--- trunk.orig/backend/p5_device.c
++++ trunk/backend/p5_device.c
+@@ -1,3 +1,8 @@
++
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /**
+ * Description of the Primax PagePartner model
+ */
+Index: trunk/backend/pie.c
+===================================================================
+--- trunk.orig/backend/pie.c
++++ trunk/backend/pie.c
+@@ -132,8 +132,11 @@
+
+ #define min(a,b) (((a)<(b))?(a):(b))
+ #define max(a,b) (((a)>(b))?(a):(b))
+-
+-
++
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /* names of scanners that are supported because */
+ /* the inquiry_return_block is ok and driver is tested */
+
+Index: trunk/backend/pieusb.c
+===================================================================
+--- trunk.orig/backend/pieusb.c
++++ trunk/backend/pieusb.c
+@@ -107,6 +107,10 @@ extern void write_tiff_rgbi_header (FILE
+ #define DBG_info_scan 11 /* information scanner commands */
+ #define DBG_info_usb 13 /* information usb level functions */
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /* device flags */
+
+ #define FLAG_SLIDE_TRANSPORT 0x01
+Index: trunk/backend/plustek-usb.c
+===================================================================
+--- trunk.orig/backend/plustek-usb.c
++++ trunk/backend/plustek-usb.c
+@@ -117,6 +117,10 @@ static TabDef usbVendors[] = {
+ /** we use at least 8 megs for scanning... */
+ #define _SCANBUF_SIZE (8 * 1024 * 1024)
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /********************** the USB scanner interface ****************************/
+
+ /** remove the slash out of the model-name to obtain a valid filename
+Index: trunk/backend/sceptre.c
+===================================================================
+--- trunk.orig/backend/sceptre.c
++++ trunk/backend/sceptre.c
+@@ -77,6 +77,10 @@
+
+ #include "sceptre.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+
+ static const SANE_String scan_mode_list[] = { LINEART_STR, HALFTONE_STR,
+Index: trunk/backend/sp15c.c
+===================================================================
+--- trunk.orig/backend/sp15c.c
++++ trunk/backend/sp15c.c
+@@ -225,6 +225,10 @@
+ #include "sp15c-scsi.h"
+ #include "sp15c.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /* ------------------------------------------------------------------------- */
+
+ static const char negativeStr[] = "Negative";
+Index: trunk/backend/stv680.c
+===================================================================
+--- trunk.orig/backend/stv680.c
++++ trunk/backend/stv680.c
+@@ -98,6 +98,10 @@
+
+ #define TIMEOUT 1000
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+ /* Lists of possible scan modes. */
+ static SANE_String_Const scan_mode_list[] = {
+Index: trunk/backend/teco1.c
+===================================================================
+--- trunk.orig/backend/teco1.c
++++ trunk/backend/teco1.c
+@@ -83,6 +83,10 @@
+ #define sanei_scsi_close(a) SANE_STATUS_GOOD
+ #endif
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+
+ /* Lists of possible scan modes. */
+Index: trunk/backend/teco2.c
+===================================================================
+--- trunk.orig/backend/teco2.c
++++ trunk/backend/teco2.c
+@@ -103,6 +103,10 @@
+ #define sanei_scsi_close(a) SANE_STATUS_GOOD
+ #endif
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /* For debugging purposes: output a stream straight out from the
+ * scanner without reordering the colors, 0=normal, 1 = raw. */
+ static int raw_output = 0;
+Index: trunk/backend/teco3.c
+===================================================================
+--- trunk.orig/backend/teco3.c
++++ trunk/backend/teco3.c
+@@ -75,6 +75,10 @@
+
+ #include "teco3.h"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ /*--------------------------------------------------------------------------*/
+
+ /* Lists of possible scan modes. */
+Index: trunk/backend/test.c
+===================================================================
+--- trunk.orig/backend/test.c
++++ trunk/backend/test.c
+@@ -74,6 +74,10 @@
+
+ #define TEST_CONFIG_FILE "test.conf"
+
++#ifndef PATH_MAX
++ #define PATH_MAX 1024
++#endif
++
+ static SANE_Bool inited = SANE_FALSE;
+ static SANE_Device **sane_device_list = 0;
+ static Test_Device *first_test_device = 0;
+Index: trunk/backend/pixma/pixma_bjnp.c
+===================================================================
+--- trunk.orig/backend/pixma/pixma_bjnp.c
++++ trunk/backend/pixma/pixma_bjnp.c
+@@ -117,6 +117,12 @@
+ # endif
+ #endif
+
++#ifndef HOST_NAME_MAX
++ #define HOST_NAME_MAX 64
++#endif
++
++
++
+ /* static data */
+ static bjnp_device_t device[BJNP_NO_DEVICES];
+ static int bjnp_no_devices = 0;
diff --git a/debian/patches/0165-respect_local_only_parameter.patch b/debian/patches/0165-respect_local_only_parameter.patch
new file mode 100644
index 0000000..f73a731
--- /dev/null
+++ b/debian/patches/0165-respect_local_only_parameter.patch
@@ -0,0 +1,768 @@
+Description: respect 'local_only' parameter of sane_get_devices()
+Author: Barnabás Pőcze <pobrn@protonmail.com>
+Origin: backport, https://gitlab.com/sane-project/backends/-/commit/245564dffe96ddf0fd1c703c48973cd35fddd268
+Bug: https://gitlab.com/sane-project/backends/-/merge_requests/502/
+Forwarded: no-needed
+Last-Update: 2020-09-05
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/dell1600n_net.c
+===================================================================
+--- trunk.orig/backend/dell1600n_net.c
++++ trunk/backend/dell1600n_net.c
+@@ -288,8 +288,7 @@ sane_exit (void)
+ /***********************************************************/
+
+ SANE_Status
+-sane_get_devices (const SANE_Device *** device_list,
+- SANE_Bool __sane_unused__ local_only)
++sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
+ {
+
+ int ret;
+@@ -312,6 +311,10 @@ sane_get_devices (const SANE_Device ***
+ sock = 0;
+ pDevice = NULL;
+ optYes = 1;
++
++ if (local_only)
++ return ret;
++
+ InitComBuf (&queryPacket);
+
+ /* clear previous results */
+Index: trunk/backend/epson2.c
+===================================================================
+--- trunk.orig/backend/epson2.c
++++ trunk/backend/epson2.c
+@@ -813,10 +813,11 @@ attach_one_pio(const char *dev)
+ }
+
+ static SANE_Status
+-attach_one_config(SANEI_Config __sane_unused__ *config, const char *line)
++attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
++ void *data)
+ {
+ int vendor, product;
+-
++ SANE_Bool local_only = *(SANE_Bool*) data;
+ int len = strlen(line);
+
+ DBG(7, "%s: len = %d, line = %s\n", __func__, len, line);
+@@ -847,13 +848,16 @@ attach_one_config(SANEI_Config __sane_un
+
+ } else if (strncmp(line, "net", 3) == 0) {
+
+- /* remove the "net" sub string */
+- const char *name = sanei_config_skip_whitespace(line + 3);
+-
+- if (strncmp(name, "autodiscovery", 13) == 0)
+- e2_network_discovery();
+- else
+- attach_one_net(name);
++ if (!local_only) {
++ /* remove the "net" sub string */
++ const char *name =
++ sanei_config_skip_whitespace(line + 3);
++
++ if (strncmp(name, "autodiscovery", 13) == 0)
++ e2_network_discovery();
++ else
++ attach_one_net(name);
++ }
+
+ } else if (strncmp(line, "pio", 3) == 0) {
+
+@@ -889,14 +893,14 @@ free_devices(void)
+ }
+
+ static void
+-probe_devices(void)
++probe_devices(SANE_Bool local_only)
+ {
+ DBG(5, "%s\n", __func__);
+
+ free_devices();
+
+ sanei_configure_attach(EPSON2_CONFIG_FILE, NULL,
+- attach_one_config);
++ attach_one_config, &local_only);
+ }
+
+ SANE_Status
+@@ -926,14 +930,14 @@ sane_exit(void)
+ }
+
+ SANE_Status
+-sane_get_devices(const SANE_Device ***device_list, SANE_Bool __sane_unused__ local_only)
++sane_get_devices(const SANE_Device ***device_list, SANE_Bool local_only)
+ {
+ Epson_Device *dev;
+ int i;
+
+ DBG(5, "%s\n", __func__);
+
+- probe_devices();
++ probe_devices(local_only);
+
+ devlist = malloc((num_devices + 1) * sizeof(devlist[0]));
+ if (!devlist) {
+@@ -1470,7 +1474,7 @@ sane_open(SANE_String_Const name, SANE_H
+ /* probe if empty device name provided */
+ if (l == 0) {
+
+- probe_devices();
++ probe_devices(SANE_FALSE);
+
+ if (first_dev == NULL) {
+ DBG(1, "no device detected\n");
+@@ -1507,7 +1511,7 @@ sane_open(SANE_String_Const name, SANE_H
+ */
+
+ if (first_dev == NULL)
+- probe_devices();
++ probe_devices(SANE_FALSE);
+
+ s = device_detect(name, SANE_EPSON_NODEV, 0, &status);
+ if (s == NULL) {
+Index: trunk/backend/epsonds.c
+===================================================================
+--- trunk.orig/backend/epsonds.c
++++ trunk/backend/epsonds.c
+@@ -481,10 +481,11 @@ attach_one_net(const char *dev)
+
+
+ static SANE_Status
+-attach_one_config(SANEI_Config __sane_unused__ *config, const char *line)
++attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
++ void *data)
+ {
+ int vendor, product;
+-
++ SANE_Bool local_only = *(SANE_Bool*) data;
+ int len = strlen(line);
+
+ DBG(7, "%s: len = %d, line = %s\n", __func__, len, line);
+@@ -513,13 +514,16 @@ attach_one_config(SANEI_Config __sane_un
+
+ } else if (strncmp(line, "net", 3) == 0) {
+
+- /* remove the "net" sub string */
+- const char *name = sanei_config_skip_whitespace(line + 3);
+-
+- if (strncmp(name, "autodiscovery", 13) == 0)
+- e2_network_discovery();
+- else
+- attach_one_net(name);
++ if (!local_only) {
++ /* remove the "net" sub string */
++ const char *name =
++ sanei_config_skip_whitespace(line + 3);
++
++ if (strncmp(name, "autodiscovery", 13) == 0)
++ e2_network_discovery();
++ else
++ attach_one_net(name);
++ }
+
+ } else {
+ DBG(0, "unable to parse config line: %s\n", line);
+@@ -545,12 +549,13 @@ free_devices(void)
+ }
+
+ static void
+-probe_devices(void)
++probe_devices(SANE_Bool local_only)
+ {
+ DBG(5, "%s\n", __func__);
+
+ free_devices();
+- sanei_configure_attach(EPSONDS_CONFIG_FILE, NULL, attach_one_config);
++ sanei_configure_attach(EPSONDS_CONFIG_FILE, NULL,
++ attach_one_config, &local_only);
+ }
+
+ /**** SANE API ****/
+@@ -581,14 +586,14 @@ sane_exit(void)
+ }
+
+ SANE_Status
+-sane_get_devices(const SANE_Device ***device_list, SANE_Bool __sane_unused__ local_only)
++sane_get_devices(const SANE_Device ***device_list, SANE_Bool local_only)
+ {
+ int i;
+ epsonds_device *dev;
+
+ DBG(5, "** %s\n", __func__);
+
+- probe_devices();
++ probe_devices(local_only);
+
+ devlist = malloc((num_devices + 1) * sizeof(devlist[0]));
+ if (!devlist) {
+@@ -793,7 +798,7 @@ sane_open(SANE_String_Const name, SANE_H
+ /* probe if empty device name provided */
+ if (name[0] == '\0') {
+
+- probe_devices();
++ probe_devices(SANE_FALSE);
+
+ if (first_dev == NULL) {
+ DBG(1, "no devices detected\n");
+Index: trunk/backend/escl/escl.c
+===================================================================
+--- trunk.orig/backend/escl/escl.c
++++ trunk/backend/escl/escl.c
+@@ -383,7 +383,8 @@ sane_exit(void)
+ * \return escl_add_in_list(escl_device) if the parsing worked, SANE_STATUS_GOOD otherwise.
+ */
+ static SANE_Status
+-attach_one_config(SANEI_Config __sane_unused__ *config, const char *line)
++attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
++ void __sane_unused__ *data)
+ {
+ int port = 0;
+ SANE_Status status;
+@@ -487,7 +488,8 @@ sane_get_devices(const SANE_Device ***de
+
+ if (device_list == NULL)
+ return (SANE_STATUS_INVAL);
+- status = sanei_configure_attach(ESCL_CONFIG_FILE, NULL, attach_one_config);
++ status = sanei_configure_attach(ESCL_CONFIG_FILE, NULL,
++ attach_one_config, NULL);
+ if (status != SANE_STATUS_GOOD)
+ return (status);
+ escl_devices(&status);
+Index: trunk/backend/genesys/genesys.cpp
+===================================================================
+--- trunk.orig/backend/genesys/genesys.cpp
++++ trunk/backend/genesys/genesys.cpp
+@@ -5186,7 +5186,8 @@ static SANE_Status attach_one_device(SAN
+
+ // this function is passed to C API, it must not throw
+ static SANE_Status
+-config_attach_genesys(SANEI_Config __sane_unused__ *config, const char *devname) noexcept
++config_attach_genesys(SANEI_Config __sane_unused__ *config, const char *devname,
++ void __sane_unused__ *data) noexcept
+ {
+ /* the devname has been processed and is ready to be used
+ * directly. Since the backend is an USB only one, we can
+@@ -5214,7 +5215,8 @@ static void probe_genesys_devices()
+ config.values = nullptr;
+ config.count = 0;
+
+- auto status = sanei_configure_attach(GENESYS_CONFIG_FILE, &config, config_attach_genesys);
++ auto status = sanei_configure_attach(GENESYS_CONFIG_FILE, &config,
++ config_attach_genesys, NULL);
+ if (status == SANE_STATUS_ACCESS_DENIED) {
+ dbg.vlog(DBG_error0, "Critical error: Couldn't access configuration file '%s'",
+ GENESYS_CONFIG_FILE);
+Index: trunk/backend/kodakaio.c
+===================================================================
+--- trunk.orig/backend/kodakaio.c
++++ trunk/backend/kodakaio.c
+@@ -2513,10 +2513,11 @@ attach_one_net(const char *dev, unsigned
+ }
+
+ static SANE_Status
+-attach_one_config(SANEI_Config __sane_unused__ *config, const char *line)
++attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
++ void *data)
+ {
+ int vendor, product, timeout;
+-
++ SANE_Bool local_only = *(SANE_Bool*) data;
+ int len = strlen(line);
+
+ DBG(7, "%s: len = %d, line = %s\n", __func__, len, line);
+@@ -2550,27 +2551,30 @@ attach_one_config(SANEI_Config __sane_un
+
+ } else if (strncmp(line, "net", 3) == 0) {
+
+- /* remove the "net" sub string */
+- const char *name = sanei_config_skip_whitespace(line + 3);
+- char IP[1024];
+- unsigned int model = 0;
+-
+- if (strncmp(name, "autodiscovery", 13) == 0) {
+-
+-#if WITH_AVAHI
+- DBG (30, "%s: Initiating network autodiscovery via avahi\n", __func__);
+- kodak_network_discovery(NULL);
+-#else
+- DBG (20, "%s: Network autodiscovery not done because not configured with avahi.\n", __func__);
+-#endif
+-
+- } else if (sscanf(name, "%s %x", IP, &model) == 2) {
+- DBG(30, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
+- attach_one_net(IP, model);
+- } else {
++ if (!local_only) {
++ /* remove the "net" sub string */
++ const char *name =
++ sanei_config_skip_whitespace(line + 3);
++ char IP[1024];
++ unsigned int model = 0;
++
++ if (strncmp(name, "autodiscovery", 13) == 0) {
++
++ #if WITH_AVAHI
++ DBG (30, "%s: Initiating network autodiscovery via avahi\n", __func__);
++ kodak_network_discovery(NULL);
++ #else
++ DBG (20, "%s: Network autodiscovery not done because not configured with avahi.\n", __func__);
++ #endif
++
++ } else if (sscanf(name, "%s %x", IP, &model) == 2) {
++ DBG(30, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
++ attach_one_net(IP, model);
++ } else {
+ DBG(1, "%s: net entry %s may be a host name?\n", __func__, name);
+ attach_one_net(name, 0);
+ }
++ }
+
+ } else if (sscanf(line, "snmp-timeout %i\n", &timeout)) {
+ /* Timeout for auto network discovery */
+@@ -2646,7 +2650,7 @@ sane_exit(void)
+ }
+
+ SANE_Status
+-sane_get_devices(const SANE_Device ***device_list, SANE_Bool __sane_unused__ local_only)
++sane_get_devices(const SANE_Device ***device_list, SANE_Bool local_only)
+ {
+ Kodak_Device *dev, *s, *prev=0;
+ int i;
+@@ -2662,7 +2666,7 @@ sane_get_devices(const SANE_Device ***de
+
+ /* Read the config, mark each device as found, possibly add new devs */
+ sanei_configure_attach(KODAKAIO_CONFIG_FILE, NULL,
+- attach_one_config);
++ attach_one_config, &local_only);
+
+ /*delete missing scanners from list*/
+ for (s = first_dev; s;) {
+Index: trunk/backend/magicolor.c
+===================================================================
+--- trunk.orig/backend/magicolor.c
++++ trunk/backend/magicolor.c
+@@ -2157,10 +2157,11 @@ attach_one_net(const char *dev, unsigned
+ }
+
+ static SANE_Status
+-attach_one_config(SANEI_Config __sane_unused__ *config, const char *line)
++attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
++ void *data)
+ {
+ int vendor, product, timeout;
+-
++ SANE_Bool local_only = *(SANE_Bool*) data;
+ int len = strlen(line);
+
+ DBG(7, "%s: len = %d, line = %s\n", __func__, len, line);
+@@ -2189,24 +2190,27 @@ attach_one_config(SANEI_Config __sane_un
+
+ } else if (strncmp(line, "net", 3) == 0) {
+
+- /* remove the "net" sub string */
+- const char *name = sanei_config_skip_whitespace(line + 3);
+- char IP[1024];
+- unsigned int model = 0;
+-
+- if (strncmp(name, "autodiscovery", 13) == 0) {
+- DBG (50, "%s: Initiating network autodiscovervy via SNMP\n", __func__);
+- mc_network_discovery(NULL);
+- } else if (sscanf(name, "%s %x", IP, &model) == 2) {
+- DBG(50, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
+- attach_one_net(IP, model);
+- } else {
+- /* use SNMP to detect the type. If not successful,
+- * add the host with model type 0 */
+- DBG(50, "%s: Using network device on IP %s, trying to autodetect model\n", __func__, IP);
+- if (mc_network_discovery(name)==0) {
+- DBG(1, "%s: Autodetecting device model failed, using default model\n", __func__);
+- attach_one_net(name, 0);
++ if (!local_only) {
++ /* remove the "net" sub string */
++ const char *name =
++ sanei_config_skip_whitespace(line + 3);
++ char IP[1024];
++ unsigned int model = 0;
++
++ if (strncmp(name, "autodiscovery", 13) == 0) {
++ DBG (50, "%s: Initiating network autodiscovervy via SNMP\n", __func__);
++ mc_network_discovery(NULL);
++ } else if (sscanf(name, "%s %x", IP, &model) == 2) {
++ DBG(50, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
++ attach_one_net(IP, model);
++ } else {
++ /* use SNMP to detect the type. If not successful,
++ * add the host with model type 0 */
++ DBG(50, "%s: Using network device on IP %s, trying to autodetect model\n", __func__, IP);
++ if (mc_network_discovery(name)==0) {
++ DBG(1, "%s: Autodetecting device model failed, using default model\n", __func__);
++ attach_one_net(name, 0);
++ }
+ }
+ }
+
+@@ -2279,7 +2283,7 @@ sane_exit(void)
+ }
+
+ SANE_Status
+-sane_get_devices(const SANE_Device ***device_list, SANE_Bool __sane_unused__ local_only)
++sane_get_devices(const SANE_Device ***device_list, SANE_Bool local_only)
+ {
+ Magicolor_Device *dev, *s, *prev=0;
+ int i;
+@@ -2295,7 +2299,7 @@ sane_get_devices(const SANE_Device ***de
+
+ /* Read the config, mark each device as found, possibly add new devs */
+ sanei_configure_attach(MAGICOLOR_CONFIG_FILE, NULL,
+- attach_one_config);
++ attach_one_config, &local_only);
+
+ /*delete missing scanners from list*/
+ for (s = first_dev; s;) {
+Index: trunk/backend/p5.c
+===================================================================
+--- trunk.orig/backend/p5.c
++++ trunk/backend/p5.c
+@@ -1566,7 +1566,8 @@ probe_p5_devices (void)
+ config.count = NUM_CFG_OPTIONS;
+
+ /* generic configure and attach function */
+- status = sanei_configure_attach (P5_CONFIG_FILE, &config, config_attach);
++ status = sanei_configure_attach (P5_CONFIG_FILE, &config,
++ config_attach, NULL);
+ /* free allocated options */
+ for (i = 0; i < NUM_CFG_OPTIONS; i++)
+ {
+@@ -1590,7 +1591,8 @@ probe_p5_devices (void)
+ * SANE_STATUS_INVAL in case of error
+ */
+ static SANE_Status
+-config_attach (SANEI_Config * config, const char *devname)
++config_attach (SANEI_Config __sane_unused__ * config, const char *devname,
++ void __sane_unused__ *data)
+ {
+ /* currently, the config is a global variable so config is useless here */
+ /* the correct thing would be to have a generic sanei_attach_matching_devices
+Index: trunk/backend/p5.h
+===================================================================
+--- trunk.orig/backend/p5.h
++++ trunk/backend/p5.h
+@@ -195,7 +195,8 @@ typedef struct P5_Session
+
+ static SANE_Status probe_p5_devices (void);
+ static P5_Model *probe (const char *devicename);
+-static SANE_Status config_attach (SANEI_Config * config, const char *devname);
++static SANE_Status config_attach (SANEI_Config * config, const char *devname,
++ void *data);
+ static SANE_Status attach_p5 (const char *name, SANEI_Config * config);
+ static SANE_Status init_options (struct P5_Session *session);
+ static SANE_Status compute_parameters (struct P5_Session *session);
+Index: trunk/backend/pixma/pixma.c
+===================================================================
+--- trunk.orig/backend/pixma/pixma.c
++++ trunk/backend/pixma/pixma.c
+@@ -159,10 +159,11 @@ static void mark_all_button_options_cach
+ ss -> button_option_is_cached[i] = 1;
+ }
+
+-static SANE_Status config_attach_pixma(SANEI_Config * config, const char *devname)
++static SANE_Status config_attach_pixma(SANEI_Config __sane_unused__ * config,
++ const char *devname,
++ void __sane_unused__ *data)
+ {
+ int i;
+- UNUSED(config);
+ for (i=0; i < (MAX_CONF_DEVICES -1); i++)
+ {
+ if(conf_devices[i] == NULL)
+@@ -1656,8 +1657,8 @@ sane_init (SANE_Int * version_code, SANE
+ config.descriptors = NULL;
+ config.values = NULL;
+
+- if (sanei_configure_attach(PIXMA_CONFIG_FILE, &config, config_attach_pixma) !=
+- SANE_STATUS_GOOD)
++ if (sanei_configure_attach(PIXMA_CONFIG_FILE, &config,
++ config_attach_pixma, NULL) != SANE_STATUS_GOOD)
+ PDBG(pixma_dbg(2, "Could not read pixma configuration file: %s\n",
+ PIXMA_CONFIG_FILE));
+
+Index: trunk/backend/rts8891.c
+===================================================================
+--- trunk.orig/backend/rts8891.c
++++ trunk/backend/rts8891.c
+@@ -217,7 +217,7 @@ static Rts8891_Config rtscfg;
+ /* ------------------------------------------------------------------------- */
+ static SANE_Status probe_rts8891_devices (void);
+ static SANE_Status config_attach_rts8891 (SANEI_Config * config,
+- const char *devname);
++ const char *devname, void *data);
+ static SANE_Status attach_rts8891 (const char *name);
+ static SANE_Status set_lamp_brightness (struct Rts8891_Device *dev,
+ int level);
+@@ -2374,7 +2374,7 @@ probe_rts8891_devices (void)
+
+ /* generic configure and attach function */
+ status = sanei_configure_attach (RTS8891_CONFIG_FILE, &config,
+- config_attach_rts8891);
++ config_attach_rts8891, NULL);
+ /* free allocated options */
+ for (i = 0; i < NUM_CFG_OPTIONS; i++)
+ {
+@@ -2398,7 +2398,8 @@ probe_rts8891_devices (void)
+ * SANE_STATUS_INVAL in case of error
+ */
+ static SANE_Status
+-config_attach_rts8891 (SANEI_Config * config, const char *devname)
++config_attach_rts8891 (SANEI_Config * config, const char *devname,
++ void __sane_unused__ *data)
+ {
+ /* currently, the config is a global variable so config is useless here */
+ /* the correct thing would be to have a generic sanei_attach_matching_devices
+Index: trunk/backend/umax_pp.c
+===================================================================
+--- trunk.orig/backend/umax_pp.c
++++ trunk/backend/umax_pp.c
+@@ -419,7 +419,8 @@ umax_pp_auto_attach (SANEI_Config * conf
+ * device name to use for attach try.
+ */
+ static SANE_Status
+-umax_pp_configure_attach (SANEI_Config * config, const char *devname)
++umax_pp_configure_attach (SANEI_Config * config, const char *devname,
++ void __sane_unused__ *data)
+ {
+ const char *lp;
+ SANE_Char *token;
+@@ -961,7 +962,7 @@ sane_init (SANE_Int * version_code, SANE
+
+ /* generic configure and attach function */
+ status = sanei_configure_attach (UMAX_PP_CONFIG_FILE, &config,
+- umax_pp_configure_attach);
++ umax_pp_configure_attach, NULL);
+
+ /* free option descriptors */
+ for (i = 0; i < NUM_CFG_OPTIONS; i++)
+Index: trunk/backend/xerox_mfp.c
+===================================================================
+--- trunk.orig/backend/xerox_mfp.c
++++ trunk/backend/xerox_mfp.c
+@@ -1028,7 +1028,8 @@ list_one_device(SANE_String_Const devnam
+
+ /* SANE API ignores return code of this callback */
+ static SANE_Status
+-list_conf_devices(UNUSED(SANEI_Config *config), const char *devname)
++list_conf_devices(SANEI_Config __sane_unused__ *config, const char *devname,
++ void __sane_unused__ *data)
+ {
+ return tr_from_devname(devname)->configure_device(devname, list_one_device);
+ }
+@@ -1080,7 +1081,7 @@ sane_get_devices(const SANE_Device *** d
+ config.count = 0;
+ config.descriptors = NULL;
+ config.values = NULL;
+- sanei_configure_attach(XEROX_CONFIG_FILE, &config, list_conf_devices);
++ sanei_configure_attach(XEROX_CONFIG_FILE, &config, list_conf_devices, NULL);
+
+ for (dev_count = 0, dev = devices_head; dev; dev = dev->next)
+ dev_count++;
+Index: trunk/include/sane/sanei_config.h
+===================================================================
+--- trunk.orig/include/sane/sanei_config.h
++++ trunk/include/sane/sanei_config.h
+@@ -166,7 +166,9 @@ typedef struct
+ extern SANE_Status sanei_configure_attach (
+ const char *config_file,
+ SANEI_Config *config,
+- SANE_Status (*config_attach)(SANEI_Config *config, const char *devname)
++ SANE_Status (*config_attach)(SANEI_Config *config, const char *devname,
++ void *data),
++ void *data
+ );
+
+ /** Return the list of config directories, extracted from the SANE_CONFIG_DIR
+Index: trunk/sanei/sanei_config.c
+===================================================================
+--- trunk.orig/sanei/sanei_config.c
++++ trunk/sanei/sanei_config.c
+@@ -239,7 +239,8 @@ sanei_config_read (char *str, int n, FIL
+ SANE_Status
+ sanei_configure_attach (const char *config_file, SANEI_Config * config,
+ SANE_Status (*attach) (SANEI_Config * config,
+- const char *devname))
++ const char *devname, void *data),
++ void *data)
+ {
+ SANE_Char line[PATH_MAX];
+ SANE_Char *token, *string;
+@@ -443,7 +444,7 @@ sanei_configure_attach (const char *conf
+ DBG (3, "sanei_configure_attach: trying to attach with '%s'\n",
+ lp2);
+ if(attach!=NULL)
+- attach (config, lp2);
++ attach (config, lp2, data);
+ }
+ }
+
+Index: trunk/testsuite/sanei/sanei_config_test.c
+===================================================================
+--- trunk.orig/testsuite/sanei/sanei_config_test.c
++++ trunk/testsuite/sanei/sanei_config_test.c
+@@ -63,7 +63,8 @@ static const SANE_String_Const string_li
+ static char *lastdevname = NULL;
+
+ static SANE_Status
+-check_config_attach (SANEI_Config * config, const char *devname)
++check_config_attach (SANEI_Config * config, const char *devname,
++ void __sane_unused__ *data)
+ {
+ /* silence compiler warning for now */
+ if (config == NULL)
+@@ -97,7 +98,8 @@ inexistent_config (void)
+ config.descriptors = NULL;
+ config.values = NULL;
+ status = sanei_configure_attach (CONFIG_PATH
+- "/data/inexistent.conf", &config, NULL);
++ "/data/inexistent.conf", &config,
++ NULL, NULL);
+
+ /* check results */
+ assert (status != SANE_STATUS_GOOD);
+@@ -114,7 +116,7 @@ null_config (void)
+
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/umax_pp.conf", NULL,
+- check_config_attach);
++ check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -130,7 +132,7 @@ null_attach (void)
+ SANE_Status status;
+
+ status = sanei_configure_attach (CONFIG_PATH
+- "/data/umax_pp.conf", NULL, NULL);
++ "/data/umax_pp.conf", NULL, NULL, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -151,7 +153,7 @@ empty_config (void)
+ config.values = NULL;
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/empty.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -206,7 +208,7 @@ string_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/string.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -250,7 +252,7 @@ int_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/int.conf", &config,
+- check_config_attach);
++ check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -293,7 +295,7 @@ wrong_range_int_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/wrong-range.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_INVAL);
+@@ -336,7 +338,7 @@ word_array_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/word-array.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -382,7 +384,7 @@ string_list_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/string-list.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -428,7 +430,7 @@ wrong_string_list_option (void)
+ status =
+ sanei_configure_attach (CONFIG_PATH
+ "/data/wrong-string-list.conf", &config,
+- check_config_attach);
++ check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_INVAL);
+@@ -563,7 +565,7 @@ umax_pp (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/umax_pp.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -631,7 +633,7 @@ wrong_bool_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/wrong-boolean.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_INVAL);
+@@ -696,7 +698,7 @@ bool_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/boolean.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -767,7 +769,7 @@ fixed_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/fixed.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
+@@ -814,7 +816,7 @@ wrong_fixed_option (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/wrong-fixed.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_INVAL);
+@@ -852,7 +854,7 @@ snapscan (void)
+ /* configure and attach */
+ status =
+ sanei_configure_attach (CONFIG_PATH "/data/snapscan.conf",
+- &config, check_config_attach);
++ &config, check_config_attach, NULL);
+
+ /* check results */
+ assert (status == SANE_STATUS_GOOD);
diff --git a/debian/patches/0170-return_empty_list_when_local_devices_requested.patch b/debian/patches/0170-return_empty_list_when_local_devices_requested.patch
new file mode 100644
index 0000000..5d0ba04
--- /dev/null
+++ b/debian/patches/0170-return_empty_list_when_local_devices_requested.patch
@@ -0,0 +1,43 @@
+Description: eturn_empty_list_when_local_devices_requested
+Author: Barnabás Pőcze <pobrn@protonmail.com>
+Origin: backport, https://gitlab.com/sane-project/backends/-/commit/c946aa5a84297f33b30cddb0c89fcf375ed65d10
+Bug: https://gitlab.com/sane-project/backends/-/merge_requests/506
+Forwarded: not-needed
+Last-Update: 2020-09-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/dell1600n_net.c
+===================================================================
+--- trunk.orig/backend/dell1600n_net.c
++++ trunk/backend/dell1600n_net.c
+@@ -233,6 +233,9 @@ static void JpegDecompTermSource (j_deco
+ /* Results of last call to sane_get_devices */
+ static struct DeviceRecord *gKnownDevices[MAX_SCANNERS];
+
++/* Empty list for when network devices are not wanted */
++static const SANE_Device *gEmptyDeviceList[1];
++
+ /* Array of open scanner device states.
+ :NOTE: (int)SANE_Handle is an offset into this array */
+ static struct ScannerState *gOpenScanners[MAX_SCANNERS];
+@@ -306,15 +309,17 @@ sane_get_devices (const SANE_Device ***
+ const char *pVal;
+ int valLen;
+
++ if (local_only) {
++ *device_list = gEmptyDeviceList;
++ return SANE_STATUS_GOOD;
++ }
++
+ /* init variables */
+ ret = SANE_STATUS_GOOD;
+ sock = 0;
+ pDevice = NULL;
+ optYes = 1;
+
+- if (local_only)
+- return ret;
+-
+ InitComBuf (&queryPacket);
+
+ /* clear previous results */
diff --git a/debian/patches/0175-fix_tests.patch b/debian/patches/0175-fix_tests.patch
new file mode 100644
index 0000000..612d851
--- /dev/null
+++ b/debian/patches/0175-fix_tests.patch
@@ -0,0 +1,96 @@
+Description: Fix test
+Author: Jörg Frings-Fürst <debian@jff.email>
+Bug: https://gitlab.com/sane-project/backends/-/issues/443
+Last-Update: 2021-02-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/testsuite/tools/data/db.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/db.ref
++++ trunk/testsuite/tools/data/db.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # The entries below are used to detect a USB device when it's plugged in
+ # and then run a script to change the ownership and
+Index: trunk/testsuite/tools/data/html-backends-split.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/html-backends-split.ref
++++ trunk/testsuite/tools/data/html-backends-split.ref
+@@ -16496,6 +16496,6 @@ Grandtek Scopecam
+ >Contact</a>
+ </address>
+ <font size=-1>
+-This page was created by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++This page was created by sane-desc 3.6 from sane-backends 1.1.1-debian
+ </font>
+ </body> </html>
+Index: trunk/testsuite/tools/data/html-mfgs.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/html-mfgs.ref
++++ trunk/testsuite/tools/data/html-mfgs.ref
+@@ -23910,6 +23910,6 @@ qcam<br>(unmaintained)
+ >Contact</a>
+ </address>
+ <font size=-1>
+-This page was created by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++This page was created by sane-desc 3.6 from sane-backends 1.1.1-debian
+ </font>
+ </body> </html>
+Index: trunk/testsuite/tools/data/hwdb.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/hwdb.ref
++++ trunk/testsuite/tools/data/hwdb.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # hwdb file for supported USB devices
+ #
+Index: trunk/testsuite/tools/data/udev+acl.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/udev+acl.ref
++++ trunk/testsuite/tools/data/udev+acl.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.31-118-g5d3ce7806
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # udev rules file for supported USB and SCSI devices
+ #
+Index: trunk/testsuite/tools/data/udev+hwdb.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/udev+hwdb.ref
++++ trunk/testsuite/tools/data/udev+hwdb.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # udev rules file for supported USB and SCSI devices
+ #
+Index: trunk/testsuite/tools/data/udev.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/udev.ref
++++ trunk/testsuite/tools/data/udev.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.31-118-g5d3ce7806
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # udev rules file for supported USB and SCSI devices
+ #
+Index: trunk/testsuite/tools/data/usermap.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/usermap.ref
++++ trunk/testsuite/tools/data/usermap.ref
+@@ -1,5 +1,5 @@
+ # This file was generated from description files (*.desc)
+-# by sane-desc 3.6 from sane-backends 1.0.29-241-g1f9590ab
++# by sane-desc 3.6 from sane-backends 1.1.1-debian
+ #
+ # The entries below are used to detect a USB device and change owner
+ # and permissions on the "device node" used by libusb.
diff --git a/debian/patches/0180-gt68xx_fix_use-after-free_two_memleaks.patch b/debian/patches/0180-gt68xx_fix_use-after-free_two_memleaks.patch
new file mode 100644
index 0000000..167a9e5
--- /dev/null
+++ b/debian/patches/0180-gt68xx_fix_use-after-free_two_memleaks.patch
@@ -0,0 +1,55 @@
+Description: gt68xx: fix use-after-free and two mem leaks
+Author: <name and email of author, optional>
+Origin: https://gitlab.com/sane-project/backends/-/commit/63942f7a7473496d1160f02f5c1da3620525690d
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980311
+Forwarded: not-needed
+Last-Update: 2021-06-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/gt68xx.c
+===================================================================
+--- trunk.orig/backend/gt68xx.c
++++ trunk/backend/gt68xx.c
+@@ -1174,8 +1174,11 @@ static SANE_Status probe_gt68xx_devices(
+ new_dev[i]->model->firmware_name);
+ }
+ if (i == 0)
+- DBG (5, "sane_init: firmware %s can't be loaded, set device "
+- "first\n", word);
++ {
++ DBG (5, "sane_init: firmware %s can't be loaded, set device "
++ "first\n", word);
++ free (word);
++ }
+ }
+ else
+ {
+@@ -1198,8 +1201,11 @@ static SANE_Status probe_gt68xx_devices(
+ new_dev[i]->model->name, new_dev[i]->model->vendor);
+ }
+ if (i == 0)
+- DBG (5, "sane_init: can't set vendor name %s, set device "
+- "first\n", word);
++ {
++ DBG (5, "sane_init: can't set vendor name %s, set device "
++ "first\n", word);
++ free (word);
++ }
+ }
+ else
+ {
+@@ -1221,9 +1227,11 @@ static SANE_Status probe_gt68xx_devices(
+ new_dev[i]->model->name, new_dev[i]->model->model);
+ }
+ if (i == 0)
+- DBG (5, "sane_init: can't set model name %s, set device "
+- "first\n", word);
+- free (word);
++ {
++ DBG (5, "sane_init: can't set model name %s, set device "
++ "first\n", word);
++ free (word);
++ }
+ }
+ else
+ {
diff --git a/debian/patches/0185-Change_output_from_sane-find-scanner.patch b/debian/patches/0185-Change_output_from_sane-find-scanner.patch
new file mode 100644
index 0000000..ee4bc1a
--- /dev/null
+++ b/debian/patches/0185-Change_output_from_sane-find-scanner.patch
@@ -0,0 +1,51 @@
+Description: Improve output for possible USB scanners
+Author: Ralph Little
+Origin: upstream, https://gitlab.com/sane-project/backends/-/commit/b701c499c9ce56c6bbea14b2fac2feea37f2410f
+Bug: https://gitlab.com/sane-project/backends/-/issues/575
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983332
+Forwarded: not-needed
+Applied-Upstream: commit b701c499c9ce56c6bbea14b2fac2feea37f2410f
+Last-Update: 2022-02-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/tools/sane-find-scanner.c
+===================================================================
+--- trunk.orig/tools/sane-find-scanner.c
++++ trunk/tools/sane-find-scanner.c
+@@ -384,7 +384,7 @@ check_usb_file (char *file_name)
+ {
+ if (verbose > 1)
+ printf (" open ok, vendor and product ids were identified\n");
+- printf ("found USB scanner (vendor=0x%04x, "
++ printf ("found possible USB scanner (vendor=0x%04x, "
+ "product=0x%04x) at %s\n", vendor, product, file_name);
+ }
+ else
+@@ -392,7 +392,7 @@ check_usb_file (char *file_name)
+ if (verbose > 1)
+ printf (" open ok, but vendor and product could NOT be "
+ "identified\n");
+- printf ("found USB scanner (UNKNOWN vendor and product) "
++ printf ("found possible USB scanner (UNKNOWN vendor and product) "
+ "at device %s\n", file_name);
+ unknown_found = SANE_TRUE;
+ }
+@@ -676,7 +676,8 @@ check_libusb_device (struct usb_device *
+ {
+ char * chipset = check_usb_chip (dev, verbose, from_file);
+
+- printf ("found USB scanner (vendor=0x%04x", dev->descriptor.idVendor);
++ printf ("found possible USB scanner (vendor=0x%04x",
++ dev->descriptor.idVendor);
+ if (vendor)
+ printf (" [%s]", vendor);
+ printf (", product=0x%04x", dev->descriptor.idProduct);
+@@ -1066,7 +1067,7 @@ check_libusb_device (libusb_device *dev,
+ if(!from_file)
+ chipset = check_usb_chip (verbose, desc, hdl, config0);
+
+- printf ("found USB scanner (vendor=0x%04x", vid);
++ printf ("found possible USB scanner (vendor=0x%04x", vid);
+ if (vendor)
+ printf (" [%s]", vendor);
+ printf (", product=0x%04x", pid);
diff --git a/debian/patches/0190-remove-kernel-driver-for-plustek_pp.patch b/debian/patches/0190-remove-kernel-driver-for-plustek_pp.patch
new file mode 100644
index 0000000..45377dc
--- /dev/null
+++ b/debian/patches/0190-remove-kernel-driver-for-plustek_pp.patch
@@ -0,0 +1,2949 @@
+Description: Remove kernel driver for plustek_pp
+ Cherry-Picked from upstream.
+Origin: upstream
+Bug:https://gitlab.com/sane-project/backends/-/issues/578
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008275
+Forwarded: not-needed
+Last-Update: 2022-03-26 <YYYY-MM-DD, last update of the meta-information, optional>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/plustek-pp.h
+===================================================================
+--- trunk.orig/backend/plustek-pp.h
++++ trunk/backend/plustek-pp.h
+@@ -235,11 +235,7 @@ typedef const struct mode_param
+ #define _E_SEQUENCE (_FIRST_ERR-30) /* caller sequence does not match */
+ #define _E_NO_ASIC (_FIRST_ERR-31) /* can't detect ASIC */
+
+-#ifdef __KERNEL__
+-# define _E_FAULT (-EFAULT)
+-#else
+ # define _E_FAULT (_E_INTERNAL) /* should never happen in userspace */
+-#endif
+
+ #define _E_LAMP_NOT_IN_POS (_FIRST_ERR-40)
+ #define _E_LAMP_NOT_STABLE (_FIRST_ERR-41)
+@@ -471,10 +467,6 @@ typedef struct {
+ #define _ScanMode_AverageOut 1 /* CCD averaged 2 pixels value for output*/
+ #define _ScanMode_Mono 2 /* not color mode */
+
+-
+-#ifndef __KERNEL__
+-
+-
+ #define PLUSTEK_CONFIG_FILE "plustek_pp.conf"
+
+ #ifndef PATH_MAX
+@@ -631,7 +623,6 @@ typedef struct {
+ AdjDef adj;
+
+ } CnfDef, *pCnfDef;
+-#endif /* guard __KERNEL__ */
+
+ #endif /* guard __PLUSTEKPP_H__ */
+
+Index: trunk/backend/plustek-pp_dbg.h
+===================================================================
+--- trunk.orig/backend/plustek-pp_dbg.h
++++ trunk/backend/plustek-pp_dbg.h
+@@ -47,22 +47,11 @@
+ /* #define _ASIC_98001_SIM */
+
+ /*
+- * the print macros
+- */
+-#ifdef __KERNEL__
+-# define _PRINT printk
+-#endif
+-
+-/*
+ * some debug definitions
+ */
+ #ifdef DEBUG
+-# ifndef __KERNEL__
+ # include <assert.h>
+ # define _ASSERT(x) assert(x)
+-# else
+-# define _ASSERT(x)
+-# endif
+
+ # ifndef DBG
+ # define DBG(level, msg, args...) if ((dbg_level) & (level)) { \
+Index: trunk/backend/plustek-pp_detect.c
+===================================================================
+--- trunk.orig/backend/plustek-pp_detect.c
++++ trunk/backend/plustek-pp_detect.c
+@@ -97,11 +97,6 @@ static int detectScannerConnection( pSca
+ UChar data, control, status;
+ int retval = _E_NO_CONN;
+
+-#ifdef __KERNEL__
+- DBG( DBG_LOW, "Dataport = 0x%04x\n", ps->IO.pbSppDataPort );
+- DBG( DBG_LOW, "Ctrlport = 0x%04x\n", ps->IO.pbControlPort );
+-#endif
+-
+ detectResetPort( ps );
+
+ /*
+@@ -177,11 +172,7 @@ static int detectScannerConnection( pSca
+
+ /* work on the result */
+ if ( _OK == retval ) {
+-#ifdef __KERNEL__
+- ps->sCaps.wIOBase = ps->IO.pbSppDataPort;
+-#else
+ ps->sCaps.wIOBase = ps->pardev;
+-#endif
+ ps->PutToIdleMode( ps );
+
+ } else {
+@@ -209,11 +200,7 @@ static int detectSetupBuffers( pScanData
+ */
+ if ( 0 == ps->TotalBufferRequire ) {
+
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv: asic 0x%x probably not supported\n", ps->sCaps.AsicID);
+
+ return _E_ALLOC; /* Out of memory */
+@@ -228,11 +215,7 @@ static int detectSetupBuffers( pScanData
+
+ if ( NULL == ps->driverbuf ) {
+
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv: Not enough kernel memory %d\n",
+ ps->TotalBufferRequire);
+ return _E_ALLOC; /* Out of memory */
+@@ -380,11 +363,7 @@ static int detectAsic98001( pScanData ps
+
+ return detectScannerConnection( ps );
+ #else
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "!!!! WARNING, have a look at function detectAsic98001() !!!!\n" );
+ ps->sCaps.AsicID = _ASIC_IS_98001;
+ ps->sCaps.wIOBase = ps->IO.pbSppDataPort;
+@@ -434,11 +413,7 @@ _LOC int DetectScanner( pScanData ps, in
+
+ /* read Register 0x18 (AsicID Register) of Asic9800x based devices */
+ #ifdef _ASIC_98001_SIM
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "!!!! WARNING, SW-Emulation active !!!!\n" );
+ asic = _ASIC_IS_98001;
+ #else
+Index: trunk/backend/plustek-pp_hwdefs.h
+===================================================================
+--- trunk.orig/backend/plustek-pp_hwdefs.h
++++ trunk/backend/plustek-pp_hwdefs.h
+@@ -586,19 +586,6 @@ typedef struct
+ * structure to hold IO port specific stuff
+ */
+ typedef struct {
+-
+-#ifdef __KERNEL__
+- pFnOut fnOut;
+- pFnIn fnIn;
+-
+- UShort pbSppDataPort;
+- UShort pbEppDataPort;
+-
+- UShort pbStatusPort;
+- UShort pbControlPort;
+- UShort pbAddrOffsetPort;
+-#endif
+-
+ UShort portBase;
+ UShort portMode;
+ UShort lastPortMode;
+Index: trunk/backend/plustek-pp_image.c
+===================================================================
+--- trunk.orig/backend/plustek-pp_image.c
++++ trunk/backend/plustek-pp_image.c
+@@ -1288,11 +1288,7 @@ static Bool imageP98003ReadOneImageLine(
+
+ } while( !MiscCheckTimer( &timer ));
+
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "Timeout - Scanner malfunction !!\n" );
+ MotorToHomePosition(ps);
+
+Index: trunk/backend/plustek-pp_io.c
+===================================================================
+--- trunk.orig/backend/plustek-pp_io.c
++++ trunk/backend/plustek-pp_io.c
+@@ -257,21 +257,11 @@ static Bool fnEPPRead( pScanData ps, pUC
+
+ if( _IS_ASIC98(ps->sCaps.AsicID)) {
+
+-#ifndef __KERNEL__
+ sanei_pp_set_datadir( ps->pardev, SANEI_PP_DATAIN );
+-#else
+- _OUTB_CTRL( ps, (_CTRL_GENSIGNAL + _CTRL_DIRECTION));
+- _DO_UDELAY( 1 );
+-#endif
+ for( i = 0; i < ulSize; i++ )
+ pBuffer[i] = _INB_EPPDATA( ps );
+
+-#ifndef __KERNEL__
+ sanei_pp_set_datadir( ps->pardev, SANEI_PP_DATAOUT );
+-#else
+- _OUTB_CTRL( ps, _CTRL_GENSIGNAL );
+- _DO_UDELAY( 1 );
+-#endif
+ } else {
+
+ for( i = 0; i < ulSize; i++ )
+@@ -290,18 +280,12 @@ static Bool fnBiDirRead( pScanData ps, p
+ start = _CTRL_START_BIDIREAD;
+ end = _CTRL_END_BIDIREAD;
+
+-#ifndef __KERNEL__
+ sanei_pp_set_datadir( ps->pardev, SANEI_PP_DATAIN );
+
+ if( !sanei_pp_uses_directio()) {
+ start &= ~_CTRL_DIRECTION;
+ end &= ~_CTRL_DIRECTION;
+ }
+-#else
+- if( _IS_ASIC98(ps->sCaps.AsicID)) {
+- _OUTB_CTRL( ps, (_CTRL_GENSIGNAL + _CTRL_DIRECTION));
+- }
+-#endif
+
+ switch( ps->IO.delay ) {
+
+@@ -341,13 +325,7 @@ static Bool fnBiDirRead( pScanData ps, p
+
+ }
+
+-#ifndef __KERNEL__
+ sanei_pp_set_datadir( ps->pardev, SANEI_PP_DATAOUT );
+-#else
+- if( _IS_ASIC98(ps->sCaps.AsicID)) {
+- _OUTB_CTRL( ps, _CTRL_GENSIGNAL );
+- }
+-#endif
+ return _TRUE;
+ }
+
+@@ -953,45 +931,4 @@ _LOC void IOReadScannerImageData( pScanD
+ ps->OpenScanPath( ps );
+ }
+
+-#ifdef __KERNEL__
+-
+-/** the wrapper functions to support delayed and non-delayed I/O
+- */
+-_LOC void IOOut( Byte data, UShort port )
+-{
+- DBG( DBG_IOF, "outb(0x%04x, 0x%02x)\n", port, data );
+- outb( data, port );
+-}
+-
+-_LOC void IOOutDelayed( Byte data, UShort port )
+-{
+- DBG( DBG_IOF, "outb_p(0x%04x, 0x%02x)\n", port, data );
+- outb_p( data, port );
+-}
+-
+-_LOC Byte IOIn( UShort port )
+-{
+-#ifdef DEBUG
+- Byte data = inb( port );
+-
+- DBG( DBG_IOF, "inb(0x%04x) = 0x%02x\n", port, data );
+- return data;
+-#else
+- return inb( port );
+-#endif
+-}
+-
+-_LOC Byte IOInDelayed( UShort port )
+-{
+-#ifdef DEBUG
+- Byte data = inb_p( port );
+-
+- DBG( DBG_IOF, "inb_p(0x%04x) = 0x%02x\n", port, data );
+- return data;
+-#else
+- return inb_p( port );
+-#endif
+-}
+-#endif /* guard __KERNEL__ */
+-
+ /* END PLUSTEK-PP_IO.C ......................................................*/
+Index: trunk/backend/plustek-pp_misc.c
+===================================================================
+--- trunk.orig/backend/plustek-pp_misc.c
++++ trunk/backend/plustek-pp_misc.c
+@@ -77,27 +77,11 @@
+
+ /*************************** some definitions ********************************/
+
+-#ifndef __KERNEL__
+ # define PPA_PROBE_SPP 0x0001
+ # define PPA_PROBE_PS2 0x0002
+ # define PPA_PROBE_ECR 0x0010
+ # define PPA_PROBE_EPP17 0x0100
+ # define PPA_PROBE_EPP19 0x0200
+-#else
+-
+-/* the parport driver in Kernel 2.4 has changed. It does report the
+- * possible modes in a different, more general way. As long, as
+- * we do not use the parport-module change mode facility, I assume
+- * the following correlations
+- */
+-#if defined LINUX_24 || defined LINUX_26
+-# define PARPORT_MODE_PCPS2 PARPORT_MODE_TRISTATE
+-# define PARPORT_MODE_PCEPP PARPORT_MODE_EPP
+-# define PARPORT_MODE_PCECPPS2 PARPORT_MODE_TRISTATE
+-# define PARPORT_MODE_PCECPEPP PARPORT_MODE_EPP
+-# define PARPORT_MODE_PCECR PARPORT_MODE_ECP
+-#endif
+-#endif
+
+ #define _PP_A 16807 /**< multiplier */
+ #define _PP_M 2147483647L /**< 2**31 - 1 */
+@@ -107,298 +91,10 @@
+ static int port_feature = 0;
+ static long randomnum = 1;
+
+-#ifdef __KERNEL__
+-static int portIsClaimed[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 0 };
+-
+-MODELSTR; /**< a static char array (see plustek-pp.h) */
+-
+-#else
+ static int portIsClaimed[_MAX_PTDEVS] = { 0, 0, 0, 0 };
+-#endif
+
+ /*************************** local functions *********************************/
+
+-#ifdef __KERNEL__
+-#ifdef LINUX_26
+-
+-static pScanData __ps = NULL;
+-static int __pa = -1;
+-
+-/** callback from parport driver
+- */
+-static void misc_attach(struct parport *port)
+-{
+- DBG( DBG_LOW, "misc_attach\n" );
+-
+- __ps->pp = NULL;
+- if( port->base == (unsigned long)__pa ) {
+- DBG( DBG_LOW, "Requested port (0x%02x) found\n", __pa );
+- DBG( DBG_LOW, "Port mode reported: (0x%04x)\n", port->modes );
+- __ps->pp = port;
+- }
+-}
+-
+-static void misc_detach( struct parport *port )
+-{
+- DBG( DBG_LOW, "misc_detach\n" );
+-}
+-
+-static struct parport_driver pt_drv = {
+- .name = "pt_drv",
+- .attach = misc_attach,
+- .detach = misc_detach,
+-};
+-#endif
+-
+-/** display the available port-modes
+- */
+-#ifdef DEBUG
+-static void miscShowPortModes( int modes )
+-{
+- DBG( DBG_LOW, "parport-modi:" );
+-
+- if( modes & PARPORT_MODE_PCSPP )
+- DBG( DBG_LOW, " SPP" );
+-
+- if( modes & PARPORT_MODE_PCPS2 )
+- DBG( DBG_LOW, " PS/2" );
+-
+- if( modes & PARPORT_MODE_PCEPP )
+- DBG( DBG_LOW, " EPP" );
+-
+- if( modes & PARPORT_MODE_PCECR )
+- DBG( DBG_LOW, " ECP" );
+-
+- if( modes & PARPORT_MODE_PCECPEPP )
+- DBG( DBG_LOW, " EPP(ECP)" );
+-
+- if( modes & PARPORT_MODE_PCECPPS2 )
+- DBG( DBG_LOW, " PS/2(ECP)" );
+-
+- DBG( DBG_LOW, "\n" );
+-}
+-#endif
+-
+-/** probe the parallel port
+- */
+-static int initPortProbe( pScanData ps )
+-{
+- int retv = 0;
+-
+- /* clear the controls */
+- ps->IO.lastPortMode = 0xFFFF;
+-
+- if( NULL != ps->pardev )
+- retv = ps->pardev->port->modes;
+- return retv;
+-}
+-
+-/** will be called by the parport module when we already have access, but
+- * another module wants access to the port...
+- */
+-static int miscPreemptionCallback( pVoid data )
+-{
+- pScanData ps = (pScanData)data;
+-
+- if( NULL != ps ) {
+-
+- /* never release during scanning */
+- if( ps->DataInf.dwScanFlag & _SCANNER_SCANNING ) {
+- DBG( DBG_LOW, "no way!!!\n" );
+- return 1;
+- }
+- }
+-
+- /* let the port go...*/
+- return 0;
+-}
+-
+-/** depending on the reported possible port modes, we try to set a faster mode
+- * than SPP
+- */
+-static int miscSetFastMode( pScanData ps )
+-{
+- UChar a, b;
+-
+- /*
+- * when previously found the EPP mode, break right here
+- */
+- if (( _PORT_EPP == ps->IO.portMode ) && (!(port_feature & PARPORT_MODE_PCECR)))
+- return _OK;
+-
+- /* CHECK REMOVE: from here we should have SPP (Paranoia Code !) */
+- if (( _PORT_SPP != ps->IO.portMode ) && (!(port_feature & PARPORT_MODE_PCECR)))
+- return _OK;
+-
+- DBG(DBG_LOW, "Trying faster mode...\n" );
+-
+- /*
+- * ECP mode usually has sub-modes of EPP and/or PS2.
+- * First we try to set EPP
+- */
+- if((port_feature & PARPORT_MODE_PCECR) &&
+- (port_feature & PARPORT_MODE_PCECPEPP)){
+-
+- DBG(DBG_LOW, "Attempting to set EPP from ECP mode.\n" );
+-
+- a = _INB_ECTL(ps); /* get current ECR */
+- ps->IO.lastPortMode = a; /* save it for restoring later */
+- a = (a & 0x1F) | 0x80; /* set to EPP */
+- _OUTB_ECTL(ps, a); /* write it back */
+- _DO_UDELAY(1);
+-
+- /*
+- * It is probably unnecessary to
+- * do this check but it makes me feel better
+- */
+- b = _INB_ECTL(ps); /* check to see if port set */
+- if( a == b ) {
+- DBG( DBG_LOW, "Port is set to (ECP) EPP mode.\n" );
+- ps->IO.portMode = _PORT_EPP;
+- return _OK;
+-
+- } else {
+- DBG( DBG_LOW, "Port could not be set to (ECP) EPP mode. "
+- "Using SPP mode.\n" );
+- _OUTB_ECTL(ps,(Byte)ps->IO.lastPortMode); /* restore */
+- _DO_UDELAY(1);
+- ps->IO.portMode = _PORT_SPP;
+-
+- /* go ahead and try with other settings...*/
+- }
+- }
+-
+- /* If port cannot be set to EPP, try PS2 */
+- if((port_feature & PARPORT_MODE_PCECR) &&
+- (port_feature & PARPORT_MODE_PCECPPS2)) {
+-
+- DBG(DBG_LOW, "Attempting to set PS2 from ECPPS2 mode.\n" );
+-
+- a = _INB_ECTL(ps); /* get current ECR */
+- ps->IO.lastPortMode = a; /* save it for restoring later */
+-
+- /* set to Fast Centronics/bi-directional/PS2 */
+- a = (a & 0x1F) | 0x20;
+- _OUTB_ECTL(ps,a); /* write it back */
+- _DO_UDELAY(1);
+-
+- /*
+- * It is probably unnecessary to do this check
+- * but it makes me feel better
+- */
+- b = _INB_ECTL(ps); /* check to see if port set */
+- if (a == b) {
+- DBG(DBG_LOW, "Port is set to (ECP) PS2 bidirectional mode.\n");
+- ps->IO.portMode = _PORT_BIDI;
+- return _OK;
+- } else {
+- DBG(DBG_LOW, "Port could not be set to (ECP) PS2 mode. "
+- "Using SPP mode.\n");
+- a = ps->IO.lastPortMode & 0x1F;
+- _OUTB_ECTL(ps, a); /* set ECP ctrl to SPP */
+- _DO_UDELAY(1);
+- ps->IO.portMode = _PORT_SPP;
+-
+- /* next mode, last attempt... */
+- }
+- }
+-
+- /*
+- * Some BIOS/cards have only a Bi-directional/PS2 mode (no EPP).
+- * Make one last attempt to set to PS2 mode.
+- */
+- if ( port_feature & PARPORT_MODE_PCPS2 ){
+-
+- DBG(DBG_LOW, "Attempting to set PS2 mode.\n" );
+-
+- a = _INB_CTRL(ps); /* get current setting of control register*/
+- ps->IO.lastPortMode = a; /* save it for restoring later */
+- a = a | 0x20; /* set bit 5 of control reg */
+- _OUTB_CTRL(ps,a); /* set to Fast Centronics/bi-directional/PS2 */
+- _DO_UDELAY(1);
+- a = 0;
+-
+- _OUTB_DATA(ps,0x55);
+- _DO_UDELAY(1);
+- if ((inb(ps->IO.portBase)) != 0x55) /* read data */
+- a++;
+-
+- _OUTB_DATA(ps,0xAA);
+- _DO_UDELAY(1);
+-
+- if (_INB_DATA(ps) != 0xAA) /* read data */
+- a++;
+-
+- if( 2 == a ) {
+- DBG(DBG_LOW, "Port is set to PS2 bidirectional mode.\n");
+- ps->IO.portMode = _PORT_BIDI;
+- return _OK;
+-
+- } else {
+- DBG(DBG_LOW, "Port could not be set to PS2 mode. "
+- "Using SPP mode.\n");
+- _OUTB_CTRL(ps,(Byte)ps->IO.lastPortMode); /* restore */
+- _DO_UDELAY(1);
+- ps->IO.portMode = _PORT_SPP;
+- }
+- }
+-
+- /* reaching this point, we're back in SPP mode and there's no need
+- * to restore at shutdown...
+- */
+- ps->IO.lastPortMode = 0xFFFF;
+-
+- return _OK;
+-}
+-
+-/** check the state of the par-port and switch to EPP-mode if possible
+- */
+-static int miscSetPortMode( pScanData ps )
+-{
+- /* try to detect the port settings, SPP seems to work in any case ! */
+- port_feature = initPortProbe( ps );
+-
+-#ifdef DEBUG
+- miscShowPortModes( port_feature );
+-#endif
+-
+- switch( ps->IO.forceMode ) {
+-
+- case 1:
+- DBG( DBG_LOW, "Use of SPP-mode enforced\n" );
+- ps->IO.portMode = _PORT_SPP;
+- return _OK;
+- break;
+-
+- case 2:
+- DBG( DBG_LOW, "Use of EPP-mode enforced\n" );
+- ps->IO.portMode = _PORT_EPP;
+- return _OK;
+- break;
+-
+- default:
+- break;
+- }
+-
+- if( !(port_feature & PARPORT_MODE_PCEPP)) {
+-
+- if( !(port_feature & PARPORT_MODE_PCSPP )) {
+- _PRINT("\nThis Port supports not the SPP- or EPP-Mode\n" );
+- _PRINT("Please activate SPP-Mode, EPP-Mode or\nEPP + ECP-Mode!\n");
+- return _E_NOSUPP;
+- } else {
+- DBG(DBG_LOW, "Using SPP-mode\n" );
+- ps->IO.portMode = _PORT_SPP;
+- }
+- } else {
+- DBG(DBG_LOW, "Using EPP-mode\n" );
+- ps->IO.portMode = _PORT_EPP;
+- }
+-
+- /* else try to set to a faster mode than SPP */
+- return miscSetFastMode( ps );
+-}
+-#endif
+
+ /** miscNextLongRand() -- generate 2**31-2 random numbers
+ **
+@@ -488,34 +184,6 @@ _LOC int MiscReinitStruct( pScanData ps
+ */
+ _LOC int MiscInitPorts( pScanData ps, int port )
+ {
+-#ifdef __KERNEL__
+- int status;
+-
+- if( NULL == ps )
+- return _E_NULLPTR;
+-
+- /*
+- * Get access to the ports
+- */
+- ps->IO.portBase = (UShort)port;
+-
+- status = miscSetPortMode(ps);
+-
+- if( _OK != status ) {
+- ps->sCaps.wIOBase = _NO_BASE;
+- ps->IO.portBase = _NO_BASE;
+- return status;
+- }
+-
+- /*
+- * the port settings
+- */
+- ps->IO.pbSppDataPort = (UShort)port;
+- ps->IO.pbStatusPort = (UShort)port+1;
+- ps->IO.pbControlPort = (UShort)port+2;
+- ps->IO.pbEppDataPort = (UShort)port+4;
+-
+-#else
+ int mode, mts;
+
+ if( NULL == ps )
+@@ -560,7 +228,6 @@ _LOC int MiscInitPorts( pScanData ps, in
+
+ sanei_pp_setmode( ps->pardev, mts );
+ _VAR_NOT_USED( port );
+-#endif
+ return _OK;
+ }
+
+@@ -568,11 +235,6 @@ _LOC int MiscInitPorts( pScanData ps, in
+ */
+ _LOC void MiscRestorePort( pScanData ps )
+ {
+-#ifdef __KERNEL__
+- if( 0 == ps->IO.pbSppDataPort )
+- return;
+-#endif
+-
+ DBG(DBG_LOW,"MiscRestorePort()\n");
+
+ /* don't restore if not necessary */
+@@ -582,19 +244,9 @@ _LOC void MiscRestorePort( pScanData ps
+ }
+
+ /*Restore Port-Mode*/
+-#ifdef __KERNEL__
+- if( port_feature & PARPORT_MODE_PCECR ){
+- _OUTB_ECTL( ps, (Byte)ps->IO.lastPortMode );
+- _DO_UDELAY(1);
+- } else {
+- _OUTB_CTRL( ps, (Byte)ps->IO.lastPortMode );
+- _DO_UDELAY(1);
+- }
+-#else
+ if( port_feature & PPA_PROBE_ECR ){
+ _OUTB_ECTL(ps,ps->IO.lastPortMode);
+ }
+-#endif
+ }
+
+ /** Initializes a timer.
+@@ -605,11 +257,7 @@ _LOC void MiscStartTimer( TimerDef *time
+ {
+ struct timeval start_time;
+
+-#ifdef __KERNEL__
+- _GET_TIME( &start_time );
+-#else
+ gettimeofday(&start_time, NULL);
+-#endif
+
+ *timer = (TimerDef)start_time.tv_sec * 1000000 + (TimerDef)start_time.tv_usec + us;
+ }
+@@ -624,21 +272,14 @@ _LOC int MiscCheckTimer( TimerDef *timer
+ {
+ struct timeval current_time;
+
+-#ifdef __KERNEL__
+- _GET_TIME( &current_time );
+-#else
+ gettimeofday(&current_time, NULL);
+-#endif
+
+ if ((TimerDef)current_time.tv_sec * 1000000 + (TimerDef)current_time.tv_usec > *timer) {
+ return _E_TIMEOUT;
+ } else {
+-#ifdef __KERNEL__
+- schedule();
+ /*#else
+ sched_yield();
+ */
+-#endif
+ return _OK;
+ }
+ }
+@@ -673,65 +314,8 @@ _LOC Bool MiscAllPointersSet( pScanData
+ */
+ _LOC int MiscRegisterPort( pScanData ps, int portAddr )
+ {
+-#ifndef __KERNEL__
+ DBG( DBG_LOW, "Assigning port handle %i\n", portAddr );
+ ps->pardev = portAddr;
+-#else
+-
+-#ifdef LINUX_26
+- __ps = ps;
+- __pa = portAddr;
+-
+- DBG( DBG_LOW, "Requested port at 0x%02x\n", portAddr );
+-
+- if( parport_register_driver(&pt_drv)) {
+- /* Failed; nothing we can do. */
+- return _E_REGISTER;
+- }
+-
+-#else
+- struct parport *pp = NULL;
+-
+- DBG( DBG_LOW, "Requested port at 0x%02x\n", portAddr );
+-
+- pp = parport_enumerate();
+- ps->pardev = NULL;
+-
+- if( NULL == pp ) {
+- return _E_PORTSEARCH;
+- }
+-
+- /* go through the list
+- */
+- for( ps->pp = NULL; NULL != pp; ) {
+-
+- if( pp->base == (unsigned long)portAddr ) {
+- DBG( DBG_LOW, "Requested port (0x%02x) found\n", portAddr );
+- DBG( DBG_LOW, "Port mode reported: (0x%04x)\n", pp->modes );
+- ps->pp = pp;
+- break;
+- }
+- pp = pp->next;
+- }
+-#endif
+-
+- if( NULL == ps->pp ) {
+- printk("PORT not found!!!\n");
+- return _E_NO_PORT;
+- }
+-
+- /*
+- * register this device
+- */
+- ps->pardev = parport_register_device( ps->pp, "Plustek Driver",
+- miscPreemptionCallback, NULL, NULL, 0, (pVoid)ps );
+-
+- if( NULL == ps->pardev ) {
+- return _E_REGISTER;
+- }
+-
+- DBG( DBG_LOW, "Port for device %u registered\n", ps->devno );
+-#endif
+
+ portIsClaimed[ps->devno] = 0;
+ return _OK;
+@@ -741,17 +325,7 @@ _LOC int MiscRegisterPort( pScanData ps,
+ */
+ _LOC void MiscUnregisterPort( pScanData ps )
+ {
+-#ifdef __KERNEL__
+- if( NULL != ps->pardev ) {
+- DBG( DBG_LOW, "Port unregistered\n" );
+- parport_unregister_device( ps->pardev );
+- }
+-#ifdef LINUX_26
+- parport_unregister_driver( &pt_drv );
+-#endif
+-#else
+ sanei_pp_close( ps->pardev );
+-#endif
+ }
+
+ /** Try to claim the port
+@@ -763,11 +337,7 @@ _LOC int MiscClaimPort( pScanData ps )
+ if( 0 == portIsClaimed[ps->devno] ) {
+
+ DBG( DBG_HIGH, "Try to claim the parport\n" );
+-#ifdef __KERNEL__
+- if( 0 != parport_claim( ps->pardev )) {
+-#else
+ if( SANE_STATUS_GOOD != sanei_pp_claim( ps->pardev )) {
+-#endif
+ return _E_BUSY;
+ }
+ }
+@@ -785,11 +355,7 @@ _LOC void MiscReleasePort( pScanData ps
+
+ if( 0 == portIsClaimed[ps->devno] ) {
+ DBG( DBG_HIGH, "Releasing parport\n" );
+-#ifdef __KERNEL__
+- parport_release( ps->pardev );
+-#else
+ sanei_pp_release( ps->pardev );
+-#endif
+ }
+ }
+ }
+Index: trunk/backend/plustek-pp_procs.h
+===================================================================
+--- trunk.orig/backend/plustek-pp_procs.h
++++ trunk/backend/plustek-pp_procs.h
+@@ -219,13 +219,6 @@ _LOC void IORegisterDirectToScanner( pSc
+ _LOC void IOSoftwareReset ( pScanData ps );
+ _LOC void IOReadScannerImageData ( pScanData ps, pUChar pBuf, ULong size );
+
+-#ifdef __KERNEL__
+-_LOC void IOOut ( Byte data, UShort port );
+-_LOC void IOOutDelayed( Byte data, UShort port );
+-_LOC Byte IOIn ( UShort port );
+-_LOC Byte IOInDelayed ( UShort port );
+-#endif
+-
+ /*
+ * implementation in plustek-pp_tpa.c
+ */
+@@ -238,16 +231,6 @@ _LOC void TPAP98003Reshading ( p
+ */
+ _LOC void ScaleX( pScanData ps, pUChar inBuf, pUChar outBuf );
+
+-/*
+- * implementation in plustek-pp_procfs.c (Kernel-mode only)
+- */
+-#ifdef __KERNEL__
+-int ProcFsInitialize ( void );
+-void ProcFsShutdown ( void );
+-void ProcFsRegisterDevice ( pScanData ps );
+-void ProcFsUnregisterDevice( pScanData ps );
+-#endif
+-
+ #endif /* guard __PROCS_H__ */
+
+ /* END PLUSTEK-PP_PROCS.H ...................................................*/
+Index: trunk/backend/plustek-pp_ptdrv.c
+===================================================================
+--- trunk.orig/backend/plustek-pp_ptdrv.c
++++ trunk/backend/plustek-pp_ptdrv.c
+@@ -94,52 +94,13 @@
+ * If you do not wish that, delete this exception notice.
+ * <hr>
+ */
+-#ifdef __KERNEL__
+-# include <linux/module.h>
+-# include <linux/version.h>
+-
+-# ifdef CONFIG_DEVFS_FS
+-# include <linux/devfs_fs_kernel.h>
+-# if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,69))
+-# define DEVFS_26_STYLE
+-# endif
+-# endif
+-#endif
+-
+ #include "plustek-pp_scan.h"
+
+-#ifdef __KERNEL__
+-# include <linux/param.h>
+-#endif
+-
+ /****************************** static vars **********************************/
+
+ /* default port is at 0x378 */
+ static int port[_MAX_PTDEVS] = { 0x378, 0, 0, 0 };
+
+-#ifdef __KERNEL__
+-static pScanData PtDrvDevices[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = NULL};
+-
+-/* default is 180 secs for lamp switch off */
+-static int lampoff[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 180 };
+-
+-/* warmup period for lamp (30 secs) */
+-static int warmup[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 30 };
+-
+-/* switch lamp off on unload (default = no)*/
+-static int lOffonEnd[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 0 };
+-
+-/* model override (0-->none) */
+-static UShort mov[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 0 };
+-
+-/* forceMode (0--> auto, 1: SPP, 2:EPP, others: auto) */
+-static UShort forceMode[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = 0 };
+-
+-/* to use delayed I/O for each device */
+-static Bool slowIO[_MAX_PTDEVS] = { [0 ... (_MAX_PTDEVS-1)] = _FALSE };
+-
+-#else
+-
+ static pScanData PtDrvDevices[_MAX_PTDEVS]= { NULL, NULL, NULL, NULL };
+ static int lampoff[_MAX_PTDEVS] = { 180, 180, 180, 180 };
+ static int warmup[_MAX_PTDEVS] = { 30, 30, 30, 30 };
+@@ -147,140 +108,14 @@ static int lOffonEnd[_MAX_PTDEVS]
+ static UShort mov[_MAX_PTDEVS] = { 0, 0, 0, 0 };
+ static UShort forceMode[_MAX_PTDEVS] = { 0, 0, 0, 0 };
+
+-#endif
+-
+ /* timers for warmup checks */
+ static TimerDef toTimer[_MAX_PTDEVS];
+
+-#ifndef __KERNEL__
+ static Bool PtDrvInitialized = _FALSE;
+ #ifdef HAVE_SETITIMER
+ static struct itimerval saveSettings;
+ #endif
+-#else
+-static Bool deviceScanning = _FALSE;
+-
+-static struct timer_list tl[_MAX_PTDEVS];
+-
+-/* for calculation of the timer expiration */
+-extern volatile unsigned long jiffies;
+-
+-/* the parameter interface
+- */
+-#if ((LINUX_VERSION_CODE > 0x020111) && defined(MODULE))
+-MODULE_AUTHOR("Gerhard Jaeger <gerhard@gjaeger.de>");
+-MODULE_DESCRIPTION("Plustek parallelport-scanner driver");
+-
+-/* addresses this 'new' license feature... */
+-#ifdef MODULE_LICENSE
+-MODULE_LICENSE("GPL");
+-#endif
+-
+-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13))
+-MODULE_PARM(port, "1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(lampoff, "1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(warmup,"1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(lOffonEnd, "1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(mov, "1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(slowIO,"1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-MODULE_PARM(forceMode,"1-" __MODULE_STRING(_MAX_PTDEVS) "i");
+-
+-#else
+-
+-static int array_len = _MAX_PTDEVS;
+-
+-module_param_array(port, int, &array_len, 0);
+-module_param_array(lampoff, int, &array_len, 0);
+-module_param_array(warmup, int, &array_len, 0);
+-module_param_array(lOffonEnd, int, &array_len, 0);
+-module_param_array(mov, ushort, &array_len, 0);
+-module_param_array(slowIO, int, &array_len, 0);
+-module_param_array(forceMode, ushort, &array_len, 0);
+-
+-#endif
+-
+-
+-MODULE_PARM_DESC(port, "I/O base address of parport");
+-MODULE_PARM_DESC(lampoff, "Lamp-Off timer preset in seconds");
+-MODULE_PARM_DESC(warmup, "Minimum warmup time in seconds");
+-MODULE_PARM_DESC(lOffonEnd, "1 - switchoff lamp on unload");
+-MODULE_PARM_DESC(mov, "Modell-override switch");
+-MODULE_PARM_DESC(slowIO, "0 = Fast I/O, 1 = Delayed I/O");
+-MODULE_PARM_DESC(forceMode, "0 = use auto detection, "
+- "1 = use SPP mode, 2 = use EPP mode");
+-#endif
+-
+-#if defined (CONFIG_DEVFS_FS)
+-# ifndef (DEVFS_26_STYLE)
+- static devfs_handle_t devfs_handle = NULL;
+-# endif
+-#else
+-# ifdef LINUX_26
+- static class_t *ptdrv_class;
+-# endif
+-#endif
+-
+-/*
+- * the module interface
+- */
+-static int pt_drv_open ( struct inode *, struct file *);
+-static CLOSETYPE pt_drv_close( struct inode *, struct file *);
+-
+-#ifdef LINUX_20
+- static int pt_drv_read( struct inode*, struct file*, char*, int );
+- static int pt_drv_write( struct inode*, struct file*, const char*, int );
+-#else
+- static ssize_t pt_drv_read ( struct file *file,
+- char *buffer, size_t count, loff_t *);
+- static ssize_t pt_drv_write( struct file *file,
+- const char *buffer, size_t tmp,loff_t *count);
+-#endif
+-
+-#ifdef NOLOCK_IOCTL
+- static long pt_drv_ioctl( struct file *, UInt, unsigned long );
+-#else
+- static int pt_drv_ioctl( struct inode *, struct file *, UInt, unsigned long );
+-#endif
+-
+-
+-/*
+- * the driver interface
+- */
+-#ifdef LINUX_20
+-
+-static struct file_operations pt_drv_fops =
+-{
+- NULL, /* seek */
+- pt_drv_read, /* read */
+- pt_drv_write, /* write */
+- NULL, /* readdir */
+- NULL, /* select */
+- pt_drv_ioctl, /* ioctl */
+- NULL, /* mmap */
+- pt_drv_open, /* open */
+- pt_drv_close, /* release */
+- NULL, /* fsync */
+- NULL, /* fasync */
+- NULL, /* check_media_change */
+- NULL /* revalidate */
+-};
+-
+-#else /* 2.2.x and higher stuff */
+-
+-static struct file_operations pt_drv_fops = {
+-#ifdef LINUX_24
+- owner: THIS_MODULE,
+-#endif
+- read: pt_drv_read,
+- write: pt_drv_write,
+- IOCTL: pt_drv_ioctl,
+- open: pt_drv_open,
+- release: pt_drv_close,
+-};
+
+-#endif
+-
+-#endif /* guard __KERNEL */
+
+ /****************************** some prototypes ******************************/
+
+@@ -288,23 +123,6 @@ static void ptdrvStartLampTimer( pScanDa
+
+ /****************************** local functions ******************************/
+
+-#ifdef __KERNEL__
+-/** depending on the device, return the data structure
+- */
+-static pScanData get_pt_from_inode(struct inode *ip)
+-{
+- int minor = _MINOR(ip);
+-
+- /*
+- * unit out of range
+- */
+- if (minor >= _MAX_PTDEVS )
+- return NULL;
+-
+- return( PtDrvDevices[minor] );
+-}
+-#endif
+-
+ /** copy user-space data into kernel memory
+ */
+ static int getUserPtr(const pVoid useraddr, pVoid where, UInt size )
+@@ -315,32 +133,9 @@ static int getUserPtr(const pVoid userad
+ if((NULL == useraddr) || ( 0 == size))
+ return _E_INVALID;
+
+-#ifdef __KERNEL__
+- if ((err = verify_area_20(VERIFY_READ, useraddr, size)))
+- return err;
+-#endif
+-
+ switch (size) {
+-#ifdef __KERNEL__
+- case sizeof(u_char):
+- GET_USER_RET(*(u_char *)where, (u_char *) useraddr, -EFAULT);
+- break;
+-
+- case sizeof(u_short):
+- GET_USER_RET(*(u_short *)where, (u_short *) useraddr, -EFAULT);
+- break;
+-
+- case sizeof(u_long):
+- GET_USER_RET(*(u_long *)where, (u_long *) useraddr, -EFAULT);
+- break;
+-
+- default:
+- if (copy_from_user(where, useraddr, size))
+- return -EFAULT;
+-#else
+ default:
+ memcpy( where, useraddr, size );
+-#endif
+ }
+ return err;
+ }
+@@ -354,20 +149,11 @@ static int putUserPtr( const pVoid ptr,
+ if (NULL == useraddr)
+ return _E_INVALID;
+
+-#ifdef __KERNEL__
+- if ((err = verify_area_20(VERIFY_WRITE, useraddr, size)))
+- return err;
+-
+- if (copy_to_user(useraddr, ptr, size ))
+- return -EFAULT;
+-#else
+ memcpy( useraddr, ptr, size );
+-#endif
+
+ return err;
+ }
+
+-#ifndef __KERNEL__
+ static unsigned long copy_from_user( pVoid dest, pVoid src, unsigned long len )
+ {
+ memcpy( dest, src, len );
+@@ -379,37 +165,16 @@ static unsigned long copy_to_user( pVoid
+ memcpy( dest, src, len );
+ return 0;
+ }
+-#endif
+
+ /**
+ */
+ static int putUserVal(const ULong value, pVoid useraddr, UInt size)
+ {
+-#ifdef __KERNEL__
+- int err;
+-#endif
+-
+ if (NULL == useraddr)
+ return _E_INVALID;
+
+-#ifdef __KERNEL__
+- if ((err = verify_area_20(VERIFY_WRITE, useraddr, size)))
+- return err;
+-#endif
+-
+ switch (size) {
+
+-#ifdef __KERNEL__
+- case sizeof(u_char):
+- PUT_USER_RET((u_char)value, (u_char *) useraddr, -EFAULT);
+- break;
+- case sizeof(u_short):
+- PUT_USER_RET((u_short)value, (u_short *) useraddr, -EFAULT);
+- break;
+- case sizeof(u_long):
+- PUT_USER_RET((u_long)value, (u_long *) useraddr, -EFAULT);
+- break;
+-#else
+ case sizeof(UChar):
+ *(pUChar)useraddr = (UChar)value;
+ break;
+@@ -420,7 +185,6 @@ static int putUserVal(const ULong value,
+ *(pULong)useraddr = (ULong)value;
+ break;
+
+-#endif
+ default:
+ return _E_INVALID;
+ }
+@@ -506,22 +270,14 @@ static void ptdrvLampWarmup( pScanData p
+
+ /**
+ */
+-#ifdef __KERNEL__
+-static void ptdrvLampTimerIrq( unsigned long ptr )
+-#else
+ static void ptdrvLampTimerIrq( int sig_num )
+-#endif
+ {
+ pScanData ps;
+
+ DBG( DBG_HIGH, "!! IRQ !! Lamp-Timer stopped.\n" );
+
+-#ifdef __KERNEL__
+- ps = (pScanData)ptr;
+-#else
+ _VAR_NOT_USED( sig_num );
+ ps = PtDrvDevices[0];
+-#endif
+
+ /*
+ * paranoia check!
+@@ -559,7 +315,6 @@ static void ptdrvLampTimerIrq( int sig_n
+ */
+ static void ptdrvStartLampTimer( pScanData ps )
+ {
+-#ifndef __KERNEL__
+ sigset_t block, pause_mask;
+ struct sigaction s;
+ #ifdef HAVE_SETITIMER
+@@ -597,17 +352,6 @@ static void ptdrvStartLampTimer( pScanDa
+ #else
+ alarm( ps->lampoff );
+ #endif
+-#else
+- init_timer( &tl[ps->devno] );
+-
+- /* timeout val in seconds */
+- tl[ps->devno].expires = jiffies + ps->lampoff * HZ;
+- tl[ps->devno].data = (unsigned long)ps;
+- tl[ps->devno].function = ptdrvLampTimerIrq;
+-
+- if( 0 != ps->lampoff )
+- add_timer( &tl[ps->devno] );
+-#endif
+
+ DBG( DBG_HIGH, "Lamp-Timer started!\n" );
+ }
+@@ -616,7 +360,6 @@ static void ptdrvStartLampTimer( pScanDa
+ */
+ static void ptdrvStopLampTimer( pScanData ps )
+ {
+-#ifndef __KERNEL__
+ sigset_t block, pause_mask;
+
+ /* block SIGALRM */
+@@ -630,10 +373,6 @@ static void ptdrvStopLampTimer( pScanDat
+ _VAR_NOT_USED( ps );
+ alarm(0);
+ #endif
+-#else
+- if( 0 != ps->lampoff )
+- del_timer( &tl[ps->devno] );
+-#endif
+
+ DBG( DBG_HIGH, "Lamp-Timer stopped!\n" );
+ }
+@@ -701,23 +440,11 @@ static int ptdrvOpenDevice( pScanData ps
+ UShort lastMode;
+ ULong devno;
+
+-#ifdef __KERNEL__
+- UShort flags;
+- struct pardevice *pd;
+- struct parport *pp;
+- ProcDirDef procDir;
+-#else
+ int pd;
+-#endif
+
+ /*
+ * push some values from the struct
+ */
+-#ifdef __KERNEL__
+- flags = ps->flags;
+- pp = ps->pp;
+- procDir = ps->procDir;
+-#endif
+ pd = ps->pardev;
+ iobase = ps->sCaps.wIOBase;
+ asic = ps->sCaps.AsicID;
+@@ -734,29 +461,10 @@ static int ptdrvOpenDevice( pScanData ps
+ /*
+ * pop the val(s)
+ */
+-#ifdef __KERNEL__
+- ps->flags = flags;
+- ps->pp = pp;
+- ps->procDir = procDir;
+-#endif
+ ps->pardev = pd;
+ ps->bLastLampStatus = lastStat;
+ ps->IO.lastPortMode = lastMode;
+ ps->devno = devno;
+-
+-#ifdef __KERNEL__
+- if( _TRUE == slowIO[devno] ) {
+- DBG( DBG_LOW, "Using slow I/O\n" );
+- ps->IO.slowIO = _TRUE;
+- ps->IO.fnOut = IOOutDelayed;
+- ps->IO.fnIn = IOInDelayed;
+- } else {
+- DBG( DBG_LOW, "Using fast I/O\n" );
+- ps->IO.slowIO = _FALSE;
+- ps->IO.fnOut = IOOut;
+- ps->IO.fnIn = IOIn;
+- }
+-#endif
+ ps->ModelOverride = mov[devno];
+ ps->warmup = warmup[devno];
+ ps->lampoff = lampoff[devno];
+@@ -798,19 +506,6 @@ static int ptdrvInit( int devno )
+ return _E_ALLOC;
+ }
+
+-#ifdef __KERNEL__
+- if( _TRUE == slowIO[devno] ) {
+- DBG( DBG_LOW, "Using slow I/O\n" );
+- ps->IO.slowIO = _TRUE;
+- ps->IO.fnOut = IOOutDelayed;
+- ps->IO.fnIn = IOInDelayed;
+- } else {
+- DBG( DBG_LOW, "Using fast I/O\n" );
+- ps->IO.slowIO = _FALSE;
+- ps->IO.fnOut = IOOut;
+- ps->IO.fnIn = IOIn;
+- }
+-#endif
+ ps->ModelOverride = mov[devno];
+ ps->warmup = warmup[devno];
+ ps->lampoff = lampoff[devno];
+@@ -845,13 +540,8 @@ static int ptdrvInit( int devno )
+
+ if( _OK == retval ) {
+
+-#ifdef __KERNEL__
+- _PRINT( "pt_drv%u: %s found on port 0x%04x\n",
+- devno, MiscGetModelName(ps->sCaps.Model), ps->IO.pbSppDataPort );
+-#else
+ DBG( DBG_LOW, "pt_drv%u: %s found\n",
+ devno, MiscGetModelName(ps->sCaps.Model));
+-#endif
+
+ /*
+ * initialize the timespan timer
+@@ -859,43 +549,23 @@ static int ptdrvInit( int devno )
+ MiscStartTimer( &toTimer[ps->devno], (_SECOND * ps->warmup));
+
+ if( 0 == ps->lampoff )
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv%u: Lamp-Timer switched off.\n", devno );
+ else {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv%u: Lamp-Timer set to %u seconds.\n",
+ devno, ps->lampoff );
+ }
+
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv%u: WarmUp period set to %u seconds.\n",
+ devno, ps->warmup );
+
+ if( 0 == ps->lOffonEnd ) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv%u: Lamp untouched on driver unload.\n", devno );
+ } else {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv%u: Lamp switch-off on driver unload.\n", devno );
+ }
+
+@@ -1287,31 +957,19 @@ static int ptdrvRead( pScanData ps, pUCh
+ int retval = _OK;
+
+ #ifdef _ASIC_98001_SIM
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_LOW,
+-#endif
+ "pt_drv : Software-Emulation active, can't read!\n" );
+ return _E_INVALID;
+ #endif
+
+ if((NULL == buffer) || (NULL == ps)) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv : Internal NULL-pointer!\n" );
+ return _E_NULLPTR;
+ }
+
+ if( 0 == count ) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv%u: reading 0 bytes makes no sense!\n", ps->devno );
+ return _E_INVALID;
+ }
+@@ -1325,11 +983,7 @@ static int ptdrvRead( pScanData ps, pUCh
+ * when using the cat /dev/pt_drv command!
+ */
+ if (!(ps->DataInf.dwVxdFlag & _VF_ENVIRONMENT_READY)) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv%u: Cannot read, driver not initialized!\n",ps->devno);
+ return _E_SEQUENCE;
+ }
+@@ -1340,11 +994,7 @@ static int ptdrvRead( pScanData ps, pUCh
+ ps->Scan.bp.pMonoBuf = _KALLOC( ps->DataInf.dwAppPhyBytesPerLine, GFP_KERNEL);
+
+ if ( NULL == ps->Scan.bp.pMonoBuf ) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv%u: Not enough memory available!\n", ps->devno );
+ return _E_ALLOC;
+ }
+@@ -1355,11 +1005,7 @@ static int ptdrvRead( pScanData ps, pUCh
+ scaleBuf = _KALLOC( ps->DataInf.dwAppPhyBytesPerLine, GFP_KERNEL);
+ if ( NULL == scaleBuf ) {
+ _KFREE( ps->Scan.bp.pMonoBuf );
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv%u: Not enough memory available!\n", ps->devno );
+ return _E_ALLOC;
+ }
+@@ -1406,11 +1052,7 @@ static int ptdrvRead( pScanData ps, pUCh
+
+ retval = ps->Calibration( ps );
+ if( _OK != retval ) {
+-#ifdef __KERNEL__
+- _PRINT(
+-#else
+ DBG( DBG_HIGH,
+-#endif
+ "pt_drv%u: calibration failed, result = %i\n",
+ ps->devno, retval );
+ goto ReadFinished;
+@@ -1507,12 +1149,9 @@ static int ptdrvRead( pScanData ps, pUCh
+ ps->Scan.dwLinesToRead--;
+
+ /* needed, esp. to avoid freezing the system in SPP mode */
+-#ifdef __KERNEL__
+- schedule();
+ /*#else
+ sched_yield();
+ */
+-#endif
+ }
+
+ if (ps->fScanningStatus) {
+@@ -1565,346 +1204,6 @@ ReadFinished:
+ return retval;
+ }
+
+-/*************************** the module interface ****************************/
+-
+-#ifdef __KERNEL__ /* the kernel module interface */
+-
+-/* Designed to be used as a module */
+-#ifdef MODULE
+-
+-/*.............................................................................
+- * gets called upon module initialization
+- */
+-#ifdef LINUX_26
+-static int __init ptdrv_init( void )
+-#else
+-int init_module( void )
+-#endif
+-{
+- UInt devCount;
+- UInt i;
+- int retval = _OK;
+- int result = _OK;
+-#if (defined(CONFIG_DEVFS_FS) && !defined(DEVFS_26_STYLE))
+- char controlname[24];
+-#endif
+-# ifdef LINUX_26
+- char devname[20];
+-#endif
+-
+- DBG( DBG_HIGH, "*********************************************\n" );
+- DBG( DBG_HIGH, "pt_drv: init_module()\n" );
+-
+-#if (defined(CONFIG_DEVFS_FS) && !defined(DEVFS_26_STYLE))
+- devfs_handle = devfs_mk_dir(NULL, "scanner", NULL);
+- if( devfs_register_chrdev(_PTDRV_MAJOR, _DRV_NAME, &pt_drv_fops)) {
+-#else
+- if( register_chrdev(_PTDRV_MAJOR, _DRV_NAME, &pt_drv_fops)) {
+-#endif
+-
+- _PRINT(KERN_INFO "pt_drv: unable to get major %d for pt_drv devices\n",
+- _PTDRV_MAJOR);
+- return -EIO;
+- }
+- printk( KERN_INFO "pt_drv : driver version "_PTDRV_VERSTR"\n" );
+-
+-#if !defined (CONFIG_DEVFS_FS) && defined (LINUX_26)
+- ptdrv_class = class_create(THIS_MODULE, "scanner");
+- if (IS_ERR(ptdrv_class))
+- goto out_devfs;
+-#endif
+-
+- /* register the proc_fs */
+- ProcFsInitialize();
+-
+- /* go through the list of defined ports and try to find a device
+- */
+- devCount = 0;
+- for( i = 0; i < _MAX_PTDEVS; i++ ) {
+-
+- if( 0 != port[i] ) {
+- result = ptdrvInit( i );
+-
+- if ( _OK == result ) {
+- PtDrvDevices[i]->flags |= _PTDRV_INITALIZED;
+-
+-#ifdef CONFIG_DEVFS_FS
+-# ifndef DEVFS_26_STYLE
+- sprintf( controlname, "scanner/pt_drv%d", devCount );
+- devfs_register( NULL, controlname,
+- DEVFS_FL_DEFAULT, _PTDRV_MAJOR, 0,
+- (S_IFCHR | S_IRUGO | S_IWUGO | S_IFCHR),
+- &pt_drv_fops, NULL );
+-# else /* DEVFS_26_STYLE */
+- devfs_mk_cdev(MKDEV(_PTDRV_MAJOR, devCount),
+- (S_IFCHR | S_IRUGO | S_IWUGO | S_IFCHR),
+- "scanner/pt_drv%d", devCount);
+-# endif
+-#else
+-# ifdef LINUX_26
+- sprintf(devname, "pt_drv%d", devCount);
+- CLASS_DEV_CREATE(ptdrv_class,
+- MKDEV(_PTDRV_MAJOR, devCount), NULL,
+- devname);
+-
+-# endif /* LINUX_26 */
+-#endif /* CONFIG_DEVFS_FS */
+- ProcFsRegisterDevice( PtDrvDevices[i] );
+- devCount++;
+- } else {
+- retval = result;
+- ptdrvShutdown( PtDrvDevices[i] );
+- PtDrvDevices[i] = NULL;
+- }
+- }
+- }
+-
+- /* * if something went wrong, shutdown all... */
+- if( devCount == 0 ) {
+-
+-#if !defined (CONFIG_DEVFS_FS) && defined (LINUX_26)
+-out_devfs:
+- class_destroy(ptdrv_class);
+-#endif
+-
+-#if (defined(CONFIG_DEVFS_FS) && !defined(DEVFS_26_STYLE))
+- devfs_unregister_chrdev( _PTDRV_MAJOR, _DRV_NAME );
+-#else
+- unregister_chrdev( _PTDRV_MAJOR, _DRV_NAME );
+-#endif
+- ProcFsShutdown();
+-
+-#ifdef __KERNEL__
+- _PRINT( KERN_INFO "pt_drv : no device(s) detected, (%i)\n", retval );
+-#endif
+-
+- } else {
+-
+- DBG( DBG_HIGH, "pt_drv : init done, %u device(s) found\n", devCount );
+- retval = _OK;
+- }
+- DBG( DBG_HIGH, "---------------------------------------------\n" );
+-
+- deviceScanning = _FALSE;
+- return retval;
+-}
+-
+-/*.............................................................................
+- * cleanup the show
+- */
+-#ifdef LINUX_26
+-static void __exit ptdrv_exit( void )
+-#else
+-void cleanup_module( void )
+-#endif
+-{
+- UInt i;
+- pScanData ps;
+-#if (defined(CONFIG_DEVFS_FS) && !defined(DEVFS_26_STYLE))
+- char controlname[24];
+- devfs_handle_t master;
+-#endif
+-
+- DBG( DBG_HIGH, "pt_drv: cleanup_module()\n" );
+-
+- for ( i = 0; i < _MAX_PTDEVS; i++ ) {
+-
+- ps = PtDrvDevices[i];
+- PtDrvDevices[i] = NULL;
+-
+- if ( NULL != ps ) {
+-#ifdef CONFIG_DEVFS_FS
+-# ifndef DEVFS_26_STYLE
+- sprintf( controlname, "scanner/pt_drv%d", i );
+- master = devfs_find_handle( NULL,controlname, 0, 0,
+- DEVFS_SPECIAL_CHR, 0 );
+- devfs_unregister( master );
+-# else
+- devfs_remove("scanner/pt_drv%d", i);
+-# endif
+-#else
+-# ifdef LINUX_26
+- CLASS_DEV_DESTROY(ptdrv_class, MKDEV(_PTDRV_MAJOR, i));
+-# endif /* LINUX_26 */
+-#endif /* CONFIG_DEVFS_FS */
+- ptdrvShutdown( ps );
+- ProcFsUnregisterDevice( ps );
+- }
+- }
+-
+-#if (defined(CONFIG_DEVFS_FS) && !defined(DEVFS_26_STYLE))
+- devfs_unregister_chrdev( _PTDRV_MAJOR, _DRV_NAME );
+-#else
+- unregister_chrdev( _PTDRV_MAJOR, _DRV_NAME );
+-#endif
+- ProcFsShutdown();
+-
+-#if !defined (CONFIG_DEVFS_FS) && defined (LINUX_26)
+- class_destroy(ptdrv_class);
+-#endif
+-
+- DBG( DBG_HIGH, "pt_drv: cleanup done.\n" );
+- DBG( DBG_HIGH, "*********************************************\n" );
+-}
+-
+-#ifdef LINUX_26
+-module_init(ptdrv_init);
+-module_exit(ptdrv_exit);
+-#endif
+-
+-#endif /*MODULE*/
+-
+-
+-/*.............................................................................
+- * device open...
+- */
+-static int pt_drv_open(struct inode *inode, struct file *file)
+-{
+- pScanData ps;
+-
+- DBG( DBG_HIGH, "pt_drv_open()\n" );
+-
+- ps = get_pt_from_inode(inode);
+-
+- if ( NULL == ps ) {
+- return(-ENXIO);
+- }
+-
+- /* device not found ? */
+- if (!(ps->flags & _PTDRV_INITALIZED)) {
+- return(-ENXIO);
+- }
+-
+- /* device is busy ? */
+- if (ps->flags & _PTDRV_OPEN) {
+- return(-EBUSY);
+- }
+-
+-#ifdef LINUX_26
+- if (!try_module_get(THIS_MODULE))
+- return -EAGAIN;
+-#else
+- MOD_INC_USE_COUNT;
+-#endif
+- ps->flags |= _PTDRV_OPEN;
+-
+- return _OK;
+-}
+-
+-/*.............................................................................
+- * device close...
+- */
+-static CLOSETYPE pt_drv_close(struct inode * inode, struct file * file)
+-{
+- pScanData ps;
+-
+- DBG( DBG_HIGH, "pt_drv_close()\n" );
+-
+- if ((ps = get_pt_from_inode(inode)) ) {
+-
+- ptdrvClose( ps );
+-
+- ps->flags &= ~_PTDRV_OPEN;
+-#ifdef LINUX_26
+- module_put(THIS_MODULE);
+-#else
+- MOD_DEC_USE_COUNT;
+-#endif
+- CLOSERETURN(0);
+- } else {
+-
+- DBG( DBG_HIGH, "pt_drv: - close failed!\n" );
+- CLOSERETURN(-ENXIO);
+- }
+-}
+-
+-/*.............................................................................
+- * read data from device
+- */
+-#ifdef LINUX_20
+-static int pt_drv_read(struct inode *inode, struct file *file,
+- char *buffer, int count)
+-{
+- int result;
+- pScanData ps;
+-
+- if ( !(ps = get_pt_from_inode(inode)))
+- return(-ENXIO);
+-#else
+-static ssize_t pt_drv_read( struct file *file,
+- char *buffer, size_t count, loff_t *tmp )
+-{
+- int result;
+- pScanData ps;
+-
+- if ( !(ps = get_pt_from_inode(file->f_dentry->d_inode)) )
+- return(-ENXIO);
+-#endif
+- if ((result = verify_area_20(VERIFY_WRITE, buffer, count)))
+- return result;
+-
+- /*
+- * as the driver contains some global vars, it is not
+- * possible to scan simultaenously with two or more devices
+- */
+- if( _TRUE == deviceScanning ) {
+- printk( KERN_INFO "pt_drv: device %u busy!!!\n", ps->devno );
+- return(-EBUSY);
+- }
+-
+- deviceScanning = _TRUE;
+-
+- result = ptdrvRead( ps, buffer, count );
+-
+- deviceScanning = _FALSE;
+- return result;
+-}
+-
+-/*.............................................................................
+- * writing makes no sense
+- */
+-#ifdef LINUX_20
+-static int pt_drv_write(struct inode * inode, struct file * file,
+- const char * buffer, int count)
+-{
+- return -EPERM;
+-}
+-#else
+- static ssize_t pt_drv_write( struct file * file,const char * buffer,
+- size_t tmp,loff_t* count)
+-{
+- return -EPERM;
+-}
+-#endif
+-
+-/*.............................................................................
+- * the ioctl interface
+- */
+-#ifdef NOLOCK_IOCTL
+-static long pt_drv_ioctl( struct file *file, UInt cmd, unsigned long arg )
+-{
+- pScanData ps;
+-
+- if ( !(ps = get_pt_from_inode(file->f_dentry->d_inode)) )
+- return(-ENXIO);
+-
+- return ptdrvIoctl( ps, cmd, (pVoid)arg);
+-}
+-#else
+-static int pt_drv_ioctl( struct inode *inode, struct file *file,
+- UInt cmd, unsigned long arg )
+-{
+- pScanData ps;
+-
+- if ( !(ps = get_pt_from_inode(inode)) )
+- return(-ENXIO);
+-
+- return ptdrvIoctl( ps, cmd, (pVoid)arg);
+-}
+-#endif
+-
+-#else /* the user-mode interface */
+-
+ /*.............................................................................
+ * here we only have wrapper functions
+ */
+@@ -1980,6 +1279,4 @@ static int PtDrvRead ( pUChar buffer, in
+ return ptdrvRead( PtDrvDevices[0], buffer, count );
+ }
+
+-#endif /* guard __KERNEL__ */
+-
+ /* END PLUSTEK-PP_PTDRV.C ...................................................*/
+Index: trunk/backend/plustek-pp_scan.h
+===================================================================
+--- trunk.orig/backend/plustek-pp_scan.h
++++ trunk/backend/plustek-pp_scan.h
+@@ -63,8 +63,6 @@
+ #ifndef __PLUSTEK_SCAN_H__
+ #define __PLUSTEK_SCAN_H__
+
+-#ifndef __KERNEL__
+-
+ # include <stdlib.h>
+ # include <stdarg.h>
+ # include <string.h>
+@@ -76,19 +74,6 @@
+ # ifdef HAVE_SYS_IO_H
+ # include <sys/io.h>
+ # endif
+-#else
+-# include <linux/kernel.h>
+-# include <linux/init.h>
+-# include <linux/version.h>
+-# include "plustek-pp_sysdep.h"
+-# include <linux/delay.h>
+-# include <linux/parport.h>
+-
+-#ifdef LINUX_24
+-# include <linux/parport_pc.h>
+-#endif /* LINUX_24 */
+-
+-#endif /* __KERNEL__ */
+
+ /*.............................................................................
+ * driver properties
+@@ -104,20 +89,6 @@
+ # define _OPF ps->IO.fnOut
+ # define _IPF ps->IO.fnIn
+
+-#ifdef __KERNEL__
+-
+-#define _OUTB_CTRL(pSD,port_value) _OPF(port_value,pSD->IO.pbControlPort)
+-#define _OUTB_DATA(pSD,port_value) _OPF(port_value,pSD->IO.pbSppDataPort)
+-#define _OUTB_ECTL(pSD,port_value) _OPF(port_value,(pSD->IO.portBase+0x402))
+-
+-#define _INB_CTRL(pSD) _IPF(pSD->IO.pbControlPort)
+-#define _INB_DATA(pSD) _IPF(pSD->IO.pbSppDataPort)
+-#define _INB_EPPDATA(pSD) _IPF(pSD->IO.pbEppDataPort)
+-#define _INB_STATUS(pSD) _IPF(pSD->IO.pbStatusPort)
+-#define _INB_ECTL(pSD) _IPF((pSD->IO.portBase+0x402))
+-
+-#else
+-
+ #define _OUTB_CTRL(pSD,port_value) sanei_pp_outb_ctrl(pSD->pardev, port_value)
+ #define _OUTB_DATA(pSD,port_value) sanei_pp_outb_data(pSD->pardev, port_value)
+ #define _OUTB_ECTL(pSD,port_value)
+@@ -127,32 +98,19 @@
+ #define _INB_EPPDATA(pSD) sanei_pp_inb_epp(pSD->pardev)
+ #define _INB_STATUS(pSD) sanei_pp_inb_stat(pSD->pardev)
+
+-#endif
+-
+ /*.............................................................................
+ * for memory allocation
+ */
+-#ifndef __KERNEL__
+ # define _KALLOC(x,y) malloc(x)
+ # define _KFREE(x) free(x)
+ # define _VMALLOC(x) malloc(x)
+ # define _VFREE(x) free(x)
+-#else
+-# define _KALLOC(x,y) kmalloc(x,y)
+-# define _KFREE(x) kfree(x)
+-# define _VMALLOC(x) vmalloc(x)
+-# define _VFREE(x) vfree(x)
+-#endif
+
+ /*
+ * WARNING - never use the _SECOND define with the _DODELAY macro !!
+ * they are for use the MiscStartTimer function and the _DO_UDELAY macro
+ */
+-#ifndef __KERNEL__
+ typedef double TimerDef, *pTimerDef;
+-#else
+-typedef long long TimerDef, *pTimerDef;
+-#endif
+
+ #define _MSECOND 1000 /* based on 1 us */
+ #define _SECOND (1000*_MSECOND)
+@@ -160,13 +118,8 @@ typedef long long TimerDef, *pTimerDef;
+ /*.............................................................................
+ * timer topics
+ */
+-#ifndef __KERNEL__
+ # define _DO_UDELAY(usecs) sanei_pp_udelay(usecs)
+ # define _DODELAY(msecs) { int i; for( i = msecs; i--; ) _DO_UDELAY(1000); }
+-#else
+-# define _DO_UDELAY(usecs) udelay(usecs)
+-# define _DODELAY(msecs) mdelay(msecs)
+-#endif
+
+ /*.............................................................................
+ * include the shared stuff right here, this concerns the ioctl interface
+Index: trunk/backend/plustek-pp_scandata.h
+===================================================================
+--- trunk.orig/backend/plustek-pp_scandata.h
++++ trunk/backend/plustek-pp_scandata.h
+@@ -143,17 +143,7 @@ typedef struct {
+ */
+ typedef struct scandata
+ {
+-#ifdef __KERNEL__
+- UInt flags; /* as follows: */
+-#define _PTDRV_INITALIZED 0x00000001
+-#define _PTDRV_OPEN 0x00000002
+-
+- struct pardevice *pardev; /* for accessing parport... */
+- struct parport *pp;
+- ProcDirDef procDir;
+-#else
+ int pardev; /* parport handle in user-space */
+-#endif
+
+ /*
+ * device control
+Index: trunk/doc/Makefile.am
+===================================================================
+--- trunk.orig/doc/Makefile.am
++++ trunk/doc/Makefile.am
+@@ -124,8 +124,8 @@ BEDOCS += mustek/mustek.CHANGES
+ BEDOCS += mustek_usb/mustek_usb.CHANGES mustek_usb/mustek_usb.TODO
+ BEDOCS += mustek_usb2/mustek_usb2.CHANGES mustek_usb2/mustek_usb2.TODO
+ BEDOCS += niash/niash.TODO
+-BEDOCS += plustek/FAQ plustek/MakeModule.sh plustek/Makefile.kernel24 \
+- plustek/Makefile.kernel26 plustek/Plustek-PARPORT-TODO.txt \
++BEDOCS += plustek/FAQ \
++ plustek/Plustek-PARPORT-TODO.txt \
+ plustek/Plustek-PARPORT.changes plustek/Plustek-PARPORT.txt \
+ plustek/Plustek-USB-TODO.txt plustek/Plustek-USB.changes \
+ plustek/Plustek-USB.txt
+Index: trunk/doc/plustek/FAQ
+===================================================================
+--- trunk.orig/doc/plustek/FAQ
++++ trunk/doc/plustek/FAQ
+@@ -12,111 +12,10 @@ If you have some more FAQ entries, let m
+ THANKS to Jochen <jochen@puchalla-online.de>, who roamed through the
+ mailing-list and gathered the different questions.
+
+-
+ *******************************************************************************
+-* TROUBLE-SHOOTING *
+-* *
+-* DRIVER TOPICS *
++* General *
+ *******************************************************************************
+
+-
+-SYMPTOM: "kernel-module version mismatch"
+---------
+-"When I try to "make load" I get an error"
+-
+-/sbin/modprobe pt_drv || exit 1
+-/lib/modules/2.2.14-6.0.6/misc/pt_drv.o: kernel-module version mismatch
+-/lib/modules/2.2.14-6.0.1/misc/pt_drv.o was compiled
+-for kernel version 2.2.14-5.0
+-while this kernel is version 2.2.14-6.0.1.
+-
+-PROBLEM:
+---------
+-You're using the wrong Kernel-header files.
+-
+-The path
+-/usr/include/linux is a link to
+-/usr/src/linux/include/linux and
+-/usr/src/linux is normally a link to your current
+-kernel, i.e:
+-/usr/src/linux-2.2.14
+-
+-If you now upgrade your kernel and you have
+-forgotten to correct the link /usr/src/linux, then
+-every kernel-module you build outside the
+-kernelsource structure will include the wrong
+-version information.
+-
+-SOLUTION:
+----------
+-Set the link /usr/src/linux
+-to your current kernel-source tree before recompiling
+-kernel-modules like pt_drv, then your version mismatch
+-problem should be solved.
+-
+-
+-
+-SYMPTOM: "Device or resource busy"
+---------
+-Any attempt to "modprobe" or "make load" the driver leads
+-to this message.
+-
+-PROBLEM:
+---------
+-The driver refuses to load. During startup, the driver performs
+-some tests according to the parallel port and the connected
+-scanners.
+-If the parallel port is not supported or the scanner cannot be
+-found, the driver returns an error and the system will report
+-"device or resource busy"
+-
+-SOLUTION:
+----------
+-There's no way to provide a general solution. First of all
+-you should check your connections and the parallel port.
+-Also check power for your scanner.
+-If the problem still exists, enable the debug-messages of the
+-pt_drv module (see INSTALL).
+-Then check the messages after loading or send the output to
+-the mailing list.
+-Most of these problems are related to HW-problems. Before
+-giving up, check the scanner under Windows (not really a
+-good advice I know, but it helps to find HW-damage).
+-There was also one case were the internal plugs of the parport
+-connection were wrong...
+-
+-
+-
+-SYMPTOM: "Unresolved symbols"
+---------
+-"make load" or "modprobe pt_drv" produces this message:
+-
+-/sbin/modprobe pt_drv || exit 1
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: unresolved symbol parport_unregister_device
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: unresolved symbol parport_enumerate
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: unresolved symbol parport_register_device
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: unresolved symbol parport_claim
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: unresolved symbol parport_release
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o: insmod
+-/lib/modules/2.2.14-5.0/misc/pt_drv.o failed
+-
+-
+-PROBLEM:
+---------
+-The driver needs at least the parport_pc and the parport modules
+-to work. They MUST be loaded prior to pt_drv. If these modules
+-are not loaded you get this message.
+-
+-SOLUTION:
+----------
+-Simply load the parport module. You can add this dependency to
+-your /etc/modules.conf (or /etc/conf.modules) file (see INSTALL).
+-Then every time you load pt_drv with modprobe, parport will be loaded
+-automatically. After modifying this file, call
+-depmod -va
+-
+-
+-
+ SYMPTOM: Scanner makes awful noise
+ --------
+
+@@ -138,7 +37,6 @@ The second case is often reported when t
+ already loaded. So remove lp.o before loading pt_drv.
+
+
+-
+ SYMPTOM: Printer starts to print while scanning
+ --------
+
+@@ -294,23 +192,6 @@ A: You should be able to use xscanimage
+ now the Acquire Image menu entry. That's all.
+ If not, start gimp from an xterm and have a look at the output.
+
+-
+-Q: Is there any way to load the plustek_driver at bootup-time?
+-
+-A: Normally, there is no need to do so, because once you
+- altered your /etc/conf.modules file (or /etc/modules.conf)
+- and added the suggested stuff (see INSTALL file), you won't
+- have to worry about loading the driver. It happens automagically. ;-)
+- The driver will be loaded when needed (and eventually
+- removed after a specific time of not using it).
+-
+- Nevertheless, another possibility is to do a modprobe pt_drv in the
+- /etc/rc.d/boot.local (using SuSE) or
+- /etc/rc.d/rc.local (using RedHat or Mandrake) file
+- So the driver will be loaded at bootup-time...
+- !!! YOUR SCANNER MUST BE ONLINE during power-up then !!!
+-
+-
+ Q: I wonder if Mandrake 7.1's sane rpm file has this support already built in.
+ My scanner light is coming on yet Xscanimage seems to report that there
+ is no scanner present.
+Index: trunk/doc/plustek/MakeModule.sh
+===================================================================
+--- trunk.orig/doc/plustek/MakeModule.sh
++++ /dev/null
+@@ -1,116 +0,0 @@
+-#!/bin/bash
+-#******************************************************************************
+-#
+-# Bash-Script to create Plustek-Scannerdriver modules for Kernel 2.4, 2.6 and 3.x
+-# out of the backend sources...
+-#
+-
+-BUILD_DIR=$PWD/build
+-SRC_DIR=$PWD/../../backend
+-MAKEFILE=$PWD/Makefile.kernel26
+-KERNEL_V=`uname -r`
+-OSMINOR=`uname -r | cut -b 3`
+-OSMAJOR=`uname -r | cut -b 1`
+-
+-#
+-# some intro ;-)
+-#
+-echo "This script will try and build a suitable kernel-module for your system."
+-echo "If you'd like to make the module WITH debug output, restart this script"
+-echo "with as follows:"
+-echo "./MakeModule.sh DEBUG=y"
+-echo "Press <ENTER> to continue or <CTRL><C> to cancel."
+-read
+-
+-#
+-# we need to be root user...
+-#
+-echo -n "Check for root..."
+-if [ $EUID -ne 0 ]; then
+- echo -e "\b\b\b - failed"
+- echo "Please retry as root user."
+- exit -1
+-fi
+-echo -e "\b\b\b - done."
+-
+-#
+-# Version checks...
+-#
+-echo -e "\nCheck for kernelversion:"
+-if [ "$OSMAJOR" == "3" ];then
+- echo "Using makefile for kernel 2.6.x - okay for kernel 3 as well..."
+- MAKEFILE=$PWD/Makefile.kernel26
+-elif [ "$OSMINOR" == "6" ]; then
+- echo "Using makefile for kernel 2.6.x"
+- MAKEFILE=$PWD/Makefile.kernel26
+-elif [ "$OSMINOR" == "4" ]; then
+- echo "Using makefile for kernel 2.4.x"
+- MAKEFILE=$PWD/Makefile.kernel24
+-else
+- echo "Your kernelversion >"$OSMAJOR"."$OSMINOR"< is probably not supported"
+- exit -2
+-fi
+-
+-#
+-# Setup...
+-#
+-echo -e "Build-directory: \n"$BUILD_DIR
+-echo -n "Removing build-directory..."
+-rm -rf $BUILD_DIR
+-echo -e "\b\b\b - done."
+-
+-echo -n "Creating build-directory..."
+-mkdir $BUILD_DIR
+-cd $BUILD_DIR
+-echo -e "\b\b\b - done.\n"
+-
+-echo -n "Linking source files..."
+-C_FILES=`ls $SRC_DIR/plustek-pp_*.c`
+-H_FILES=`ls $SRC_DIR/plustek-pp_*.h`
+-
+-for F in $C_FILES $H_FILES $SRC_DIR/plustek-pp.h $SRC_DIR/plustek_pp.c; do
+- ln -s $F .
+-done
+-echo -e "\b\b\b - done."
+-
+-echo -n "Copying Makefile to build-directory..."
+-cp $MAKEFILE Makefile
+-echo -e "\b\b\b - done."
+-
+-#
+-# Building the module...
+-#
+-echo "Making the module..."
+-if [ "$OSMAJOR" == "2" -a "$OSMINOR" == "4" ]; then
+- make all $1
+-else
+- make -C /lib/modules/$KERNEL_V/build/ SUBDIRS=$BUILD_DIR modules $1
+-fi
+-RES=$?
+-cd ..
+-if [ $RES != 0 ]; then
+- echo "There were some build errors..."
+- exit -1
+-fi
+-echo "done."
+-
+-echo "Should I install the module?"
+-echo "Press <ENTER> to continue or <CTRL><C> to cancel."
+-read
+-
+-make -C $BUILD_DIR install
+-
+-echo "Should I try and load the module?"
+-echo "If this step fails, check the kernel-log."
+-echo "Press <ENTER> to continue or <CTRL><C> to cancel."
+-read
+-
+-make -C $BUILD_DIR load
+-echo "done."
+-
+-echo "Should I remove the build directory?"
+-echo "Press <ENTER> to continue or <CTRL><C> to cancel."
+-read
+-
+-rm -rf $BUILD_DIR
+-echo "done."
+Index: trunk/doc/plustek/Makefile.kernel24
+===================================================================
+--- trunk.orig/doc/plustek/Makefile.kernel24
++++ /dev/null
+@@ -1,250 +0,0 @@
+-# Makefile for the plustek scanner driver (kernel-module)
+-#
+-###############################################################################
+-#
+-# define the directories
+-#
+-HOME_DIR := .
+-SRC_DIR := $(HOME_DIR)
+-INC_DIR := $(SRC_DIR)
+-OBJ_DIR := $(HOME_DIR)/obj
+-DOC_DIR := $(HOME_DIR)/doc
+-BACKEND := $(SRC_DIR)
+-
+-#
+-# define the used tools
+-#
+-MD = mkdir -p
+-CC = gcc
+-TAR = tar
+-REF = cxref
+-
+-#
+-# Comment/uncomment the following line to disable/enable debugging
+-# can also be set by commandline parameter: make all DEBUG=y
+-#
+-#DEBUG = y
+-
+-#
+-# common compiler options
+-#
+-OPT = -fomit-frame-pointer -D_PTDRV_VERSTR=\"$(VERSIONSTR)\"
+-
+-#
+-# cxref options
+-#
+-REFOPT = -xref-all -index-all -html32
+-
+-#
+-# Comment out if you are not running SMP. Someone take this out of here
+-# when the SMP stuff gets moved out of the kernel Makefile.
+-# SMP = 1
+-# SMP_PROF = 1
+-
+-#
+-# add the following to get assembly listing
+-# -Wa,-alh,-L -g
+-
+-#
+-# get some version numbers
+-#
+-ifeq ($(LINUXVERSION),)
+- LINUXVERSION = $(shell uname -r)
+-endif
+-
+-VERSIONSTR = $(shell grep "define BACKEND_VERSION" $(SRC_DIR)/plustek_pp.c | cut -b25-50 )
+-
+-# Change it here or specify it on the "make" commandline
+-ifeq ($(HEADER_PATH),)
+-MACHTYPE = $(shell env | grep debian-linux | wc -l | sed 's/ //g')
+-ifeq ($(MACHTYPE),1)
+-# debian
+- HEADER_PATH = /usr/src/kernel-headers-$(LINUXVERSION)/include
+-else
+-# redhat, slackware
+- HEADER_PATH = /usr/src/linux/include
+-endif
+-# HEADER_PATH = /usr/include
+-endif
+-
+-ifeq ($(DEBUG),y)
+- DEBFLAGS = -O -g -DDEBUG # "-O" is needed to expand inlines
+-else
+- DEBFLAGS = -O2
+-endif
+-
+-#
+-# the new style reference
+-#
+-K24_HEADER_PATH = /lib/modules/$(LINUXVERSION)/build/include
+-
+-#
+-# try to autodetect if we can use the new style header include references
+-#
+-KERNEL_HEADERS = $(shell if test -d $(K24_HEADER_PATH); then \
+- echo $(K24_HEADER_PATH); \
+- else \
+- echo $(HEADER_PATH); \
+- fi; )
+-
+-#
+-# seems to be necessary for kernels 2.4.x
+-#
+-MODVERFILE = $(shell if [ -e $(KERNEL_HEADERS)/linux/modversions.h ]; then \
+- echo $(KERNEL_HEADERS)/linux/modversions.h ; \
+- else \
+- echo $(KERNEL_HEADERS)/linux/modsetver.h ; \
+- fi )
+-
+-MODFLAGS = -DMODULE
+-
+-#
+-# set MODVERSIONS if the kernel uses it
+-#
+-VERSUSED = $(shell grep 'define CONFIG_MODVERSIONS' \
+- $(KERNEL_HEADERS)/linux/autoconf.h | wc -l | sed 's/ //g')
+-ifeq ($(VERSUSED),1)
+- MODFLAGS += -DMODVERSIONS -include $(MODVERFILE)
+-endif
+-
+-
+-WARNFLAGS = -Wall -Wstrict-prototypes
+-CFLAGS = $(WARNFLAGS) $(OPT) -D__KERNEL__ -I$(KERNEL_HEADERS) -I$(INC_DIR) -I$(BACKEND) $(DEBFLAGS) $(MODFLAGS)
+-MODLIB = /lib/modules/$(LINUXVERSION)
+-
+-ifdef SMP
+-CFLAGS += -D__SMP__
+-
+-ifdef SMP_PROF
+-CFLAGS += -D__SMP_PROF__
+-endif
+-endif
+-
+-TARGET = pt_drv
+-
+-OBJ = $(TARGET).o
+-NAMES := dac detect genericio image map misc models io procfs
+-NAMES := $(NAMES) motor p9636 ptdrv scale tpa p48xx p12 p12ccd
+-NAMES := $(addprefix plustek-pp_, $(NAMES))
+-SRCS := $(addprefix $(SRC_DIR)/, $(NAMES))
+-SRCS := $(addsuffix .c, $(SRCS))
+-OBJS := $(addprefix $(OBJ_DIR)/, $(NAMES))
+-OBJS := $(addsuffix .o, $(OBJS))
+-INCS := scan dbg types scandata procs hwdefs sysdep
+-INCS := $(addsuffix .h, $(INCS))
+-HDRS = $(addprefix $(INC_DIR)/plustek-pp_, $(INCS))
+-
+-#
+-# the header files we need from the backend
+-#
+-BACKINCS := plustek-pp.h
+-BACKINCS := $(addprefix $(BACKEND)/, $(BACKINCS))
+-
+-group = "root"
+-mode = "644"
+-INST_DIR = /lib/modules/$(LINUXVERSION)/kernel/drivers/char
+-
+-info:
+- @clear
+- @echo "Makefile to create the Plustek-Scanner kernel-module:"
+- @echo "all ... builds the module"
+- @echo "all DEBUG=y ... builds the module with debug-messages enabled"
+- @echo "clean ... cleans up the show"
+- @echo "install ... installs the module to the library path"
+- @echo "uninstall ... removes the module from the library path"
+- @echo "load ... tries to load the module and creates device nodes"
+- @echo "unload ... unloads the module"
+-
+-
+-all: .depend chkdir $(OBJ)
+-
+-#
+-# create object directory
+-#
+-.PHONY : chkdir
+-chkdir:
+- @-$(MD) $(OBJ_DIR)
+- @-$(MD) $(DOC_DIR)
+-
+-$(OBJ): $(OBJS)
+- $(LD) -r $^ -o $@
+-
+-$(OBJS): Makefile $(HDRS) $(BACKINCS)
+-
+-$(OBJ_DIR)/%.o : $(SRC_DIR)/%.c
+- $(CC) $(CFLAGS) -c $< -o $@
+-
+-$(OBJ_DIR)/$(OBJ): VERSION1 VERSION0
+-
+-#
+-# copy the driver to the modules directory
+-#
+-install:
+- mkdir -p $(INST_DIR)
+- install -c -m $(mode) $(OBJ) $(INST_DIR)
+- /sbin/depmod -a
+-
+-#
+-# remove it
+-#
+-uninstall:
+- rm -f $(INST_DIR)/$(OBJ)
+-
+-#
+-# use modprobe to load the driver, remember to set the
+-# parameter in /etc/modules.conf (see sane-plustek_pp.man for more details)
+-#
+-load: $(INST_DIR)/$(OBJ)
+-# invoke modprobe with all arguments we got
+- /sbin/modprobe $(TARGET) || exit 1
+-
+-# Remove stale nodes and replace them, then give gid and perms
+- rm -f /dev/$(TARGET)*
+-
+-# when using the devfs support, we check the /dev/scanner entries
+-# and only create links to the devfs nodes
+-# at least we create one link
+- @if [ -e /dev/scanner/$(TARGET)* ]; then \
+- ln -s /dev/scanner/$(TARGET)0 /dev/$(TARGET); \
+- for name in `ls /dev/scanner | grep $(TARGET)`; do \
+- ln -s /dev/scanner/$$name /dev/$$name ; \
+- done \
+- else \
+- mknod /dev/$(TARGET) c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 0; \
+- mknod /dev/$(TARGET)0 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 0; \
+- mknod /dev/$(TARGET)1 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 1; \
+- mknod /dev/$(TARGET)2 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 2; \
+- mknod /dev/$(TARGET)3 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 3; \
+- \
+- chgrp $(group) /dev/$(TARGET)*; \
+- chmod $(mode) /dev/$(TARGET)*; \
+- fi
+-
+-#
+-# unload the driver
+-#
+-unload:
+- /sbin/modprobe -r $(TARGET) || exit 1
+-
+-# Remove stale nodes
+- rm -f /dev/$(TARGET)*
+-
+-#
+-# create reference docu
+-#
+-doc: chkdir
+- $(REF) $(REFOPT) $(INC_DIR)/*.h $(SRC_DIR)/*.c $(BACKEND)/plustek-share.h \
+- -D__KERNEL__ -I$(KERNEL_HEADERS) -I$(INC_DIR) -I$(BACKEND) $(MODFLAGS) \
+- -D_PTDRV_V1=$(VERSION1) -D_PTDRV_V0=$(VERSION0) -D_PTDRV_BUILD=$(BUILD) -O$(DOC_DIR)
+-
+-clean:
+- @-rm -f $(OBJ_DIR)/*.o .depend depend dep $(REF).* *.html $(TARGET).o
+- @-rm -rf $(OBJ_DIR)
+- @-rm -rf $(DOC_DIR)
+-
+-depend .depend dep:
+- $(CC) $(CFLAGS) -M $(SRCS) > $@
+-
+-ifeq (.depend,$(wildcard .depend))
+-#include .depend
+-endif
+Index: trunk/doc/plustek/Makefile.kernel26
+===================================================================
+--- trunk.orig/doc/plustek/Makefile.kernel26
++++ /dev/null
+@@ -1,124 +0,0 @@
+-# Makefile for the plustek scanner driver (kernel-module)
+-#
+-###############################################################################
+-
+-#
+-# retrieve the version numbers
+-#
+-ifeq ($(LINUXVERSION),)
+- LINUXVERSION = $(shell uname -r)
+-endif
+-LINUXRELEASE = $(shell uname -r | cut -d'.' -f3)
+-
+-ifeq ($(VERSIONSTR),)
+- ifeq ($(SUBDIRS),)
+- VERSIONSTR = $(shell grep "define BACKEND_VERSION" $(M)/plustek_pp.c | cut -b25-50 )
+- else
+- VERSIONSTR = $(shell grep "define BACKEND_VERSION" $(SUBDIRS)/plustek_pp.c | cut -b25-50 )
+- endif
+-endif
+-
+-#
+-# extra flags
+-#
+-EXTRA_CFLAGS += -D_PTDRV_VERSTR=\"$(VERSIONSTR)\"
+-
+-ifeq ($(DEBUG),y)
+- EXTRA_CFLAGS += -DDEBUG
+-endif
+-
+-#
+-# the module name
+-#
+-TARGET := pt_drv
+-MODULE := $(TARGET).ko
+-
+-#
+-# our files...
+-#
+-NAMES := dac detect genericio image map misc models io procfs
+-NAMES := $(NAMES) motor p9636 ptdrv scale tpa p48xx p12 p12ccd
+-NAMES := $(addprefix plustek-pp_, $(NAMES))
+-OBJS := $(addsuffix .o, $(NAMES))
+-
+-#
+-# now the kernel magic
+-#
+-ifneq ($(KERNELRELEASE),)
+-obj-m := $(TARGET).o
+-
+-$(TARGET)-objs := $(OBJS)
+-
+-else
+-KDIR := /lib/modules/$(shell uname -r)/build
+-PWD := $(shell pwd)
+-
+-default:
+- $(MAKE) -C $(KDIR) M=$(PWD) modules
+-endif
+-
+-#
+-# the installation stuff
+-#
+-group = "root"
+-mode = "644"
+-INST_DIR = /lib/modules/$(LINUXVERSION)/kernel/drivers/parport
+-
+-#
+-# copy the driver to the modules directory
+-#
+-install:
+- mkdir -p $(INST_DIR)
+- install -c -m $(mode) $(MODULE) $(INST_DIR)
+- /sbin/depmod -a
+-
+-#
+-#
+-#
+-uninstall:
+- rm -f $(INST_DIR)/$(MODULE)
+-
+-#
+-# use modprobe to load the driver, remember to set the
+-# parameter in /etc/conf.modules (see INSTALL for more details)
+-#
+-load: $(INST_DIR)/$(MODULE)
+-# invoke modprobe with all arguments we got
+- /sbin/modprobe $(TARGET) || exit 1
+-
+-# Remove stale nodes and replace them, then give gid and perms
+- rm -f /dev/$(TARGET)*
+-
+-# when using the devfs support, we check the /dev/scanner entries
+-# and only create links to the devfs nodes
+-# at least we create one link
+- @if [ -e /dev/scanner/$(TARGET)* ]; then \
+- ln -s /dev/scanner/$(TARGET)0 /dev/$(TARGET); \
+- for name in `ls /dev/scanner | grep $(TARGET)`; do \
+- ln -s /dev/scanner/$$name /dev/$$name ; \
+- done \
+- else \
+- mknod /dev/$(TARGET) c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 0; \
+- mknod /dev/$(TARGET)0 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 0; \
+- mknod /dev/$(TARGET)1 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 1; \
+- mknod /dev/$(TARGET)2 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 2; \
+- mknod /dev/$(TARGET)3 c `cat /proc/devices | sed -ne "s/\([0-9]*\) pt_drv/\1/p"` 3; \
+- \
+- chgrp $(group) /dev/$(TARGET)*; \
+- chmod $(mode) /dev/$(TARGET)*; \
+- fi
+-
+-#
+-# unload the driver
+-#
+-unload:
+- /sbin/modprobe -r $(TARGET) || exit 1
+-
+-# Remove stale nodes
+- rm -f /dev/$(TARGET)*
+-
+-#
+-# cleanup the show
+-#
+-clean:
+- @-rm -f *.o .depend depend dep $(MODULE) $(TARGET).o $(TARGET).mod.c .*.cmd
+Index: trunk/doc/plustek/Plustek-PARPORT.txt
+===================================================================
+--- trunk.orig/doc/plustek/Plustek-PARPORT.txt
++++ trunk/doc/plustek/Plustek-PARPORT.txt
+@@ -1,46 +1,10 @@
+ Plustek-PARPRORT.txt (2004-03-28) Gerhard Jäger <gerhard@gjaeger.de>
+ ====================================================================
+
+-
+ Beginning with SANE-1.0.13, there's a backend called plustek_pp.
+ This is for controlling Plustek parallel-port scanner and compatible
+ devices. For a full listing, see plustek_pp.desc.
+
+-This code formerly was available for creating the Linux kernelmodule
+-pt_drv. This should no longer be necessary. You should be able to use
++This code formerly was available for creating the Linux kernel module
++pt_drv. This is no longer be necessary. You should be able to use
+ the backend out of the box.
+-
+-
+-The kernel module
+------------------
+-
+-As it might be helpful to create and use the kernel-module, this way still
+-exists. It's possible to create this module out of the backend sources
+-in sane-backends/backend. Simply do (as root user)
+-
+-./MakeModule.sh
+-
+-Then the module should be compiled, installed and loaded.
+-
+-Add the following three lines to file /etc/modules.conf
+-
+-alias char-major-40 pt_drv
+-pre-install pt_drv modprobe -k parport
+-options pt_drv lampoff=180 warmup=15 port=0x378 lOffonEnd=0 mov=0 slowIO=1
+-
+-See man page for sane-plustek_pp ("man sane-plustek_pp") for explanation of
+-these options.
+-
+-Now "scanimage -L" should show something like this:
+-device `plustek:/dev/pt_drv' is a Plustek 9630P flatbed scanner
+-
+-
+-Known Problems:
+----------------
+-
+-Sometimes it is necessary to change the ioctl-interface between the
+-driver and the backend, in this case the version number of the communication
+-protocol will be changed and newer drivers won't work with older backends
+-and vice versa.
+-In this case (error -9019 in the SANE debug output!!) you have to recompile SANE
+-AND the driver (have a look at the installation procedure above).
+Index: trunk/doc/plustek/Plustek-USB.txt
+===================================================================
+--- trunk.orig/doc/plustek/Plustek-USB.txt
++++ trunk/doc/plustek/Plustek-USB.txt
+@@ -4,10 +4,7 @@ Plustek-USB.txt (2005-08-08) Gerhard Jä
+ NOTE:
+ -----
+
+-ALL YOU NEED TO RUN YOUR USB SCANNER IS ALREADY INCLUDED. THERE'S
+-NO NEED TO INSTALL THE KERNEL MODULE pt_drv. THIS ONE IS ONLY NEEDED
+-FOR THE PLUSTEK PARALLELPORT SCANNER.
+-
++ALL YOU NEED TO RUN YOUR USB SCANNER IS ALREADY INCLUDED.
+
+ List of all currently implemented devices
+ -----------------------------------------
+Index: trunk/doc/sane-plustek_pp.man
+===================================================================
+--- trunk.orig/doc/sane-plustek_pp.man
++++ trunk/doc/sane-plustek_pp.man
+@@ -9,18 +9,10 @@ The
+ library implements a SANE (Scanner Access Now Easy) backend that
+ provides access to Plustek ASIC 9600[1/3] and P9800[1/3] based
+ parallel port flatbed scanners.
+-The access of the scanner is either done directly by the backend
+-or via kernel module, called pt_drv which can be created out of
+-the
+-.B sane\-plustek_pp
+-backend code \- see also section
+-.B "BUILDING THE KERNEL MODULE"
+-for further information.
+
+ .SH "SUPPORTED DEVICES"
+
+-At present, the following scanners should work with this backend
+-and/or the kernel module:
++At present, the following scanners should work with this backend:
+ .PP
+ .B "PLUSTEK SCANNERS"
+ .PP
+@@ -112,18 +104,14 @@ BrightScan OpticPro OpticPro P12
+ .ft R
+
+ .SH "DEVICE NAMES"
+-This backend works in two modes, the so called "direct-mode"
+-and the "kernel-mode". In direct-mode, the user-space backend is
+-used, in kernel-mode, you should have a kernel-module named pt_drv
+-loaded.
+-This backends default device is:
++This backend's default device is:
+ .PP
+ .RS
+ .I 0x378
+ .RE
+ .PP
+-This "default device" will be used, if no configuration
+-file can be found. It is rather the base address of the parallel port
++This "default device" will be used if no configuration
++file can be found. It is the base address of the parallel port
+ on i386 machines.
+ .PP
+ As the backend supports up to four devices, it is possible to
+@@ -150,24 +138,13 @@ For a proper setup, you will need at lea
+ .I device 0x378
+ .RE
+ .PP
+-or
+-.RS
+-.I [kernel]
+-.br
+-.I device /dev/pt_drv
+-.RE
+-.PP
+ .I direct
+ tells the backend, that the following devicename (here
+ .IR 0x378 )
+ has to be interpreted as parallel port scanner device. In
+-fact it is the address to use, alternatively you can use
++fact it is the address to use. Alternatively you can use
+ .I /dev/parport0
+ if the backend has been compiled with libieee1284 support.
+-.I kernel
+-should only be used, when a kernel-module has been built
+-out of the backend sources. See below for more instructions
+-about this.
+ .PP
+ Further options:
+ .PP
+@@ -235,157 +212,6 @@ See the
+ file for examples.
+ .PP
+
+-.SH "BUILDING THE KERNEL MODULE"
+-As mentioned before, the
+-.B sane\-plustek_pp
+-backend code can also be compiled and installed as linux kernel module. To do so,
+-you will need the source-files of this sane\-backend installation.
+-Unpack this tar-ball and go to the directory:
+-.IR sane\-backends/doc/plustek .
+-Within this directory, you should find a script called:
+-.IR MakeModule.sh .
+-Now if your Linux kernelsources are installed correctly,
+-it should be possible to build, install and load the
+-module
+-.BR pt_drv .
+-.B Please note,
+-that the kernelsources need to be configured correctly.
+-Refer to your distributions
+-manual on how this is done. As root user, try
+-.PP
+-.I ./MakeModule.sh
+-.PP
+-the script will try and get all necessary information about your
+-running kernel and will lead you through the whole installation
+-process.
+-.br
+-.B Note: Installing and loading the can only be done as
+-superuser.
+-.PP
+-
+-.SH "KERNEL MODULE SETUP"
+-The configuration of the kernel module is done by providing
+-some or more options found below to the kernel module at
+-load time. This can be done by invoking
+-.BR insmod (8)
+-with the appropriate parameters or appending the options to the file
+-.I /etc/modules.conf (kernel < 2.6.x)
+-or
+-.I /etc/modprobe.conf (kernel >= 2.6.x)
+-.PP
+-.B
+-The Options:
+-.br
+-lampoff=lll
+-.RS
+-The value
+-.I lll
+-tells the driver, after how many seconds to
+-switch-off the lamp(s). The default value is 180.
+-0 will disable this feature.
+-.br
+-.B HINT:
+-Do not use a value that is too small, because often
+-switching on/off the lamps will reduce their lifetime.
+-.RE
+-.PP
+-port=ppp
+-.RS
+-.I ppp
+-specifies the port base address, where the scanner
+-is connected to. The default value is 0x378, which
+-is normally a standard.
+-.RE
+-.PP
+-warmup=www
+-.RS
+-.I www
+-specifies the time in seconds, how long a lamp has to be on,
+-until the driver will start to scan. The default value is 30.
+-.RE
+-.PP
+-lOffonEnd=e
+-.RS
+-.I e
+-specifies the behaviour when unloading the driver, 1 --> switch
+-lamps off, 0 --> do not change lamp status
+-.RE
+-.PP
+-slowIO=s
+-.RS
+-.I s
+-specifies which I/O functions the driver should use, 1 --> use
+-delayed functions, 0 --> use the non-delayed ones
+-.RE
+-.PP
+-forceMode=fm
+-.RS
+-.I fm
+-specifies port mode which should be used, 0 --> autodetection,
+-1 --> use SPP mode and 2 --> use EPP mode
+-.RE
+-.PP
+-mov=m
+-.RS
+-.TP
+-.IR m " = 0"
+-default: no override
+-.TP
+-.IR m " = 1"
+-OpticPro 9630PL override (works if OP9630
+-has been detected) forces legal size (14")
+-.TP
+-.IR m " = 2"
+-Primax 4800Direct override (works if OP600
+-has been detected) swaps red/green color
+-.TP
+-.IR m " = 3"
+-OpticPro 9636 override (works if OP9636 has
+-been detected) disables backends
+-transparency/negative capabilities
+-.TP
+-.IR m " = 4"
+-OpticPro 9636P override (works if OP9636 has
+-been detected) disables backends
+-transparency/negative capabilities
+-.TP
+-.IR m " = 5"
+-OpticPro A3I override (works if OP12000 has
+-been detected) enables A3 scanning
+-.TP
+-.IR m " = 6"
+-OpticPro 4800P override (works if OP600
+-has been detected) swaps red/green color
+-.TP
+-.IR m " = 7"
+-Primax 4800Direct 30bit override (works if
+-OP4830 has been detected)
+-.RE
+-.PP
+-Sample entry for file
+-.IR /etc/modules.conf :
+-.PP
+-.RS
+-alias char\-major\-40 pt_drv
+-.br
+-pre-install pt_drv modprobe -k parport
+-.br
+-options pt_drv lampoff=180 warmup=15 port=0x378 lOffonEnd=0 mov=0 slowIO=0 forceMode=0
+-.RE
+-.PP
+-For multidevice support, simply add values separated by commas to
+-the different options
+-.PP
+-.RS
+-options pt_drv port=0x378,0x278 mov=0,4 slowIO=0,1 forceMode=0,1
+-.RE
+-.PP
+-Remember to call
+-.BR depmod (8)
+-after changing
+-.IR /etc/conf.modules .
+-.PP
+-
+ .SH "PARALLEL PORT MODES"
+ .PP
+ The current driver works best, when the parallel port
+@@ -423,13 +249,6 @@ The static library implementing this bac
+ .I @LIBDIR@/libsane\-plustek_pp.so
+ The shared library implementing this backend (present on systems that
+ support dynamic loading).
+-.TP
+-.I /lib/modules/<Kernel-Version>/kernel/drivers/parport/pt_drv.o
+-The Linux kernelmodule for kernels < 2.6.x.
+-.TP
+-.I /lib/modules/<Kernel-Version>/kernel/drivers/parport/pt_drv.ko
+-The Linux kernelmodule for kernels >= 2.6.x.
+-.PP
+
+ .SH ENVIRONMENT
+ .TP
diff --git a/debian/patches/0195-genesys_fix_total_file_size_exceeding.patch b/debian/patches/0195-genesys_fix_total_file_size_exceeding.patch
new file mode 100644
index 0000000..4b95241
--- /dev/null
+++ b/debian/patches/0195-genesys_fix_total_file_size_exceeding.patch
@@ -0,0 +1,100 @@
+Description: Fix out off memory on high resultions
+Origin: upstream, https://gitlab.com/sane-project/backends/-/merge_requests/697
+Bug: https://gitlab.com/sane-project/backends/-/issues/580
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942176
+Forwarded: no
+Last-Update: 2022-03-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/genesys/gl124.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl124.cpp
++++ trunk/backend/genesys/gl124.cpp
+@@ -745,7 +745,7 @@ void CommandSetGl124::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+
+ DBG(DBG_info, "%s: total bytes to send to frontend = %zu\n", __func__,
+ dev->total_bytes_to_read);
+Index: trunk/backend/genesys/gl646.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl646.cpp
++++ trunk/backend/genesys/gl646.cpp
+@@ -817,7 +817,8 @@ void CommandSetGl646::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t) session.output_line_bytes_requested
++ * (size_t) session.params.lines;
+
+ /* select color filter based on settings */
+ regs->find_reg(0x04).value &= ~REG_0x04_FILTER;
+Index: trunk/backend/genesys/gl841.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl841.cpp
++++ trunk/backend/genesys/gl841.cpp
+@@ -920,7 +920,7 @@ dummy \ scanned lines
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+ if (session.use_host_side_gray) {
+ dev->total_bytes_to_read /= 3;
+ }
+Index: trunk/backend/genesys/gl842.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl842.cpp
++++ trunk/backend/genesys/gl842.cpp
+@@ -568,7 +568,7 @@ void CommandSetGl842::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+ }
+
+ ScanSession CommandSetGl842::calculate_scan_session(const Genesys_Device* dev,
+Index: trunk/backend/genesys/gl843.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl843.cpp
++++ trunk/backend/genesys/gl843.cpp
+@@ -1041,7 +1041,7 @@ void CommandSetGl843::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+
+ DBG(DBG_info, "%s: total bytes to send = %zu\n", __func__, dev->total_bytes_to_read);
+ }
+Index: trunk/backend/genesys/gl846.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl846.cpp
++++ trunk/backend/genesys/gl846.cpp
+@@ -658,7 +658,7 @@ void CommandSetGl846::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+
+ DBG(DBG_info, "%s: total bytes to send = %zu\n", __func__, dev->total_bytes_to_read);
+ }
+Index: trunk/backend/genesys/gl847.cpp
+===================================================================
+--- trunk.orig/backend/genesys/gl847.cpp
++++ trunk/backend/genesys/gl847.cpp
+@@ -624,7 +624,7 @@ void CommandSetGl847::init_regs_for_scan
+ dev->session = session;
+
+ dev->total_bytes_read = 0;
+- dev->total_bytes_to_read = session.output_line_bytes_requested * session.params.lines;
++ dev->total_bytes_to_read = (size_t)session.output_line_bytes_requested * (size_t)session.params.lines;
+
+ DBG(DBG_info, "%s: total bytes to send = %zu\n", __func__, dev->total_bytes_to_read);
+ }
diff --git a/debian/patches/0200-disable-check-equal-stderr.patch b/debian/patches/0200-disable-check-equal-stderr.patch
new file mode 100644
index 0000000..3f27ca5
--- /dev/null
+++ b/debian/patches/0200-disable-check-equal-stderr.patch
@@ -0,0 +1,23 @@
+Description: Build fails on GCC12:
+.
+minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const std::vector<long unsigned int>’)
+minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const std::vector<unsigned char>’)
+minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const genesys::Pixel’)
+minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const genesys::RawPixel’)
+minigtest.h:43:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const genesys::PixelFormat’)
+.
+Simply suppressing the print of the mismatch is the lowest effort workaround.
+Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
+Bug: 1013034
+Forwarded: No
+
+--- a/testsuite/backend/genesys/minigtest.h
++++ b/testsuite/backend/genesys/minigtest.h
+@@ -40,7 +40,6 @@
+ s_num_failures++;
+ std::cerr << "FAILURE at ";
+ print_location(std::cerr, function, path, line);
+- std::cerr << " :\n" << t << " != " << u << "\n\n";
+ } else {
+ s_num_successes++;
+ std::cerr << "SUCCESS at ";
diff --git a/debian/patches/0600-scanimage_manpage.patch b/debian/patches/0600-scanimage_manpage.patch
new file mode 100644
index 0000000..6e8cc23
--- /dev/null
+++ b/debian/patches/0600-scanimage_manpage.patch
@@ -0,0 +1,21 @@
+Description: Add remark to options.
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418630
+Forwarded: not-needed
+Last-Update: 2015-01-18
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/doc/scanimage.man
+===================================================================
+--- trunk.orig/doc/scanimage.man
++++ trunk/doc/scanimage.man
+@@ -75,6 +75,9 @@ To print all available options:
+ scanimage \-h
+
+ .SH OPTIONS
++\fBRemark:\fR Parameter are defined by the backends. So are \-\-mode Gray and \-\-mode Grayscale in use.
++Please read the backend documentation first.
++
+ Parameters are separated by a blank from single-character options (e.g.
+ .BR "\-d epson" )
+ and by a "=" from multi-character options (e.g.
diff --git a/debian/patches/0605-fix_groff-warnings.patch b/debian/patches/0605-fix_groff-warnings.patch
new file mode 100644
index 0000000..1e0ac17
--- /dev/null
+++ b/debian/patches/0605-fix_groff-warnings.patch
@@ -0,0 +1,20 @@
+Description: Fix some groff warnings
+Author: Jörg Frings-Fürst <debian@jff.email>
+Bug: https://gitlab.com/sane-project/backends/-/issues/433
+Last-Update: 2021-02-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/doc/sane-artec_eplus48u.man
+===================================================================
+--- trunk.orig/doc/sane-artec_eplus48u.man
++++ trunk/doc/sane-artec_eplus48u.man
+@@ -44,8 +44,7 @@ or
+ You can find it on the installation CD that was provided by the manufacturer,
+ normally in the directory Win98, WinMe or similar.
+ If the Windows-driver is installed on your computer, then you can also
+-find the firmware file under
+-.IR c:\\windows\\system32\\drivers .
++find the firmware file under c:\\windows\\system32\\drivers.
+
+ .SH CONFIGURATION
+ The contents of the
diff --git a/debian/patches/0705-kfreebsd.patch b/debian/patches/0705-kfreebsd.patch
new file mode 100644
index 0000000..34a510b
--- /dev/null
+++ b/debian/patches/0705-kfreebsd.patch
@@ -0,0 +1,17 @@
+description: Fix build failure on kfreebsd (closes: #680234)
+author: Petr Salinger
+Index: trunk/backend/umax_pp_low.c
+===================================================================
+--- trunk.orig/backend/umax_pp_low.c
++++ trunk/backend/umax_pp_low.c
+@@ -72,8 +72,10 @@
+ #endif
+
+ #ifdef HAVE_MACHINE_CPUFUNC_H
++#ifndef __GLIBC__
+ #include <machine/cpufunc.h>
+ #endif
++#endif
+
+ #ifdef HAVE_I386_SET_IOPERM
+ #include <machine/sysarch.h>
diff --git a/debian/patches/0725-fix_link_60-libsane_rule.patch b/debian/patches/0725-fix_link_60-libsane_rule.patch
new file mode 100644
index 0000000..0b424e2
--- /dev/null
+++ b/debian/patches/0725-fix_link_60-libsane_rule.patch
@@ -0,0 +1,33 @@
+Description: Fix directory for 20-sane.hwdb
+Author: Jörg Frings-Fürst <debian@jff.email>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916239
+Forwarded: not-needed
+Last-Update: 2019-04-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/tools/sane-desc.c
+===================================================================
+--- trunk.orig/tools/sane-desc.c
++++ trunk/tools/sane-desc.c
+@@ -3649,7 +3649,7 @@ print_udevhwdb_header (void)
+ ("#\n"
+ "# udev rules file for supported USB and SCSI devices\n"
+ "#\n"
+- "# For the list of supported USB devices see /usr/lib/udev/hwdb.d/20-sane.hwdb\n"
++ "# For the list of supported USB devices see /lib/udev/hwdb.d/20-sane.hwdb\n"
+ "#\n"
+ "# The SCSI device support is very basic and includes only\n"
+ "# scanners that mark themselves as type \"scanner\" or\n"
+Index: trunk/testsuite/tools/data/udev+hwdb.ref
+===================================================================
+--- trunk.orig/testsuite/tools/data/udev+hwdb.ref
++++ trunk/testsuite/tools/data/udev+hwdb.ref
+@@ -3,7 +3,7 @@
+ #
+ # udev rules file for supported USB and SCSI devices
+ #
+-# For the list of supported USB devices see /usr/lib/udev/hwdb.d/20-sane.hwdb
++# For the list of supported USB devices see /lib/udev/hwdb.d/20-sane.hwdb
+ #
+ # The SCSI device support is very basic and includes only
+ # scanners that mark themselves as type "scanner" or
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d52a695
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,25 @@
+#0011-test.patch
+0195-genesys_fix_total_file_size_exceeding.patch
+0035-trim-libraries-in-sane-backends.pc.in.patch
+0040-remove_git.patch
+0100-source_spelling.patch
+0125-multiarch_dll_search_path.patch
+0175-fix_tests.patch
+0140-avahi.patch
+0145-avahi.patch
+#0600-scanimage_manpage.patch
+0705-kfreebsd.patch
+0725-fix_link_60-libsane_rule.patch
+0150-i386-test.patch
+0155-hurd_PATH_MAX.patch
+0045-disable_lock_test_at_build_time.patch
+0050-Use-python3-shebang.patch
+#0055-Fix_build_error.patch
+0060-cross.patch
+#0165-respect_local_only_parameter.patch
+#0170-return_empty_list_when_local_devices_requested.patch
+0605-fix_groff-warnings.patch
+#0180-gt68xx_fix_use-after-free_two_memleaks.patch
+0185-Change_output_from_sane-find-scanner.patch
+#0190-remove-kernel-driver-for-plustek_pp.patch
+0200-disable-check-equal-stderr.patch
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..1b73720
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] sane-utils.templates
diff --git a/debian/po/ca.po b/debian/po/ca.po
new file mode 100644
index 0000000..ef29021
--- /dev/null
+++ b/debian/po/ca.po
@@ -0,0 +1,116 @@
+# sane-backends translation to Catalan
+# Copyright (C) 2010 Software in the Public Interest
+# This file is distributed under the same license as the PACKAGE package.
+# Innocent De Marchi <tangram.peces@gmail.com>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: 1.0.22-6\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2011-09-30 19:07+0100\n"
+"Last-Translator: Innocent De Marchi <tangram.peces@gmail.com>\n"
+"Language-Team: catalan <debian-l10n-catalan@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Catalan\n"
+"X-Poedit-Country: SPAIN\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Activar saned com un servidor independent?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"El servidor saned, quan està activada, permet tenir els escànners "
+"disponibles a la xarxa."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Hi ha dues maneres d'executar saned:\n"
+" - com un servei d'inetd, iniciat pel super servidor inetd. En aquesta "
+"modalitat,\n"
+"saned s'inicia en la demanda quan un client es connecta al servidor;\n"
+" - com un dimoni independent, en l'arrencada del sistema. En aquesta "
+"modalitat, saned\n"
+"s'executa en segon pla per si mateix i escolta les connexions dels clients."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Quan s'executa en mode independent, saned s'anuncia a la xarxa i pot ser "
+"detectat automàticament pels clients SANE sense que els clients hagin "
+"d'ésser configurats. Tot i així, és necessari configurar el servidor per "
+"acceptar connexions dels seus clients. Aquesta característica és "
+"experimental i requereix que el dimoni Avahi estigui en funcionament."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Acceptar aquesta opció si desitja fer ús d'aquesta funció."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Afegir l'usuari saned al grup escànner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"El servidor saned, quan està activat, fa que els escànners estiguin "
+"disponibles a la xarxa. Mitjançant l'aplicació de diferents permisos als "
+"diferents escànners connectats a la vostra màquina, podeu controlar quins "
+"estaran disponibles a la xarxa."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Llegiu «/usr/share/doc/sane-utils/README.Debian» per a més detalls sobre la "
+"forma d'administrar els permisos de saned. Per defecte, saned s'executa sota "
+"l'usuari i grup saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Acceptau aquesta opció si voleu que tots els escànners estiguin disponibles "
+"a la xarxa sense restriccions."
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 0000000..171a23e
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,110 @@
+# Czech translation of sane-backends debconf messages.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sane-backends package.
+# Miroslav Kure <kurem@debian.cz>, 2008-2010
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-09-28 12:02+0200\n"
+"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Povolit saned jako samostatný server?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Pokud je saned server povolený, zpřístupňuje dostupné scannery přes síť."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Existují dva způsoby spouštění saned:\n"
+" - jako služba inetd, kterou startuje superserver inetd. V tomto režimu je "
+"saned spuštěn pouze v případě, že se klient snaží připojit k serveru;\n"
+" - jako samostatný daemon spouštěný při zavádění systému. V tomto režimu "
+"běží saned celou dobu na pozadí a sám naslouchá příchozím spojením."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Při spuštění jako samostatný daemon se saned sám nabízí na síti a SANE "
+"klienti ho mohou rozpoznat automaticky, bez dalšího nastavování na straně "
+"klienta. Stále však budete muset nastavit server, aby přijímal příchozí "
+"spojení od klientů. Tato vlastnost je experimentální a vyžaduje běžícího "
+"daemona Avahi."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Chcete-li této vlastnosti využít, odpovězte kladně."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Přidat uživatele saned do skupiny scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Pokud je saned server povolený, zpřístupňuje dostupné scannery přes síť. "
+"Nastavením různých přístupových oprávnění ke scannerům připojeným k tomuto "
+"počítači můžete řídit, které scannery mají být přístupné přes síť."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Podrobnosti o správě oprávnění pro saned se dočtete v /usr/share/doc/sane-"
+"utils/README.Debian. Ve výchozím nastavení se saned spouští pod uživatelem i "
+"skupinou saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Chcete-li zpřístupnit přes síť všechny scannery bez omezení, tuto možnost "
+"povolte."
diff --git a/debian/po/da.po b/debian/po/da.po
new file mode 100644
index 0000000..399dd0c
--- /dev/null
+++ b/debian/po/da.po
@@ -0,0 +1,111 @@
+# Danish translation sane-backends.
+# Copyright (C) 2010 sane-backends & nedenstående oversættere.
+# This file is distributed under the same license as the sane-backends package.
+# Joe Hansen <joedalton2@yahoo.dk>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-09 13:26+0100\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org> \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Aktiver saned som en enkeltstående server?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Saned-serveren, når aktiveret, gør skannere tilgængelige over netværket."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Der er to måder at køre saned:\n"
+" - som en inetd-tjeneste, startet af inetd-superserveren. I denne\n"
+"tilstand startes saned efter behov, når en klient forbinder til serveren;\n"
+" - som en enkeltsående dæmon, igangsat ved systemopstart. I denne tilstand,\n"
+"kører saned i baggrunden og lytter efter klientforbindelser."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Når kørt i enkeltstående tilstand, reklamerer saned for sig selv på "
+"netværket og kan detekteres automatisk af SANE-klienter uden nogen "
+"konfiguration fra klientsiden. Du skal stadig konfigurere serveren til at "
+"acceptere forbindelserne fra dine klienter. Denne funktion er eksperimentel "
+"og kræver en kørende Avahidæmon."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Accepter denne indstilling hvis du ønsker at bruge denne funktion."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Tilføj sanedbruger til skannergruppen?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Sanedserveren, når aktiveret, gør skannere tilgængelige over netværket. Ved "
+"at anvende forskellige rettigheder for de forskellige skannere tilsluttet "
+"din maskine, kan du kontrollere hvilke, som vil være tilgængelige over "
+"netværket."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Læs /usr/share/doc/sane-utils/README.Debian for detaljer om hvordan du "
+"håndterer rettigheder for saned. Som standard køres saned under "
+"sanedbrugeren og -gruppen."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Accepter denne indstilling hvis du ønsker at gøre alle dine skannere "
+"tilgængelige over netværket uden begrænsninger."
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 0000000..175e51c
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,114 @@
+# Translation of sane-backends debconf templates to German
+# Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2008, 2009.
+# This file is distributed under the same license as the sane-backends package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.20-11\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2009-12-27 10:20+0100\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: de <debian-l10n-german@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Aktiviere Saned als Einzel-Server?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Der Saned-Server stellt Scanner über das Netz zu Verfügung, wenn er "
+"aktiviert ist."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Es gibt zwei Arten, Saned zu betreiben:\n"
+" - als Inetd-Service, gestartet über den Inetd-Superserver. In diesem Modus\n"
+"wird Saned nach Bedarf gestartet, wenn sich ein Client mit dem Server\n"
+"verbindet.\n"
+" - als Einzel-Server, gestartet beim Systemstart. In diesem Modus läuft "
+"Saned\n"
+" selbst im Hintergrund und wartet auf Anfragen von Clients."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Im Einzel-Server-Modus macht sich Saned über das Netz bekannt und kann von "
+"SANE-Clients ohne Konfiguration auf der Clientseite automatisch erkannt "
+"werden. Sie müssen dennoch den Server konfigurieren, damit er Verbindungen "
+"von den Clients akzeptiert. Diese Funktionalität ist experimentell und "
+"benötigt einen laufenden Avahi-Daemon."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr ""
+"Akzeptieren Sie diese Option, falls Sie diese Funktionalität nutzen wollen."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Saned-Benutzer zu der Scanner-Gruppe hinzufügen?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Falls er aktiviert wird, stellt der Saned-Server Scanner über das Netz "
+"bereit. Durch Verteilen verschiedener Rechte auf verschiedene Scanner an "
+"Ihrer Maschine können Sie steuern, welche davon über Netz bereitgestellt "
+"werden."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Lesen Sie /usr/share/doc/sane-utils/README.Debian für Details über die "
+"Rechteverwaltung für Saned. Standardmäßig läuft Saned unter dem saned-"
+"Benutzer und dessen Gruppe."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Akzeptieren Sie diese Option, falls Sie alle Ihre Scanner über das Netz ohne "
+"Einschränkungen zur Verfügung stellen wollen."
diff --git a/debian/po/es.po b/debian/po/es.po
new file mode 100644
index 0000000..116b5b4
--- /dev/null
+++ b/debian/po/es.po
@@ -0,0 +1,140 @@
+# sane-backends translation to spanish
+# Copyright (C) 2010 Software in the Public Interest
+# This file is distributed under the same license as the sane-backends package.
+#
+# Changes:
+# - Initial translation
+# Ignacio Mondino <ignacio.mondino@gmail.com>, 2008
+#
+# - Updates
+# Camaleón <noelamac@gmail.com>, 2010
+#
+# Traductores, si no conoce el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+# - El proyecto de traducción de Debian al español
+# http://www.debian.org/intl/spanish
+# especialmente las notas de traducción en
+# http://www.debian.org/intl/spanish/notas
+#
+# - La guía de traducción de po's de debconf:
+# /usr/share/doc/po-debconf/README-trans
+# o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends_1.0.21-4\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-10 14:03+0100\n"
+"Last-Translator: Camaleón <noelamac@gmail.com>\n"
+"Language-Team: Debian Spanish team <debian-l10n-spanish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "¿Desea activar saned como un servidor independiente?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Se puede acceder a los escáneres a través de la red cuando se activa el "
+"servidor saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Hay dos maneras de ejecutar saned:\n"
+" - como un servicio inetd, iniciado por el súper servidor inetd. En este "
+"modo,\n"
+"saned se inicia bajo demanda cada vez que el cliente intenta conectarse al "
+"servidor;\n"
+" - como un demonio independiente, lanzado al inicio del sistema. En este "
+"modo, saned\n"
+"se ejecuta en segundo plano a sí mismo y escucha las conexiones de los "
+"clientes."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"En modo independiente, saned se anuncia a sí mismo en la red y puede "
+"detectarse automáticamente por los clientes SANE sin configuración por parte "
+"de los mismos. Aun así, será necesario que configure el servidor para "
+"aceptar conexiones de los clientes. Esta característica es experimental y "
+"necesita que el demonio Avahi esté en ejecución."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Acepte esta opción si desea utilizar esta característica."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "¿Desea agregar al usuario saned al grupo scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Se puede acceder a los escáneres a través de la red cuando está activado el "
+"servidor saned. Puede controlar qué dispositivos se ofrecerán de esta forma "
+"aplicando distintos permisos a los distintos escáneres conectados a su "
+"equipo."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Consulte «/usr/share/doc/sane-utils/README.Debian» para obtener detalles "
+"sobre cómo gestionar los permisos para saned. De manera predeterminada, "
+"saned se ejecuta con el usuario y grupo saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Acepte esta opción si desea que todos los escáneres estén disponibles a "
+"través de la red sin restricciones."
diff --git a/debian/po/eu.po b/debian/po/eu.po
new file mode 100644
index 0000000..4760ab0
--- /dev/null
+++ b/debian/po/eu.po
@@ -0,0 +1,116 @@
+# translation of sane-backends_1.0.21-4.1_eu.po to Basque
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Piarres Beobide <pi@beobide.net>, 2008.
+# Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>, 2010.
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends_1.0.21-4.1_eu\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-09 13:12+0200\n"
+"Last-Translator: Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>\n"
+"Language-Team: Basque <debian-l10n-basque@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Saned bakarkako zerbitzari gisa gaitu?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Saned zerbitzariak, gaituta dagoenean, eskanerrak sarearen bidez eskuragarri "
+"egiten ditu."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Saned exekutatzeko bi modu daude:\n"
+" - inetd zerbitzu gisa, inetd superzerbitzariak abiarazita. Modu honetan\n"
+"saned behar denean inetd bidez abiaraziko da bezero batek zerbitzarira "
+"konektatzen saiatzean;\n"
+" - bakarkako deabru gisa, sistemaren abioan abiarazita. Modu honetan, saned\n"
+"atzeko planoan exekutatzen da eta bezeroen konexioei itxoiten die."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Bakarkako moduan exekutatzean, saned-ek bere burua sarean aurkezten du eta "
+"automatikoki atzeman dezakete SANE bezeroek konfigurazio berezirik gabe. Zuk "
+"zerbitzaria konfiguratu behar duzu bezeroetatik konexioak onartzeko. "
+"Eginbide hau esperimentala da, eta Avahi daemona exekutatzen egotea eskatzen "
+"du."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Onartu aukera hau eginbide hau erabiltzea nahi baduzu."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Gehitu saned erabiltzailea scanner taldera?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Saned zerbitzariak, gaituta dagoenean, eskanerrak sarearen bidez erabilgarri "
+"egiten ditu. Zure makinara konektatuta dagoen eskaner bakoitzari baimen "
+"desberdinak ezarriz horietariko zein sarearen bidez erabilgarri izango diren "
+"kontrola dezakezu."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Irakurri /usr/share/doc/sane-utils/README.Debian saned-eko baimen "
+"kudeaketari buruz xehetasun gehiagorako. Lehenetsi gisa saned zerbitzaria "
+"saned erabiltzaile eta taldearekin exekutatzen da."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Onartu aukera hau zure eskaner guztiak sarearen bidez eta mugarik gabe "
+"erabilgarri egin bahi badituzu."
diff --git a/debian/po/fi.po b/debian/po/fi.po
new file mode 100644
index 0000000..023d88d
--- /dev/null
+++ b/debian/po/fi.po
@@ -0,0 +1,114 @@
+# Esko Arajärvi <edu@iki.fi>, 2010.
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-17 21:36+0300\n"
+"Last-Translator: Esko Arajärvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Finnish\n"
+"X-Poedit-Country: FINLAND\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Ajetaanko sanedia itsenäisenä palvelimena?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Käytössä ollessaan saned-palvelin tarjoaa kuvanlukijat käytettäviksi verkon "
+"yli."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Ohjelmaa saned voidaan ajaa kahdella eri tavalla:\n"
+" - inetd-palveluna, jolloin se käynnistetään inetd-palvelimen\n"
+" avulla, kun asiakasohjelma ottaa yhteyden palvelimeen.\n"
+" - itsenäisenä palvelimena, joka käynnistetään järjestelmän\n"
+" käynnistyessä. Tällöin saned pyörii taustaprosessina\n"
+" jatkuvasti ja kuuntelee asiakkaiden yhteydenottoja."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Ajettaessa itsenäisenä prosessina saned kertoo itsestään verkossa ja\n"
+"SANE-asiakkaat voivat havaita sen automaattisesti ilman erityisiä\n"
+"asetuksia asiakasohjelmassa. Palvelin tulee edelleen asettaa hyväksymään\n"
+"asiakkaiden yhteydenotot. Tämä ominaisuus on koekäytössä ja vaatii\n"
+"Avahi-taustaohjelman."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Valitse tämä vaihtoehto, jos haluat käyttää tätä ominaisuutta."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Lisätäänkö saned-käyttäjä ryhmään scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Ollessaan käytössä saned-palvelin mahdollistaa kuvanlukijoiden käytön verkon "
+"yli. "
+"Asettamalla eri oikeuksia järjestelmään kytketyille kuvanlukijoille voidaan "
+"valita mitkä niistä ovat käytettävissä verkon kautta."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Tiedostossa /usr/share/doc/sane-utils/README.Debian on lisätietoja "
+"oikeuksien hallinnasta. Oletuksena saned ajetaan käyttäjällä ja ryhmällä "
+"saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Valitse tämä vaihtoehto, jos kaikki kuvanlukijat halutaan asettaa "
+"käytettäväksi "
+"verkon yli ilman rajoituksia."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 0000000..1150115
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,118 @@
+# Translation of sane-backends debconf templates to French
+# Copyright (C) 2008 Christian Perrier <bubulle@debian.org>
+# This file is distributed under the same license as the sane-backends package.
+#
+# Christian Perrier <bubulle@debian.org>, 2008, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2009-12-29 14:10+0100\n"
+"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Faut-il activer le serveur « saned » ?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Le serveur « saned », une fois activé, rend disponibles les scanners sur le "
+"réseau."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Il existe deux méthodes pour exécuter le serveur :\n"
+" - via le superserveur inetd : dans ce mode, le serveur est lancé\n"
+" à la demande quand un client se connecte ; \n"
+" - en tant que démon autonome, lancé au démarrage du système : dans\n"
+" ce mode, le serveur fonctionne en permanence en tâche de fond, en\n"
+" attente des connexions des clients."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"En mode autonome, le démon s'annonce sur le réseau et peut alors être "
+"automatiquement détecté par les clients SANE sans nécessiter de "
+"configuration particulière de ces clients. Il restera nécessaire de "
+"configurer le serveur pour qu'il accepte les connexions des clients. Cette "
+"fonctionnalité est expérimentale et nécessite un démon Avahi opérationnel."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr ""
+"Si vous choisissez cette option, le serveur sera lancé au démarrage du "
+"système."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Faut-il ajouter l'utilisateur « saned » au groupe « scanner » ?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Lorsque le serveur saned est activé, les scanners deviennent accessibles via "
+"le réseau. Il est possible d'autoriser ou non l'accès via le réseau aux "
+"différents scanners de cette machine, en modifiant les permissions de chacun "
+"d'eux."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Veuillez lire le fichier /usr/share/doc/sane-utils/README.Debian pour plus "
+"d'informations sur la gestion des permissions pour saned. Par défaut, le "
+"démon est exécuté avec les privilèges de l'utilisateur et du groupe "
+"« saned »."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Si vous choisissez cette option, tous les scanners deviendront accessibles "
+"via le réseau sans restriction."
diff --git a/debian/po/gl.po b/debian/po/gl.po
new file mode 100644
index 0000000..eb3946b
--- /dev/null
+++ b/debian/po/gl.po
@@ -0,0 +1,125 @@
+# Galician translation of sane-backends's debconf templates
+# This file is distributed under the same license as the sane-backends package.
+# Jacobo Tarrio <jtarrio@debian.org>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2008-05-06 22:50+0100\n"
+"Last-Translator: Jacobo Tarrio <jtarrio@debian.org>\n"
+"Language-Team: Galician <proxecto@trasno.net>\n"
+"Language: gl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "¿Activar saned coma un servidor autónomo?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"O servidor saned, cando está activado, deixa os escáneres dispoñibles pola "
+"rede."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+#, fuzzy
+#| msgid ""
+#| "There are two ways of running saned:\n"
+#| " - as an inetd service, started by the inetd superserver. In this mode,\n"
+#| "saned is started as needed by inetd whenever a client tries to connect to "
+#| "the server;\n"
+#| " - as a standalone daemon, started at system boot. In this mode, saned\n"
+#| "runs in the background all by itself and listens for client connections."
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Hai dúas maneiras de executar saned:\n"
+" - coma un servizo de inetd, iniciado polo superservidor inetd.\n"
+" Neste modo, saned iníciase cando sexa necesario cada vez que\n"
+" un cliente tente conectarse ao servidor;\n"
+" - coma un servizo autónomo, que se inicia ao arrincar o sistema.\n"
+" Neste modo, saned execútase en segundo plano e espera\n"
+" conexións por parte dos clientes."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+#, fuzzy
+#| msgid ""
+#| "When run in standalone mode, saned advertises itself on the network and "
+#| "can be detected automatically by the SANE clients with no configuration "
+#| "on the client side. You still need to configure the server to accept "
+#| "connections from your clients."
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Ao executalo en modo autónomo, saned anúnciase na rede e os clientes SANE "
+"pódeno detectar automaticamente sen necesidade de os configurar. Aínda ha "
+"ter que configurar o servidor para aceptar conexións dos clientes."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Acepte esta opción se quere empregar esta funcionalidade."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "¿Engadir saned ao grupo do escáner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"O servidor saned, cando está activado, fai que os escáneres estean "
+"dispoñibles pola rede. Aplicando distintos permisos aos diferentes escáneres "
+"conectados á máquina, pódense controlar cales han estar dispoñibles pola "
+"rede."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Consulte /usr/share/doc/sane-utils/README.Debian para máis detalles sobre "
+"como xestionar os permisos de saned. Por defecto, saned execútase co usuario "
+"e grupo \"saned\"."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Acepte esta opción se quere que tódolos escáneres estean dispoñibles pola "
+"rede sen restricións."
diff --git a/debian/po/it.po b/debian/po/it.po
new file mode 100644
index 0000000..83db4bd
--- /dev/null
+++ b/debian/po/it.po
@@ -0,0 +1,112 @@
+# Translation of sane-backends debconf templates to Italian
+# This file is distributed under the same license as the sane-backends package.
+# Luca Monducci <luca.mo@tiscali.it>, 2008-2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.21\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-08-20 16:35+0200\n"
+"Last-Translator: Luca Monducci <luca.mo@tiscali.it>\n"
+"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Attivare saned come servizio autonomo?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Il server saned, quando attivo, rende gli scanner disponibili tramite la "
+"rete."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Il server può essere eseguito in due modalità:\n"
+" - come servizio di inetd, attivato dal superserver inetd. In questa\n"
+" modalità saned è attivato su richiesta quando un client si connette\n"
+" al server;\n"
+" - come demone autonomo, attivato all'avvio del sistema. In questa\n"
+" modalità saned è sempre attivo e in attesa delle connessioni dei\n"
+" client."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"In modalità autonoma, saned si annuncia da solo sulla rete e può essere "
+"rilevato automaticamente dai client SANE senza configurare i client. È "
+"comunque necessario configurare il server per accettare le connessioni dai "
+"client. Questa funzionalità è sperimentale e richiede che il demone Avahi "
+"sia attivo."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Accettare per utilizzare questa funzione."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Aggiungere l'utente saned al gruppo scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Il server saned, quando attivo, rende gli scanner disponibili tramite la "
+"rete. È possibile applicare permessi diversi a ogni scanner collegato alla "
+"macchina in modo da controllare quali saranno disponibili tramite la rete."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Per sapere come gestire i permessi per saned, leggere /usr/share/doc/sane-"
+"utils/README.Debian. Con la configurazione predefinita, saned viene eseguito "
+"con utente e gruppo saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Accettare per rendere tutti i propri scanner disponibili sulla rete senza "
+"alcuna restrizione."
diff --git a/debian/po/ja.po b/debian/po/ja.po
new file mode 100644
index 0000000..a6784fc
--- /dev/null
+++ b/debian/po/ja.po
@@ -0,0 +1,111 @@
+# Copyright (C) 2008-2009 Julien BLACHE <jblache@debian.org>
+# as sane-backends Debian package's copyright holder.
+# This file is distributed under the same license as the sane-backends package.
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2008-2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.14-9\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-01-09 11:21+0200\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "saned をスタンドアロンなサーバとして有効にしますか?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"有効にした場合、saned サーバはネットワーク越しにスキャナを利用できるようにな"
+"ります。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"saned を実行するには二通りのやり方があります:\n"
+" - inetd サービスとして実行し、inetd スーパーサーバから起動する。この場合、"
+"saned はクライアントが接続の際に inetd の要請に応じて起動されます。\n"
+" - システム起動時にスタンドアロンなデーモンとして実行する。この場合、saned は"
+"完全にバックグラウンドで実行されクライアントからの接続を待ちつづけます。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"スタンドアロンで実行している場合、saned はネットワークに対して存在しているこ"
+"とを通知します。そのため、クライアント側では何の設定もせずに SANE クライアン"
+"トがサーバを自動的に認識できるようになります。サーバの設定でクライアントから"
+"の接続を受け付けられるようにする必要もあります。この機能は実験的なもので、"
+"Avahi デーモンが動作していることが必要になります。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "この機能を使いたい場合はこのオプションを有効にしてください。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "saned ユーザを scanner グループに追加しますか?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"saned サーバが有効にされた場合、ネットワーク越しにスキャナが利用出来るように"
+"なります。マシンに接続されているスキャナごとに異なった設定を適用することで、"
+"どれがネットワーク越しに利用できるようにするかをコントロール出来ます。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"saned の権限の取扱い方については、詳細は /usr/share/doc/sane-utils/README."
+"Debian を参照してください。デフォルトでは、saned は saned ユーザと saned グ"
+"ループの権限で動作します。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"特に制限無く全てのスキャナを有効にしたい場合は、このオプションを有効にしてく"
+"ださい。"
diff --git a/debian/po/nl.po b/debian/po/nl.po
new file mode 100644
index 0000000..d5dc520
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,115 @@
+# Dutch translation of sane-backends debconf templates.
+# Copyright (C) 2011 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sane-backends package.
+# Jeroen Schot <schot@a-eskwadraat.nl>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.22-2\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2011-05-17 10:34+0200\n"
+"Last-Translator: Jeroen Schot <schot@a-eskwadraat.nl>\n"
+"Language-Team: Debian l10n Dutch <debian-l10n-dutch@lists.debian.org>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Wilt u saned als losstaande server activeren?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"Indien geactiveerd maakt de saned-server scanners beschikbaar over het "
+"netwerk."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Er zijn twee manieren om saned te draaien:\n"
+" - Als een inetd-dienst, gestart door de inetd-superserver. In deze modus\n"
+"wordt saned pas opgestart wanneer een client verbinding met de server "
+"maakt.\n"
+" - Als een losstaande achtergronddienst, opgestart bij de systemstart. In\n"
+"deze modus draait saned zelfstandig op de achtergrond en luistert naar\n"
+"client-verbindingen."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Wanneer saned in losstaande modus draait adverteert het zichzelf op het "
+"netwerk en kan door SANE-clients zonder configuratie automatisch worden "
+"gedetecteerd. U dient wel nog steeds de server te configureren om "
+"verbindingen van uw clients te accepteren. Deze functionaliteit is "
+"experimenteel en vereist een draaiende Avahi-achtergronddienst."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr ""
+"Kies voor deze optie als u gebruik wilt maken van deze functionaliteit."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "De saned-gebruiker toevoegen aan de scanner-groep?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Indien geactiveerd maakt de saned-server scanners beschikbaar over het "
+"netwerk. Door verschillende permissies toe te kennen aan de verschillende "
+"scanners van deze machine kunt u bepalen welke er over het netwerk "
+"beschikbaar worden gemaakt."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Lees /usr/share/doc/sane-utils/README.Debian voor informatie over het "
+"beheren van permissies voor saned. Standaard draait saned onder de saned-"
+"gebruiker en groep."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Kies voor deze optie als u al uw scanners zonder beperkingen over het "
+"netwerk beschikbaar wilt maken."
diff --git a/debian/po/pl.po b/debian/po/pl.po
new file mode 100644
index 0000000..425bb4a
--- /dev/null
+++ b/debian/po/pl.po
@@ -0,0 +1,114 @@
+# Translation of sane-backends debconf templates to Polish.
+# Copyright (C) 2009
+# This file is distributed under the same license as the sane-backends package.
+#
+# Michał Kułach <michal.kulach@gmail.com>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2012-02-02 11:05+0100\n"
+"Last-Translator: Michał Kułach <michal.kulach@gmail.com>\n"
+"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.2\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Włączyć saned jako samodzielny serwer?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "Serwer saned, kiedy jest uruchomiony, udostępnia skanery w sieci."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Są dwa sposoby działania saned:\n"
+" - jako usługa inetd, uruchomiona przez super-serwer inetd. W tym trybie "
+"saned\n"
+"jest uruchamiany na żądanie, podczas połączenia klienta z serwerem;\n"
+" - jako samodzielny demon, uruchamiany podczas rozruchu systemu. W tym "
+"trybie\n"
+"saned działa w tle i nasłuchuje połączeń klientów."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Jeśli program działa w trybie samodzielnym, saned rozgłasza się w sieci i "
+"może być automatycznie wykrywany przez klienty SANE, bez potrzeby "
+"konfiguracji po stronie klienta. Nadal jednak będzie konieczne "
+"skonfigurowanie serwera tak, aby akceptował połączenia od klientów. Funkcja "
+"ta jest eksperymentalna i wymaga działania demona Avahi."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Proszę wybrać \"tak\", aby używać tej funkcji."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Czy dodać użytkownika saned do grupy scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Serwer saned, kiedy jest uruchomiony, udostępnia skanery w sieci. Po "
+"wprowadzeniu różnych uprawnień dla różnych skanerów podłączonych do tego "
+"komputera, można kontrolować który z nich ma być dostępny w sieci."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Proszę zapoznać się z /usr/share/doc/sane-utils/README.Debian, aby "
+"dowiedzieć się więcej o zarządzaniu uprawnieniami saned. Domyślnie saned "
+"działa z poziomu użytkownika i grupy saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Proszę wybrać \"tak\", aby udostępnić wszystkie swoje skanery w sieci bez "
+"dodatkowych ograniczeń."
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644
index 0000000..c512c1c
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,112 @@
+# translation of sane-backends debconf to Portuguese
+# Copyright (C) 2008 the sane-backends's copyright holder
+# This file is distributed under the same license as the sane-backends package.
+#
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2008, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.20-11\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2009-12-27 21:49+0000\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Activar o saned como servidor autónomo?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"O servidor saned, quando activo, torna os scanners disponíveis na rede. "
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Existem duas maneiras de correr o saned:\n"
+"- como um serviço inetd, iniciado pelo superservidor inetd. Neste modo,\n"
+"o saned arranca a pedido quando um cliente se liga ao servidor;\n"
+"- como um deamon autónomo, iniciado no arranque do sistema. Neste modo,\n"
+"o saned corre autónomo em segundo plano e escuta por ligações de clientes."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Quando corre em modo autónomo, o saned anuncia-se a si próprio na rede e "
+"pode ser detectado automaticamente pelos clientes do SANE sem nenhuma "
+"configuração no lado do cliente. Você ainda precisa de configurar o servidor "
+"para aceitar ligações dos seus clientes. Esta funcionalidade é experimental "
+"e requer um daemon Avahi em funcionamento."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Aceite esta opção se deseja usar esta funcionalidade."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Adicionar o utilizador saned ao grupo scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"O servidor saned, quando activo, torna os scanners disponíveis na rede. Ao "
+"aplicar diferentes permissões aos vários scanners ligados à sua máquina, "
+"você pode controlar quais deles estarão disponíveis na rede."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Leia /usr/share/doc/sane-utils/README.Debian para detalhes em como gerir "
+"permissões para o saned. Por pré-definição, o saned corre sob o utilizador e "
+"grupo saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Aceite esta opção se deseja tornar todos os seus scanners disponíveis na "
+"rede sem restrições."
diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po
new file mode 100644
index 0000000..c5cad51
--- /dev/null
+++ b/debian/po/pt_BR.po
@@ -0,0 +1,114 @@
+# sane-backends Brazilian Portuguese translation
+# Copyright (C) 2008 THE sane-backends'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sane-backends package.
+# Eder L. Marques <eder@edermarques.net>, 2008-2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends-1.0.19-7\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2011-03-19 18:31-0300\n"
+"Last-Translator: Eder L. Marques <eder@edermarques.net>\n"
+"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian."
+"org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Habilitar o saned como um servidor autônomo?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"O servidor saned, quando habilitado, torna os scanners disponíveis através "
+"da rede."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Existem duas maneiras de executar o saned:\n"
+" - como um serviço inetd, iniciado pelo super-servidor inetd. Nesse\n"
+"modo, o saned é iniciado sob demanda quando um cliente conecta ao\n"
+"servidor;\n"
+" - como um daemon autônomo, iniciado na inicialização do sistema. Nesse\n"
+"modo, o saned executa em segundo plano por si só e escuta por conexões\n"
+"de clientes."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Quando executado no modo autônomo, o saned publica-se na rede e pode ser "
+"detectado automaticamente pelos clientes SANE sem nenhuma configuração no "
+"lado do cliente. Você continua precisando configurar o servidor para aceitar "
+"conexões de seus clientes. Esse recurso é experimental e requer um daemon "
+"Avahi em execução."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Aceite esta opção se você quer fazer uso desse recurso."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Adicionar o usuário saned ao grupo scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"O servidor saned, quando habilitado, torna os scanners disponíveis através "
+"da rede. Ao aplicar diferentes permissões a diferentes scanners conectados a "
+"sua máquina, você pode controlar quais estarão disponíveis através da rede."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Leia /usr/share/doc/sane-utils/README.Debian para detalhes sobre como "
+"gerenciar permissões para o saned. Por padrão, o saned é executado sob o "
+"usuário e grupo saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Aceite esta opção se você quer tornar todos os seus scanners disponíveis "
+"através da rede sem restrições."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 0000000..d0e750b
--- /dev/null
+++ b/debian/po/ru.po
@@ -0,0 +1,114 @@
+# translation of sane-backends_1.0.20-11_ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+# Yuri Kozlov <yuray@komyakino.ru>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends_1.0.20-11\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2009-12-30 19:10+0300\n"
+"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Запускать saned как отдельную службу?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "Если включена служба saned, то сканеры становятся доступными по сети."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"saned можно запускать двумя способами:\n"
+" - как служба inetd с помощью суперсервера inetd. В этом режиме saned\n"
+"запускается в момент, когда в inetd поступает клиентский запрос на\n"
+"подключение к серверу;\n"
+" - в виде самостоятельной службы при включении компьютера. В этом\n"
+"режиме saned работает в фоновом режиме и сам принимает клиентские\n"
+"подключения."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"При работе в виде самостоятельной службы, saned анонсирует себя в сети и "
+"может быть автоматически найден клиентами SANE без выполнения настроек на их "
+"стороне. Вам нужно только настроить сервер для приёма запросов от клиентов. "
+"Это экспериментальная возможность и требует запущенной службы Avahi."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Ответьте утвердительно, если хотите использовать эту возможность."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Добавить учётную запись saned в группу scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Если включена служба saned, то сканеры становятся доступными через сеть. "
+"Назначая различные права на конкретные сканеры, подключённые к компьютеру, "
+"вы можете сделать доступными через сеть только нужные."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"В файле /usr/share/doc/sane-utils/README.Debian подробно описано, как "
+"управлять правами saned. По умолчанию, saned запускается с правами учётной "
+"записи и группы saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Ответьте утвердительно, если хотите, чтобы все сканеры были доступны по сети "
+"без ограничений."
diff --git a/debian/po/sk.po b/debian/po/sk.po
new file mode 100644
index 0000000..57e8b1d
--- /dev/null
+++ b/debian/po/sk.po
@@ -0,0 +1,112 @@
+# Slovak translations for sane-backends package
+# Slovenské preklady pre balík sane-backends.
+# Copyright (C) 2011 THE sane-backends'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sane-backends package.
+# Automatically generated, 2011.
+# Slavko <linux@slavino.sk>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.22-6\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2011-08-25 10:52+0200\n"
+"Last-Translator: Slavko <linux@slavino.sk>\n"
+"Language-Team: Slovak <debian-l10n-slovak@lists.debian.org>\n"
+"Language: sk\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Povoliť saned ako samostatný server?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "Server saned, keď je povolený, sprístupňuje skenery cez sieť."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Existujú dva spôsoby spustenia saned:\n"
+" - ako služba inetd, spúšťaný pomocou superservera inetd. V tomto režime\n"
+"je saned spustený na požiadanie, pri pripojení klienta k serveru;\n"
+" - ako samostatný démon, spúšťaný pri štarte systému. V tomto režime saned\n"
+"stále beží na pozadí a sám prijíma spojenia klientov."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Pri spustení v samostatnom režime sa saned sám ponúka v sieti a klienty SANE "
+"ho tak môžu automaticky zistiť, bez potreby nastavenia na strane klienta. "
+"Stále však budete musieť nastaviť server tak, aby prijímal spojenia od "
+"svojich klientov. Táto vlastnosť je experimentálna a vyžaduje bežiaceho "
+"démona Avahi."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Vyberte túto voľbu, ak chcete používať túto funkciu."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Pridať používateľa saned do skupiny scanner?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Server saned, keď je povolený, sprístupňuje skenery cez sieť. Pomocou "
+"nastavenia rôznych práv rôznym skenerom, ktoré sú pripojené k vášmu stroju, "
+"môžete riadiť ktorý(é) z nich bude dostupný cez sieť."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Ďalšie podrobnosti o správe práv saned hľadajte v /usr/share/doc/sane-utils/"
+"README.Debian. Predvolene je saned spustený s právami používateľa a skupiny "
+"saned."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Vyberte túto voľbu, ak chcete sprístupniť cez sieť všetky svoje skenery bez "
+"obmedzení."
diff --git a/debian/po/sv.po b/debian/po/sv.po
new file mode 100644
index 0000000..2f9600b
--- /dev/null
+++ b/debian/po/sv.po
@@ -0,0 +1,111 @@
+# translation of sane-backends to swedish
+# Copyright (C) 2009 Martin Bagge
+# This file is distributed under the same license as the sane-backends package.
+#
+# Martin Bagge <brother@bsnet.se>, 2008, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends_1.0.19-10_sv\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2009-12-29 11:26+0100\n"
+"Last-Translator: Martin Bagge <brother@bsnet.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Aktivera saned som ensamstående tjänst?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "När saned är aktiverad så kan man komma åt scanrarna över nätverket."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Det finns två sätt att köra saned:\n"
+" - som en inetd-tjänst, startad av superservern inetd. I detta läge\n"
+"startas saned när en klient som behöver saned ansluter till servern.\n"
+" - som ensamstående tjänst, startad av systemet vid uppstart. I\n"
+"detta läge körs saned i bakgrunden hela tiden och lyssnar efter\n"
+"anslutningar från klienter."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"När saned körs i ensamstående läge så meddelar saned det till nätverket och "
+"kan på så vis automatiskt upptäckas av SANE-klienter utan att det behöver "
+"ställas in något på klient-sidan. Du behöver dock fortfarande ställa in "
+"tjänsten att ta emot anslutningar från klienterna. Denna funktion är "
+"experimentiell och kräver att Avahi-tjänsten körs."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Välj detta alternativet om du vill använda denna funktionen."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Lägg till en saned-användare till scanner-gruppen?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"När saned är aktiverad så kan man komma åt scanrarna över nätverket. Genom "
+"att ange olika regler till de olika scanrarna så kan du kontrollera vilka "
+"som ska vara tillgängliga över nätverket."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Läs /usr/share/doc/sane-utils/README.Debian för detaljerad information om "
+"hur man ställer in reglerna för saned. I standardläget körs saned i en egen "
+"användare och grupp 'saned'."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Ange detta alternativ om du vill göra alla dina scanrar tillgängliga över "
+"nätverket utan några restriktioner."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..f010415
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,91 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
diff --git a/debian/po/vi.po b/debian/po/vi.po
new file mode 100644
index 0000000..c683daa
--- /dev/null
+++ b/debian/po/vi.po
@@ -0,0 +1,113 @@
+# Vietnamese translation for SANE Backends.
+# Copyright © 2010 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2008-2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends 1.0.21-4.1\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-27 14:41+1030\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"Language: vi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.8\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "Bật saned làm trình phục vụ độc lập ?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "Bật trình phục vụ saned thì làm cho máy quét sẵn sàng qua mạng."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"Có hai phương pháp chạy saned:\n"
+" • làm dịch vụ inetd, được khởi chạy bởi siêu trình phục vụ inetd.\n"
+"\tTrong chế độ này, saned được khởi chạy theo yêu cầu,\n"
+"\tkhi ứng dụng khách kết nối đến trình phục vụ.\n"
+" • làm trình nền độc lập, được khởi chạy vào lúc khởi động hệ thống.\n"
+"\tTrong chế độ này, saned chạy một mình về nền,\n"
+"\tvà lắng nghe kết nối của ứng dụng khách."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"Chạy trong chế độ độc lập thì trình nền saned tự quảng cáo trên mạng, và có "
+"thể được tự động phát hiện bởi ứng dụng khách SANE mà không cần cấu hình "
+"riêng bên khách. Bạn vẫn còn cần phải cấu hình trình phục vụ để chấp nhận "
+"kết nối từ ứng dụng khách. Tính năng này vẫn còn dựa vào thực nghiệm, cũng "
+"yêu cầu một trình nền Avahi đang chạy."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Bật tuỳ chọn này để sử dụng tính năng đó."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "Thêm người dùng saned vào nhóm « scanner » ?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"Bật trình phục vụ saned thì làm cho máy quét sẵn sàng trên khắp mạng. Bằng "
+"cách áp dụng các quyền hạn khác nhau cho những máy quét khác nhau được kết "
+"nối đến máy này, bạn có thể điều khiển những máy quét sẽ được công bố qua "
+"mạng."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"Xem tài liệu Đọc Đi « /usr/share/doc/sane-utils/README.Debian » để tìm chi "
+"tiết về quản lý quyền hạn cho saned như thế nào. Mặc định là saned được chạy "
+"dưới người dùng và nhóm « saned »."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Bật tùy chọn này để làm cho tất cả các máy quét sẵn sàng qua mạng một cách "
+"không điều kiện."
diff --git a/debian/po/zh_CN.po b/debian/po/zh_CN.po
new file mode 100644
index 0000000..a525815
--- /dev/null
+++ b/debian/po/zh_CN.po
@@ -0,0 +1,105 @@
+# Chinese translations for PACKAGE package
+# PACKAGE 软件包的简体中文翻译.
+# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# YunQiang Su <wzssyqa@gmail.com>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: saned VERSION\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2010-10-09 16:57+0800\n"
+"Last-Translator: YunQiang Su <wzssyqa@gmail.com>\n"
+"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "将 saned 作为独立的服务器启动?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr "启用 saned 服务器时,将使扫描仪在网络上可用。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"有两种方式允许 saned:\n"
+" - 作为一个 inetd 服务,由 inetd 超级服务器启动。此模式下,\n"
+"服务器在客户端有连接请求时,按需启动;\n"
+" - 作为一个独立的守护进程,在系统启动时启动。此模式下,saned 一直自己\n"
+"在后台运行,并且监听客户端的连接。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"运行在独立模式时,saned 在网络上宣传自己并且可以被 SANE 客户端探测到(免配"
+"置)。您仍然需要在服务器上进行配置让其接受客户端上的连接。这个功能是实验性的,"
+"并且要求一个正在运行的 Avahi 守护进程。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "如果想使用这个功能,接受此选项。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "将 saned 用户添加到 scanner 组?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"启用 saned 服务器时,它使扫描仪在网络上可用。通过向连接到机器上的不同扫描仪提"
+"供不同的权限,您可以控制让哪个可以在网络上使用。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"阅读 /usr/share/doc/sane-utils/README.Debian 来获取关于如何管理 saned 权限更"
+"多细节。默认的,saned 运行在 saned 用户和组下。"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr "接受此选项,如果想让扫描仪在网络上不受限制的使用。"
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c98440b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,159 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+include /usr/share/dpkg/default.mk
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+ INSTALL_STRIP_FLAG = ""
+ STRIP = ""
+endif
+
+ifeq (,$(filter hurd-i386,$(DEB_HOST_ARCH)))
+ INS_CONF = ""
+else
+ INS_CONF = --enable-parport-directio
+endif
+
+
+%:
+ dh $@
+
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+SANE_DESC = $(CURDIR)/tools/sane-desc
+else
+SANE_DESC = $(CURDIR)/debian/sane-desc
+endif
+
+override_dh_auto_configure:
+ autoconf
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ dpkg-architecture -f "-a$(DEB_BUILD_ARCH)" -c dh_auto_configure
+ $(MAKE) -C $(CURDIR)/lib liblib.la
+ $(MAKE) -C $(CURDIR)/sanei libsanei.la
+ $(MAKE) -C $(CURDIR)/tools sane-desc
+ mv $(CURDIR)/tools/sane-desc $(CURDIR)/debian/sane-desc
+ $(RM) include/byteorder.h include/_stdint.h
+ dh_auto_clean
+endif
+ dh_auto_configure -- \
+ --prefix=/usr \
+ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=\$${prefix}/share \
+ --mandir=\$${prefix}/share/man \
+ --docdir=\$${prefix}/share/doc/libsane \
+ --enable-static \
+ --enable-pthread \
+ --with-gphoto2 \
+ --with-avahi \
+ --enable-pnm-backend \
+ --with-usb \
+ --without-v4l \
+ --disable-locking \
+ $(INS_CONF)
+
+override_dh_autoreconf:
+ dh_autoreconf -Xlibtool.m4
+
+override_dh_auto_build-indep:
+ # generate POT file for translators
+ $(MAKE)
+ (cd po && make sane-backends.pot)
+
+override_dh_auto_clean:
+ # Autoconf-generated files
+ $(RM) include/byteorder.h include/_stdint.h
+ # Add here commands to clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) distclean
+ $(RM) debian/libsane1.udev
+ dh_auto_clean
+ $(RM) $(SANE_DESC)
+
+override_dh_auto_install-arch:
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+ # remove /usr/lib/sane/libsane.so.1 (libtool side-effect ?)
+ $(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane.so.1
+ # remove libsane-dll, same as regular libsane
+ $(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane-dll.*
+
+override_dh_auto_install-indep:
+ dh_auto_install
+ # remove /usr/lib/sane/libsane.so.1 (libtool side-effect ?)
+ $(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane.so.1
+ # remove libsane-dll, same as regular libsane
+ $(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane-dll.*
+
+override_dh_install-arch:
+ dh_install
+ # Install the pkg-config file
+ mkdir -p debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
+ cp tools/sane-backends.pc debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
+ cp debian/sane-utils.logrotate debian/sane-utils/etc/logrotate.d/sane-utils
+
+override_dh_install-indep:
+ dh_install
+
+override_dh_installman-indep:
+ dh_installman
+ # remove man files from package sane-utils
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/gamma4scanimage.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/sane-find-scanner.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/scanimage.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/sane-config.1
+ $(RM) -r $(CURDIR)/debian/libsane-common/usr/share/man/man8/
+ $(RM) -r $(CURDIR)/debian/libsane-common/usr/share/man/man1/
+ # remove manpages for not build libs
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man5/sane-v4l.5
+
+override_dh_installman-arch:
+ dh_installman
+ $(RM) $(CURDIR)/debian/sane-utils/usr/share/man/man1/sane-config.1
+
+override_dh_installdocs-arch:
+ dh_installdocs
+ # move files that belong to libsane-dev
+ mv debian/tmp/usr/share/doc/libsane/backend-writing.txt debian/libsane-dev/usr/share/doc/libsane-dev/
+
+override_dh_installdocs-indep:
+ dh_installdocs
+ # Platform-specific documentation
+ $(RM) debian/libsane-common/etc/sane.d/saned.conf
+ifeq (kfreebsd,$(DEB_HOST_ARCH_OS))
+ cp README.freebsd debian/libsane-common/usr/share/doc/libsane-common/
+endif
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ cp README.linux debian/libsane-common/usr/share/doc/libsane-common/
+endif
+
+override_dh_installudev-arch:
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ # udev support
+ # Generate the udev rules file
+ $(SANE_DESC) -s $(CURDIR)/doc/descriptions -m udev+hwdb > $(CURDIR)/debian/libsane1.udev
+ $(SANE_DESC) -s $(CURDIR)/doc/descriptions -m hwdb > $(CURDIR)/debian/20-sane.hwdb
+
+ cp $(CURDIR)/debian/20-sane.hwdb $(CURDIR)/debian/libsane1/lib/udev/hwdb.d/
+ dh_installudev
+endif
+
+ # remove rpath from the binaries (wonderful tool !)
+ chrpath -d debian/sane-utils/usr/sbin/saned
+ chrpath -d debian/sane-utils/usr/bin/scanimage
+ chrpath -d debian/sane-utils/usr/bin/sane-find-scanner
+
+override_dh_installinit-arch:
+ dh_installinit -psane-utils --name=saned
+
+override_dh_installsystemd-arch:
+ dh_installsystemd -psane-utils --no-enable --name=saned
+ dh_installsystemd -psane-utils --no-enable --name=saned@
+
+override_dh_makeshlibs-arch:
+ dh_makeshlibs --exclude=/sane/ -- -v$(DEB_VERSION_UPSTREAM) -Pdebian/libsane1 -plibsane1
diff --git a/debian/sane-utils.README.Debian b/debian/sane-utils.README.Debian
new file mode 100644
index 0000000..d5dd23f
--- /dev/null
+++ b/debian/sane-utils.README.Debian
@@ -0,0 +1,83 @@
+sane-utils (sane-backends) for Debian
+-------------------------------------
+
+This package contains various utilities shipped with sane-backends, among
+which saned, the network scanner daemon used to share scanners over the
+network.
+
+
+saned setup
+-----------
+
+Please read this file carefully to setup your saned server properly.
+
+ -> Setting up permissions for saned
+ -> Running saned from inetd
+ -> Running saned as a standalone daemon
+
+
+ Setting up permissions for saned
+ --------------------------------
+
+A saned user and a saned group have been added to your system; it is highly
+recommended to run saned as user and group saned and NEVER EVER as root.
+
+To operate properly, saned must be able to access your scanners; different
+setups are possible, depending on who should be able to use the scanners:
+
+ * saned users only:
+ => device owned by saned:saned, saned:root or root:saned
+
+ * saned users and local users:
+ => device owned by saned:scanner, local users added to the scanner group
+
+ * local users only:
+ => device owned by root:scanner, local users added to the scanner group
+
+By default the saned user is NOT part of the scanner group. If you add the
+saned user to the scanner group, ALL scanners will be made available over the
+network without restrictions. Do that if you do not want/need to restrict one
+or more scanners to local users only.
+
+If you intend to use saned with a USB scanner, note that the permissions for
+USB scanners are handled by udev.
+
+See /usr/share/doc/libsane/README.Debian.gz for more information on setting up
+appropriate permissions.
+
+ Running saned from inetd
+ ------------------------
+
+To enable saned in the default configuration (running as user and group saned),
+use update-inetd to enable the service:
+ # update-inetd --enable sane-port
+To disable saned, use update-inetd to disable the service:
+ # update-inetd --disable sane-port
+
+If you want to run saned under another user and/or group, edit /etc/inetd.conf
+and change saned:saned for the appropriate user:group combination.
+
+ Running saned from systemd
+ --------------------------
+
+To enable saned in the default configuration (running as user and group saned),
+use systemctl to enable the service:
+ # systemctl enable saned.socket
+To disable saned, use systemctl to disable the service:
+ # systemctl disable saned.socket
+
+
+ Running saned as a standalone daemon
+ ------------------------------------
+
+When run as a standalone daemon, saned can advertise its services over the
+network, and the SANE clients will automatically discover the saned servers
+(provided the clients support this).
+
+To run saned as a standalone server:
+ - if you were previously running saned from inetd, disable it (see above)
+ - run dpkg-reconfigure sane-utils
+
+
+-- Julien BLACHE <jblache@debian.org>, Mon, 05 May 2008 19:29:28 +0200
+-- Jörg Frings-Fürst <debian@jff-webhosting.net> Tue, 16 Dec 2014 22:04:23 +0100
diff --git a/debian/sane-utils.config b/debian/sane-utils.config
new file mode 100644
index 0000000..af7e2f0
--- /dev/null
+++ b/debian/sane-utils.config
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+if [ -e /etc/default/saned ]; then
+ . /etc/default/saned
+
+fi
+
+db_input medium sane-utils/saned_scanner_group || true
+db_go || true
diff --git a/debian/sane-utils.dirs b/debian/sane-utils.dirs
new file mode 100644
index 0000000..ebf3df5
--- /dev/null
+++ b/debian/sane-utils.dirs
@@ -0,0 +1 @@
+/etc/logrotate.d
diff --git a/debian/sane-utils.install b/debian/sane-utils.install
new file mode 100644
index 0000000..c6afd3e
--- /dev/null
+++ b/debian/sane-utils.install
@@ -0,0 +1,6 @@
+etc/sane.d/saned.conf
+usr/bin/gamma4scanimage
+usr/bin/sane-find-scanner
+usr/bin/scanimage
+usr/sbin/saned
+usr/bin/umax_pp
diff --git a/debian/sane-utils.links b/debian/sane-utils.links
new file mode 100644
index 0000000..50ffd0e
--- /dev/null
+++ b/debian/sane-utils.links
@@ -0,0 +1 @@
+/dev/null /lib/systemd/system/saned.service
diff --git a/debian/sane-utils.logrotate b/debian/sane-utils.logrotate
new file mode 100644
index 0000000..654e370
--- /dev/null
+++ b/debian/sane-utils.logrotate
@@ -0,0 +1,9 @@
+/var/log/saned.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ copytruncate
+ notifempty
+ create 640 saned saned
+}
diff --git a/debian/sane-utils.manpages b/debian/sane-utils.manpages
new file mode 100644
index 0000000..357020f
--- /dev/null
+++ b/debian/sane-utils.manpages
@@ -0,0 +1,2 @@
+usr/share/man/man8/*.8
+usr/share/man/man1/*.1
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
new file mode 100644
index 0000000..b334d59
--- /dev/null
+++ b/debian/sane-utils.postinst
@@ -0,0 +1,74 @@
+#!/bin/sh
+set -e
+. /usr/share/debconf/confmodule
+
+SANED_DEFAULT=/etc/default/saned
+
+#
+# POSIX-compliant shell function
+# to check for the existence of a command
+# Return 0 if found
+#
+pathfind() {
+ OLDIFS="$IFS"
+ IFS=:
+ for p in $PATH; do
+ if [ -x "$p/$*" ]; then
+ IFS="$OLDIFS"
+ return 0
+ fi
+ done
+ IFS="$OLDIFS"
+ return 1
+}
+
+
+
+if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
+ db_get sane-utils/saned_run
+ RUN_SANED="$RET"
+
+ db_get sane-utils/saned_scanner_group
+ SANED_IN_SCANNER="$RET"
+
+ if [ -f /etc/inetd.conf ]; then
+ # Add saned service, disabled by default
+ if pathfind update-inetd ; then
+ update-inetd --add "#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned"
+ fi
+ fi
+
+ # Stop debconf; output to stdout after this point. update-inetd needs debconf.
+ db_stop
+
+ # Create saned user/group if they do not exist
+ if ! getent passwd | grep -q "^saned:"; then
+ echo "Adding saned group and user..."
+ adduser --home /var/lib/saned --quiet --system --group saned || true
+ fi
+
+ if [ ! -d /var/lib/saned ] ; then
+ usermod -d /var/lib/saned saned
+ fi
+
+ if [ "$SANED_IN_SCANNER" = "true" ]; then
+ adduser --quiet saned scanner
+ else
+ if id saned | grep -q "groups=.*\(scanner\)"; then
+ deluser --quiet saned scanner
+ fi
+ fi
+
+ if [ -e $SANED_DEFAULT ]; then
+ if [ "$RUN_SANED" = "true" ]; then
+ RUN_SANED=yes
+ else
+ RUN_SANED=no
+ fi
+
+ sed -e "s/^ *RUN=.*/RUN=$RUN_SANED/" < $SANED_DEFAULT > $SANED_DEFAULT.tmp
+ mv -f $SANED_DEFAULT.tmp $SANED_DEFAULT
+ fi
+fi
+
+#DEBHELPER#
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
new file mode 100644
index 0000000..c748af6
--- /dev/null
+++ b/debian/sane-utils.postrm
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+set -e
+
+#
+# POSIX-compliant shell function
+# to check for the existence of a command
+# Return 0 if found
+#
+pathfind() {
+ OLDIFS="$IFS"
+ IFS=:
+ for p in $PATH; do
+ if [ -x "$p/$*" ]; then
+ IFS="$OLDIFS"
+ return 0
+ fi
+ done
+ IFS="$OLDIFS"
+ return 1
+}
+
+
+if [ "$1" = purge ] ; then
+ if pathfind update-inetd ; then
+ update-inetd --remove sane-port || true
+ update-inetd --remove "#<off># sane-port" || true
+ fi
+
+#
+# purge systemd files
+#
+ rm -f /etc/systemd/system/saned.socket
+ rm -f /var/lib/systemd/deb-systemd-helper-enabled/saned.socket.dsh-also
+ rm -f /var/lib/systemd/deb-systemd-helper-masked/saned.socket
+ if [ -d /var/lib/systemd/deb-systemd-helper-enabled ]; then
+ rmdir --ignore-fail-on-non-empty /var/lib/systemd/deb-systemd-helper-enabled
+ fi
+ if [ -d /var/lib/systemd/deb-systemd-helper-masked ]; then
+ rmdir --ignore-fail-on-non-empty /var/lib/systemd/deb-systemd-helper-masked
+ fi
+#
+# remove pid file
+#
+ if [ -f /var/run/saned.pid ]; then
+ rm -f /var/run/saned.pid
+ fi
+
+#
+# remove user / group
+#
+ if pathfind deluser ; then
+ deluser -q --system --remove-home saned || true
+ deluser -q --group --system saned || true
+ fi
+
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/sane-utils.preinst b/debian/sane-utils.preinst
new file mode 100644
index 0000000..1b5f826
--- /dev/null
+++ b/debian/sane-utils.preinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+MANPAGE=/usr/share/man/man5/sane-umax_pp.5.gz
+MANLINK=/usr/share/man/man5/umax_pp.5.gz
+
+
+if [ "$1" = upgrade ]; then
+
+ ## Remove obsolete manpages that are now provided by sane-common
+ if dpkg --compare-versions "$2" le "1.1.1-2"; then
+
+ if [ -f "$MANLINK" ] && [ -L "$MANLINK" ]; then
+ rm -rf "$MANLINK"
+ fi
+
+
+ if [ -f "$MANPAGE" ]; then
+ rm -rf "$MANPAGE"
+ fi
+ fi
+fi
+
+
+
+#DEBHELPER#
diff --git a/debian/sane-utils.saned.default b/debian/sane-utils.saned.default
new file mode 100644
index 0000000..691e5a5
--- /dev/null
+++ b/debian/sane-utils.saned.default
@@ -0,0 +1,4 @@
+# Defaults for the saned initscript, from sane-utils
+
+# Set to the user saned should run as
+RUN_AS_USER=saned
diff --git a/debian/sane-utils.saned.init b/debian/sane-utils.saned.init
new file mode 100644
index 0000000..e629105
--- /dev/null
+++ b/debian/sane-utils.saned.init
@@ -0,0 +1,90 @@
+#! /bin/sh
+#
+### BEGIN INIT INFO
+# Provides: saned
+# Required-Start: $syslog $local_fs $remote_fs
+# Required-Stop: $syslog $local_fs $remote_fs
+# Should-Start: dbus avahi-daemon
+# Should-Stop: dbus avahi-daemon
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: SANE network scanner server
+# Description: saned makes local scanners available over the
+# network.
+### END INIT INFO
+
+. /lib/lsb/init-functions
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/saned
+NAME=saned
+DESC="SANE network scanner server"
+
+test -x $DAEMON || exit 0
+
+RUN=no
+RUN_AS_USER=saned
+
+# Get lsb functions
+. /lib/lsb/init-functions
+
+# Include saned defaults if available
+if [ -f /etc/default/saned ] ; then
+ . /etc/default/saned
+fi
+
+DAEMON_OPTS="-a $RUN_AS_USER"
+
+set -e
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC" "$NAME"
+ start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+ --exec $DAEMON -- $DAEMON_OPTS
+ log_end_msg $?
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/$NAME.pid \
+ --retry 10 --exec $DAEMON
+ log_end_msg $?
+ ;;
+ force-reload)
+ # check whether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ $0 stop
+ $0 start
+ ;;
+ status)
+ if [ -s /var/run/$NAME.pid ]; then
+ RUNNING=$(cat /var/run/$NAME.pid)
+ if [ -d /proc/$RUNNING ]; then
+ if [ $(readlink /proc/$RUNNING/exe) = $DAEMON ]; then
+ log_success_msg "$NAME is running"
+ exit 0
+ fi
+ fi
+
+ # No such PID, or executables don't match
+ log_failure_msg "$NAME is not running, but pidfile existed"
+ rm /var/run/$NAME.pid
+ exit 1
+ else
+ rm -f /var/run/$NAME.pid
+ log_failure_msg "$NAME not running"
+ exit 1
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ log_failure_msg "Usage: $N {start|stop|restart|force-reload}"
+ exit 1
+ ;;
+esac
diff --git a/debian/sane-utils.saned.socket b/debian/sane-utils.saned.socket
new file mode 100644
index 0000000..a14daef
--- /dev/null
+++ b/debian/sane-utils.saned.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=saned incoming socket
+
+[Socket]
+ListenStream=6566
+Accept=yes
+MaxConnections=64
+
+[Install]
+WantedBy=sockets.target
diff --git a/debian/sane-utils.saned@.service b/debian/sane-utils.saned@.service
new file mode 100644
index 0000000..2ef2d2f
--- /dev/null
+++ b/debian/sane-utils.saned@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Scanner Service
+Requires=saned.socket
+
+[Service]
+ExecStart=/usr/sbin/saned
+User=saned
+Group=saned
+StandardInput=null
+StandardOutput=append:/var/log/saned.log
+StandardError=append:/var/log/saned.log
+Environment=SANE_CONFIG_DIR=/etc/sane.d
+# Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255
+
+[Install]
+Also=saned.socket
diff --git a/debian/sane-utils.templates b/debian/sane-utils.templates
new file mode 100644
index 0000000..60906fb
--- /dev/null
+++ b/debian/sane-utils.templates
@@ -0,0 +1,35 @@
+Template: sane-utils/saned_run
+Type: boolean
+Default: false
+_Description: Enable saned as a standalone server?
+ The saned server, when enabled, makes scanners available over the network.
+ .
+ There are two ways of running saned:
+ - as an inetd service, started by the inetd superserver. In this mode,
+ saned is started on demand when a client connects to the server;
+ - as a standalone daemon, started at system boot. In this mode, saned
+ runs in the background all by itself and listens for client connections.
+ .
+ When run in standalone mode, saned advertises itself on the network and
+ can be detected automatically by the SANE clients with no configuration
+ on the client side. You still need to configure the server to accept
+ connections from your clients. This feature is experimental and requires
+ a running Avahi daemon.
+ .
+ Accept this option if you want to make use of this feature.
+
+Template: sane-utils/saned_scanner_group
+Type: boolean
+Default: true
+_Description: Add saned user to the scanner group?
+ The saned server, when enabled, makes scanners available over the network.
+ By applying different permissions to the different scanners connected to
+ your machine, you can control which ones will be made available over the
+ network.
+ .
+ Read /usr/share/doc/sane-utils/README.Debian for details on how to manage
+ permissions for saned. By default, saned is run under the saned user and
+ group.
+ .
+ Accept this option if you want to make all your scanners available over
+ the network without restriction.
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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..3fd33d0
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://gitlab.com/sane-project/backends/-/issues
+Bug-Submit: https://gitlab.com/sane-project/backends/-/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=
+Contact: http://sane-project.org/mailing-lists.html
+Name: sane-backends
+Repository: https://gitlab.com/sane-project/backends.git
+Repository-Browse: https://gitlab.com/sane-project/backends/-/tree/master
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c384aa1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+#
+# watch file for sane-backends
+#
+version=4
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
+filenamemangle=s/.*\/archive\/(\d\S+)\/backends.*\.tar\.gz/backends-$1\.tar\.gz/g \
+ https://gitlab.com/sane-project/backends/-/tags?sort=updated_desc .*/archive/(\d\S+)/.*\.tar\.gz.*