BSD Ports

graphics/sane-backends 1.3.1_1 DragonFly

API for accessing scanners, digital cameras, frame grabbers, etc

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2+
Categories
graphics
Package size
3505.7 KiB, 18623.3 KiB installed

Description

SANE ("Scanner Access Now Easy") is a universal scanner interface. This package contains the SANE libraries (this means backends and network scanning parts) and the command line frontend scanimage.

In the other systems

SystemPortVersion
DragonFlygraphics/sane-backends1.3.1_1
FreeBSDgraphics/sane-backends1.4.0_3
OpenBSDgraphics/sane-backends1.4.0p3
NetBSDgraphics/sane-backends1.4.0nb1
MidnightBSDgraphics/sane-backends1.4.0
HardenedBSDgraphics/sane-backends1.4.0_3
GhostBSDgraphics/sane-backends1.4.0_3

Install

Binary package:

pkg install sane-backends

From DPorts:

cd /usr/dports/graphics/sane-backends && make install clean

Dependencies

Run dependencies 11

Configuration

No options to configure.

Service scripts
none

Message after installing

saned will log to the 'daemon' facility; this is a hard-coded
default. Also, saned has no support for SSL/TLS or cryptographic
authentication; you may wish to deploy security/stunnel to wrap
it if you have concerns about security.

If you are using a USB scanner, you should create
/usr/local/etc/devd/saned.conf to allow saned access permissions.
Currently, devfs.rules(5) has no support for USB specific filters
such as vendor, product and serial number.

Here is an example saned.conf for an Epson CX3650
multi-function scanner/printer device (assuming you are sharing
the printer function with cups):

notify 100 {
	match "system" "USB";
	match "subsystem" "INTERFACE";
	match "type" "ATTACH";
	match "cdev" "ugen[0-9].[0-9]";
	match "vendor" "0x04b8";
	match "product" "0x080e";
	action "chown -L cups:saned /dev/$cdev && chmod -L 660 /dev/$cdev";
};

To determine which port your scanner is connected to, inspect the
output of 'usbconfig list' before and after connecting your scanner,
and note the numbers which appear after 'ugen' in the first column.
Then, use 'usbconfig -d X.Y dump_device_desc' to learn the idVendor
and idProduct fields, and plug them into the above example entry.

Finally, restart devd with the command:
 # /etc/rc.d/devd restart

Please take /usr/local/etc/sane.d/dll.conf
as an example only; you may wish to enable only the 'net' backend
on client machines; be sure to point it at your scan server.

If you are setting up a scan server, you may also wish to edit
/usr/local/etc/sane.d/saned.conf
to only permit specific machines.