# Configuring SWAT
string_add "swat 901/tcp" /etc/services
string_add "swat_tunnel 902/tcp" /etc/services
- string_add "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
- /etc/inetd.conf
+
+ cat > /etc/xinetd.d/swat << "EOF"
+service swat
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ server = /usr/sbin/swat
+ log_type = SYSLOG local4 info
+}
+EOF
# Bootscript
install -v -m740 ${SCRDIR}/bootscripts/samba /etc/rc.d/init.d
# Creating '/etc/sane.d/saned.conf'
echo "${LAN_NETWORK_MASK}" > /etc/sane.d/saned.conf
- # Addition to /etc/inetd.conf
- string_add "sane stream tcp nowait saned /usr/sbin/tcpd saned" \
- /etc/inetd.conf
+ # Addition to xinetd
+ cat > /etc/xinetd.d/saned << "EOF"
+service sane
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = saned
+ server = /usr/sbin/saned
+ log_type = SYSLOG local4 info
+}
+EOF
else
# If 'SANE_SERVER' is defined, then we must specify the address of the
# remote SANE server to use.
{
mkdir -v -p /srv/tftpboot
- # Addition to /etc/inetd.conf
- string_add "tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /srv/tftpboot -v -v -v -v -v" /etc/inetd.conf
+ # Addition to xinetd
+ cat > /etc/xinetd.d/tftp << "EOF"
+service tftp
+{
+ disable = no
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = root
+ server = /usr/sbin/in.tftpd
+ server_args = -s /srv/tftpboot -v -v -v -v -v
+ log_type = SYSLOG local4 info
+}
+EOF
}
install -m 644 c-client/*.h /usr/lib/uw-imap/include
install -m 644 src/osdep/tops-20/shortsym.h /usr/lib/uw-imap/include
- # Addition to /etc/inetd.conf
- string_add "imaps stream tcp nowait.400 root /usr/bin/imapd imapd" \
- /etc/inetd.conf
+ # Addition to xinetd
+ cat > /etc/xinetd.d/imapd << "EOF"
+service imap
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ server = /usr/bin/imapd
+ log_type = SYSLOG local4 info
+}
+EOF
# Addition to /etc/services
string_add "imaps 993/tcp " /etc/services