a4d73afbe4
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.
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# $NetBSD: INSTALL,v 1.3 2004/01/11 16:45:51 cjep Exp $
|
|
|
|
LEAFNODE_CONFDIR=@LEAFNODE_CONFDIR@
|
|
LEAFNODE_SPOOL=@LEAFNODE_SPOOL@
|
|
LEAFNODE_LOCKDIR=@LEAFNODE_LOCKDIR@
|
|
LEAFNODE_HOME=@LEAFNODE_HOME@
|
|
|
|
if [ "${STAGE}" = "POST-INSTALL" ]; then
|
|
|
|
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
|
|
|
|
mkdir -p ${LEAFNODE_HOME}
|
|
chown news:news ${LEAFNODE_HOME}
|
|
fi
|