684738577b
PR: ports/65133 Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer)
31 lines
766 B
Bash
31 lines
766 B
Bash
#! /bin/sh
|
|
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
;;
|
|
POST-INSTALL)
|
|
SPOOLDIR=${SPOOLDIR:=${PKG_PREFIX}/var/spool/leafnode}
|
|
LOCKFILE=${SPOOLDIR}/leaf.node/lock.file
|
|
|
|
mkdir -p `dirname $LOCKFILE`
|
|
mkdir -p $SPOOLDIR
|
|
mkdir -p $SPOOLDIR/failed.postings
|
|
mkdir -p $SPOOLDIR/leaf.node
|
|
mkdir -p $SPOOLDIR/message.id
|
|
mkdir -p $SPOOLDIR/interesting.groups
|
|
mkdir -p $SPOOLDIR/out.going
|
|
mkdir -p $SPOOLDIR/temp.files
|
|
chown news:news `dirname $LOCKFILE`
|
|
chown news:news $SPOOLDIR
|
|
chown news:news $SPOOLDIR/failed.postings
|
|
chown news:news $SPOOLDIR/leaf.node
|
|
chown news:news $SPOOLDIR/message.id
|
|
chown news:news $SPOOLDIR/interesting.groups
|
|
chown news:news $SPOOLDIR/out.going
|
|
chown news:news $SPOOLDIR/temp.files
|
|
;;
|
|
*)
|
|
echo >&2 "Unknown argument in $0 $@"
|
|
exit 1
|
|
;;
|
|
esac
|