summaryrefslogtreecommitdiff
path: root/news/leafnode
diff options
context:
space:
mode:
authorcjep <cjep>2002-06-16 11:34:26 +0000
committercjep <cjep>2002-06-16 11:34:26 +0000
commit3dd4d9141876dff8febe53f11d07c51f96cff567 (patch)
tree09c8d61b6c47fb895a9ccd4335fd1cd157cdb526 /news/leafnode
parentdceeee66805406d2d1f6f994f9a70d11f6bc431d (diff)
downloadpkgsrc-3dd4d9141876dff8febe53f11d07c51f96cff567.tar.gz
Initial import of Leafnode 1.9.22 into the NetBSD packages collection
as news/leafnode. Leafnode is a USENET software package designed for small sites, with a few tens of readers and only a slow link to the net. The work in this package is based on that of Ingolf Steinbach in PR#13830. wiz@ made some suggestions as well. Thanks to both of them.
Diffstat (limited to 'news/leafnode')
-rw-r--r--news/leafnode/DEINSTALL22
-rw-r--r--news/leafnode/DESCR8
-rw-r--r--news/leafnode/INSTALL44
-rw-r--r--news/leafnode/MESSAGE20
-rw-r--r--news/leafnode/Makefile53
-rw-r--r--news/leafnode/PLIST16
-rw-r--r--news/leafnode/distinfo5
-rw-r--r--news/leafnode/patches/patch-aa58
8 files changed, 226 insertions, 0 deletions
diff --git a/news/leafnode/DEINSTALL b/news/leafnode/DEINSTALL
new file mode 100644
index 00000000000..28b856e8996
--- /dev/null
+++ b/news/leafnode/DEINSTALL
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+case "$2" in
+ DEINSTALL) cat <<EOF
+
+==========================================================================
+
+Note that the leafnode spool, lock and configuration directories
+(@@LEAFNODE_SPOOL@@, @@LEAFNODE_LOCKDIR@@ and @@LEAFNODE_CONFDIR@@)
+are NOT deleted during the package deinstallation. Please remove these
+directories and all their contents manually if they are no longer needed.
+Also, don't forgot to remove any cron jobs associated with leafnode.
+
+==========================================================================
+
+EOF
+ ;;
+esac
+
+exit 0
diff --git a/news/leafnode/DESCR b/news/leafnode/DESCR
new file mode 100644
index 00000000000..33cfaf8aff0
--- /dev/null
+++ b/news/leafnode/DESCR
@@ -0,0 +1,8 @@
+Leafnode is a USENET software package designed for small sites, with a
+few tens of readers and only a slow link to the net.
+
+Only groups that someone has been reading in the past week are fetched
+from the upstream NNTP server. When someone stops reading a group,
+fetchnews will stop reading that group a week later (this is the default
+which can be configured), and when someone starts reading a group, fetchnews
+will grab all the articles it can in that group the next time it runs.
diff --git a/news/leafnode/INSTALL b/news/leafnode/INSTALL
new file mode 100644
index 00000000000..d69681e004b
--- /dev/null
+++ b/news/leafnode/INSTALL
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+mkdir -p @@LEAFNODE_CONFDIR@@
+if [ ! -f @@LEAFNODE_CONFDIR@@/config ]; then
+ cp @@PREFIX@@/share/examples/leafnode/config.example \
+ @@LEAFNODE_CONFDIR@@/config
+ chmod u+w @@LEAFNODE_CONFDIR@@/config
+fi
+
+echo "Creating leafnode spool directories..."
+
+SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id"
+
+mkdir -p @@LEAFNODE_SPOOL@@
+chown news:news @@LEAFNODE_SPOOL@@
+chmod 2775 @@LEAFNODE_SPOOL@@
+
+for D in $SPOOL_DIRS; do
+ mkdir -p @@LEAFNODE_SPOOL@@/$D;
+ chown news:news @@LEAFNODE_SPOOL@@/$D
+ chmod 2775 @@LEAFNODE_SPOOL@@/$D
+done
+
+mkdir -p @@LEAFNODE_LOCKDIR@@
+chown news:news @@LEAFNODE_LOCKDIR@@
+chmod 2775 @@LEAFNODE_LOCKDIR@@
+
+# Make directories (a la quickmkdir)
+for a in 0 1 2 3 4 5 6 7 8 9; do
+ for b in 0 1 2 3 4 5 6 7 8 9; do
+ for c in 0 1 2 3 4 5 6 7 8 9; do
+ mkdir -m 2775 -p @@LEAFNODE_SPOOL@@/message.id/$a$b$c
+ chown news:news @@LEAFNODE_SPOOL@@/message.id/$a$b$c
+ done
+ done
+done
+
+exit 0
diff --git a/news/leafnode/MESSAGE b/news/leafnode/MESSAGE
new file mode 100644
index 00000000000..4f68ae087ef
--- /dev/null
+++ b/news/leafnode/MESSAGE
@@ -0,0 +1,20 @@
+======================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+Edit ${LEAFNODE_CONFDIR}/config and make the necessary local
+changes.
+
+Leafnode needs to be run from inetd. An example configuration for
+/etc/inetd.conf is as follows:
+nntp stream tcp nowait news ${PREFIX}/sbin/leafnode leafnode
+nntp stream tcp6 nowait news ${PREFIX}/sbin/leafnode leafnode
+
+Edit the news user's crontab to run an expiry job. For example, add:
+0 4 * * * ${PREFIX}/sbin/texpire
+
+As root or news, run "fetchnews". This may take some time. Then connect
+to the leafnode server with an NNTP client. Select the groups you want
+to read in the future by reading the "default" article in them.
+Run "fetchnews" again. This run will pick up all the groups you want to
+read. You may wish to automate the running of "fetchnews".
+======================================================================
diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile
new file mode 100644
index 00000000000..ac55645c36a
--- /dev/null
+++ b/news/leafnode/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+DISTNAME= leafnode-1.9.22
+CATEGORIES= news
+MASTER_SITES= ftp://wpxx02.toxi.uni-wuerzburg.de/pub/ \
+ ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
+ ftp://ftp.stikman.com/pub/leafnode/ \
+ ${MASTER_SITE_SUNSITE:=system/news/transport/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.leafnode.org/
+COMMENT= NNTP server for small (dialup) sites
+
+WRKSRC= ${WRKDIR}/${DISTNAME}.rel
+
+LEAFNODE_SPOOL?= /var/spool/leafnode
+LEAFNODE_LOCKDIR?= /var/spool/lock/leafnode
+LEAFNODE_CONFDIR?= ${PKG_SYSCONFDIR}/leafnode
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-spooldir=${LEAFNODE_SPOOL}
+CONFIGURE_ARGS+= --with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
+CONFIGURE_ARGS+= --sysconfdir=${LEAFNODE_CONFDIR}
+USE_GMAKE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(USE_INET6) && ${USE_INET6} == YES
+CONFIGURE_ARGS+= --with-ipv6
+.else
+CONFIGURE_ARGS+= --without-ipv6
+.endif
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
+
+post-build:
+ for F in DEINSTALL INSTALL; do \
+ ${SED} -e 's#@@LEAFNODE_SPOOL@@#${LEAFNODE_SPOOL}#g' \
+ -e 's#@@LEAFNODE_LOCKDIR@@#${LEAFNODE_LOCKDIR}#g' \
+ -e 's#@@LEAFNODE_CONFDIR@@#${LEAFNODE_CONFDIR}#g' \
+ -e 's#@@PREFIX@@#${PREFIX}#g' \
+ ${PKGDIR}/$${F} > ${WRKDIR}/$${F}; done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
+ ${INSTALL_DATA} ${WRKSRC}/config.example \
+ ${PREFIX}/share/examples/leafnode
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/news/leafnode/PLIST b/news/leafnode/PLIST
new file mode 100644
index 00000000000..bf044a50d46
--- /dev/null
+++ b/news/leafnode/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+bin/newsq
+man/man1/newsq.1
+man/man8/applyfilter.8
+man/man8/checkgroups.8
+man/man8/fetchnews.8
+man/man8/leafnode.8
+man/man8/texpire.8
+sbin/applyfilter
+sbin/checkgroups
+sbin/fetchnews
+sbin/leafnode
+sbin/lsort
+sbin/texpire
+share/examples/leafnode/config.example
+@dirrm share/examples/leafnode
diff --git a/news/leafnode/distinfo b/news/leafnode/distinfo
new file mode 100644
index 00000000000..e7429c9815f
--- /dev/null
+++ b/news/leafnode/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+SHA1 (leafnode-1.9.22.tar.gz) = fde8b7b97247a184438c1395fc7d3b3c8a12418e
+Size (leafnode-1.9.22.tar.gz) = 641708 bytes
+SHA1 (patch-aa) = 442143f000b0c1af91bbeda81bcaead26204deb6
diff --git a/news/leafnode/patches/patch-aa b/news/leafnode/patches/patch-aa
new file mode 100644
index 00000000000..40c800c5d9a
--- /dev/null
+++ b/news/leafnode/patches/patch-aa
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
+
+--- Makefile.in.orig Wed Apr 17 19:39:31 2002
++++ Makefile.in
+@@ -587,14 +587,14 @@
+ done
+ sysconfDATA_INSTALL = $(INSTALL_DATA)
+ install-sysconfDATA: $(sysconf_DATA)
+- @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- @list='$(sysconf_DATA)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
+- done
++# @$(NORMAL_INSTALL)
++# $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++# @list='$(sysconf_DATA)'; for p in $$list; do \
++# if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
++# f="`echo $$p | sed -e 's|^.*/||'`"; \
++# echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
++# $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
++# done
+
+ uninstall-sysconfDATA:
+ @$(NORMAL_UNINSTALL)
+@@ -995,18 +995,18 @@
+ rpm -ba leafnode.spec
+
+ install-data-hook: quickmkdir amiroot
+- set -e ; for i in . leaf.node failed.postings interesting.groups \
+- out.going message.id ; do \
+- mkdir -p $(DESTDIR)$(SPOOLDIR)/$$i ; \
+- if ./amiroot ; then \
+- chown news:news $(DESTDIR)$(SPOOLDIR)/$$i ; \
+- chmod 2775 $(DESTDIR)$(SPOOLDIR)/$$i ; fi ; \
+- done
+- d="`dirname $(DESTDIR)@LOCKFILE@`" ; mkdir -p "$${d}" && \
+- if ./amiroot ; then \
+- chown news:news "$${d}" ; \
+- chmod 2775 "$${d}" ; fi
+- ./quickmkdir $(DESTDIR)
++# set -e ; for i in . leaf.node failed.postings interesting.groups \
++# out.going message.id ; do \
++# mkdir -p $(DESTDIR)$(SPOOLDIR)/$$i ; \
++# if ./amiroot ; then \
++# chown news:news $(DESTDIR)$(SPOOLDIR)/$$i ; \
++# chmod 2775 $(DESTDIR)$(SPOOLDIR)/$$i ; fi ; \
++# done
++# d="`dirname $(DESTDIR)@LOCKFILE@`" ; mkdir -p "$${d}" && \
++# if ./amiroot ; then \
++# chown news:news "$${d}" ; \
++# chmod 2775 "$${d}" ; fi
++# ./quickmkdir $(DESTDIR)
+
+ uninstall-local:
+ rm -rf $(DESTDIR)$(SPOOLDIR) $(DESTDIR)@LOCKFILE@