diff options
author | cjep <cjep@pkgsrc.org> | 2004-01-11 16:45:51 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2004-01-11 16:45:51 +0000 |
commit | a4d73afbe4cebd30680514ca1ab876fa04b02f32 (patch) | |
tree | c8f3d681594537000d69f95acda4a1ec88e7906e /news/leafnode/INSTALL | |
parent | cad2ec1d56d116c0f0065d90f0be5fa3aca9e5b5 (diff) | |
download | pkgsrc-a4d73afbe4cebd30680514ca1ab876fa04b02f32.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 |