Article View: news.software.nn
Article #365problems w. 6.4 install on BSD systems
From: Paul Pomes - UofIllinois CSO
Date: Fri, 11 May 1990 14:27
Date: Fri, 11 May 1990 14:27
47 lines
2730 bytes
2730 bytes
In the inst.sh script, a check is made whether a directory is writeable
by using /bin/test -w man/. On BSD systems (4.3 BSD VAX, Sequent Balance and
Symmetry, plus Convex), this test applies only to files and not directories
so it always fails. The quick fix was to delete the second part of the test
statement. A better fix would be to check the exit status of the first cp
command before continuing with the rest.
Further experimentation reveals that the test built into ksh (is this /bin/sh
in current Sys5 machines?) handles directories correctly.
In xmakefile, the line
[ ! -f man/nn.1 ] || mv man/nn.1 man/nn.1~
should be changed to
-[ ! -f man/nn.1 ] || mv man/nn.1 man/nn.1~
If the man/nn.1 file is present, the test returns 1. Make then exits unless
it's told to ignore the non-zero exit status with the leading '-' character.
Because I install nn on several machines, I created the rc.sample and
cron.sample files below:
==rc.sample==
if [ -f /usr/local/lib/nn/nnmaster ]; then
rm -f /usr/local/lib/nn/MPID
/usr/local/lib/nn/nnmaster -l -r -C
echo -n ' nnmaster' >/dev/console
fi
==cron.sample==
# 4.3 BSD-tahoe
2 6,12,18 * * * news /usr/local/lib/nn/nnspew > /dev/null 2>&1
30 1 * * * news /usr/local/bin/nnadmin =EYW > /dev/null 2>&1
00 23 * * * news /usr/local/lib/nn/back_act > /dev/null 2>&1
# Older BSD crons
#2 6,12,18 * * * su - news /usr/local/lib/nn/nnspew > /dev/null 2>&1
#30 1 * * * su - news /usr/local/bin/nnadmin =EYW > /dev/null 2>&1
#00 23 * * * su - news /usr/local/lib/nn/back_act > /dev/null 2>&1
# Older BSD crons
# In /usr/spool/cron/crontabs/news (System V):
#2 6,12,18 * * * /usr/local/lib/nn/nnspew > /dev/null 2>&1
#30 1 * * * /usr/local/bin/nnadmin =EYW > /dev/null 2>&1
#00 23 * * * /usr/local/lib/nn/back_act > /dev/null 2>&1
--
Paul Pomes
UUCP: {att,iuvax,uunet}!uiucuxc!paul Internet, BITNET: paul@uxc.cso.uiuc.edu
US Mail: UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL 61801-2987
Technical Details
Message-ID:
<1990May11.142752.22481@ux1.cso.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!paulShow Full Headers
Complete Article Headers
Message-ID: <1990May11.142752.22481@ux1.cso.uiuc.edu> Subject: problems w. 6.4 install on BSD systems Date: Fri, 11 May 1990 14:27:52 +0000 From: paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!paul Newsgroups: news.software.nn Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 47 Posted: Fri May 11 15:27:52 1990