270.5. sane-backends-1.4.0
The scanner driver set, and the udev rules 70-kdos-*.rules already grant
1.4.0-1 · GPL-2.0-or-later WITH SANE-exception AND GPL-2.0-or-later · 4.6 SBU · 17.2 MiB, 548 files · 43_toolkits, 256 of 344 · ports/core/printing/sane-backends
Homepage: https://sane-project.gitlab.io/website/
Why it is in KDOS. The comment above it in script/phases/43_toolkits/packages.d/printing.txt:
The udev rules already grant the scanner classes to dialout; without the backends the permission opens nothing. saned stays off — an unauthenticated scanner daemon is an open port for a feature nothing here starts.
Depends on: autoconf, automake, libtool, libusb, libjpeg-turbo, libtiff, libpng, avahi, curl, libxml2, v4l-utils, poppler.
Required by (9): gimagereader, hplip, ksanecore, libksane, libreoffice, pdf4qt, sane-airscan, skanlite, wine.
Sources: sane-backends-1.4.0.tar.gz (5.9 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
--without-gphoto2, line 18: gphoto2
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install sane-backends'
build.sh:
echo "$version" > .tarball-version
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
--disable-static --with-usb --without-snmp --disable-locking \
--with-avahi --with-libcurl --with-usb-record-replay --with-v4l \
--without-gphoto2 --with-poppler-glib --without-systemd
make
make DESTDIR=$PKG install
descs=doc/descriptions:doc/descriptions-external
install -d "$PKG/usr/lib/udev/rules.d" "$PKG/usr/lib/udev/hwdb.d"
tools/sane-desc -m udev+hwdb -s $descs -d 0 > "$PKG/usr/lib/udev/rules.d/65-libsane.rules"
tools/sane-desc -m hwdb -s $descs -d 0 > "$PKG/usr/lib/udev/hwdb.d/20-sane.hwdb"
Programs: gamma4scanimage, sane-config, sane-find-scanner, saned, scanimage, umax_pp.
Libraries: libsane.so.
Directories: /usr/include/sane, /usr/share/doc/sane-backends, /usr/share/licenses/sane-backends, /usr/share/sane.