BSD Ports

sysutils/scanbuttond 0.2.3_2 FreeBSD

Daemon to monitor and configure modern scanner's buttons

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
sysutils
Package size
31.0 KiB, 114.4 KiB installed

Description

This is the port of scanbuttond, an utility to monitor the various buttons found on many modern scanners which are intended to trigger certain actions like copying, faxing or mailing the scanned document. This daemon queries the scanner button state several times per second via libusb and if it detects that a button is pressed it runs a shell script with the button number as an argument.

The supported scanner backends currently are: epson, niash, plustek, snapscan

In the other systems

SystemPortVersion
FreeBSDsysutils/scanbuttond0.2.3_2
DragonFlysysutils/scanbuttond0.2.3_2

Install

Binary package:

pkg install scanbuttond

From the ports tree:

cd /usr/ports/sysutils/scanbuttond/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	scanbuttond>0:sysutils/scanbuttond
LIB_DEPENDS=	libscanbtnd-backend_epson.so:sysutils/scanbuttond

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.2.3_20.2.3_20.2.3_20.2.3_20.2.3_2
FreeBSD:14:quarterly0.2.3_20.2.3_2n/a0.2.3_20.2.3_2
FreeBSD:15:latest0.2.3_20.2.3_2n/a0.2.3_20.2.3_2
FreeBSD:15:quarterly0.2.3_20.2.3_2n/an/an/a
FreeBSD:16:latest0.2.3_20.2.3_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

USES
libtool
Service scripts
none

Message after installing

scanbuttond has been installed, but is not quite ready to be used yet.

To make scanbuttond actually do something you have to edit
/usr/local/etc/scanbuttond/buttonpressed.sh and change it to your needs.

If you are having trouble getting your scanner detected try uncommenting one
of the following lines in /usr/local/etc/scanbuttond/initscanner.sh:

scanimage -n
or
sane-find-scanner  > /dev/null 2> /dev/null

If your scanner is connected via a hot-plug capable technology (e.g. USB)
you can conveniently enable scanbuttond every time you attach you scanner by
using devd. In order to do so you may add the following lines to your
/etc/devd.conf and restart devd after you are done.
(Make sure to replace device-name, vendor, product and back-end name to
something that matches your environment)

attach 20 {
	device-name "ugen[0-9]+";
	match "vendor" "0x04a9";
	match "product" "0x220e";
	action "/usr/local/bin/scanbuttond \
		-s /usr/local/etc/scanbuttond/buttonpressed.sh \
		-S /usr/local/etc/scanbuttond/initscanner.sh \
		-b /usr/local/lib/libscanbtnd-backend_plustek.so";
};

detach 20 {
	device-name "ugen[0-9]+";
	match "vendor" "0x04a9";
	match "product" "0x220e";
	action "/usr/bin/killall scanbuttond";
};

Files

pkg-plist 28
  • bin/scanbuttond
  • @sample etc/scanbuttond/buttonpressed.sh.sample
  • @sample etc/scanbuttond/initscanner.sh.sample
  • @sample etc/scanbuttond/meta.conf.sample
  • lib/libscanbtnd-backend_epson.so
  • lib/libscanbtnd-backend_epson.so.1
  • lib/libscanbtnd-backend_epson.so.1.0.0
  • lib/libscanbtnd-backend_meta.so
  • lib/libscanbtnd-backend_meta.so.1
  • lib/libscanbtnd-backend_meta.so.1.0.0
  • lib/libscanbtnd-backend_mustek.so
  • lib/libscanbtnd-backend_mustek.so.1
  • lib/libscanbtnd-backend_mustek.so.1.0.0
  • lib/libscanbtnd-backend_niash.so
  • lib/libscanbtnd-backend_niash.so.1
  • lib/libscanbtnd-backend_niash.so.1.0.0
  • lib/libscanbtnd-backend_plustek.so
  • lib/libscanbtnd-backend_plustek.so.1
  • lib/libscanbtnd-backend_plustek.so.1.0.0
  • lib/libscanbtnd-backend_plustek_umax.so
  • lib/libscanbtnd-backend_plustek_umax.so.1
  • lib/libscanbtnd-backend_plustek_umax.so.1.0.0
  • lib/libscanbtnd-backend_snapscan.so
  • lib/libscanbtnd-backend_snapscan.so.1
  • lib/libscanbtnd-backend_snapscan.so.1.0.0
  • lib/libscanbtnd-interface_usb.so
  • lib/libscanbtnd-interface_usb.so.1
  • lib/libscanbtnd-interface_usb.so.1.0.0
distinfo 1
FileSizeSHA256
scanbuttond-0.2.3.tar.gz33374393b060a363fef069548a49cb151da53ac6071dc0569f9a07d68751a28dffebee
Master sites 1
  • SF

Commit history 0

No commits in the history this site was built from.