|
|
1.1 root 1: : '@(#)install.sh 1.12 3/19/86'
2:
3: if test "$#" != 6
4: then
5: echo "usage: $0 spooldir libdir bindir nuser ngroup ostype"
6: exit 1
7: fi
8: SPOOLDIR=$1
9: LIBDIR=$2
10: BINDIR=$3
11: NEWSUSR=$4
12: NEWSGRP=$5
13: OSTYPE=$6
14:
15: : Get name of local system
16: case $OSTYPE in
17: usg) SYSNAME=`uname -n`
18: if test ! -d $LIBDIR/history.d
19: then
20: mkdir $LIBDIR/history.d
21: chown $NEWSUSR $LIBDIR/history.d
22: chgrp $NEWSGRP $LIBDIR/history.d
23: fi;;
24: v7) SYSNAME=`uuname -l`
25: touch $LIBDIR/history.pag $LIBDIR/history.dir;;
26: *) echo "$0: Unknown Ostype"
27: exit 1;;
28: esac
29:
30: if test "$SYSNAME" = ""
31: then
32: echo "$0: Cannot get system name"
33: exit 1
34: fi
35:
36: : Ensure SPOOLDIR exists
37: if test ! -d $SPOOLDIR
38: then
39: mkdir $SPOOLDIR
40: fi
41: chmod 777 $SPOOLDIR
42: chown $NEWSUSR $SPOOLDIR
43: chgrp $NEWSGRP $SPOOLDIR
44:
45: chown $NEWSUSR $LIBDIR
46: chgrp $NEWSGRP $LIBDIR
47:
48: : Ensure certain files in LIBDIR exist
49: touch $LIBDIR/history $LIBDIR/active $LIBDIR/log $LIBDIR/errlog $LIBDIR/users
50: chmod 666 $LIBDIR/users
51:
52: : If no sys file, make one.
53: if test ! -f $LIBDIR/sys
54: then
55: echo
56: echo Making a $LIBDIR/sys file to link you to oopsvax.
57: echo You must change oopsvax to your news feed.
58: echo If you are not in the USA, remove '"usa"' from your line in the sys file.
59: echo If you are not in North America, remove '"na"' from your line in the sys file.
60: cat > $LIBDIR/sys << EOF
61: $SYSNAME:net,mod,na,usa,to::
62: oopsvax:net,mod,na,usa,to.oopsvax::
63: EOF
64: fi
65:
66: : If no seq file, make one.
67: if test ! -s $LIBDIR/seq
68: then
69: echo '100' >$LIBDIR/seq
70: fi
71:
72: : if no moderators file, make one.
73: if test ! -f $LIBDIR/moderators
74: then
75: cat > $LIBDIR/moderators << EOF
76: mod.ai [email protected]
77: mod.compilers [email protected]
78: mod.computers.apollo [email protected]
79: mod.computers.ibm-pc [email protected]
80: mod.computers.laser-printers [email protected]
81: mod.computers.pyramid [email protected]
82: mod.computers.ridge [email protected]
83: mod.computers.sequent [email protected]
84: mod.computers.sun [email protected]
85: mod.computers.vax [email protected]
86: mod.computers.workstations [email protected]
87: mod.graphics [email protected]
88: mod.human-nets [email protected]
89: mod.legal [email protected]
90: mod.map [email protected]
91: mod.mac [email protected]
92: mod.mac.binaries [email protected]
93: mod.mac.sources [email protected]
94: mod.motss [email protected]
95: mod.music [email protected]
96: mod.newprod [email protected]
97: mod.newslists [email protected],[email protected]
98: mod.os [email protected]
99: mod.os.os9 [email protected]
100: mod.os.unix [email protected]
101: mod.politics [email protected]
102: mod.politics [email protected]
103: mod.politics.arms-d [email protected]
104: mod.protocols [email protected]
105: mod.protocols.appletalk [email protected]
106: mod.protocols.kermit [email protected]
107: mod.protocols.tcp-ip [email protected]
108: mod.rec.guns [email protected]
109: mod.recipes [email protected]
110: mod.risks [email protected]
111: mod.sources [email protected]
112: mod.sources.doc [email protected]
113: mod.std [email protected]
114: mod.std.c [email protected]
115: mod.std.mumps [email protected]
116: mod.std.unix [email protected]
117: mod.techreports [email protected]
118: mod.telecom [email protected]
119: mod.vlsi [email protected]
120: net.announce [email protected]
121: net.announce.arpa-internet [email protected]
122: net.announce.newusers [email protected]
123: EOF
124: echo
125: echo Make sure the uucp paths in $LIBDIR/moderators are correct for your site.
126: fi
127:
128: sh makeactive.sh $LIBDIR $SPOOLDIR $NEWSUSR $NEWSGRP
129:
130: for i in $LIBDIR/ngfile $BINDIR/inews $LIBDIR/localgroups
131: do
132: if test -f $i
133: then
134: echo "$i is no longer used. You should remove it."
135: fi
136: done
137:
138: for i in $LIBDIR/csendbatch $LIBDIR/c7sendbatch
139: do
140: if test -f $i
141: then
142: echo "$i is no longer used. You should remove it after"
143: echo "changing your crontab entry to use sendbatch [flags]"
144: fi
145: done
146:
147: if test -f $BINDIR/cunbatch
148: then
149: echo "$BINDIR/cunbatch is not used by the new batching scheme."
150: echo "You should remove it when all of your neighbors have upgraded."
151: fi
152:
153: : if no aliases file, make one
154: if test ! -f $LIBDIR/aliases
155: then
156: cat >$LIBDIR/aliases <<EOF
157: net.chess net.games.chess
158: net.forsale na.forsale
159: net.joke net.jokes
160: net.music.gdea net.music.gdead
161: net.notes net.news.notes
162: net.periph net.periphs
163: net.puzzles net.puzzle
164: net.sources.wanted net.wanted.sources
165: net.stat net.math.stat
166: net.term net.info-terms
167: net.trivia net.games.trivia
168: net.unix.wizards net.unix-wizards
169: net.vlsi net.lsi
170: net.works.apollo net.works
171: EOF
172: fi
173:
174: : if no distributions file, make one
175: if test ! -f $LIBDIR/distributions
176: then
177: cat >$LIBDIR/distributions <<EOF
178: local Local to this site
179: regional Everywhere in this general area
180: usa Everywhere in the USA
181: na Everywhere in North America
182: world Everywhere on Usenet in the world (same as net)
183: EOF
184: echo
185: echo You may want to add distributions to $LIBDIR/distributions if your
186: echo site particpates in a regional distribution such as '"ba"' or '"dc"'.
187: fi
188:
189: chown $NEWSUSR $LIBDIR/[a-z]*
190: chgrp $NEWSGRP $LIBDIR/[a-z]*
191:
192: echo
193: echo Reminder: uux must permit rnews if running over uucp.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.