aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends/files/pkg-message.in
blob: 077943c64a5cf8b1470cc5ca4551f0f8a1fce90b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[
{ type: install
  message: <<EOM
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
%%PREFIX%%/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 %%PREFIX%%/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
%%PREFIX%%/etc/sane.d/saned.conf
to only permit specific machines.
EOM
}
]