summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/99-libsane1.rules2
-rw-r--r--debian/changelog13
-rw-r--r--debian/patches/0055-Fix_build_error.patch2
-rwxr-xr-xdebian/rules3
-rw-r--r--debian/sane-utils.postrm7
5 files changed, 23 insertions, 4 deletions
diff --git a/debian/99-libsane1.rules b/debian/99-libsane1.rules
index ada47b4..42d0dd4 100644
--- a/debian/99-libsane1.rules
+++ b/debian/99-libsane1.rules
@@ -1,2 +1,2 @@
-ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
+ENV{DEVNAME}!="", ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
diff --git a/debian/changelog b/debian/changelog
index 32b0aa4..71738d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+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).
diff --git a/debian/patches/0055-Fix_build_error.patch b/debian/patches/0055-Fix_build_error.patch
index 3816692..b1b09b1 100644
--- a/debian/patches/0055-Fix_build_error.patch
+++ b/debian/patches/0055-Fix_build_error.patch
@@ -13,7 +13,7 @@ Index: trunk/po/POTFILES.in
backend/p5_device.c
backend/pixma/pixma.c
-backend/pixma/pixma_sane_options.c
-+#backend/pixma/pixma_sane_options.c
++backend/pixma/pixma_sane_options.c
backend/plustek.c
backend/plustek_pp.c
backend/pnm.c
diff --git a/debian/rules b/debian/rules
index 8bab3c0..45233ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,11 +48,10 @@ endif
--datadir=\$${prefix}/share \
--mandir=\$${prefix}/share/man \
--docdir=\$${prefix}/share/doc/libsane \
- --enable-locking \
--enable-static \
--enable-pthread \
--with-gphoto2 \
- --enable-avahi \
+ --with-avahi \
--enable-pnm-backend \
--with-usb \
--without-v4l \
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 288b511..275eee6 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -44,6 +44,13 @@ if [ "$1" = purge ] ; then
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
+
fi