updated to Leafnode-1.10.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2381 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2004-06-25 16:06:01 +00:00
parent c90376c191
commit 9f729d3e5a
3 changed files with 76 additions and 53 deletions

View File

@ -191,7 +191,7 @@
<!-- bind (chapter 19) -->
<!-- cvs (chapter 18) -->
<!-- dhcp (chapter 14) -->
<!ENTITY leafnode-version "1.9.43">
<!ENTITY leafnode-version "1.10.0">
<!-- openssh (chapter 18) -->
<!-- rsync (chaptet 18) -->
<!ENTITY openldap-version "2.1.30">

View File

@ -18,6 +18,8 @@ who wrote what.</para>
<itemizedlist>
<listitem><para>June 25th, 2004 [randy]: Updated to Leafnode-1.10.0.</para></listitem>
<listitem><para>June 25th, 2004 [randy]: Added patch instructions and
command explanations for DB-3.</para></listitem>

View File

@ -5,9 +5,9 @@
%general-entities;
<!ENTITY leafnode-download-http "http://prdownloads.sourceforge.net/leafnode/leafnode-&leafnode-version;.rel.tar.bz2">
<!ENTITY leafnode-download-ftp " ">
<!ENTITY leafnode-size "614 KB">
<!ENTITY leafnode-buildsize "14 MB">
<!ENTITY leafnode-download-ftp "ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/system/news/transport/leafnode-&leafnode-version;.rel.tar.bz2">
<!ENTITY leafnode-size "383 KB">
<!ENTITY leafnode-buildsize "8.8 MB">
<!ENTITY leafnode-time "0.11 SBU">
]>
@ -35,6 +35,8 @@ server designed for small sites to provide a local USENET spool.</para>
<sect4><title>Required</title>
<para><xref linkend="pcre"/> and <xref linkend="tcpwrappers"/>
</para></sect4>
<sect4><title>Recommended</title>
<para><xref linkend="xinetd"/></para></sect4>
</sect3>
</sect2>
@ -50,12 +52,13 @@ useradd -g news news</command></userinput></screen>
<para>Install <application>Leafnode</application> by running the following
commands:</para>
<screen><userinput><command>./configure --prefix=/usr --localstatedir=/var \
--sysconfdir=/etc/news --with-lockfile=/var/lock/fetchnews.lck &amp;&amp;
<screen><userinput><command>./configure --prefix=/usr \
--localstatedir=/var --sysconfdir=/etc/leafnode \
--with-lockfile=/var/lock/leafnode/fetchnews.lck &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
ldconfig &amp;&amp;
make update</command></userinput></screen>
make install</command></userinput></screen>
<!-- ldconfig &amp;&amp; -->
<!-- make update</command></userinput></screen> -->
</sect2>
@ -65,14 +68,14 @@ make update</command></userinput></screen>
<para><parameter>--localstatedir=/var</parameter>: Change the default
spool directory of <filename class="directory">/usr/var</filename>.</para>
<para><parameter>--sysconfdir=/etc/news</parameter>: leafnode reads its
configuration data from a file called <filename>config</filename> which
will be created in <filename class="directory">/etc/news</filename> to
<para><parameter>--sysconfdir=/etc/leafnode</parameter>:
<application>Leafnode</application> reads its configuration data from a file
called <filename>config</filename> which will be created in
<filename class="directory">/etc/leafnode</filename> to
avoid any potential conflict with other packages.</para>
<para><command>make update</command>: Create an initial
<filename>/etc/news/config.example</filename> file, which must be
renamed to <filename>/etc/news/config</filename>.</para>
<para><command>make update</command>: Run this command if you are upgrading
from a very old version of <application>Leafnode</application>.</para>
</sect2>
@ -80,13 +83,44 @@ renamed to <filename>/etc/news/config</filename>.</para>
<title>Configuring <application>Leafnode</application></title>
<sect3><title>Config files</title>
<para><filename>/etc/news/config</filename>,
<filename>/etc/inetd.conf</filename> or
<filename>/etc/xinetd.conf</filename></para>
<para><filename>/etc/leafnode/config</filename>,
<filename>/etc/xinetd.conf</filename> or
<filename>/etc/inetd.conf</filename></para></sect3>
<sect3><title>Configuration commands</title>
<para>The <filename>/etc/leafnode/config</filename> file must be
edited to reflect the name of the upstream <acronym>NNTP</acronym>
provider. Copy the example configuration file to
<filename>/etc/leafnode/config</filename> and save the original for
reference:</para>
<screen><userinput><command>cp /etc/leafnode/config.example /etc/leafnode/config</command></userinput></screen>
<para>Change the
<screen><userinput>server = </userinput></screen>
entry to reflect your news provider.</para>
<para>The <filename>/etc/nntpserver</filename> file must contain 127.0.0.1 to
prevent news clients from reading news from the upstream feed. Create this
file using the following command:</para>
<screen><userinput><command>cat &gt; /etc/nntpserver &lt;&lt; "EOF"</command>
127.0.0.1
<command>EOF</command></userinput></screen>
<para>The <command>/etc/rc.d/init.d/cleanfs</command> script, part of the
<acronym>LFS</acronym> bootscript package, will remove the
<filename class="directory">/var/lock/leafnode</filename> directory during
the system boot sequence. Install the following line in the
<filename>/etc/sysconfig/createfiles</filename> file to re-create the
directory:</para>
<screen><userinput>/var/lock/leafnode dir 2775 news news</userinput></screen>
<para><application>Leafnode</application> may be configured to use
<command>inetd</command> by adding an entry
to the <filename>/etc/inetd.conf</filename> file with the following
<command>inetd</command> by adding an entry to the
<filename>/etc/inetd.conf</filename> file with the following
command:</para>
<screen><userinput><command>echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
@ -96,10 +130,10 @@ command:</para>
changed <filename>inetd.conf</filename> file.</para>
<para>Alternatively, <application>Leafnode</application> may be configured to
use <command>xinetd</command> by adding an entry to the <filename>
/etc/xinetd.conf</filename> file with the following command:</para>
use <command>xinetd</command> by adding an entry to the
<filename>/etc/xinetd.conf</filename> file with the following command:</para>
<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF" </command>
<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
service nntp
{
flags = NAMEINARGS NOLIBWRAP
@ -117,25 +151,9 @@ use <command>xinetd</command> by adding an entry to the <filename>
<para>Issue a <command>killall -HUP xinetd</command> to reread the
changed <filename>xinetd.conf</filename> file.</para>
<para>The <filename>/etc/news/config</filename> file must be
edited to reflect the name of the upstream <acronym>NNTP</acronym>
provider. Copy the
example configuration file to <filename>/etc/news/config</filename>
and save the original for reference: </para>
<screen><userinput><command>cp /etc/news/config.example /etc/news/config
</command></userinput></screen>
<para>Change the
<screen><userinput>server = </userinput></screen>
entry to reflect your news provider.</para>
<para>The <envar>NNTPSERVER</envar> environment variable must be set to
127.0.0.1 to prevent news clients from reading news from the upstream feed,
so add the following to <filename>/etc/profile</filename> or
<filename>$HOME/.bash_profile</filename>:</para>
<screen><userinput><command>export NNTPSERVER=127.0.0.1</command></userinput></screen>
<para>Add entries to the root or news user's crontab to run the
<command>fetchnews</command> and <command>texpire</command> commands at the
desired time intervals.</para>
</sect3>
@ -151,7 +169,8 @@ so add the following to <filename>/etc/profile</filename> or
<command>texpire</command>,
<command>checkgroups</command>,
<command>fetchnews</command> and
<command>newsq.</command></para></sect2>
<command>newsq.</command></para>
</sect2>
<sect2><title>Description</title>
@ -160,27 +179,29 @@ so add the following to <filename>/etc/profile</filename> or
version.</para></sect3>
<sect3><title>leafnode</title>
<para><command>leafnode</command> is the <acronym>NNTP</acronym> server daemon.</para></sect3>
<para><command>leafnode</command> is the <acronym>NNTP</acronym>
server daemon.</para></sect3>
<sect3><title>applyfilter</title>
<para><command>applyfilter</command> filters newsgroup articles according to regular
expressions.</para></sect3>
<para><command>applyfilter</command> filters newsgroup articles according
to regular expressions.</para></sect3>
<sect3><title>texpire</title>
<para><command>texpire</command> expires old articles and unread groups.</para></sect3>
<para><command>texpire</command> expires old articles and unread
groups.</para></sect3>
<sect3><title>checkgroups</title>
<para><command>checkgroups</command> inserts newsgroup titles into the newsgroup
database.</para></sect3>
<para><command>checkgroups</command> inserts newsgroup titles into the
newsgroup database.</para></sect3>
<sect3><title>fetchnews</title>
<para><command>fetchnews</command> sends posted articles to and retrieves new articles
from an upstream news server.</para></sect3>
<para><command>fetchnews</command> sends posted articles to and retrieves
new articles from an upstream news server.</para></sect3>
<sect3><title>newsq</title>
<para><command>newsq</command> shows articles waiting to be sent upstream.</para></sect3>
<para><command>newsq</command> shows articles waiting to be sent
upstream.</para></sect3>
</sect2>
</sect1>