diff options
Diffstat (limited to 'news/inn/INSTALL')
-rw-r--r-- | news/inn/INSTALL | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/news/inn/INSTALL b/news/inn/INSTALL new file mode 100644 index 00000000000..cbfac345304 --- /dev/null +++ b/news/inn/INSTALL @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/10/31 21:03:42 zuntum Exp $ + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +if [ ! -d @@INN_DATA_DIR@@ ]; then + mkdir -p @@INN_DATA_DIR@@ + chown news:news @@INN_DATA_DIR@@ + chmod 775 @@INN_DATA_DIR@@ +fi + +DIRS="db etc log log/OLD run spool tmp" +for DIR in $DIRS; do + if [ ! -d @@INN_DATA_DIR@@/$DIR ]; then + install -d -o news -g news -m 775 @@INN_DATA_DIR@@/$DIR + fi +done + +SPOOLS="articles overview archive incoming incoming/bad outgoing uniover innfeed" +for DIR in $SPOOLS; do + if [ ! -d @@INN_DATA_DIR@@/spool/$DIR ]; then + install -d -o news -g news -m 775 @@INN_DATA_DIR@@/spool/$DIR + fi +done + +ETC="actsync.cfg actsync.ign buffindexed.conf control.ctl cycbuff.conf distrib.pats expire.ctl incoming.conf inn.conf innfeed.conf innreport.conf innwatch.ctl moderators motd.news news2mail.cf newsfeeds nnrpd.track nntpsend.ctl ovdb.conf overview.fmt passwd.nntp radius.conf readers.conf sasl.conf storage.conf" + +for FILE in $ETC; do + if [ ! -f @@INN_DATA_DIR@@/etc/$FILE ]; then + install -c -o news -g news -m 664 ${PKG_PREFIX}/share/examples/inn/$FILE @@INN_DATA_DIR@@/etc + fi +done + +exit 0 |