initial commit of file from CVS for smeserver-sane on Sat Sep 7 21:02:55 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:02:55 +10:00
parent ef360c7665
commit b98fed8766
16 changed files with 547 additions and 2 deletions

View File

@@ -0,0 +1 @@
6566

View File

@@ -0,0 +1 @@
private

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,3 @@
{
$DB->hosts_allow_spec('saned','saned');
}

View File

@@ -0,0 +1,20 @@
#
# saned.conf
#
# The contents of the saned.conf file is a list of host names, IP
# addresses or IP subnets (CIDR notation) that are permitted to use local
# SANE devices. IPv6 addresses must be enclosed in brackets, and should
# always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.
#
#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
#
# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

View File

@@ -0,0 +1,2 @@
localhost
+

View File

@@ -0,0 +1 @@
saned { ${'saned'}{TCPPort} }/tcp # SANE network scanner daemon

View File

@@ -0,0 +1,16 @@
{
return "" unless ( (${'saned'}{'status'} || "disabled") eq "enabled");
$OUT = <<HERE;
service saned
{
socket_type = stream
protocol = tcp
user = root
group = saned
wait = no
server = /usr/sbin/saned
}
HERE
}