initial commit of file from CVS for smeserver-sane on Sat Sep 7 21:02:55 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/saned/TCPPort
Normal file
1
root/etc/e-smith/db/configuration/defaults/saned/TCPPort
Normal file
@@ -0,0 +1 @@
|
||||
6566
|
1
root/etc/e-smith/db/configuration/defaults/saned/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/saned/access
Normal file
@@ -0,0 +1 @@
|
||||
private
|
1
root/etc/e-smith/db/configuration/defaults/saned/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/saned/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/saned/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/saned/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
3
root/etc/e-smith/templates/etc/hosts.allow/20saned
Normal file
3
root/etc/e-smith/templates/etc/hosts.allow/20saned
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
$DB->hosts_allow_spec('saned','saned');
|
||||
}
|
20
root/etc/e-smith/templates/etc/sane.d/saned.conf/10saned
Normal file
20
root/etc/e-smith/templates/etc/sane.d/saned.conf/10saned
Normal 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)).
|
2
root/etc/e-smith/templates/etc/sane.d/saned.conf/20saned
Normal file
2
root/etc/e-smith/templates/etc/sane.d/saned.conf/20saned
Normal file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
+
|
1
root/etc/e-smith/templates/etc/services/20saned-port
Normal file
1
root/etc/e-smith/templates/etc/services/20saned-port
Normal file
@@ -0,0 +1 @@
|
||||
saned { ${'saned'}{TCPPort} }/tcp # SANE network scanner daemon
|
16
root/etc/e-smith/templates/etc/xinetd.conf/20sane-port
Normal file
16
root/etc/e-smith/templates/etc/xinetd.conf/20sane-port
Normal 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
|
||||
}
|
Reference in New Issue
Block a user