Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / news / leafnode / INSTALL
blobf077bd9792f799653275a3aa4b1651c1885a9bf8
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
15         fi
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
29         done
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
41                         done
42                 done
43         done
45         mkdir -p ${LEAFNODE_HOME}
46         chown news:news ${LEAFNODE_HOME}