summaryrefslogtreecommitdiff
path: root/news/inn/pkg/install
blob: 582581895f220b27d50258635643f12bcdf10c3e (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# $NetBSD: install,v 1.1 1998/09/05 03:21:12 garbled Exp $
#
if [ "$2" != "POST-INSTALL" ]; then
  exit 0
fi
SPOOLS="articles overview archive incoming incoming/bad outgoing uniover innfeed"
if [ ! -d XXXINN_SPOOLXXX ]; then
	mkdir -p XXXINN_SPOOLXXX
	chown news:news XXXINN_SPOOLXXX
	chmod 775 XXXINN_SPOOLXXX
fi
for foo in $SPOOLS; do
	if [ ! -d XXXINN_SPOOLXXX/$foo ]; then
		mkdir -p XXXINN_SPOOLXXX/$foo
		chown news:news XXXINN_SPOOLXXX/$foo
		chmod 775 XXXINN_SPOOLXXX/$foo
	fi
done

if [ ! -d XXXPREFIXXXX/etc ]; then
	mkdir -p XXXPREFIXXXX/etc
	chown news:news XXXPREFIXXXX/etc
	chmod 775 XXXPREFIXXXX/etc
fi
if [ ! -d XXXPREFIXXXX/run ]; then
	mkdir -p XXXPREFIXXXX/run
	chown news:news XXXPREFIXXXX/run
	chmod 775 XXXPREFIXXXX/run
fi
if [ ! -d XXXPREFIXXXX/db ]; then
	mkdir -p XXXPREFIXXXX/db
	chown news:news XXXPREFIXXXX/db
	chmod 775 XXXPREFIXXXX/db
fi


ETC="actsync.cfg actsync.ign control.ctl cycbuff.conf distrib.pats expire.ctl incoming.conf inn.conf innfeed.conf innreport.conf innwatch.ctl moderators motd.news newsfeeds nnrp.access nntpsend.ctl overview.ctl overview.fmt passwd.nntp storage.ctl"

for foo in $ETC; do 
	if [ ! -e XXXPREFIXXXX/etc/$foo ]; then
		cp XXXPREFIXXXX/share/examples/inn/$foo XXXPREFIXXXX/etc
	fi
done