leafnode stable port information

Package: leafnode
Version: 1.10.0
Revision: 1
BuildDepends: pcre
Depends: pcre-shlibs, passwd
Description: Simple NNTP (usenet) server for small sites
Maintainer: Christian Swinehart
License: BSD
Source: mirror:sourceforge:leafnode/leafnode-%v.rel.tar.bz2
Source-MD5: 271f5335e5ea3115cc0dfe7ce91da477
PatchScript: sed 's|@FINK_PREFIX@|%p|g' <%a/%n.patch | patch -p1
ConfigureParams: --with-spooldir=%p/var/spool/news --with-lockfile=%p/var/run/leafnode/fetchnews.lck --sysconfdir=%p/etc/leafnode
SetCFLAGS: -I%p/include -L%p/lib
ConfFiles: %p/etc/leafnode/config
InstallScript: <<
make install DESTDIR=%d
mv %i/etc/leafnode/config.example %i/etc/leafnode/config
mv leafnode.xinetd %i/etc/leafnode/
mkdir -p %i/share/doc/%n
mv %i/man %i/share/
mv %i/etc/leafnode/UNINSTALL-daemontools %i/share/doc/%n/
mkdir -m 755 -p %i/var/run/leafnode
chown news:news %i/var/run/leafnode
<<
DocFiles: COPYING* CREDITS NEWS ChangeLog FAQ.* README* TODO fink/README-Fink
DescDetail: <<
Leafnode is a news server suitable for small, limited-bandwidth sites
with only a few users. Leafnode keeps track of which groups are being
read, and downloads only articles in those groups. Leafnode has been
designed to require no maintenance and to be easy to set up.
<<
DescPackaging: <<
During installation a symlink to an xinetd conf file is placed in /etc/xinetd.d

This may be incorrect, but at time of packaging, there was no official workaround
to avoid placing this file outside of the /sw directory tree.
<<
PostInstScript: <<
if [ $1 != "upgrade" ]; then
ln -fs %p/etc/leafnode/leafnode.xinetd /etc/xinetd.d/leafnode
printf "\n\n\nImportant: \tRead the instructions in %p/share/doc/leafnode/README-Fink \n\t\tbefore trying to use leafnode.\n\n\n"
fi
<<
PreRmScript: <<
# Clear out the spool dirs
if [ $1 != "upgrade" ]; then
rm -rf %p/var/spool/news/leaf.node/
rm -rf %p/var/spool/news/interesting.groups/
rm -rf %p/var/spool/news/message.id/
rm -f %p/var/spool/news/active.read
fi
<<
PostRmScript: <<
# clean up and remove ourselves from xinetd.d
if [ $1 != "upgrade" ]; then
rm -f /etc/xinetd.d/leafnode
rm -rf %p/var/spool/news/*
[ -d %p/var/spool/news ] && rmdir %p/var/spool/news
rm -f %p/var/run/leafnode/fetchnews.lck
fi
<<
Homepage: http://leafnode.sourceforge.net/

leafnode stable port .patch

diff -u -Naur leafnode-1.9.49.rel/fink/README-Fink leafnode-1.9.49.rel.fink/fink/README-Fink
--- leafnode-1.9.49.rel/fink/README-Fink Wed Dec 31 19:00:00 1969
+++ leafnode-1.9.49.rel.fink/fink/README-Fink Wed Jan 21 16:24:41 2004
@@ -0,0 +1,35 @@
+Once the leafnode service has been installed there's still some
+important configuration yet to be done. There are 4 main steps:
+
+1) Edit @FINK_PREFIX@/etc/leafnode/config and set the server field to
+the address of your ISP's news feed.
+
+2) Run @FINK_PREFIX@/sbin/fetchnews to download the list of groups
+from your newsfeed.
+
+3) Enable the service by typing: sudo /sbin/service leafnode start
+
+4) Schedule automated updating of active groups:
+ Leafnode tracks which groups have been accessed by clients and will
+ cache the articles in these `active' groups. The downloading is
+ performed by the fetchnews utility we just invoked manually, but
+ you likely don't want to have to do this every time you access
+ usenet.
+
+ The solution is to add to the `news' user's crontab and schedule
+ fetchnews to run hourly/daily/etc. Also important is to schedule
+ texpire to run in order to prune out older articles (the threshold
+ for what constitutes an `old' thread is set through the `expire'
+ field.
+
+ To set this up type: sudo -u news crontab -e
+
+ Then add lines similar to:
+ 0 4 * * * @FINK_PREFIX@/sbin/texpire
+ 0 * * * * @FINK_PREFIX@/sbin/fetchnews
+
+ The above lines will set texpire to run nightly at 4am and will
+ update the articles cache every hour on the hour.
+
+enjoy!
+Christian Swinehart
diff -u -Naur leafnode-1.9.49.rel/leafnode.xinetd.in leafnode-1.9.49.rel.fink/leafnode.xinetd.in
--- leafnode-1.9.49.rel/leafnode.xinetd.in Tue Oct 7 07:08:36 2003
+++ leafnode-1.9.49.rel.fink/leafnode.xinetd.in Wed Jan 21 16:22:13 2004
@@ -25,7 +25,7 @@

service nntp
{
- disable = yes
+ disable = no
socket_type = stream
protocol = tcp
wait = no

leafnode _unstable_ port information

Package: leafnode
Version: 1.11.5
Revision: 1
BuildDepends: pcre
Depends: pcre-shlibs, passwd
Description: Simple NNTP (usenet) server for small sites
Maintainer: Christian Swinehart
License: BSD
Source: mirror:sourceforge:leafnode/leafnode-%v.tar.bz2
Source-MD5: 88552c5cc91cb27146c8906b2d33289d
PatchScript: sed 's|@FINK_PREFIX@|%p|g' <%a/%n.patch | patch -p1
ConfigureParams: --with-spooldir=%p/var/spool/news --with-lockfile=%p/var/run/leafnode/fetchnews.lck --sysconfdir=%p/etc/leafnode --mandir=%p/share/man --disable-dependency-tracking
ConfFiles: %p/etc/leafnode/config
CompileScript: <<
./configure %c
make
make check
<<
InstallScript: <<
make install DESTDIR=%d
install -m 644 %i/etc/leafnode/config.example %i/etc/leafnode/config
install -m 644 leafnode.xinetd %i/etc/leafnode/
mkdir -m 755 -p %i/var/run/leafnode
<<
DocFiles: COPYING* CREDITS ChangeLog* KNOWNBUGS NEWS OLDNEWS README README.FIRST fink/README-Fink
DescDetail: <<
Leafnode is a news server suitable for small, limited-bandwidth sites
with only a few users. Leafnode keeps track of which groups are being
read, and downloads only articles in those groups. Leafnode has been
designed to require no maintenance and to be easy to set up.
<<
DescPackaging: <<
During installation a symlink to an xinetd conf file is placed in
/etc/xinetd.d This may be incorrect, but at time of packaging, there
was no official workaround to avoid placing this file outside of the
%p directory tree.

dmacks adjusted PreRm/PostRm to preserve spool if pkg is only
removed (purging nukes them). Acts like ConfFiles, but that field
can only handle files (not dirs) and that are part of the .deb (not
created at runtime)

dmacks moved chown from Install to PostInst so that we are clean
under --build-as-nobody
<<
PostInstScript: <<
chown news:news %p/var/run/leafnode

if [ $1 != "upgrade" ]; then
ln -fs %p/etc/leafnode/leafnode.xinetd /etc/xinetd.d/leafnode
printf "\n\n\nImportant: \tRead the instructions in %p/share/doc/leafnode/README-Fink \n\t\tbefore trying to use leafnode.\n\n\n"
fi
<<
PreRmScript: <<
# clean up and remove ourselves from xinetd.d
if [ $1 != "upgrade" ]; then
rm -f /etc/xinetd.d/leafnode
rm -f %p/var/run/leafnode/fetchnews.lck
fi

# Clear out the spool dirs
if [ $1 = "purge" ]; then
rm -rf %p/var/spool/news/leaf.node/
rm -rf %p/var/spool/news/interesting.groups/
rm -rf %p/var/spool/news/message.id/
rm -f %p/var/spool/news/active.read
rm -rf %p/var/spool/news/*
[ -d %p/var/spool/news ] && rmdir %p/var/spool/news
fi
<<
Homepage: http://leafnode.sourceforge.net/

leafnode _unstable_ port .patch

diff -Nurd -x'*~' leafnode-1.11.5.orig/Makefile.in leafnode-1.11.5/Makefile.in
--- leafnode-1.11.5.orig/Makefile.in 2006-04-09 07:48:30.000000000 -0400
+++ leafnode-1.11.5/Makefile.in 2006-06-15 01:50:23.000000000 -0400
@@ -345,10 +345,10 @@

noinst_DATA = leafnode.xinetd
sysconf_DATA = config.example filters.example run.tcpserver.dist run.tcpd.dist \
- nntp.rules.dist Makefile.dist UNINSTALL-daemontools
+ nntp.rules.dist Makefile.dist

mydocs = README-FQDN README-FQDN.html README-FQDN.pdf \
- README-daemontools \
+ README-daemontools UNINSTALL-daemontools \
FAQ.html FAQ.txt FAQ.pdf

man_MANS = applyfilter.8 checkgroups.8 fetchnews.8 leafnode.8\
diff -Nurd -x'*~' leafnode-1.11.4.orig/fink/README-Fink leafnode-1.11.4/fink/README-Fink
--- leafnode-1.11.4.orig/fink/README-Fink 1969-12-31 19:00:00.000000000 -0500
+++ leafnode-1.11.4/fink/README-Fink 2005-11-23 12:29:40.000000000 -0500
@@ -0,0 +1,35 @@
+Once the leafnode service has been installed there's still some
+important configuration yet to be done. There are 4 main steps:
+
+1) Edit @FINK_PREFIX@/etc/leafnode/config and set the server field to
+the address of your ISP's news feed.
+
+2) Run @FINK_PREFIX@/sbin/fetchnews to download the list of groups
+from your newsfeed.
+
+3) Enable the service by typing: sudo /sbin/service leafnode start
+
+4) Schedule automated updating of active groups:
+ Leafnode tracks which groups have been accessed by clients and will
+ cache the articles in these `active' groups. The downloading is
+ performed by the fetchnews utility we just invoked manually, but
+ you likely don't want to have to do this every time you access
+ usenet.
+
+ The solution is to add to the `news' user's crontab and schedule
+ fetchnews to run hourly/daily/etc. Also important is to schedule
+ texpire to run in order to prune out older articles (the threshold
+ for what constitutes an `old' thread is set through the `expire'
+ field.
+
+ To set this up type: sudo -u news crontab -e
+
+ Then add lines similar to:
+ 0 4 * * * @FINK_PREFIX@/sbin/texpire
+ 0 * * * * @FINK_PREFIX@/sbin/fetchnews
+
+ The above lines will set texpire to run nightly at 4am and will
+ update the articles cache every hour on the hour.
+
+enjoy!
+Christian Swinehart
diff -Nurd -x'*~' leafnode-1.11.4.orig/leafnode.xinetd.in leafnode-1.11.4/leafnode.xinetd.in
--- leafnode-1.11.4.orig/leafnode.xinetd.in 2003-10-07 07:08:36.000000000 -0400
+++ leafnode-1.11.4/leafnode.xinetd.in 2005-11-23 12:29:40.000000000 -0500
@@ -25,7 +25,7 @@

service nntp
{
- disable = yes
+ disable = no
socket_type = stream
protocol = tcp
wait = no