diff --git a/66-saned.rules b/66-saned.rules new file mode 100644 index 0000000..617ae3c --- /dev/null +++ b/66-saned.rules @@ -0,0 +1,2 @@ +# udev rule for saned (SANE scanning daemon) to be able to write on usb port +ENV{libsane_matched}=="yes", RUN+="/usr/bin/setfacl -m g:saned:rw $env{DEVPATH}" diff --git a/README.Fedora b/README.Fedora index 8283a36..7efc056 100644 --- a/README.Fedora +++ b/README.Fedora @@ -17,6 +17,6 @@ Several scanners (e.g. Samsung, Brother, Epson) sometime need special backends, whose isn't shipped with sane-backends or cannot be shipped in Fedora because of licensing problem. If your scanner isn't working with basic sane-backends: -1) if your scanner is Epson, try to install iscan-firmware package +1) if your scanner is Epson, try to install iscan-firmware package or Image Scan from Epson official site 2) if your scanner is Samsung, try to find driver on https://support.hp.com/gb-en/drivers/selfservice/ 3) if your scanner is Brother, see http://support.brother.com/g/s/id/linux/en/download_scn.html diff --git a/sane-backends.spec b/sane-backends.spec index a36bd72..b1f6532 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -33,7 +33,7 @@ Summary: Scanner access software Name: sane-backends Version: 1.0.27 -Release: 14%{?dist} +Release: 15%{?dist} # lib/ is LGPLv2+, backends are GPLv2+ with exceptions # Tools are GPLv2+, docs are public domain # see LICENSE for details @@ -44,6 +44,7 @@ Source1: sane.png Source2: saned.socket Source3: saned@.service.in Source4: README.Fedora +Source5: 66-saned.rules # Fedora-specific, probably not generally applicable: Patch0: sane-backends-1.0.25-udev.patch @@ -232,6 +233,7 @@ mkdir -p %{buildroot}%{udevrulesdir} mkdir -p %{buildroot}%{udevhwdbdir} install -m 0644 tools/udev/sane-backends.rules %{buildroot}%{udevrulesdir}/65-sane-backends.rules install -m 0644 tools/udev/sane-backends.hwdb %{buildroot}%{udevhwdbdir}/20-sane-backends.hwdb +install -m 0644 %{SOURCE5} %{buildroot}%{udevrulesdir}/66-saned.rules mkdir -p %{buildroot}%{_libdir}/pkgconfig install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/ @@ -345,10 +347,15 @@ exit 0 %files daemon %{_sbindir}/saned %{_mandir}/man8/saned* +%{udevrulesdir}/66-saned.rules %{_unitdir}/saned.socket %{_unitdir}/saned@.service %changelog +* Mon Mar 12 2018 Zdenek Dohnal - 1.0.27-15 +- 1554032 - saned doesn't have permissions to write on usb port +- updated README.Fedora - mention epson official drivers + * Wed Feb 28 2018 Zdenek Dohnal - 1.0.27-14 - name soname suffix explicitly