home *** CD-ROM | disk | FTP | other *** search
Wrap
diff -u --new-file --recursive cnews.orig/conf/again.root cnews/conf/again.root --- cnews.orig/conf/again.root Wed Dec 31 19:00:00 1969 +++ cnews/conf/again.root Thu Jan 12 19:21:48 1995 @@ -0,0 +1,7 @@ +#! /bin/sh +umask 002 +set -x +: setting uids for setuid programs... +/bin/chown news.news /usr/lib/newsbin/input/newsspool /usr/lib/newsbin/relay/relaynews +chmod u+s,g+s /usr/lib/newsbin/input/newsspool /usr/lib/newsbin/relay/relaynews +: done diff -u --new-file --recursive cnews.orig/conf/build.def cnews/conf/build.def --- cnews.orig/conf/build.def Wed Dec 31 19:00:00 1969 +++ cnews/conf/build.def Thu Jan 12 19:21:48 1995 @@ -0,0 +1,114 @@ +# These answers are interdependent; do not edit this file! +newsuid="news" +# These answers are interdependent; do not edit this file! +newsgid="news" +# These answers are interdependent; do not edit this file! +binuid="root" +# These answers are interdependent; do not edit this file! +bingid="bin" +# These answers are interdependent; do not edit this file! +binsrc="yes" +# These answers are interdependent; do not edit this file! +mess="no" +# These answers are interdependent; do not edit this file! +unmess="no" +# These answers are interdependent; do not edit this file! +newsarts="/var/spool/news" +# These answers are interdependent; do not edit this file! +newsctl="/var/lib/news" +# These answers are interdependent; do not edit this file! +newsbin="/usr/lib/newsbin" +# These answers are interdependent; do not edit this file! +newsumask="002" +# These answers are interdependent; do not edit this file! +newsmaster="news" +# These answers are interdependent; do not edit this file! +newsconfig="/var/lib/news/bin/config" +# These answers are interdependent; do not edit this file! +chown="/bin/chown" +# These answers are interdependent; do not edit this file! +chboth="yes" +# These answers are interdependent; do not edit this file! +chgrp="/etc/chgrp" +# These answers are interdependent; do not edit this file! +unixkind="usg" +# These answers are interdependent; do not edit this file! +addrsize="big" +# These answers are interdependent; do not edit this file! +dbmopt="-ldbm" +# These answers are interdependent; do not edit this file! +faststdio="no" +# These answers are interdependent; do not edit this file! +storeval="yes" +# These answers are interdependent; do not edit this file! +faststrchr="yes" +# These answers are interdependent; do not edit this file! +sete="yes" +# These answers are interdependent; do not edit this file! +ranlib="yes" +# These answers are interdependent; do not edit this file! +symdef="no" +# These answers are interdependent; do not edit this file! +cc="gcc" +# These answers are interdependent; do not edit this file! +copts="-O2" +# These answers are interdependent; do not edit this file! +ldopts="-s" +# These answers are interdependent; do not edit this file! +postlibs="" +# These answers are interdependent; do not edit this file! +hostname="yes" +# These answers are interdependent; do not edit this file! +uname="no" +# These answers are interdependent; do not edit this file! +uucptype="hdb" +# These answers are interdependent; do not edit this file! +dftype="statfs" +# These answers are interdependent; do not edit this file! +dfdirs="yes" +# These answers are interdependent; do not edit this file! +archive="no" +# These answers are interdependent; do not edit this file! +spacelow="no" +# These answers are interdependent; do not edit this file! +nfsgroup="no" +# These answers are interdependent; do not edit this file! +server="newsie" +# These answers are interdependent; do not edit this file! +manpages="/usr/man" +# These answers are interdependent; do not edit this file! +manmess="no" +# These answers are interdependent; do not edit this file! +rbin="/usr/bin" +# These answers are interdependent; do not edit this file! +doui="no" +# These answers are interdependent; do not edit this file! +bin="/usr/bin" +# These answers are interdependent; do not edit this file! +atok="yes" +# These answers are interdependent; do not edit this file! +postdefltdist="" +# These answers are interdependent; do not edit this file! +paranoid="no" +# These answers are interdependent; do not edit this file! +whoami="nowhere" +# These answers are interdependent; do not edit this file! +mailname="nowhere.uucp" +# These answers are interdependent; do not edit this file! +organization="Godcorp" +# These answers are interdependent; do not edit this file! +postdefltgroup="" +# These answers are interdependent; do not edit this file! +newspath="/bin:/usr/bin:/usr/sbin:/sbin" +# These answers are interdependent; do not edit this file! +fake=" dbz.o dbmclose.o" +# These answers are interdependent; do not edit this file! +fakehdrs="" +# These answers are interdependent; do not edit this file! +immediate="no" +# These answers are interdependent; do not edit this file! +inputstall="no" +# These answers are interdependent; do not edit this file! +defsub="" +# These answers are interdependent; do not edit this file! +mustsub="" diff -u --new-file --recursive cnews.orig/conf/doit.bin cnews/conf/doit.bin --- cnews.orig/conf/doit.bin Wed Dec 31 19:00:00 1969 +++ cnews/conf/doit.bin Thu Jan 12 19:21:48 1995 @@ -0,0 +1,148 @@ +#! /bin/sh +# -i suppresses install, -t suppresses stdio test +# options are seen in first argument only, i.e. use -ti not -t -i +umask 002 +set -x +: setting up for substitutions +cat >nsubstitutions <<'!' +# master substitutions file +# +# where the programs live (see also NEWSCONFIG) +NEWSBIN /usr/lib/newsbin +# where the control files live +NEWSCTL /var/lib/news +# where the articles live +NEWSARTS /var/spool/news +# what PATH should be used for finding normal programs +# (things not in NEWSBIN, that is) +NEWSPATH /bin:/usr/bin:/usr/sbin:/sbin +# the umask under which files should be created +NEWSUMASK 002 +# who to send mail to when there is trouble +NEWSMASTER news +# configuration file that lets shell files pick up all of this +NEWSCONFIG /var/lib/news/bin/config +! +if test -r substitutions && cmp -s nsubstitutions substitutions +then + rm nsubstitutions +else + mv nsubstitutions substitutions +fi +: done +: building headers +cd .. +if test ! -d include +then + mkdir include include/sys +fi +cd h +rm -f nnewshsed +echo "/SMALLMEM.*qqq/s;^;/* ;" >>nnewshsed +if test -f newshsed && cmp -s nnewshsed newshsed +then + rm -f nnewshsed +else + mv nnewshsed newshsed +fi +make all CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +cd ../hfake +sed -e '/NEEDED =/s~.*~NEEDED = ~' Makefile >M.$$ +mv -f M.$$ Makefile +make all CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +: done +: making substitutions... +cd ../conf +make substs CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +: done +: making library... +touch ../ranlibed ; sleep 2 +for dir in libusg libbig libc libcnews +do + cd ../$dir + make u CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +done +cd ../libfake +sed -e '/NEEDED =/s/.*/NEEDED = dbz.o dbmclose.o/' Makefile >M.$$ +mv -f M.$$ Makefile +make u CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +cd ../conf +make ../ranlibed CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +: library done +: making spacefor, queuelen, etc.... +cd ../conf +rm -f spacefor queuelen hostname setnewsids +make sf.statfs CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +cp sf.statfs spacefor +make queuelen.hdb CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +cp queuelen.hdb queuelen +: done +: building programs +for dir in conf batch dbz expire input relay misc explode inject +do + cd ../$dir + make all CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +done +: done +: building prototype control files +cd ../conf +rm -f active errlog history history.pag history.dir localgroups log mailname mailpaths organization postdefltdist postdefltgroup replyusepath server sys whoami rnews.stall rnews.immed readnews.ctl +cp config.proto config +echo 'nowhere.uucp' >mailname +cat <<'!' >organization +Godcorp +! +echo 'nowhere' >whoami +echo 'general 0000000000 0000000001 y' >active +echo 'news.announce.newusers 0000000000 0000000001 y' >>active +echo 'control 0000000000 0000000001 y' >>active +echo 'junk 0000000000 0000000001 y' >>active +>errlog +>history +>history.pag +>history.dir +echo 'general general local news' >localgroups +>log +echo 'all uunet!%s' >mailpaths +cp sys.proto sys +cd ../expire +make explists CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm && cp explist.no explist +cd ../conf +cat >cron <<'!' +0,15,30,45 * 1-31 * 0-6 su news -c '/usr/lib/newsbin/input/newsrun' +30 8 1-31 * 1-5 su news -c '/usr/lib/newsbin/input/newsrunning off' +00 17 1-31 * 1-5 su news -c '/usr/lib/newsbin/input/newsrunning on' +40 * 1-31 * 0-6 su news -c '/usr/lib/newsbin/batch/sendbatches' +59 0 1-31 * 0-6 su news -c '/usr/lib/newsbin/expire/doexpire ' +10 8 1-31 * 0-6 su news -c '/usr/lib/newsbin/maint/newsdaily' +00 5,13,21 1-31 * 0-6 su news -c '/usr/lib/newsbin/maint/newswatch | mail news' +! +echo 'su news -c /usr/lib/newsbin/maint/newsboot' >rc +: done +case "$1" in +-*i*) exit 0 ;; +esac +: installing programs +for dir in conf batch dbz expire input relay misc explode inject +do + cd ../$dir + make bininstall BIN=/usr/bin RBIN=/usr/bin CC=gcc COPTS='-O2' LDFLAGS='-s' DBM=-ldbm || exit 1 +done +: done +: installing manual pages +cd ../man +cp injnews.1 /usr/man/man1/injnews.1 +cp active.times.5 /usr/man/man5/active.times.5 +cp news.5 /usr/man/man5/news.5 +cp newsctl.5 /usr/man/man5/newsctl.5 +cp newsdb.5 /usr/man/man5/newsdb.5 +cp newssys.5 /usr/man/man5/newssys.5 +cp expire.8 /usr/man/man8/expire.8 +cp explode.8 /usr/man/man8/explode.8 +cp newsaux.8 /usr/man/man8/newsaux.8 +cp newsbatch.8 /usr/man/man8/newsbatch.8 +cp newsmail.8 /usr/man/man8/newsmail.8 +cp newsmaint.8 /usr/man/man8/newsmaint.8 +cp relaynews.8 /usr/man/man8/relaynews.8 +cp rnews.8 /usr/man/man8/rnews.8 +: done diff -u --new-file --recursive cnews.orig/conf/doit.news cnews/conf/doit.news --- cnews.orig/conf/doit.news Wed Dec 31 19:00:00 1969 +++ cnews/conf/doit.news Thu Jan 12 19:21:48 1995 @@ -0,0 +1,34 @@ +#! /bin/sh +umask 002 +set -x +: installing programs +for dir in conf batch dbz expire input relay misc explode inject +do + cd ../$dir + make newsinstall BIN=/usr/bin RBIN=/usr/bin || exit 1 +done +: done +: installing control files +cd ../conf +for f in active errlog history history.pag history.dir localgroups log mailname mailpaths organization postdefltdist postdefltgroup replyusepath server sys whoami rnews.stall rnews.immed readnews.ctl +do + if test -r /var/lib/news/$f + then + echo "/var/lib/news/$f already exists; left unchanged" + elif test ! -r $f + then + : "$f" not wanted + else + cp $f /var/lib/news/$f + fi +done +if test -r /var/lib/news/bin/config +then + cp /var/lib/news/bin/config /var/lib/news/bin/config.old +fi +cp config /var/lib/news/bin/config +chmod +x /var/lib/news/bin/config +: It is virtually certain that some of those control files +: need modifying to suit your system. In particular, you +: should pick up a current 'active' file from your neighbors. +: done diff -u --new-file --recursive cnews.orig/conf/doit.root cnews/conf/doit.root --- cnews.orig/conf/doit.root Wed Dec 31 19:00:00 1969 +++ cnews/conf/doit.root Thu Jan 12 19:20:12 1995 @@ -0,0 +1,14 @@ +#! /bin/sh +umask 002 +set -x +: making directories... +for d in /var/spool/news /var/spool/news/in.coming /var/spool/news/in.coming/bad /var/spool/news/out.going /var/spool/news/out.master /var/lib/news /var/lib/news/bin /usr/lib/newsbin +do + if test ! -d $d + then + mkdir $d + fi +done +/bin/chown news.news /var/spool/news /var/spool/news/in.coming /var/spool/news/in.coming/bad /var/spool/news/out.going /var/spool/news/out.master /var/lib/news /var/lib/news/bin +/bin/chown root.bin /usr/lib/newsbin +: done diff -u --new-file --recursive cnews.orig/explode/doexplode cnews/explode/doexplode --- cnews.orig/explode/doexplode Sat Apr 25 23:08:43 1992 +++ cnews/explode/doexplode Thu Jan 12 19:18:14 1995 @@ -10,9 +10,10 @@ cd $NEWSARTS for f in out.master/[0-9]* do - case "$f" in - "out.master/[0-9]*") break ;; # no work - esac + if [ ! -f $f ] ; then continue; fi # SMR other method no work +# case "$f" in +# "out.master/[0-9]*") break ;; # no work +# esac work=$f.tmp export f work # lock against relaynews for the mv and diff -u --new-file --recursive cnews.orig/explode/doexplode.orig cnews/explode/doexplode.orig --- cnews.orig/explode/doexplode.orig Wed Dec 31 19:00:00 1969 +++ cnews/explode/doexplode.orig Sat Apr 25 23:08:43 1992 @@ -0,0 +1,25 @@ +#! /bin/sh +# explode master batch files into normal batch files + +# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()= +. ${NEWSCONFIG-/usr/lib/news/bin/config} + +PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH +umask $NEWSUMASK + +cd $NEWSARTS +for f in out.master/[0-9]* +do + case "$f" in + "out.master/[0-9]*") break ;; # no work + esac + work=$f.tmp + export f work + # lock against relaynews for the mv and + # batchers for explode. + SHELL=/bin/sh $NEWSBIN/maint/locknews <<'!' + mv $f $work # move out the way of relaynews + explode $work + rm -f $work +! +done