Index: introduction/welcome/credits.xml
===================================================================
--- introduction/welcome/credits.xml (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ introduction/welcome/credits.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -90,5 +90,5 @@
Hymers
-bind, emacs, libfam, pine, qmail, Samba and slrn: Billy O'Connor
+bind, emacs, leafnode, libfam, pine, qmail, Samba, slrn and xinetd: Billy O'Connor
fetchmail and wvdial: Paul
Index: server/mail/qmail/qmail-config.xml
===================================================================
--- server/mail/qmail/qmail-config.xml (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ server/mail/qmail/qmail-config.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -9,5 +9,5 @@
-echo "smtp stream tcp nowait qmaild/var/qmail/bin/tcp-env \
+echo "smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env \
tcp-env /var/qmail/bin/qmail-smtpd" >> /etc/inetd.conf
Index: server/other/leafnode.xml
===================================================================
--- server/other/leafnode.xml (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ server/other/leafnode.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -1,7 +1,11 @@
-
+
-leafnode
+leafnode-&leafnode-version;
-TO BE DONE
+&leafnode-intro;
+&leafnode-inst;
+&leafnode-exp;
+&leafnode-config;
+&leafnode-desc;
Index: server/other/leafnode/leafnode-config.xml
===================================================================
--- server/other/leafnode/leafnode-config.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/leafnode/leafnode-config.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,63 @@
+
+Configuring leafnode
+
+Config files
+/etc/leafnode/config,
+/etc/inetd.conf, /etc/xinetd.conf
+
+leafnode may be configured to use inetd or xinetd as follows:
+
+
+inetd configuration
+Add a leafnode entry to the /etc/inetd.conf
+file with the following command:
+
+echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
+>> /etc/inetd.conf &&
+
+
+xinetd configuration
+Add a leafnode entry to the /etc/xinetd.conf
+file with the following command:
+
+cat >> /etc/xinetd.conf << "EOF"
+ service nntp
+ {
+ flags = NAMEINARGS NOLIBWRAP
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = news
+ server = /usr/sbin/tcpd
+ server_args = /usr/sbin/leafnode
+ instances = 7
+ per_source = 3
+ }
+EOF
+
+
+
+The /etc/news/config file must be
+edited to reflect the name of the upstream NNTP provider. Copy the
+example configuration file to /etc/news/config
+and save the original for reference :
+
+
+cp /etc/news/config.example /etc/news/config
+
+Change the
+server =
+entry to reflect your news provider.
+
+The NNTPSERVER environment variable must be set to 127.0.0.1 to
+prevent news clients from reading news from the upstream feed, add the
+following to /etc/profile or
+$HOME/.bash_profile :
+
+export NNTPSERVER=127.0.0.1
+
+
+
+
+
+
Index: server/other/leafnode/leafnode-desc.xml
===================================================================
--- server/other/leafnode/leafnode-desc.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/leafnode/leafnode-desc.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,37 @@
+
+Contents
+
+The leafnode package contains
+leafnode,
+applyfilter,
+texpire,
+checkgroups,
+fetchnews and
+newsq.
+
+Description
+
+leafnode
+leafnode is the NNTP server daemon.
+
+applyfilter
+applyfilter filters newsgroup articles according to regular
+expressions.
+
+texpire
+texpire expires old articles and unread groups.
+
+checkgroups
+checkgroups inserts newsgroup titles into the newsgroup
+database.
+
+fetchnews
+fetchnews sends posted articles to and retrieves new articles
+from an upstream news server.
+
+newsq
+newsq shows articles waiting to be sent upstream.
+
+
+
+
Index: server/other/leafnode/leafnode-exp.xml
===================================================================
--- server/other/leafnode/leafnode-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/leafnode/leafnode-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,26 @@
+
+Installation command explanations
+
+
+groupadd news
+useradd -g news news :
+
+Create the group and user news, if not present. Errors
+resulting from an already existing user or group news may be
+ignored.
+
+ --prefix=/usr :
+Change the default installation directory of /usr/local.
+
+ --sysconfdir=/etc/news :
+leafnode reads it's configuration data from an file called
+config, this with be created in
+/etc/news to avoid any potential conflict with
+other packages.
+
+
+ make update :
+Create an initial /etc/news/config.example file,
+which must be renamed to /etc/news/config.
+
+
Index: server/other/leafnode/leafnode-inst.xml
===================================================================
--- server/other/leafnode/leafnode-inst.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/leafnode/leafnode-inst.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,15 @@
+
+Installation of leafnode
+
+Install leafnode by running the following commands:
+
+groupadd news
+useradd -g news news
+./configure --prefix=/usr --sysconfdir=/etc/news &&
+make &&
+make install &&
+ldconfig &&
+make update
+
+
+
Index: server/other/leafnode/leafnode-intro.xml
===================================================================
--- server/other/leafnode/leafnode-intro.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/leafnode/leafnode-intro.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,14 @@
+
+Introduction to leafnode-&leafnode-version;
+
+Download location (HTTP):
+Version used: &leafnode-version;
+Package size: &leafnode-size;
+Estimated Disk space required: &leafnode-buildsize;
+
+leafnode is an NNTP server designed for small sites to provide a
+local USENET spool.
+
+leafnode depends on:
+
+
Index: server/other/leafnode/leafnode.ent
===================================================================
--- server/other/leafnode/leafnode.ent (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ server/other/leafnode/leafnode.ent (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -1,1 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
Index: server/other/xinetd.xml
===================================================================
--- server/other/xinetd.xml (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ server/other/xinetd.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -1,7 +1,12 @@
-
+
-xinetd
+xinetd-&xinetd-version;
-TO BE DONE
+&xinetd-intro;
+&xinetd-inst;
+&xinetd-exp;
+&xinetd-config;
+&xinetd-config-exp;
+&xinetd-desc;
Index: server/other/xinetd/xinetd-config-exp.xml
===================================================================
--- server/other/xinetd/xinetd-config-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-config-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,26 @@
+
+Configuration command explanations
+
+cp /etc/xinetd.conf /etc/xinetd.conf.bak :
+Save the current xinetd.conf file, if it exists.
+
+
+sed -e 's/etc/sbin/g' xinetd/sample.config > /etc/xinetd.conf
+:
+
+insure the path to all daemons is /usr/sbin, rather than the
+default path of /usr/etc.
+
+
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd, etc. :
+
+Create the xinetd runlevel symlinks to the xinetd boot script, used to
+start and stop xinetd automatically on machine startup and
+shutdown.
+
+The format of the /etc/xinetd.conf is
+documented in the xinetd.conf man page. Further information can be
+found at .
+
+
+
Index: server/other/xinetd/xinetd-config.xml
===================================================================
--- server/other/xinetd/xinetd-config.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-config.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,85 @@
+
+Configuring xinetd
+Create the xinetd.conf file with the following commands:
+
+
+cp /etc/xinetd.conf /etc/xinetd.conf.bak
+sed -e 's/etc/sbin/g' xinetd/sample.conf > /etc/xinetd.conf
+
+
+Config files
+/etc/xinetd.conf
+
+Create the xinetd boot script:
+
+cat > /etc/rc.d/init.d/xinetd << "EOF"
+#!/bin/bash
+# Begin $rc_base/init.d/xinetd
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
+source /etc/sysconfig/rc
+source $rc_functions
+case "$1" in
+ start)
+ echo "Starting xinetd..."
+ loadproc /usr/sbin/xinetd
+ ;;
+ stop)
+ echo "Stopping xinetd..."
+ killproc /usr/sbin/xinetd
+ ;;
+ reload)
+ echo "Reloading xinetd..."
+ killall -HUP xinetd
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ status)
+ statusproc /usr/sbin/xinetd
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|reload|restart|status}"
+ exit 1
+ ;;
+esac
+# End $rc_base/init.d/xinetd
+EOF
+
+
+Add the run level symlinks:
+
+chmod 754 /etc/rc.d/init.d/xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S300xinetd &&
+ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K300xinetd
+
+
+Now, we'll use our new boot script to start xinetd:
+
+/etc/rc.d/init.d/xinetd start
+
+
+Checking the /var/log/daemon.log file
+should prove quite entertaining. This file may contain entries
+similar to the following:
+
+
+Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
+executable [line=29]
+Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
+DISABLING SERVICE [line=29]
+Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
+executable [line=42]
+
+
+These errors are due to the fact that we don't have most of the
+servers that xinetd is trying to control installed yet.
+
+
Index: server/other/xinetd/xinetd-desc.xml
===================================================================
--- server/other/xinetd/xinetd-desc.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-desc.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,20 @@
+
+Contents
+
+The xinetd package contains
+xinetd,
+itox and
+xconv.pl.
+
+Description
+
+xinetd
+xinetd is the internet services daemon.
+itox
+itox is a utility used for converting inetd.conf files to
+xinetd.conf format.
+xconv.pl
+xconv.pl is a perl script used for converting inetd.conf files
+to xinetd.conf format, similar to itox.
+
+
Index: server/other/xinetd/xinetd-exp.xml
===================================================================
--- server/other/xinetd/xinetd-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-exp.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,7 @@
+
+Installation command explanations
+
+ ./configure --prefix=/usr :
+
+Change the default installation directory of /usr/local.
+
Index: server/other/xinetd/xinetd-inst.xml
===================================================================
--- server/other/xinetd/xinetd-inst.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-inst.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,11 @@
+
+Installation of xinetd
+
+Install xinetd by running the following commands:
+
+./configure --prefix=/usr &&
+make &&
+make install
+
+
+
Index: server/other/xinetd/xinetd-intro.xml
===================================================================
--- server/other/xinetd/xinetd-intro.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
+++ server/other/xinetd/xinetd-intro.xml (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -0,0 +1,12 @@
+
+Introduction to xinetd
+
+Download location (HTTP):
+Download location (FTP):
+Version used: &xinetd-version;
+Package size: &xinetd-size;
+Estimated Disk space required: &xinetd-buildsize;
+
+xinetd is the eXtended InterNET services daemon, a secure
+replacement for inetd.
+
Index: server/other/xinetd/xinetd.ent
===================================================================
--- server/other/xinetd/xinetd.ent (revision 1c78953eba51e18070888e447cb0f83e5b494a94)
+++ server/other/xinetd/xinetd.ent (revision 5f5a39311961289ef5594ea28f789c3851b79d37)
@@ -1,1 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+