diff options
author | cjep <cjep> | 2002-06-16 11:34:26 +0000 |
---|---|---|
committer | cjep <cjep> | 2002-06-16 11:34:26 +0000 |
commit | de13a357ee9af700bc31c7dda882534ec0c1f533 (patch) | |
tree | 09c8d61b6c47fb895a9ccd4335fd1cd157cdb526 /news/leafnode/INSTALL | |
parent | 93116111e020bed63ecc1783d2fea5b79dbe0e7f (diff) | |
download | pkgsrc-de13a357ee9af700bc31c7dda882534ec0c1f533.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/INSTALL')
-rw-r--r-- | news/leafnode/INSTALL | 44 |
1 files changed, 44 insertions, 0 deletions
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 |