aboutsummaryrefslogtreecommitdiffstats
path: root/news/fidogate-ds/pkg-install
blob: f088073de99c1e2569d451d3cf2933cf92361403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

case $2 in
PRE-INSTALL)
    ;;
POST-INSTALL)
    SPOOLDIR=${SPOOLDIR:=/var/spool/fido/gate}
    BTBASEDIR=${BTBASEDIR:=/var/spool/fido/bt}
    LOGDIR=${LOGDIR:=/var/log/fido/gate}
    LOCKDIR=${LOCKDIR:=/var/run/fidogate}
    VARDIR=${VARDIR:=${PREFIX}/var/fidogate}

    mkdir -p $LOCKDIR
    mkdir -p $LOGDIR
    mkdir -p $BTBASEDIR/fbox
    mkdir -p $BTBASEDIR/in/bad
    mkdir -p $BTBASEDIR/in/tmpunpack
    mkdir -p $BTBASEDIR/pin/bad
    mkdir -p $BTBASEDIR/pin/tmpunpack
    mkdir -p $BTBASEDIR/out
    mkdir -p $BTBASEDIR/tick
    mkdir -p $SPOOLDIR/outpkt/mail
    mkdir -p $SPOOLDIR/outpkt/news
    mkdir -p $SPOOLDIR/outrfc/mail
    mkdir -p $SPOOLDIR/outrfc/news
    mkdir -p $SPOOLDIR/toss/bad
    mkdir -p $SPOOLDIR/toss/pack
    mkdir -p $SPOOLDIR/toss/route
    mkdir -p $SPOOLDIR/toss/toss
    mkdir -p $VARDIR/seq
    ;;
*)
    echo >&2 "Unknown argument in $0 $@"
    exit 1
    ;;
esac