scanbd is daemon that listens for scanner button presses and can run scripts.
From the project page:
scanbd is a scanner button daemon. It polls the scanner buttons
looking for buttons pressed or function knob changes or other scanner
events as paper inserts / removals and at the same time allows also
scan-applications to access the scanners. If buttons are pressed,
etc., various actions can be submitted (scan, copy, email, ...) via
action scripts. The function knob values are passed to the
action-scripts as well. Scan actions are also signaled via dbus. This
can be useful for foreign applications. Scans can also be triggered
via dbus from foreign applications. On platforms which support
signaling of dynamic device insertion / removal (libudev, dbus, hal)
scanbd supports this as well. scanbd can use all sane-backends or some
special backends from the (old) scanbuttond project. Supported
platforms: Linux, FreeBSD, NetBSD, OpenBSD
Sample scripts that scanbd can use are included in
/usr/local/etc/scanbd/scripts as <script>.sample. Copy and modify
these to suit your needs (or start from scratch). For details, see
/usr/local/etc/scanbd/scanbd.conf
bsd.sites.mk: Update all ports using USE_GITLAB
Replace GL_COMMIT by GL_TAGNAME in all ports. The new GL_TAGNAME is
backwards-compatible (accepting any commit hash as before), but also
understands an actual tag name. Moving to tag names where appropriate is
left to individual ports' maintainers.
Approved by: portmgr (tcberner, mentor)
Differential Revision: https://reviews.freebsd.org/D37077
sysutils/scanbd: correct file placement and robustness fix
These are additional revisions based on discussion on bug #272066.
There, the placement for the sample scripts wasn't correct. So, we now
move the sample scripts to $LOCALBASE/etc/scanbd/scripts as samples, but
they aren't marked as samples in the plist. There is also a pkg-message
that explains this.
This should be the last revision I can see in the immediate future until
a new release comes out.
PR: 272419
See also: 272066
sysutils/scanbd: Make the port better behaved.
- Address issues in rclint, portlint and the port test tool.
- make sure scanbd.conf is a sample file.
PR: 272066
sysutils/scanbd: Add new port
scanbd looks to be the continuation of scanbuttond, it accomplishes
the same tasks, but supports all scanners from scanbuttond plus all
the scanners supported by SANE. It uses dbus for communication and can
also signal device insertion and removal.
Upstream has moved to gitlab, so this is the last corresponding release
based on the last SourceForge release (with some minor documentation
updates).
WWW: https://sourceforge.net/projects/scanbd/
PR: 271816