Summary: NNTP server for small sites Name: leafnode Version: 1.9.16 Release: 1 URL: http://www.leafnode.org/ Source0: ftp://wpxx02.toxi.uni-wuerzburg.de/pub/%{name}-%{version}.tar.gz Source1: leafnode.texpire Source2: leafnode.config Source3: leafnode.filters Copyright: distributable Group: System Environment/Daemons #BuildPrereq: pcre >= 2.06 BuildRoot: /tmp/%{name}-%{version}-root %description Leafnode is a USENET package intended for small sites, where there are few users and little disk space, but where a large number of groups is desired. The design of leafnode is intended to self-repair after problems, and to require no manual maintenance. %prep %setup -q %build ./configure --prefix=/usr if [ -x /usr/bin/getconf ] ; then NRPROC=$(/usr/bin/getconf _NPROCESSORS_ONLN) if [ $NRPROC -eq 0 ] ; then NRPROC=1 fi else NRPROC=1 fi cd pcre make cd .. make -j $NRPROC \ LIBDIR=/etc/leafnode \ LOCKFILE=/var/lock/news/fetch.lck \ DEBUG="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{cron.daily,leafnode} make PREFIX_USR=$RPM_BUILD_ROOT/usr \ PREFIX_VAR=$RPM_BUILD_ROOT/var \ LIBDIR=$RPM_BUILD_ROOT/etc/leafnode \ LOCKFILE=$RPM_BUILD_ROOT/var/lock/news/fetch.lck \ install install -m 755 -g root -o root %SOURCE1 $RPM_BUILD_ROOT/etc/cron.daily/texpire install -m 600 -g news -o news %SOURCE2 $RPM_BUILD_ROOT/etc/leafnode/config install -m 600 -g news -o news %SOURCE3 $RPM_BUILD_ROOT/etc/leafnode/filters %pre if [ -f /etc/cron.daily/texpire.cron ] ; then rm -f /etc/cron.daily/texpire.cron fi %post if [ `grep leafnode /etc/inetd.conf | wc -l` = 0 ] ; then echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" >> /etc/inetd.conf fi if [ -f /var/run/inetd.pid ] ; then kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||: fi %postun if [ "$1" = "0" ]; then grep -v leafnode /etc/inetd.conf | grep -v /bin/sh > /etc/inetd.conf.new mv /etc/inetd.conf.new /etc/inetd.conf fi if [ -f /var/run/inetd.pid ] ; then kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||: fi %clean rm -rf $RPM_BUILD_ROOT %files %doc CHANGES INSTALL README TODO tools/archivefaq.pl update.sh %attr(755,root,root) %config /etc/cron.daily/texpire %attr(755,news,news) %dir /etc/leafnode %attr(600,news,news) %config /etc/leafnode/config %attr(600,news,news) %config /etc/leafnode/filters %attr(644,root,man) /usr/man/*/* %attr(750,news,news) /usr/sbin/* %attr(750,news,news) /usr/bin/* %attr(755,news,news) %dir /var/lock/news %attr(2775,news,news) %dir /var/spool/news %attr(775,news,news) %dir /var/spool/news/* %attr(775,news,news) %dir /var/spool/news/message.id/* %changelog * Wed Aug 9 2000 Dobrica Pavlinusic [1.9.16-1], removed pcre extern dependency, build first pcre * Wed Aug 02 2000 Arne Coucheron [1.9.15-1] * Mon Jul 31 2000 Arne Coucheron [1.9.14-1] * Tue Apr 11 2000 Arne Coucheron [1.9.13-1] - take advantage of compiling in multiprocessor environment * Thu Mar 30 2000 Arne Coucheron [1.9.12-1] - changed the URL * Wed Feb 23 2000 Arne Coucheron [1.9.11-1] * Tue Feb 08 2000 Arne Coucheron [1.9.10-1] * Wed Jan 05 2000 Arne Coucheron [1.9.9-1] * Tue Dec 14 1999 Arne Coucheron [1.9.7-1] * Wed Dec 08 1999 Arne Coucheron [1.9.6-1] * Fri Dec 03 1999 Arne Coucheron [1.9.5-1] - requires standalone pcre package when building from source * Tue Jul 20 1999 Arne Coucheron [1.9.4-1] - removed the patches, problems fixed in sources * Fri Jul 16 1999 Arne Coucheron [1.9.3-1] - INSTALL and update.sh file added to %doc - changed URL: tag - changed Group tag: to comply with RH 6.0 - changed %description * Sat Mar 06 1999 Arne Coucheron [1.9.2-1] * Wed Feb 17 1999 Arne Coucheron [1.9-2] - remove the old texpire.cron file * Tue Feb 16 1999 Arne Coucheron [1.9-1] - moved config files to /etc/leafnode - added a sample filters file - removed procedure for upgrading from older versions - changed name of texpire.cron to just texpire * Mon Jan 03 1999 Arne Coucheron [1.8.1-1] - patch removed, fixed in sources * Fri Dec 18 1998 Arne Coucheron [1.8-1] - added patch for missing in filterutil.c * Thu Dec 10 1998 Arne Coucheron [1.7.1-1] * Mon Dec 07 1998 Arne Coucheron [1.7-1] * Thu Nov 05 1998 Arne Coucheron [1.6.2-2] - %doc dir was not readable by ordinary users, fixed! - made config file readable by owner only, to prevent unauthorized users from getting hold of passwords * Fri Oct 23 1998 Arne Coucheron [1.6.2-1] * Wed Oct 14 1998 Arne Coucheron [1.6.1-1] - can someone please send me a patch to get rid of all the LOG_DEBUG messages so that the operation of leafnode can be speeded up * Thu Sep 10 1998 Arne Coucheron [1.5-2] - using %%{name} and %%{version} macros - added -q parameter to %setup - added patches from Michael Schwendt * Thu May 07 1998 Arne Coucheron [1.5-1] - cleaned out older changelogs - some adjustments to the spec file