home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume19 / cnews2 / pch17jan90 < prev    next >
Internet Message Format  |  1990-02-05  |  54KB

  1. From utai!utzoo!henry@uunet.uu.net Sat Jan 20 09:07:53 1990
  2. Received: from BBN.COM by pineapple.bbn.com id <AA06828@pineapple.bbn.com>; Sat, 20 Jan 90 09:07:36 -0500
  3. Received: from uunet.UU.NET by BBN.COM id aa07716; 20 Jan 90 9:06 EST
  4. Received: from utai.UUCP by uunet.UU.NET (5.61/1.14) with UUCP 
  5.     id AA03450; Sat, 20 Jan 90 05:21:40 -0500
  6. Received: by neat.cs.toronto.edu with UUCP id 2170; Wed, 17 Jan 90 17:12:52 EST
  7. From: utzoo!henry@uunet.uu.net
  8. To: source-patches@cs.toronto.edu
  9. Subject: C News patch of 17-Jan-1990
  10. Message-Id: <90Jan17.171252est.2170@neat.cs.toronto.edu>
  11. Date:     Wed, 17 Jan 90 17:12:51 EST
  12. Status: R
  13.  
  14. This is the second of two coordinated patches; the first appeared
  15. yesterday.  The big change, set up in the first and implemented in the
  16. second, is that build has been revamped to use your previous answers as
  17. the defaults for the next run.  (Thanks to the magic :-( of context diffs,
  18. and the large number of lines affected, the changes to build itself are
  19. essentially the entire second patch.)
  20.  
  21. The only other thing in the second patch is a fix of a (largely harmless)
  22. buglet in the changes to sendbatches.
  23.  
  24. start of patch 17-Jan-1990
  25. (suggested archive name: `pch17Jan90.Z')
  26. this should be run with   patch -p0 <thisfile
  27.  
  28. Please do the following (there is no easy way we can convince
  29. patch to do this automatically):
  30. rm conf/query
  31.  
  32. The following is a complete list of patches to date.
  33.  
  34. Prereq: 23-Jun-1989
  35. Prereq: 7-Jul-1989
  36. Prereq: 23-Jul-1989
  37. Prereq: 22-Aug-1989
  38. Prereq: 24-Aug-1989
  39. Prereq: 14-Sep-1989
  40. Prereq: 13-Nov-1989
  41. Prereq: 10-Jan-1990
  42. Prereq: 16-Jan-1990
  43. *** PATCHDATES.old    Wed Jan 17 16:06:28 1990
  44. --- PATCHDATES    Wed Jan 17 16:06:29 1990
  45. ***************
  46. *** 1,9 ****
  47. --- 1,10 ----
  48.   23-Jun-1989
  49.   7-Jul-1989
  50.   23-Jul-1989
  51.   22-Aug-1989
  52.   24-Aug-1989
  53.   14-Sep-1989
  54.   13-Nov-1989
  55.   10-Jan-1990
  56.   16-Jan-1990
  57. + 17-Jan-1990
  58.  
  59. Changed files, if any:
  60.  
  61. *** cnpatch/old/batch/sendbatches    Tue Jan 16 17:58:27 1990
  62. --- batch/sendbatches    Wed Jan 17 15:51:28 1990
  63. ***************
  64. *** 134,138 ****
  65.               # No -- need some more batches.
  66.               if test ! -s togo && test ! -s togo.more &&
  67. !                             test ! -s togo.more
  68.               then
  69.                   break        # Nothing left to do.
  70. --- 134,138 ----
  71.               # No -- need some more batches.
  72.               if test ! -s togo && test ! -s togo.more &&
  73. !                             test ! -s togo.next
  74.               then
  75.                   break        # Nothing left to do.
  76.  
  77. *** cnpatch/old/conf/build    Wed Jan 10 19:10:17 1990
  78. --- conf/build    Wed Jan 17 15:57:36 1990
  79. ***************
  80. *** 1,4 ****
  81. --- 1,14 ----
  82.   #! /bin/sh
  83. + PATH=:$PATH
  84.   
  85. + # configuration variables to remember for next time
  86. + vars='newsuid newsgid binuid bingid binsrc mess unmess newsarts newsctl
  87. +     newsbin newsumask newsmaster newsconfig chown chboth chgrp unixkind
  88. +     addrsize dbmopt faststdio storeval faststrchr sete sprintfchar ranlib
  89. +     symdef cc copts ldopts postlibs hostname uname uucptype dftype dfdirs
  90. +     archive spacelow nfsgroup server manpages manmess rbin doui bin atok
  91. +     postdefltdist paranoid whoami mailname organization postdefltgroup
  92. +     newspath fake fakehdrs'
  93.   # functions and headers we are prepared to fake
  94.   mightfake='fsync getopt memcpy memcmp memchr memset mkdir
  95. ***************
  96. *** 22,38 ****
  97.   echo 'You probably need your system manuals handy.'
  98.   echo
  99. ! echo 'When a question is asked in the form "How are you [okay]? ", the'
  100.   echo 'answer in brackets is what you will get if you just hit RETURN.'
  101.   
  102. ! chmod +x query            # just in case
  103. ! if test " `./query hi | wc -c`" -ne 2
  104.   then
  105. !     echo 'The "query" utility that this command needs does not seem to'
  106. !     echo 'be working properly.  It is supposed to work like "echo"'
  107. !     echo 'except not produce a newline at the end.  You will have to fix'
  108. !     echo 'it (it is a shell file).  (Most versions of "echo" have a way'
  109. !     echo 'to suppress the newline, but unfortunately there are at least'
  110. !     echo 'two different incompatible ways.)'
  111. !     exit 1
  112.   fi
  113.   
  114. --- 32,53 ----
  115.   echo 'You probably need your system manuals handy.'
  116.   echo
  117. ! echo "When a question is asked in the form \`How are you [okay]? ', the"
  118.   echo 'answer in brackets is what you will get if you just hit RETURN.'
  119. + echo '(If you want give an empty string as the answer, type a single'
  120. + echo "\`-' instead.)"
  121.   
  122. ! chmod +x ask yesno notinlist    # just in case
  123. ! if test -r build.def
  124.   then
  125. !     echo
  126. !     tmp=`yesno 'Do you want to use your previous answers as defaults' no`
  127. !     case "$tmp" in
  128. !     yes)    echo
  129. !         echo 'Picking up defaults, from last run...'
  130. !         . build.def
  131. !         echo 'done'
  132. !         ;;
  133. !     esac
  134.   fi
  135.   
  136. ***************
  137. *** 42,69 ****
  138.   echo 'be owned by another user, typically the same one who owns most of the'
  139.   echo 'rest of the system.'
  140. ! ./query 'What user id should be used for news files [news]? '
  141. ! read newsuid
  142. ! case "$newsuid" in
  143. ! '')    newsuid=news    ;;
  144. ! esac
  145. ! ./query 'What group id should be used for news files [news]? '
  146. ! read newsgid
  147. ! case "$newsgid" in
  148. ! '')    newsgid=news    ;;
  149. ! esac
  150. ! ./query 'What user id should be used for news programs [bin]? '
  151. ! read binuid
  152. ! case "$binuid" in
  153. ! '')    binuid=bin    ;;
  154. ! esac
  155. ! ./query 'What group id should be used for news programs [bin]? '
  156. ! read bingid
  157. ! case "$bingid" in
  158. ! '')    bingid=bin    ;;
  159. ! esac
  160. ! ./query "Do the C News sources belong to $binuid [yes]? "
  161. ! read answer
  162. ! case "$answer" in
  163. ! n*|N*)    echo "You may need to do some of the installation procedures by hand"
  164.       echo "after the software is built; doit.bin assumes that it has the"
  165.       echo "power to create files in the source directories and to update"
  166. --- 57,67 ----
  167.   echo 'be owned by another user, typically the same one who owns most of the'
  168.   echo 'rest of the system.'
  169. ! newsuid=`ask 'What user id should be used for news files' ${newsuid-news}`
  170. ! newsgid=`ask 'What group id should be used for news files' ${newsgid-news}`
  171. ! binuid=`ask 'What user id should be used for news programs' ${binuid-bin}`
  172. ! bingid=`ask 'What group id should be used for news programs' ${bingid-bin}`
  173. ! binsrc=`yesno "Do the C News sources belong to $binuid" ${binsrc-yes}`
  174. ! case "$binsrc" in
  175. ! no)    echo "You may need to do some of the installation procedures by hand"
  176.       echo "after the software is built; doit.bin assumes that it has the"
  177.       echo "power to create files in the source directories and to update"
  178. ***************
  179. *** 72,77 ****
  180.   esac
  181.   
  182. ! answer=
  183. ! if test -d /var -a -d /usr/share
  184.   then
  185.       echo
  186. --- 70,74 ----
  187.   esac
  188.   
  189. ! if test '(' -d /var -a -d /usr/share ')' -o " $mess" = " yes"
  190.   then
  191.       echo
  192. ***************
  193. *** 78,104 ****
  194.       echo 'It would appear that your system is among the victims of the'
  195.       echo '4.4BSD / SVR4 directory reorganization, with (e.g.) shared'
  196. !     ./query 'data in /usr/share.  Is this correct [yes]? '
  197. !     read answer
  198. !     case "$answer" in
  199. !     y*|Y*|'')    answer=y    ;;
  200. !     esac
  201.   fi
  202. ! if test " $answer" = " y"
  203. ! then
  204. !     echo 'This will affect where C News directories go.  We recommend'
  205.       echo 'making the directories wherever they have to go and then making'
  206.       echo 'symbolic links to them under the standard names that are used'
  207.       echo 'as defaults in the following questions.  Should such links'
  208. !     ./query 'be made [yes]? '
  209. !     read makelinks
  210. !     case "$makelinks" in
  211. !     y*|Y*|'')    makelinks=y    ;;
  212. !     esac
  213.       echo 'Our 4.4ish friends suggest putting articles in /var/spool/news'
  214.       echo 'and control files in /usr/share/news, with programs left where'
  215.       echo 'they are in /usr/lib/newsbin.'
  216. ! fi
  217.   
  218. - needsubst=
  219.   echo
  220.   echo 'C News lives primarily under three directories:  one for articles (and'
  221. --- 75,95 ----
  222.       echo 'It would appear that your system is among the victims of the'
  223.       echo '4.4BSD / SVR4 directory reorganization, with (e.g.) shared'
  224. !     mess=`yesno 'data in /usr/share.  Is this correct' ${mess-yes}`
  225. ! else
  226. !     mess=no
  227.   fi
  228. ! case "$mess" in
  229. ! yes)    echo 'This will affect where C News directories go.  We recommend'
  230.       echo 'making the directories wherever they have to go and then making'
  231.       echo 'symbolic links to them under the standard names that are used'
  232.       echo 'as defaults in the following questions.  Should such links'
  233. !     unmess=`yesno 'be made' ${unmess-yes}`
  234.       echo 'Our 4.4ish friends suggest putting articles in /var/spool/news'
  235.       echo 'and control files in /usr/share/news, with programs left where'
  236.       echo 'they are in /usr/lib/newsbin.'
  237. !     ;;
  238. ! *)    unmess=no    ;;
  239. ! esac
  240.   
  241.   echo
  242.   echo 'C News lives primarily under three directories:  one for articles (and'
  243. ***************
  244. *** 105,185 ****
  245.   echo 'incoming and outgoing spooling), one for control files, and one for'
  246.   echo 'programs.'
  247. ! ./query 'Where should articles live [/usr/spool/news]? '
  248. ! read newsarts
  249. ! case "$newsarts" in
  250. ! '')    newsarts=/usr/spool/news    ;;
  251. ! *)    needsubst=y    ;;
  252.   esac
  253. ! ./query 'Where should control files live [/usr/lib/news]? '
  254. ! read newsctl
  255. ! case "$newsctl" in
  256. ! '')    newsctl=/usr/lib/news    ;;
  257. ! *)    needsubst=y    ;;
  258.   esac
  259. - ./query 'Where should programs live [/usr/lib/newsbin]? '
  260. - read newsbin
  261. - case "$newsbin" in
  262. - '')    newsbin=/usr/lib/newsbin    ;;
  263. - *)    needsubst=y    ;;
  264. - esac
  265. - if test " $makelinks" = " y"
  266. - then
  267. -     realarts="$newsarts"
  268. -     realctl="$newsctl"
  269. -     realbin="$newsbin"
  270. -     newsarts="/usr/spool/news"
  271. -     newsctl="/usr/lib/news"
  272. -     newsbin="/usr/lib/newsbin"
  273. - fi
  274.   
  275. ! echo
  276. ! echo 'C News by default assumes that all normal Unix programs can be found'
  277. ! echo 'in /bin or /usr/bin.  This is naive, especially on Berkeley-derived'
  278. ! echo 'systems where some standard programs inexplicably moved to /usr/ucb.'
  279. ! newspath='/bin:/usr/bin'
  280. ! if test '(' ! -f /bin/wc -a ! -f /usr/bin/wc ')' -o \
  281.               '(' ! -f /bin/hostname -a ! -f /usr/bin/hostname -a \
  282.                           -f /usr/ucb/hostname ')'
  283. ! then
  284. !     echo 'It would appear that some standard programs live in /usr/ucb'
  285. !     ./query 'on your system.  Is that right [yes]? '
  286. !     read ucb
  287. ! else
  288. !     echo 'It would appear that /usr/ucb does not exist or is not needed'
  289. !     ./query 'for normal operation on your system.  Is that right [yes]? '
  290. !     read ucb
  291. !     case "$ucb" in
  292. !     y*|Y*|'')    ucb=no    ;;
  293. !     n*|N*)        ucb=yes    ;;
  294. !     esac
  295. ! fi
  296. ! case "$ucb" in
  297. ! y*|Y*|'')    ./query 'Should /usr/ucb go before or after /bin and /usr/bin [after]? '
  298. !         read answer
  299. !         case "$answer" in
  300. !         a*|A*|'')    newspath="$newspath:/usr/ucb"    ;;
  301. !         *)        newspath="/usr/ucb:$newspath"    ;;
  302.           esac
  303. !         needsubst=y
  304.           ;;
  305. - esac
  306. - while true
  307. - do
  308. -     echo 'Is there any other directory which should be searched to find'
  309. -     ./query 'standard programs on your system [no]? '
  310. -     read answer
  311. -     case "$answer" in
  312. -     n*|N*|'')    break    ;;
  313. -     *)        needsubst=y    ;;
  314.       esac
  315. !     ./query 'What is the full name of the directory? '
  316. !     read dir
  317. !     ./query 'Should it go before or after the others [after]? '
  318. !     read answer
  319. !     case "$answer" in
  320. !     a*|A*|'')    newspath="$newspath:$dir"    ;;
  321. !     *)        newspath="$dir:$newspath"    ;;
  322. !     esac
  323. ! done
  324.   
  325.   echo
  326. --- 96,165 ----
  327.   echo 'incoming and outgoing spooling), one for control files, and one for'
  328.   echo 'programs.'
  329. ! newsarts=`ask 'Where should articles live' ${newsarts-/usr/spool/news}`
  330. ! newsctl=`ask 'Where should control files live' ${newsctl-/usr/lib/news}`
  331. ! newsbin=`ask 'Where should programs live' ${newsbin-/usr/lib/newsbin}`
  332. ! case "$unmess" in
  333. ! yes)    linkarts="/usr/spool/news"
  334. !     linkctl="/usr/lib/news"
  335. !     linkbin="/usr/lib/newsbin"
  336. !     ;;
  337.   esac
  338. ! case "$newspath" in
  339. ! '')    pathok=no    ;;
  340. ! *)    echo
  341. !     echo "Is   $newspath"
  342. !     echo 'the correct path to follow to find standard programs on your'
  343. !     pathok=`yesno 'system' yes`
  344. !     ;;
  345.   esac
  346.   
  347. ! case "$pathok" in
  348. ! no)    newspath='/bin:/usr/bin'
  349. !     echo
  350. !     echo 'C News by default assumes that all normal Unix programs can be'
  351. !     echo 'found in /bin or /usr/bin.  This is naive, especially on'
  352. !     echo 'Berkeley-derived systems where some standard programs'
  353. !     echo 'inexplicably moved to /usr/ucb.'
  354. !     if test '(' ! -f /bin/wc -a ! -f /usr/bin/wc ')' -o \
  355.               '(' ! -f /bin/hostname -a ! -f /usr/bin/hostname -a \
  356.                           -f /usr/ucb/hostname ')'
  357. !     then
  358. !         echo 'It appears that some standard programs live in /usr/ucb'
  359. !         needucb=`yesno 'on your system.  Is that right' yes`
  360. !     else
  361. !         echo 'It appears that /usr/ucb does not exist or is not'
  362. !         echo 'needed for normal operation on your system.  Is that'
  363. !         tmp=`yesno 'right' yes`
  364. !         case "$tmp" in
  365. !         yes)    needucb=no    ;;
  366. !         no)    needucb=yes    ;;
  367.           esac
  368. !     fi
  369. !     case "$needucb" in
  370. !     yes)    echo 'Should /usr/ucb be searched after /bin and /usr/bin'
  371. !         tmp=`yesno '(as opposed to before)' yes`
  372. !         case "$tmp" in
  373. !         yes)    newspath="$newspath:/usr/ucb"    ;;
  374. !         no)    newspath="/usr/ucb:$newspath"    ;;
  375. !         esac
  376.           ;;
  377.       esac
  378. !     while true
  379. !     do
  380. !         echo 'Is there any other directory which should be searched'
  381. !         more=`yesno 'to find standard programs on your system' no`
  382. !         case "$more" in
  383. !         no)    break    ;;
  384. !         esac
  385. !         dir=`ask 'What is the full name of the directory' /urk`
  386. !         bef=`yesno 'Should it go after (as opposed to before) the others' yes`
  387. !         case "$bef" in
  388. !         no)    newspath="$dir:$newspath"    ;;
  389. !         yes)    newspath="$newspath:$dir"    ;;
  390. !         esac
  391. !     done
  392. !     ;;
  393. ! esac
  394.   
  395.   echo
  396. ***************
  397. *** 189,198 ****
  398.   echo 'others-access bits would be a mask of 027, for example.)  Usually'
  399.   echo 'a umask of 002 or 022 is appropriate.'
  400. ! ./query 'What umask should C News use [002]? '
  401. ! read newsumask
  402. ! case "$newsumask" in
  403. ! '')    newsumask=002    ;;
  404. ! *)    needsubst=y    ;;
  405. ! esac
  406.   
  407.   echo
  408. --- 169,173 ----
  409.   echo 'others-access bits would be a mask of 027, for example.)  Usually'
  410.   echo 'a umask of 002 or 022 is appropriate.'
  411. ! newsumask=`ask 'What umask should C News use' ${newsumask-002}`
  412.   
  413.   echo
  414. ***************
  415. *** 201,210 ****
  416.   echo "specific user, so you won't have to change the software when you get a"
  417.   echo 'new administrator.'
  418. ! ./query 'Where should C News mail trouble reports [usenet]? '
  419. ! read newsmaster
  420. ! case "$newsmaster" in
  421. ! '')    newsmaster=usenet    ;;
  422. ! *)    needsubst=y    ;;
  423. ! esac
  424.   
  425.   echo
  426. --- 176,180 ----
  427.   echo "specific user, so you won't have to change the software when you get a"
  428.   echo 'new administrator.'
  429. ! newsmaster=`ask 'Where should C News mail trouble reports' ${newsmaster-usenet}`
  430.   
  431.   echo
  432. ***************
  433. *** 214,253 ****
  434.   echo 'unless you play tricks with environment variables (see documentation).'
  435.   echo 'Where should the shell configuration file be'
  436. ! ./query "located [$newsctl/bin/config]? "
  437. ! read newsconfig
  438. ! case "$newsconfig" in
  439. ! '')    newsconfig=$newsctl/bin/config    ;;
  440. ! *)    needsubst=y    ;;
  441. ! esac
  442.   
  443.   echo
  444. ! ./query 'What is the full pathname of the chown command [/etc/chown]? '
  445. ! read chown
  446. ! case "$chown" in
  447. ! '')    chown=/etc/chown    ;;
  448. ! esac
  449. ! echo "Can I say '$chown $newsuid.$newsgid file' to change both the user id"
  450. ! ./query 'and group id of a file [yes]? '
  451. ! read chboth
  452.   case "$chboth" in
  453. ! y*|Y*|'')    chboth=y    ;;
  454.   esac
  455. - if test " $chboth" != " y"
  456. - then
  457. -     ./query 'Is there a chgrp command to change the group of a file [yes]? '
  458. -     read chgrp
  459. -     case "$chgrp" in
  460. -     n*|N*)    echo 'You will need to edit doit.root by hand before running it.'
  461. -         echo "It will assume that 'chown $newsuid.$newsgid' works."
  462. -         chboth=y
  463. -         ;;
  464. -     *)    ./query 'What is the full pathname of the chgrp command [/etc/chgrp]? '
  465. -         read chgrp
  466. -         case "$chgrp" in
  467. -         '')    chgrp=/etc/chgrp    ;;
  468. -         esac
  469. -         ;;
  470. -     esac
  471. - fi
  472.   
  473.   echo
  474. --- 184,198 ----
  475.   echo 'unless you play tricks with environment variables (see documentation).'
  476.   echo 'Where should the shell configuration file be'
  477. ! newsconfig=`ask 'located' ${newsconfig-$newsctl/bin/config}`
  478.   
  479.   echo
  480. ! chown=`ask 'What is the full pathname of the chown command' ${chown-/etc/chown}`
  481. ! echo "Can I say \`$chown $newsuid.$newsgid file' to change both the user id"
  482. ! chboth=`yesno 'and group id of a file' ${chboth-yes}`
  483.   case "$chboth" in
  484. ! no)    chgrp=`ask 'What is the full pathname of chgrp' ${chgrp-/etc/chgrp}`
  485. !     ;;
  486. ! yes)    chgrp="/etc/chgrp"    ;;
  487.   esac
  488.   
  489.   echo
  490. ***************
  491. *** 266,272 ****
  492.       ln=
  493.       lb=
  494. !     if test " $makelinks" = " y"
  495. !     then
  496. !         echo "mkdir $realarts $realctl $realbin"
  497.           if test " $realarts" != " $newsarts"
  498.           then
  499. --- 211,216 ----
  500.       ln=
  501.       lb=
  502. !     case "$unmess" in
  503. !     yes)    echo "mkdir $realarts $realctl $realbin"
  504.           if test " $realarts" != " $newsarts"
  505.           then
  506. ***************
  507. *** 284,288 ****
  508.               lb="$lb $realbin"
  509.           fi
  510. !     fi
  511.       n="$newsarts $newsarts/in.coming $newsarts/in.coming/bad"
  512.       n="$n $newsarts/out.going $newsctl $newsctl/bin"
  513. --- 228,233 ----
  514.               lb="$lb $realbin"
  515.           fi
  516. !         ;;
  517. !     esac
  518.       n="$newsarts $newsarts/in.coming $newsarts/in.coming/bad"
  519.       n="$n $newsarts/out.going $newsctl $newsctl/bin"
  520. ***************
  521. *** 295,308 ****
  522.       echo "    fi"
  523.       echo "done"
  524. !     if test " $chboth" = " y"
  525. !     then
  526. !         echo "$chown $newsuid.$newsgid $n $ln"
  527.           echo "$chown $binuid.$bingid $b $lb"
  528. !     else
  529. !         echo "$chown $newsuid $n $ln"
  530.           echo "$chgrp $newsgid $n $ln"
  531.           echo "$chown $binuid $b $lb"
  532.           echo "$chgrp $bingid $b $lb"
  533. !     fi
  534.       echo ": done"
  535.   ) >>doit.root
  536. --- 240,253 ----
  537.       echo "    fi"
  538.       echo "done"
  539. !     case "$chboth" in
  540. !     yes)    echo "$chown $newsuid.$newsgid $n $ln"
  541.           echo "$chown $binuid.$bingid $b $lb"
  542. !         ;;
  543. !     no)    echo "$chown $newsuid $n $ln"
  544.           echo "$chgrp $newsgid $n $ln"
  545.           echo "$chown $binuid $b $lb"
  546.           echo "$chgrp $bingid $b $lb"
  547. !         ;;
  548. !     esac
  549.       echo ": done"
  550.   ) >>doit.root
  551. ***************
  552. *** 317,326 ****
  553.   while true
  554.   do
  555. !     ./query 'Which best describes your system [v7]? '
  556. !     read unixkind
  557. !     if test " $unixkind" = " "
  558. !     then
  559. !         unixkind=v7
  560. !     fi
  561.       if test -d ../lib$unixkind
  562.       then
  563. --- 262,266 ----
  564.   while true
  565.   do
  566. !     unixkind=`ask 'Which best describes your system' ${unixkind-v7}`
  567.       if test -d ../lib$unixkind
  568.       then
  569. ***************
  570. *** 335,344 ****
  571.   while true
  572.   do
  573. !     ./query 'Which best describes your system [big]? '
  574. !     read addrsize
  575. !     if test " $addrsize" = " "
  576. !     then
  577. !         addrsize=big
  578. !     fi
  579.       if test -d ../lib$addrsize
  580.       then
  581. --- 275,279 ----
  582.   while true
  583.   do
  584. !     addrsize=`ask 'Which best describes your system' ${addrsize-big}`
  585.       if test -d ../lib$addrsize
  586.       then
  587. ***************
  588. *** 353,388 ****
  589.   echo 'possibly-missing library functions, and fake versions of the'
  590.   echo 'possibly-missing system calls, but it needs to know which are missing.'
  591. ! fake=
  592.   for fn in $mightfake
  593.   do
  594. !     ./query "Does your system have  $fn() [yes]? "
  595. !     read answer
  596. !     case "$answer" in
  597. !     y*|Y*|'')    ;;
  598. !     *)    fake="$fake $fn.o"    ;;
  599.       esac
  600.   done
  601. ! ./query "Does your system have a library function ldiv() as in ANSI C? [no]? "
  602. ! read answer
  603. ! case "$answer" in
  604. ! n*|N*|'')    fake="$fake ldiv.o"    ;;
  605.   esac
  606. ! ./query 'Does your system have the "dbm" library [yes]? '
  607. ! read answer
  608. ! case "$answer" in
  609. ! y*|Y*|'')    ./query 'What is the compile option needed to get it [-ldbm]? '
  610. !         read answer
  611. !         case "$answer" in
  612. !         '')    answer=-ldbm    ;;
  613. !         esac
  614. !         dbm="DBM=$answer"
  615. !         ./query 'Does your dbm have a dbmclose() function [no]? '
  616. !         read answer
  617. !         case "$answer" in
  618. !         n*|N*|'')    fake="$fake dbmclose.o"    ;;
  619. !         esac
  620. !         ;;
  621. ! *)    fake="$fake dbm.o dbmclose.o"
  622. !     dbm='DBM='
  623.       echo "Okay, we'll fake it for you.  You might want to look at"
  624.       echo "contrib/dbz, which is a probably-superior fake that we have"
  625. --- 288,317 ----
  626.   echo 'possibly-missing library functions, and fake versions of the'
  627.   echo 'possibly-missing system calls, but it needs to know which are missing.'
  628. ! newfake=
  629.   for fn in $mightfake
  630.   do
  631. !     has=`notinlist "$fake" $fn.o`
  632. !     tmp=`yesno "Does your system have  $fn()" $has`
  633. !     case "$tmp" in
  634. !     no)    newfake="$newfake $fn.o"    ;;
  635.       esac
  636.   done
  637. ! has=`notinlist "$fake" ldiv.o`
  638. ! tmp=`yesno 'Does your system have a library function ldiv() as in ANSI C' $has`
  639. ! case "$tmp" in
  640. ! no)    newfake="$newfake ldiv.o"    ;;
  641.   esac
  642. ! has=`notinlist "$fake" dbm.o`
  643. ! tmp=`yesno 'Does your system have the "dbm" library' $has`
  644. ! case "$tmp" in
  645. ! yes)    dbmopt=`ask 'What is the compile option needed to get it' ${dbmopt--ldbm}`
  646. !     has=`notinlist "$fake" dbmclose.o`
  647. !     tmp=`yesno 'Does your dbm have a dbmclose() function' $has`
  648. !     case "$tmp" in
  649. !     no)    newfake="$newfake dbmclose.o"    ;;
  650. !     esac
  651. !     ;;
  652. ! no)    newfake="$newfake dbm.o dbmclose.o"
  653. !     dbmopt=
  654.       echo "Okay, we'll fake it for you.  You might want to look at"
  655.       echo "contrib/dbz, which is a probably-superior fake that we have"
  656. ***************
  657. *** 390,446 ****
  658.       ;;
  659.   esac
  660.   
  661.   echo
  662.   echo 'Many systems, notably older ones, have implementations of the Standard'
  663. ! echo 'I/O library ("stdio") in which fgets, fputs, fread, and fwrite, although'
  664. ! echo 'correct, are quite slow.  We supply versions of these functions which'
  665. ! echo 'are faster than those in any stdio we know; they are compatible with'
  666. ! echo 'most AT&T-derived stdios.  If they work on your system, they are a'
  667.   echo 'major performance win for C News.  There is a fairly thorough'
  668.   echo 'compatibility check run after the library is built; as far as we'
  669.   echo 'know, if the test works, the functions do (even on SunOS 4.0).'
  670. ! ./query 'Do you want to use our fast stdio library [yes]? '
  671. ! read libstdio
  672. ! case "$libstdio" in
  673. ! y*|Y*|'')    libstdio=libstdio
  674. !         echo 'Beware that the compatibility check will work best if'
  675. !         echo 'the output of doit.bin is NOT redirected into a file'
  676. !         echo 'or a pipe.'
  677. !         ;;
  678. ! *)        libstdio=        ;;
  679.   esac
  680.   
  681. ! if test " $dbm" != " DBM="
  682. ! then
  683. !     echo
  684.       echo 'Does the store() function in your dbm library return a'
  685. !     ./query 'value (some old ones did not) [yes]? '
  686. !     read storeval
  687. !     case "$storeval" in
  688. !     y*|Y*|'')    storeval=y    ;;
  689. !     esac
  690. ! else
  691. !     storeval=y
  692. ! fi
  693.   
  694. ! found=
  695. ! for f in $fake dummy
  696. ! do
  697. !     if test " $f" = " strchr.o"
  698. !     then
  699. !         found=y
  700. !     fi
  701. ! done
  702. ! if test " $found" = " "
  703. ! then
  704. !     echo
  705. !     echo 'A well-tuned strchr() function customized to a particular machine'
  706.       echo 'is usually faster than portable C.  Is your strchr() function'
  707. !     ./query 'indeed fast (okay to guess) [yes]? '
  708. !     read faststrchr
  709. !     case "$faststrchr" in
  710. !     y*|Y*|'')    faststrchr=y    ;;
  711. !     esac
  712. ! fi
  713.   
  714.   echo
  715. --- 319,357 ----
  716.       ;;
  717.   esac
  718. + fake="$newfake"
  719.   
  720.   echo
  721.   echo 'Many systems, notably older ones, have implementations of the Standard'
  722. ! echo 'I/O library ("stdio") in which fgets, fputs, fread, and fwrite are'
  723. ! echo 'quite slow.  We supply versions of these functions which are faster'
  724. ! echo 'than those in any stdio we know; they are compatible with most'
  725. ! echo 'AT&T-derived stdios.  If they work on your system, they are a'
  726.   echo 'major performance win for C News.  There is a fairly thorough'
  727.   echo 'compatibility check run after the library is built; as far as we'
  728.   echo 'know, if the test works, the functions do (even on SunOS 4.0).'
  729. ! faststdio=`yesno 'Do you want to use our fast stdio library' ${faststdio-yes}`
  730. ! case "$faststdio" in
  731. ! yes)    echo 'Beware that the compatibility check will work best if'
  732. !     echo 'the output of doit.bin is NOT redirected into a file'
  733. !     echo 'or a pipe.'
  734. !     ;;
  735.   esac
  736.   
  737. ! case "$dbmopt" in
  738. ! '')    storeval=yes        ;;
  739. ! *)    echo
  740.       echo 'Does the store() function in your dbm library return a'
  741. !     storeval=`yesno 'value (some old ones did not)' ${storeval-yes}`
  742. !     ;;
  743. ! esac
  744.   
  745. ! has=`notinlist "$fake" strchr.o`
  746. ! case "$has" in
  747. ! yes)    echo
  748. !     echo 'A well-tuned strchr() function customized to your machine'
  749.       echo 'is usually faster than portable C.  Is your strchr() function'
  750. !     faststrchr=`yesno 'indeed fast (okay to guess)' ${faststrchr-yes}`
  751. !     ;;
  752. ! esac
  753.   
  754.   echo
  755. ***************
  756. *** 453,461 ****
  757.   echo 'systems that are too old to do setuid(geteuid()).  Relaynews invokes'
  758.   echo 'it automatically if needed (and it then invokes relaynews in return).'
  759. ! ./query 'Can this system do setuid(geteuid()) [yes]? '
  760. ! read sete
  761. ! case "$sete" in
  762. ! y*|Y*|'')    sete=y    ;;
  763. ! esac
  764.   
  765.   echo
  766. --- 364,368 ----
  767.   echo 'systems that are too old to do setuid(geteuid()).  Relaynews invokes'
  768.   echo 'it automatically if needed (and it then invokes relaynews in return).'
  769. ! sete=`yesno 'Can this system do setuid(geteuid())' ${sete-yes}`
  770.   
  771.   echo
  772. ***************
  773. *** 462,480 ****
  774.   echo 'Some systems have header files that others lack, and C News'
  775.   echo 'is prepared to fake missing ones.'
  776. ! fakehdrs=
  777.   for h in $mightfakehdrs
  778.   do
  779. !     ./query "Does your system have an ANSI-C-conforming <$h> [yes]? "
  780. !     read answer
  781. !     case "$answer" in
  782. !     y*|Y*|'')    ;;
  783. !     *)    fakehdrs="$fakehdrs ../include/$h"    ;;
  784.       esac
  785.   done
  786. ! ./query "Does your system have <sys/timeb.h> [yes]? "
  787. ! read answer
  788. ! case "$answer" in
  789. ! n*|N*)    fakehdrs="$fakehdrs ../include/sys/timeb.h"    ;;
  790.   esac
  791.   
  792.   echo
  793. --- 369,387 ----
  794.   echo 'Some systems have header files that others lack, and C News'
  795.   echo 'is prepared to fake missing ones.'
  796. ! newfakehdrs=
  797.   for h in $mightfakehdrs
  798.   do
  799. !     has=`notinlist "$fakehdrs" ../include/$h`
  800. !     tmp=`yesno "Does your system have an ANSI-C-conforming <$h>" $has`
  801. !     case "$tmp" in
  802. !     no)    newfakehdrs="$newfakehdrs ../include/$h"    ;;
  803.       esac
  804.   done
  805. ! has=`notinlist "$fakehdrs" ../include/sys/timeb.h`
  806. ! tmp=`yesno 'Does your system have <sys/timeb.h>' $has`
  807. ! case "$tmp" in
  808. ! no)    newfakehdrs="$newfakehdrs ../include/sys/timeb.h"    ;;
  809.   esac
  810. + fakehdrs="$newfakehdrs"
  811.   
  812.   echo
  813. ***************
  814. *** 481,495 ****
  815.   echo 'Some old systems think sprintf() returns a value of type "char *".'
  816.   echo 'The modern standard is that it returns "int".  Does your sprintf()'
  817. ! ./query 'return "char *" [no]? '
  818. ! read answer
  819. ! case "$answer" in
  820. ! n*|N*|'')    ;;
  821. ! *)        echo 'You may have to hand-edit our "libc.h" include file if'
  822. !         echo 'your compiler objects to us declaring sprintf() to'
  823. !         echo 'return "int".  (This will usually happen only if your'
  824. !         echo '<stdio.h> header file declares sprintf() -- some do,'
  825. !         echo 'some do not.)  If you do need to edit "libc.h", look'
  826. !         echo 'for the definition of "sprvalue".'
  827. !         ;;
  828.   esac
  829.   
  830. --- 388,400 ----
  831.   echo 'Some old systems think sprintf() returns a value of type "char *".'
  832.   echo 'The modern standard is that it returns "int".  Does your sprintf()'
  833. ! sprintfchar=`yesno 'return "char *"' ${sprintfchar-no}`
  834. ! case "$sprintfchar" in
  835. ! yes)    echo 'You may have to hand-edit our "libc.h" include file if'
  836. !     echo 'your compiler objects to us declaring sprintf() to'
  837. !     echo 'return "int".  (This will usually happen only if your'
  838. !     echo '<stdio.h> header file declares sprintf() -- some do,'
  839. !     echo 'some do not.)  If you do need to edit "libc.h", look'
  840. !     echo 'for the definition of "sprvalue".'
  841. !     ;;
  842.   esac
  843.   
  844. ***************
  845. *** 498,519 ****
  846.   echo 'chosen very carefully.  V7 introduced "ranlib" which removes the need'
  847.   echo 'for this.  Recent System Vs have had the same facility built into "ar"'
  848. ! echo '(look for "symdef" in the "ar" manual page) so "ranlib" is not needed.'
  849. ! ./query "Does your system have a 'ranlib' command [no]? "
  850. ! read ranlib
  851.   case "$ranlib" in
  852. ! n*|N*|'')
  853. !     ./query 'Does your "ar" have a "symdef" feature [yes]? '
  854. !     read answer
  855. !     case "$answer" in
  856. !     n*|N*)    echo 'You have trouble and may need to modify doit.bin before'
  857.           echo 'running it.  It will assume "ranlib" is present.'
  858. !         ranlib=y
  859.           ;;
  860. -     *)    ranlib=
  861. -         ;;
  862.       esac
  863.       ;;
  864. ! *)    ranlib=y
  865. !     ;;
  866.   esac
  867.   
  868. --- 403,418 ----
  869.   echo 'chosen very carefully.  V7 introduced "ranlib" which removes the need'
  870.   echo 'for this.  Recent System Vs have had the same facility built into "ar"'
  871. ! echo '(look for the "symdef" feature in the "ar" manual page) so "ranlib"'
  872. ! ranlib=`yesno 'is not needed.  Does your system use 'ranlib'' ${ranlib-no}`
  873.   case "$ranlib" in
  874. ! no)    symdef=`yesno 'Does your "ar" have a "symdef" feature' ${symdef-yes}`
  875. !     case "$symdef" in
  876. !     no)    echo 'You have trouble and may need to modify doit.bin before'
  877.           echo 'running it.  It will assume "ranlib" is present.'
  878. !         ranlib=yes
  879.           ;;
  880.       esac
  881.       ;;
  882. ! yes)    symdef=no        ;;
  883.   esac
  884.   
  885. ***************
  886. *** 521,530 ****
  887.   echo 'Historically the C compiler is named "cc", but this is not true on'
  888.   echo 'some systems, and on others there are several different C compilers.'
  889. ! ./query 'What is the name of the C compiler to be used [cc]? '
  890. ! read cc
  891. ! case "$cc" in
  892. ! '')    cc=    ;;
  893. ! *)    cc="CC=$cc"    ;;
  894. ! esac
  895.   
  896.   echo
  897. --- 420,424 ----
  898.   echo 'Historically the C compiler is named "cc", but this is not true on'
  899.   echo 'some systems, and on others there are several different C compilers.'
  900. ! cc=`ask 'What is the name of the C compiler to be used' ${cc-cc}`
  901.   
  902.   echo
  903. ***************
  904. *** 531,540 ****
  905.   echo 'Historically the only normal compilation option needed for most'
  906.   echo 'programs is -O, but again compilers, especially newer ones, differ.'
  907. ! ./query "What options should be given to the compiler [-O]? "
  908. ! read copts
  909. ! case "$copts" in
  910. ! '')    copts=    ;;
  911. ! *)    copts="COPTS='$copts'"    ;;
  912. ! esac
  913.   
  914.   echo
  915. --- 425,429 ----
  916.   echo 'Historically the only normal compilation option needed for most'
  917.   echo 'programs is -O, but again compilers, especially newer ones, differ.'
  918. ! copts="`ask 'What options should be given to the compiler' \"${copts--O}\"`"
  919.   
  920.   echo
  921. ***************
  922. *** 541,551 ****
  923.   echo 'The final linking ("ld") step of compiling might need an option,'
  924.   echo 'such as -n or -i, to produce the preferred form of executable file.'
  925. ! echo 'On many modern systems the preferred form is the default.  What options,'
  926. ! ./query 'if any, should be given for linking [none]? '
  927. ! read ldopts
  928. ! case "$ldopts" in
  929. ! '')    ;;
  930. ! *)    copts="$copts LDFLAGS='$ldopts'"    ;;
  931. ! esac
  932.   
  933.   echo
  934. --- 430,435 ----
  935.   echo 'The final linking ("ld") step of compiling might need an option,'
  936.   echo 'such as -n or -i, to produce the preferred form of executable file.'
  937. ! echo 'On most modern systems the default is right.  What options, if any,'
  938. ! ldopts=`ask 'should be given for linking' ${ldopts-}`
  939.   
  940.   echo
  941. ***************
  942. *** 554,576 ****
  943.   echo 'either full pathnames or -l... options.  What libraries, in addition'
  944.   echo 'to the one(s) picked up automatically by the compiler, should be used'
  945. ! ./query 'when linking C News [none]? '
  946. ! read postlibs
  947. ! case "$postlibs" in
  948. ! '')    ;;
  949. ! *)    postlibs="POST='$postlibs'"    ;;
  950. ! esac
  951.   
  952.   echo
  953. ! ./query 'Does your system have a "hostname" command [yes]? '
  954. ! read hostname
  955.   case "$hostname" in
  956. ! y*|Y*|'')    hostname=y    ;;
  957. ! *)    ./query 'Does it have a "uname" command with a "-n" option [yes]? '
  958. !     read hostname
  959. !     case "$hostname" in
  960. !     y*|Y*|'')    hostname=u    ;;
  961. !     *)        hostname=    ;;
  962. !     esac
  963. !     ;;
  964.   esac
  965.   
  966. --- 438,448 ----
  967.   echo 'either full pathnames or -l... options.  What libraries, in addition'
  968.   echo 'to the one(s) picked up automatically by the compiler, should be used'
  969. ! postlibs=`ask 'when linking C News' ${postlibs-}`
  970.   
  971.   echo
  972. ! hostname=`yesno 'Does your system have a "hostname" command' ${hostname-yes}`
  973.   case "$hostname" in
  974. ! yes)    uname=no    ;;
  975. ! no)    uname=`yesno 'Does it have a "uname -n" command' ${uname-yes}`    ;;
  976.   esac
  977.   
  978. ***************
  979. *** 584,598 ****
  980.   echo '    hdb    Honey DanBer, aka Basic Networking Utilities'
  981.   echo '    sub    old uucp with subdirectories (e.g. /usr/spool/uucp/C.)'
  982.   echo "    null    don't run uucp or don't care about queue lengths"
  983.   while true
  984.   do
  985. !     ./query 'Which one is most appropriate [hdb]? '
  986. !     read uucptype
  987.       case "$uucptype" in
  988. !     '')    uucptype=hdb    ;;
  989. !     sub)    echo 'Beware -- test "queuelen" to make sure it works.'    ;;
  990.       esac
  991.       case "$uucptype" in
  992. !     hdb|sub|null)    break    ;;
  993.       esac
  994.       echo 'Sorry, no such choice is available.'
  995. --- 456,470 ----
  996.   echo '    hdb    Honey DanBer, aka Basic Networking Utilities'
  997.   echo '    sub    old uucp with subdirectories (e.g. /usr/spool/uucp/C.)'
  998. + echo '    old    very old uucp, no subdirectories'
  999. + echo '    pre    prehistoric uucp, no subdirectories, no -g option on uux'
  1000.   echo "    null    don't run uucp or don't care about queue lengths"
  1001.   while true
  1002.   do
  1003. !     uucptype=`ask 'Which one is most appropriate' ${uucptype-hdb}`
  1004.       case "$uucptype" in
  1005. !     sub|old)    echo 'Beware -- test "queuelen" to make sure it works.'    ;;
  1006.       esac
  1007.       case "$uucptype" in
  1008. !     hdb|sub|old|pre|null)    break    ;;
  1009.       esac
  1010.       echo 'Sorry, no such choice is available.'
  1011. ***************
  1012. *** 604,611 ****
  1013.   echo 'C News knows about several different versions:'
  1014.   echo '    bsd    4.2BSD and later'
  1015. ! echo '    sysv    most System Vs'
  1016.   echo '    sgi    Silicon Graphics Iris systems'
  1017.   echo '    ultrix    DEC Ultrix 3.0 (and later) (and earlier??)'
  1018. - echo '    xenix    some (all?) Xenixes, notably SCO'
  1019.   echo '    v7    plain old style:  no headers or fluff, just name and number'
  1020.   echo "    null    don't know or don't care how much space is available"
  1021. --- 476,483 ----
  1022.   echo 'C News knows about several different versions:'
  1023.   echo '    bsd    4.2BSD and later'
  1024. ! echo '    sysv    many System Vs'
  1025. ! echo '    xenix    some (all?) Xenixes, notably SCO; also Microport?'
  1026.   echo '    sgi    Silicon Graphics Iris systems'
  1027.   echo '    ultrix    DEC Ultrix 3.0 (and later) (and earlier??)'
  1028.   echo '    v7    plain old style:  no headers or fluff, just name and number'
  1029.   echo "    null    don't know or don't care how much space is available"
  1030. ***************
  1031. *** 612,619 ****
  1032.   while true
  1033.   do
  1034. !     ./query 'Which one is most appropriate [bsd]? '
  1035. !     read dftype
  1036.       case "$dftype" in
  1037. -     '')    dftype=bsd    ;;
  1038.       sysv|xenix)
  1039.           echo 'Beware -- test "spacefor" to make sure it works.'
  1040. --- 484,489 ----
  1041.   while true
  1042.   do
  1043. !     dftype=`ask 'Which one is most appropriate' ${dftype-bsd}`
  1044.       case "$dftype" in
  1045.       sysv|xenix)
  1046.           echo 'Beware -- test "spacefor" to make sure it works.'
  1047. ***************
  1048. *** 632,639 ****
  1049.   echo 'name of a device.  Modern ones can be given any directory name and'
  1050.   echo 'the system handles the details of figuring out what device is meant.'
  1051. ! ./query 'Does your "df" accept a directory name as an argument [yes]? '
  1052. ! read answer
  1053. ! case "$answer" in
  1054. ! n*|N*)    echo 'You are going to have to customize "spacefor" for your system.'
  1055.       echo 'It will be generated assuming that directory names do work.'
  1056.       ;;
  1057. --- 502,508 ----
  1058.   echo 'name of a device.  Modern ones can be given any directory name and'
  1059.   echo 'the system handles the details of figuring out what device is meant.'
  1060. ! dfdirs=`yesno 'Will your "df" accept a directory-name argument' ${dfdirs-yes}`
  1061. ! case "$dfdirs" in
  1062. ! no)    echo 'You are going to have to customize "spacefor" for your system.'
  1063.       echo 'It will be generated assuming that directory names do work.'
  1064.       ;;
  1065. ***************
  1066. *** 641,648 ****
  1067.   
  1068.   echo
  1069. ! ./query 'Are you planning to use expire to archive news on disk [no]? '
  1070. ! read answer
  1071. ! case "$answer" in
  1072. ! y*|Y*)    echo 'You probably want to customize the "archive" entry in'
  1073.       echo '"spacefor" so it knows where your archiving is done and how'
  1074.       echo 'much space you want free there.'
  1075. --- 510,516 ----
  1076.   
  1077.   echo
  1078. ! archive=`yesno 'Are you planning to use expire to archive news on disk' ${archive-no}`
  1079. ! case "$archive" in
  1080. ! yes)    echo 'You probably want to customize the "archive" entry in'
  1081.       echo '"spacefor" so it knows where your archiving is done and how'
  1082.       echo 'much space you want free there.'
  1083. ***************
  1084. *** 651,658 ****
  1085.   
  1086.   echo
  1087. ! ./query 'Are you particularly short of disk space [no]? '
  1088. ! read answer
  1089. ! case "$answer" in
  1090. ! y*|Y*)    echo 'You may want to reconsider whether you really want to get'
  1091.       echo 'news, unless you are getting only a very small set of groups.'
  1092.       echo 'In any case, you definitely want to inspect "spacefor" and'
  1093. --- 519,525 ----
  1094.   
  1095.   echo
  1096. ! spacelow=`yesno 'Are you particularly short of disk space' ${spacelow-no}`
  1097. ! case "$spacelow" in
  1098. ! yes)    echo 'You may want to reconsider whether you really want to get'
  1099.       echo 'news, unless you are getting only a very small set of groups.'
  1100.       echo 'In any case, you definitely want to inspect "spacefor" and'
  1101. ***************
  1102. *** 659,663 ****
  1103.       echo 'change some of its thresholds for free space.'
  1104.       ;;
  1105. ! *)    echo 'You may want to inspect "spacefor" to make sure its defaults'
  1106.       echo 'for things like desired free space are appropriate for your'
  1107.       echo 'system, although the defaults are fairly conservative.'
  1108. --- 526,530 ----
  1109.       echo 'change some of its thresholds for free space.'
  1110.       ;;
  1111. ! no)    echo 'You may want to inspect "spacefor" to make sure its defaults'
  1112.       echo 'for things like desired free space are appropriate for your'
  1113.       echo 'system, although the defaults are fairly conservative.'
  1114. ***************
  1115. *** 666,690 ****
  1116.   
  1117.   echo
  1118. ! echo 'Are you running C News on a group of machines hooked together with'
  1119. ! ./query 'NFS, with articles filed on only one "server" machine [no]? '
  1120. ! read answer
  1121.   server=
  1122. ! case "$answer" in
  1123. ! y*|Y*)    if test " $hostname" = " "
  1124. !     then
  1125. !         echo 'With a server but no "hostname" command, you will have'
  1126.           echo 'problems and will probably have to tinker by hand to'
  1127.           echo 'get a fake "hostname" that does the right thing.  The'
  1128.           echo 'generated files will assume you have "hostname".'
  1129. !         hostname=y
  1130. !     fi
  1131. !     if test " $hostname" = " u"
  1132. !     then
  1133. !         ./query 'What is the "uname -n" name of the server? '
  1134. !     else
  1135. !         ./query 'What is the "hostname" name of the server? '
  1136. !     fi
  1137. !     read server
  1138.       ;;
  1139.   esac
  1140.   
  1141. --- 533,555 ----
  1142.   
  1143.   echo
  1144. ! echo 'Are you running C News on a group of machines hooked together with NFS,'
  1145. ! nfsgroup=`yesno 'with articles filed on one "server" machine' ${nfsgroup-no}`
  1146.   server=
  1147. ! case "$nfsgroup" in
  1148. ! yes)    case "$hostname$uname" in
  1149. !     'nono')    echo 'With a server but no "hostname" command, you will have'
  1150.           echo 'problems and will probably have to tinker by hand to'
  1151.           echo 'get a fake "hostname" that does the right thing.  The'
  1152.           echo 'generated files will assume you have "hostname".'
  1153. !         hostname=yes
  1154. !         ;;
  1155. !     esac
  1156. !     case "$uname" in
  1157. !     yes)    tmp="uname -n"    ;;
  1158. !     no)    tmp="hostname"    ;;
  1159. !     esac
  1160. !     server=`ask "What is the \"$tmp\" name of the server" ${server-newsie}`
  1161.       ;;
  1162. + no)    server=newsie        ;;
  1163.   esac
  1164.   
  1165. ***************
  1166. *** 695,700 ****
  1167.   echo 'article headers and related places.  For uucp sites, this usually'
  1168.   echo 'should be the uucp name.  What is the name of the overall system'
  1169. ! ./query 'for news purposes? '
  1170. ! read whoami
  1171.   
  1172.   echo
  1173. --- 560,564 ----
  1174.   echo 'article headers and related places.  For uucp sites, this usually'
  1175.   echo 'should be the uucp name.  What is the name of the overall system'
  1176. ! whoami="`ask 'for news purposes' \"${whoami-nowhere}\"`"
  1177.   
  1178.   echo
  1179. ***************
  1180. *** 702,715 ****
  1181.   echo 'a mailing address, which in particular should be a domain address'
  1182.   echo 'for sites that have one.  What is the mailing-address name of this'
  1183. ! ./query "system, preferably a domain address [$whoami.uucp]? "
  1184. ! read mailname
  1185. ! case "$mailname" in
  1186. ! '')    mailname="$whoami.uucp"    ;;
  1187. ! esac
  1188.   
  1189.   echo
  1190.   echo 'What is the name of the organization, for insertion into articles'
  1191. ! ./query 'posted from here? '
  1192. ! read organization
  1193.   
  1194.   echo
  1195. --- 566,574 ----
  1196.   echo 'a mailing address, which in particular should be a domain address'
  1197.   echo 'for sites that have one.  What is the mailing-address name of this'
  1198. ! mailname="`ask 'system, preferably a domain address' \"${mailname-$whoami.uucp}\"`"
  1199.   
  1200.   echo
  1201.   echo 'What is the name of the organization, for insertion into articles'
  1202. ! organization="`ask 'posted from here' \"${organization-Godcorp}\"`"
  1203.   
  1204.   echo
  1205. ***************
  1206. *** 717,725 ****
  1207.   echo 'Local practices vary a great deal, however, and System V has also'
  1208.   echo 'introduced some bizarre distortions into this once-simple structure.'
  1209. ! ./query 'What is the top-level manual-page directory [/usr/man]? '
  1210. ! read manpages
  1211. ! case "$manpages" in
  1212. ! '')    manpages=/usr/man    ;;
  1213. ! esac
  1214.   
  1215.   echo
  1216. --- 576,580 ----
  1217.   echo 'Local practices vary a great deal, however, and System V has also'
  1218.   echo 'introduced some bizarre distortions into this once-simple structure.'
  1219. ! manpages=`ask 'What is the top-level manual-page directory' ${manpages-/usr/man}`
  1220.   
  1221.   echo
  1222. ***************
  1223. *** 729,736 ****
  1224.   echo 'in some variants of Unix.  Also, originally pages from chapter 5 (for'
  1225.   echo "example) were stored in $manpages/man5.  This has also changed in"
  1226. ! ./query 'some variants.  Has your system made either of these changes [no]? '
  1227. ! read answer
  1228. ! case "$answer" in
  1229. ! y*|Y*)    echo 'You will have to hand-edit the last few lines of doit.bin'
  1230.       echo 'to install the manual pages where they belong on your system.'
  1231.       ;;
  1232. --- 584,590 ----
  1233.   echo 'in some variants of Unix.  Also, originally pages from chapter 5 (for'
  1234.   echo "example) were stored in $manpages/man5.  This has also changed in"
  1235. ! manmess=`yesno 'some variants.  Has your system made such changes' ${manmess-no}`
  1236. ! case "$manmess" in
  1237. ! yes)    echo 'You will have to hand-edit the last few lines of doit.bin'
  1238.       echo 'to install the manual pages where they belong on your system.'
  1239.       ;;
  1240. ***************
  1241. *** 744,752 ****
  1242.   echo 'them, so they need not go in the directories searched for normal'
  1243.   echo 'commands... although uucp often searches only those directories.'
  1244. ! ./query 'What directory should "rnews" and "cunbatch" go in [/bin]? '
  1245. ! read rbin
  1246. ! case "$rbin" in
  1247. ! '')    rbin=/bin    ;;
  1248. ! esac
  1249.   
  1250.   echo
  1251. --- 598,602 ----
  1252.   echo 'them, so they need not go in the directories searched for normal'
  1253.   echo 'commands... although uucp often searches only those directories.'
  1254. ! rbin=`ask 'What directory should "rnews" and "cunbatch" go in' ${rbin-/bin}`
  1255.   
  1256.   echo
  1257. ***************
  1258. *** 756,764 ****
  1259.   echo '(or other) versions should run fine with C News.  If you are already'
  1260.   echo 'running such user-interface software, you may not want to change.'
  1261. ! ./query 'Do you want to install our user-interface programs [yes]? '
  1262. ! read doui
  1263.   case "$doui" in
  1264. ! ''|y*|Y*)    doui=yes ; pgmdirs="$pgmdirs rna"    ;;
  1265. ! *)    doui=no    ;;
  1266.   esac
  1267.   
  1268. --- 606,612 ----
  1269.   echo '(or other) versions should run fine with C News.  If you are already'
  1270.   echo 'running such user-interface software, you may not want to change.'
  1271. ! doui=`yesno 'Do you want to install our user-interface programs' ${doui-yes}`
  1272.   case "$doui" in
  1273. ! yes)    pgmdirs="$pgmdirs rna"    ;;
  1274.   esac
  1275.   
  1276. ***************
  1277. *** 765,778 ****
  1278.   echo
  1279.   case "$doui" in
  1280. ! no)    echo 'The "inews" command(s) should'    ;;
  1281. ! *)    echo 'The "inews", "postnews", "readnews", and "checknews" commands should'    ;;
  1282.   esac
  1283.   echo 'go in one of the directories searched for normal commands, so users'
  1284.   echo 'can run them without special arrangements.  What directory should'
  1285. ! ./query 'these commands go in [/bin]? '
  1286. ! read bin
  1287. ! case "$bin" in
  1288. ! '')    bin=/bin    ;;
  1289. ! esac
  1290.   
  1291.   echo
  1292. --- 613,623 ----
  1293.   echo
  1294.   case "$doui" in
  1295. ! no)    tmp='"inews"'    ;;
  1296. ! yes)    tmp='"inews", "postnews", "readnews", and "checknews"'    ;;
  1297.   esac
  1298. + echo "The $tmp command(s) should"
  1299.   echo 'go in one of the directories searched for normal commands, so users'
  1300.   echo 'can run them without special arrangements.  What directory should'
  1301. ! bin=`ask 'these commands go in' ${bin-/bin}`
  1302.   
  1303.   echo
  1304. ***************
  1305. *** 781,798 ****
  1306.   echo 'Internet-style "@" address or a uucp-style "!" address.  Internet'
  1307.   echo 'style is probably better... if your mailer supports it at all.'
  1308. ! ./query 'Will "mail" handle "@" addresses [no]? '
  1309. ! read atok
  1310. ! case "$atok" in
  1311. ! y*|Y*)    atok=y    ;;
  1312. ! *)    atok=    ;;
  1313. ! esac
  1314.   
  1315.   case "$doui" in
  1316. ! yes)
  1317. !     echo
  1318.       echo 'Postnews can supply a default newsgroup, to aid naive users in'
  1319.       echo 'getting this right for simple postings.  What should the default'
  1320. !     ./query 'newsgroup for postnews be [no default]? '
  1321. !     read postdefltgroup
  1322.   
  1323.       echo
  1324. --- 626,636 ----
  1325.   echo 'Internet-style "@" address or a uucp-style "!" address.  Internet'
  1326.   echo 'style is probably better... if your mailer supports it at all.'
  1327. ! atok=`yesno 'Will "mail" handle "@" addresses' ${atok-no}`
  1328.   
  1329.   case "$doui" in
  1330. ! yes)    echo
  1331.       echo 'Postnews can supply a default newsgroup, to aid naive users in'
  1332.       echo 'getting this right for simple postings.  What should the default'
  1333. !     postdefltgroup="`ask 'newsgroup be' \"${postdefltgroup-none}\"`"
  1334.   
  1335.       echo
  1336. ***************
  1337. *** 800,805 ****
  1338.       echo 'local area unless the user specifically changes it.  This is'
  1339.       echo 'probably wise.  What should the default postnews distribution'
  1340. !     ./query 'be [world]? '
  1341. !     read postdefltdist
  1342.       ;;
  1343.   esac
  1344. --- 638,642 ----
  1345.       echo 'local area unless the user specifically changes it.  This is'
  1346.       echo 'probably wise.  What should the default postnews distribution'
  1347. !     postdefltdist="`ask 'be' \"${postdefltdist-world}\"`"
  1348.       ;;
  1349.   esac
  1350. ***************
  1351. *** 811,819 ****
  1352.   echo "C News's generally are not, mind you), that site can get any article"
  1353.   echo 'currently on your system.  Do you have any newsgroups containing'
  1354. ! ./query 'confidential or proprietary material [no]? '
  1355. ! read answer
  1356. ! case "$answer" in
  1357. ! n*|N*|'')    ;;
  1358. ! *)    echo 'You may want to substitute relay/ihave.not.c for relay/ihave.c'
  1359.       echo 'before running doit.bin, so that ihave/sendme is disabled'
  1360.       echo 'at your site.'
  1361. --- 648,654 ----
  1362.   echo "C News's generally are not, mind you), that site can get any article"
  1363.   echo 'currently on your system.  Do you have any newsgroups containing'
  1364. ! paranoid=`yesno 'confidential or proprietary material' ${paranoid-no}`
  1365. ! case "$paranoid" in
  1366. ! yes)    echo 'You may want to substitute relay/ihave.not.c for relay/ihave.c'
  1367.       echo 'before running doit.bin, so that ihave/sendme is disabled'
  1368.       echo 'at your site.'
  1369. ***************
  1370. *** 872,887 ****
  1371.       echo 'cd h'
  1372.       echo 'rm -f nnewshsed'
  1373. !     if test " $faststrchr" != " y"
  1374. !     then
  1375. !         echo 'echo "/FASTSTRCHR.*qqq/s;^;/* ;" >>nnewshsed'
  1376. !     fi
  1377. !     if test " $storeval" = " y"
  1378. !     then
  1379. !         echo 'echo "/NOSTOREVAL.*qqq/s;^;/* ;" >>nnewshsed'
  1380. !     fi
  1381. !     if test " $addrsize" = " big"
  1382. !     then
  1383. !         echo 'echo "/SMALLMEM.*qqq/s;^;/* ;" >>nnewshsed'
  1384. !     fi
  1385.       echo 'if test -f newshsed && cmp -s nnewshsed newshsed'
  1386.       echo 'then'
  1387. --- 707,719 ----
  1388.       echo 'cd h'
  1389.       echo 'rm -f nnewshsed'
  1390. !     case "$faststrchr" in
  1391. !     no)    echo 'echo "/FASTSTRCHR.*qqq/s;^;/* ;" >>nnewshsed'    ;;
  1392. !     esac
  1393. !     case "$storeval" in
  1394. !     yes)    echo 'echo "/NOSTOREVAL.*qqq/s;^;/* ;" >>nnewshsed'    ;;
  1395. !     esac
  1396. !     case "$addrsize" in
  1397. !     big)    echo 'echo "/SMALLMEM.*qqq/s;^;/* ;" >>nnewshsed'    ;;
  1398. !     esac
  1399.       echo 'if test -f newshsed && cmp -s nnewshsed newshsed'
  1400.       echo 'then'
  1401. ***************
  1402. *** 900,904 ****
  1403.       echo ": making substitutions..."
  1404.       echo "cd ../conf"
  1405. !     if test " $needsubst" = " y"
  1406.       then
  1407.           echo 'case "$1" in'
  1408. --- 732,736 ----
  1409.       echo ": making substitutions..."
  1410.       echo "cd ../conf"
  1411. !     if test " $needsubst" != " n"    xxx
  1412.       then
  1413.           echo 'case "$1" in'
  1414. ***************
  1415. *** 916,939 ****
  1416.       echo "make queuelen.$uucptype || exit 1"
  1417.       echo "cp queuelen.$uucptype queuelen"
  1418. !     if test " $hostname" = " y"
  1419. !     then
  1420. !         echo "# ( echo '#! /bin/sh' ; echo 'echo $whoami' ) >hostname"
  1421. !     elif test " $hostname" = " u"
  1422. !     then
  1423. !         echo "( echo '#! /bin/sh' ; echo 'uname -n' ) >hostname"
  1424. !     else
  1425. !         echo "( echo '#! /bin/sh' ; echo 'echo $whoami' ) >hostname"
  1426. !     fi
  1427.       echo ': done'
  1428.       echo ': making library...'
  1429. !     if test " $ranlib" = " y"
  1430. !     then
  1431. !         echo "touch ../ranlibed"
  1432. !         echo "sleep 2"
  1433. !     fi
  1434.       echo "for dir in lib$unixkind lib$addrsize libc libcnews $libstdio"
  1435.       echo "do"
  1436.       echo "    cd ../\$dir"
  1437. !     echo "    make u $cc $copts $postlibs || exit 1"
  1438.       echo "done"
  1439.       echo "cd ../libfake"
  1440. --- 748,782 ----
  1441.       echo "make queuelen.$uucptype || exit 1"
  1442.       echo "cp queuelen.$uucptype queuelen"
  1443. !     case "$hostname" in
  1444. !     no)    case "$uname" in
  1445. !         yes)    echo "echo 'uname -n' >hostname"    ;;
  1446. !         no)    echo "echo 'echo $whoami' >hostname"    ;;
  1447. !         esac
  1448. !     esac
  1449.       echo ': done'
  1450.       echo ': making library...'
  1451. !     case "$ranlib" in
  1452. !     yes)    echo "touch ../ranlibed ; sleep 2"    ;;
  1453. !     esac
  1454. !     case "$faststdio" in
  1455. !     yes)    libstdio=libstdio    ;;
  1456. !     no)    libstdio=        ;;
  1457. !     esac
  1458. !     case "$cc" in
  1459. !     cc)    ccc="COPTS='$copts'"    ;;
  1460. !     *)    ccc="CC=$cc COPTS='$copts'"    ;;
  1461. !     esac
  1462. !     case "$ldopts" in
  1463. !     '')                    ;;
  1464. !     *)    ccc="$ccc LDFLAGS='$ldopts'"    ;;
  1465. !     esac
  1466. !     case "$postlibs" in
  1467. !     '')                    ;;
  1468. !     *)    ccc="$ccc POST='$postlibs'"    ;;
  1469. !     esac
  1470.       echo "for dir in lib$unixkind lib$addrsize libc libcnews $libstdio"
  1471.       echo "do"
  1472.       echo "    cd ../\$dir"
  1473. !     echo "    make u $ccc || exit 1"
  1474.       echo "done"
  1475.       echo "cd ../libfake"
  1476. ***************
  1477. *** 942,955 ****
  1478.       echo "w"
  1479.       echo "!"
  1480. !     echo "make u $cc $copts $postlibs || exit 1"
  1481.       echo "cd ../conf"
  1482. !     if test " $ranlib" = " y"
  1483. !     then
  1484. !         echo "make ../ranlibed || exit 1"
  1485. !     fi
  1486.       echo ': library done'
  1487. !     if test " $libstdio" != " "
  1488. !     then
  1489. !         echo 'case "$1" in'
  1490.           echo '-*t*)    ;;'
  1491.           echo '*)    : testing libstdio'
  1492. --- 785,796 ----
  1493.       echo "w"
  1494.       echo "!"
  1495. !     echo "make u $ccc || exit 1"
  1496.       echo "cd ../conf"
  1497. !     case "$ranlib" in
  1498. !     yes)    echo "make ../ranlibed || exit 1"    ;;
  1499. !     esac
  1500.       echo ': library done'
  1501. !     case "$faststdio" in
  1502. !     yes)    echo 'case "$1" in'
  1503.           echo '-*t*)    ;;'
  1504.           echo '*)    : testing libstdio'
  1505. ***************
  1506. *** 958,976 ****
  1507.           echo '    : but do not redirect it -- it is important that stdio'
  1508.           echo '    : think output is going to a terminal.'
  1509. !         echo "    make trials $cc $copts $postlibs || exit 1"
  1510.           echo '    : done'
  1511.           echo '    ;;'
  1512.           echo 'esac'
  1513. !     fi
  1514.       echo ': building programs'
  1515.       echo 'cd ../conf'
  1516. !     if test " $sete" != " y"
  1517. !     then
  1518. !         echo "make setnewsids NEWSUSER=$newsuid NEWSGROUP=$newsgid $cc $copts $postlibs || exit 1"
  1519. !     fi
  1520.       echo "for dir in $pgmdirs"
  1521.       echo "do"
  1522.       echo "    cd ../\$dir"
  1523. !     echo "    make all $dbm $cc $copts $postlibs || exit 1"
  1524.       echo "done"
  1525.       echo ": done"
  1526. --- 799,822 ----
  1527.           echo '    : but do not redirect it -- it is important that stdio'
  1528.           echo '    : think output is going to a terminal.'
  1529. !         echo "    make trials $ccc || exit 1"
  1530.           echo '    : done'
  1531.           echo '    ;;'
  1532.           echo 'esac'
  1533. !         ;;
  1534. !     esac
  1535.       echo ': building programs'
  1536.       echo 'cd ../conf'
  1537. !     case "$sete" in
  1538. !     no)    echo "make setnewsids NEWSUSER=$newsuid NEWSGROUP=$newsgid $ccc || exit 1"
  1539. !         ;;
  1540. !     esac
  1541. !     case "$dbmopt" in
  1542. !     '')    dbm=            ;;
  1543. !     *)    dbm="DBM=$dbmopt"    ;;
  1544. !     esac
  1545.       echo "for dir in $pgmdirs"
  1546.       echo "do"
  1547.       echo "    cd ../\$dir"
  1548. !     echo "    make all $dbm $ccc || exit 1"
  1549.       echo "done"
  1550.       echo ": done"
  1551. ***************
  1552. *** 983,1002 ****
  1553.       echo "$organization"
  1554.       echo '!'
  1555. !     if test " $server" != " "
  1556. !     then
  1557. !         echo "echo '$server' >server"
  1558. !     fi
  1559. !     if test " $atok" != " y"
  1560. !     then
  1561. !         echo echo "'replies must use "!" addresses' >replyusepath"
  1562. !     fi
  1563. !     if test " $postdefltdist" != " "
  1564. !     then
  1565. !         echo "echo '$postdefltdist' >>postdefltdist"
  1566. !     fi
  1567. !     if test " $postdefltgroup" != " "
  1568. !     then
  1569. !         echo "echo '$postdefltgroup' >>postdefltgroup"
  1570. !     fi
  1571.       echo "echo '$whoami' >whoami"
  1572.       echo "echo 'general 0000000000 0000000001 y' >active"
  1573. --- 829,846 ----
  1574.       echo "$organization"
  1575.       echo '!'
  1576. !     case "$nfsgroup" in
  1577. !     yes)    echo "echo '$server' >server"
  1578. !     esac
  1579. !     case "$atok" in
  1580. !     no)    echo echo "'replies must use paths' >replyusepath"    ;;
  1581. !     esac
  1582. !     case "$postdefltdist" in
  1583. !     world)                            ;;
  1584. !     *)    echo "echo '$postdefltdist' >>postdefltdist"    ;;
  1585. !     esac
  1586. !     case "$postdefltgroup" in
  1587. !     none)                        ;;
  1588. !     *)    echo "echo '$postdefltgroup' >>postdefltgroup"    ;;
  1589. !     esac
  1590.       echo "echo '$whoami' >whoami"
  1591.       echo "echo 'general 0000000000 0000000001 y' >active"
  1592. ***************
  1593. *** 1012,1015 ****
  1594. --- 856,866 ----
  1595.       echo "echo 'all    uunet!%s' >mailpaths"    # crude
  1596.       echo "cp sys.proto sys"
  1597. +     echo "cd ../expire"
  1598. +     echo "make explist.$archive && cp explist.$archive explist"
  1599. +     echo "cd ../conf"
  1600. +     case "$archive" in
  1601. +     yes)    a='-a /where/ever'    ;;
  1602. +     no)    a=            ;;
  1603. +     esac
  1604.       echo "cat >cron <<'!'"
  1605.       cat <<!
  1606. ***************
  1607. *** 1018,1023 ****
  1608.   00 17    1-31 *    1-5    su news -c '$newsbin/input/newsrunning on'
  1609.   40 *    1-31 *    0-6    su news -c '$newsbin/batch/sendbatches'
  1610. ! 59 0    1-31 *    0-6    su news -c '$newsbin/expire/doexpire'
  1611. ! 45 3    1-31 *    0-6    su news -c '$newsbin/expire/superkludge comp.mail.maps news.announce.newusers'
  1612.   10 8    1-31 *    0-6    su news -c '$newsbin/maint/newsdaily'
  1613.   00 5,13,21    1-31 *    0-6    su news -c '$newsbin/maint/newswatch'
  1614. --- 869,873 ----
  1615.   00 17    1-31 *    1-5    su news -c '$newsbin/input/newsrunning on'
  1616.   40 *    1-31 *    0-6    su news -c '$newsbin/batch/sendbatches'
  1617. ! 59 0    1-31 *    0-6    su news -c '$newsbin/expire/doexpire $a'
  1618.   10 8    1-31 *    0-6    su news -c '$newsbin/maint/newsdaily'
  1619.   00 5,13,21    1-31 *    0-6    su news -c '$newsbin/maint/newswatch'
  1620. ***************
  1621. *** 1069,1073 ****
  1622.       echo "do"
  1623.       echo "    cd ../\$dir"
  1624. !     echo "    make newsinstall BIN=$bin RBIN=$rbin $dbm || exit 1"
  1625.       echo "done"
  1626.       echo ": done"
  1627. --- 919,923 ----
  1628.       echo "do"
  1629.       echo "    cd ../\$dir"
  1630. !     echo "    make newsinstall BIN=$bin RBIN=$rbin || exit 1"
  1631.       echo "done"
  1632.       echo ": done"
  1633. ***************
  1634. *** 1113,1119 ****
  1635.       echo "umask $newsumask"
  1636.       echo 'set -x'
  1637. !     if test " $sete" != " y"
  1638. !     then
  1639. !         echo ": installing setnewsids"
  1640.           echo "cp setnewsids $newsctl"
  1641.           echo "$chown root $newsctl/setnewsids"
  1642. --- 963,968 ----
  1643.       echo "umask $newsumask"
  1644.       echo 'set -x'
  1645. !     case "$sete" in
  1646. !     no)    echo ": installing setnewsids"
  1647.           echo "cp setnewsids $newsctl"
  1648.           echo "$chown root $newsctl/setnewsids"
  1649. ***************
  1650. *** 1120,1133 ****
  1651.           echo "chmod u+s $newsctl/setnewsids"
  1652.           echo ": done"
  1653. !     fi
  1654.       echo ": setting uids for setuid programs..."
  1655.       them="$newsbin/input/newsspool $newsbin/relay/relaynews"
  1656. !     if test " $chboth" = " y"
  1657. !     then
  1658. !         echo "$chown $newsuid.$newsgid $them"
  1659. !     else
  1660. !         echo "$chown $newsuid $them"
  1661.           echo "$chgrp $newsgid $them"
  1662. !     fi
  1663.       echo "chmod u+s,g+s $them"
  1664.       echo ": done"
  1665. --- 969,982 ----
  1666.           echo "chmod u+s $newsctl/setnewsids"
  1667.           echo ": done"
  1668. !         ;;
  1669. !     esac
  1670.       echo ": setting uids for setuid programs..."
  1671.       them="$newsbin/input/newsspool $newsbin/relay/relaynews"
  1672. !     case "$chboth" in
  1673. !     yes)    echo "$chown $newsuid.$newsgid $them"    ;;
  1674. !     *)    echo "$chown $newsuid $them"
  1675.           echo "$chgrp $newsgid $them"
  1676. !         ;;
  1677. !     esac
  1678.       echo "chmod u+s,g+s $them"
  1679.       echo ": done"
  1680. ***************
  1681. *** 1136,1139 ****
  1682. --- 985,1008 ----
  1683.   
  1684.   echo
  1685. + echo 'saving defaults...'
  1686. + rm -f build.def
  1687. + >build.def
  1688. + warn='# These answers are interdependent; do not edit this file!'
  1689. + if test ! -w build.def
  1690. + then
  1691. +     echo 'It appears that I cannot save the defaults.'
  1692. + else
  1693. +     (
  1694. +         for v in $vars
  1695. +         do
  1696. +             echo "$warn"
  1697. +             eval "echo $v=\\\"\$$v\\\""
  1698. +         done
  1699. +     ) >>build.def
  1700. +     echo 'done'
  1701. + fi
  1702. + chmod -w build.def
  1703. + echo
  1704.   chmod +x doit.root doit.bin doit.news again.root
  1705.   echo "You should now run doit.root as root, doit.bin as $binuid, doit.news"
  1706. ***************
  1707. *** 1141,1145 ****
  1708.   echo "that the source directories are owned by $binuid.  If you need to do"
  1709.   echo "installation work by hand, run 'doit.bin -i' as the owner; this will"
  1710. ! echo "create the programs but won't install them.)  Finally, you will"
  1711.   echo "want to add the contents of 'cron', or something similar, to your"
  1712.   echo "cron's work-to-be-done file(s), and the contents of 'rc', or something"
  1713. --- 1010,1015 ----
  1714.   echo "that the source directories are owned by $binuid.  If you need to do"
  1715.   echo "installation work by hand, run 'doit.bin -i' as the owner; this will"
  1716. ! echo "create the programs but won't install them.)  (It is not necessary"
  1717. ! echo "to log in as these users; use of 'su' suffices.)  Finally, you will"
  1718.   echo "want to add the contents of 'cron', or something similar, to your"
  1719.   echo "cron's work-to-be-done file(s), and the contents of 'rc', or something"
  1720.  
  1721.  
  1722. end of patch 17-Jan-1990
  1723.  
  1724.  
  1725.