diff options
author | cjep <cjep> | 2004-01-11 16:45:51 +0000 |
---|---|---|
committer | cjep <cjep> | 2004-01-11 16:45:51 +0000 |
commit | 75543f8b4a9bbac3aa1153f54889e68df95c315d (patch) | |
tree | c8f3d681594537000d69f95acda4a1ec88e7906e /news/leafnode/INSTALL | |
parent | 6a53d369da12360d85919c8fd95d9627416d7b9a (diff) | |
download | pkgsrc-75543f8b4a9bbac3aa1153f54889e68df95c315d.tar.gz |
Update of news/leafnode to 1.9.49.
Pkgsrc changes since previous version:
* Add the news user if necessary (and be compatible with the INN package).
* Use bsd.pkg.install.mk.
Vendor changes since previous version:
(see the Changelog for more details)
* Security fix. Do not lock up when the news header ends prematurely.
* Revise some memory handling and catch out-of-memory conditions.
* Fixes to syslog handling.
* Support XOVER without argument.
* Fix SEGV in fetchnews.c.
Diffstat (limited to 'news/leafnode/INSTALL')
-rw-r--r-- | news/leafnode/INSTALL | 69 |
1 files changed, 36 insertions, 33 deletions
diff --git a/news/leafnode/INSTALL b/news/leafnode/INSTALL index 53beee775ea..983fd781fd0 100644 --- a/news/leafnode/INSTALL +++ b/news/leafnode/INSTALL @@ -1,44 +1,47 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.2 2003/05/06 17:42:22 jmmv Exp $ +# $NetBSD: INSTALL,v 1.3 2004/01/11 16:45:51 cjep Exp $ -if [ "$2" != "POST-INSTALL" ]; then - exit 0 -fi +LEAFNODE_CONFDIR=@LEAFNODE_CONFDIR@ +LEAFNODE_SPOOL=@LEAFNODE_SPOOL@ +LEAFNODE_LOCKDIR=@LEAFNODE_LOCKDIR@ +LEAFNODE_HOME=@LEAFNODE_HOME@ -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 +if [ "${STAGE}" = "POST-INSTALL" ]; then -echo "Creating leafnode spool directories..." + 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 -SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id" + echo "Creating leafnode spool directories..." -mkdir -p @@LEAFNODE_SPOOL@@ -chown news:news @@LEAFNODE_SPOOL@@ -chmod 2775 @@LEAFNODE_SPOOL@@ + SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id" -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_SPOOL} + chown news:news ${LEAFNODE_SPOOL} + chmod 2775 ${LEAFNODE_SPOOL} -mkdir -p @@LEAFNODE_LOCKDIR@@ -chown news:news @@LEAFNODE_LOCKDIR@@ -chmod 2775 @@LEAFNODE_LOCKDIR@@ + for D in $SPOOL_DIRS; do + mkdir -p ${LEAFNODE_SPOOL}/$D; + chown news:news ${LEAFNODE_SPOOL}/$D + chmod 2775 ${LEAFNODE_SPOOL}/$D + done -# 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 + 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 -done -exit 0 + mkdir -p ${LEAFNODE_HOME} + chown news:news ${LEAFNODE_HOME} +fi |