1 # $NetBSD: INSTALL,v 1.2 2003/05/06 17:42:22 jmmv Exp $
3 LEAFNODE_CONFDIR=@LEAFNODE_CONFDIR@
4 LEAFNODE_SPOOL=@LEAFNODE_SPOOL@
5 LEAFNODE_LOCKDIR=@LEAFNODE_LOCKDIR@
6 LEAFNODE_HOME=@LEAFNODE_HOME@
8 if [ "${STAGE}" = "POST-INSTALL" ]; then
10 mkdir -p ${LEAFNODE_CONFDIR}
11 if [ ! -f ${LEAFNODE_CONFDIR}/config ]; then
12 cp ${PREFIX}/share/examples/leafnode/config.example \
13 ${LEAFNODE_CONFDIR}/config
14 chmod u+w ${LEAFNODE_CONFDIR}/config
17 echo "Creating leafnode spool directories..."
19 SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id"
21 mkdir -p ${LEAFNODE_SPOOL}
22 chown news:news ${LEAFNODE_SPOOL}
23 chmod 2775 ${LEAFNODE_SPOOL}
25 for D in $SPOOL_DIRS; do
26 mkdir -p ${LEAFNODE_SPOOL}/$D;
27 chown news:news ${LEAFNODE_SPOOL}/$D
28 chmod 2775 ${LEAFNODE_SPOOL}/$D
31 mkdir -p ${LEAFNODE_LOCKDIR}
32 chown news:news ${LEAFNODE_LOCKDIR}
33 chmod 2775 ${LEAFNODE_LOCKDIR}
35 # Make directories (a la quickmkdir)
36 for a in 0 1 2 3 4 5 6 7 8 9; do
37 for b in 0 1 2 3 4 5 6 7 8 9; do
38 for c in 0 1 2 3 4 5 6 7 8 9; do
39 mkdir -m 2775 -p ${LEAFNODE_SPOOL}/message.id/$a$b$c
40 chown news:news ${LEAFNODE_SPOOL}/message.id/$a$b$c
45 mkdir -p ${LEAFNODE_HOME}
46 chown news:news ${LEAFNODE_HOME}