aboutsummaryrefslogtreecommitdiff
path: root/news/diablo/pkg-install
blob: 3decfb9a7e502a2e376f8b484c2a4759e7333581 (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
#!/bin/sh

PKGNAME=$1

case $2 in
    PRE-INSTALL)
	;;
    POST-INSTALL)
	NEWSBASE=${PREFIX:-/usr/local}/news
        install -d \
	    ${NEWSBASE}/dqueue \
	    ${NEWSBASE}/spool \
	    ${NEWSBASE}/spool/news \
	    ${NEWSBASE}/spool/cache \
	    ${NEWSBASE}/spool/group \
	    ${NEWSBASE}/spool/postq
	chown -R news:news ${NEWSBASE}
	;;
    *)
	echo "Unexpected Argument $2!!!"
	exit 1
	;;
esac
exit 0