summaryrefslogtreecommitdiffstats
path: root/news/inn/pkg-install
blob: 7732199e100ce86c9e714d36a84c375c090cf0ff (plain)
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
#!/bin/sh

PKGNAME=$1

case $2 in
    PRE-INSTALL)
	;;
    POST-INSTALL)
	NEWSBASE=${PKG_PREFIX:-/usr/local}/news
        install -d -o news -g news -m 755 \
	    ${NEWSBASE}/run \
	    ${NEWSBASE}/spool \
	    ${NEWSBASE}/spool/archive \
	    ${NEWSBASE}/spool/articles \
	    ${NEWSBASE}/spool/incoming \
	    ${NEWSBASE}/spool/incoming/bad \
	    ${NEWSBASE}/spool/innfeed \
	    ${NEWSBASE}/spool/outgoing \
	    ${NEWSBASE}/spool/overview \
	    ${NEWSBASE}/spool/tmp
	;;
    *)
	echo "Unexpected Argument $2!!!"
	exit 1
	;;
esac
exit 0

OpenPOWER on IntegriCloud