home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume1 / rn / patch30 < prev    next >
Text File  |  1986-11-30  |  14KB  |  560 lines

  1. /* Written  6:57 pm  Sep  5, 1986 by lwall@sdcrdcf.UUCP in mirror:net.sources.bu */
  2. /* ---------- "rn 4.3 patch #30" ---------- */
  3. System: rn version 4.3
  4. Patch #: 30
  5. Priority: HIGH
  6. Subject: changes for compatibility with newsgroup renaming
  7. From: rick@seismo.CSS.GOV (Rick Adams) and others
  8.  
  9. Description:
  10.     rn checks for the presence of the directory for net.announce.
  11.     It will not run otherwise. net.announce is no longer a valid
  12.     group, so if you removed net.announce, rn stopped working.
  13.  
  14.     Pnews has various dependencies on net.*.  So does newsetup.
  15.  
  16. Fix:    Remove the test for net.announce from rn.  Handle the new top-level
  17.     newsgroups (comp.*, news.*, sci.*, rec.*, misc.*, soc.* and talk.*)
  18.     like net.* and mod.*.
  19.  
  20.     From rn, say "| patch -d DIR", where DIR is your rn source directory.
  21.     Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
  22.     the patch program, apply the following by hand, or get patch.
  23.  
  24.     If patch indicates that patchlevel is the wrong version, you may need
  25.     to apply one or more previous patches, or the patch may already
  26.     have been applied.  See the patchlevel file to find out what has or
  27.     has not been applied.  In any event, don't continue with the patch.
  28.  
  29.     After applying the patches, do a make and a make install.
  30.  
  31. Index: patchlevel
  32. Prereq: 29
  33. 1c1
  34. < Patch #: 29
  35. ---
  36. > Patch #: 30
  37.  
  38. Index: Pnews.SH
  39. Prereq: 4.3.1.3
  40. *** Pnews.SH.old    Fri Sep  5 15:41:50 1986
  41. --- Pnews.SH    Fri Sep  5 15:41:55 1986
  42. ***************
  43. *** 4,10
  44.   echo "Extracting Pnews (with variable substitutions)"
  45.   $spitshell >Pnews <<!GROK!THIS!
  46.   $startsh
  47. ! # $Header: Pnews.SH,v 4.3.1.3 85/08/01 14:24:06 lwall Exp $
  48.   #
  49.   # $Log:    Pnews.SH,v $
  50.   # Revision 4.3.1.3  85/08/01  14:24:06  lwall
  51.  
  52. --- 4,10 -----
  53.   echo "Extracting Pnews (with variable substitutions)"
  54.   $spitshell >Pnews <<!GROK!THIS!
  55.   $startsh
  56. ! # $Header: Pnews.SH,v 4.3.1.4 86/09/05 15:21:10 lwall Exp $
  57.   #
  58.   # $Log:    Pnews.SH,v $
  59.   # Revision 4.3.1.4  86/09/05  15:21:10  lwall
  60. ***************
  61. *** 7,12
  62.   # $Header: Pnews.SH,v 4.3.1.3 85/08/01 14:24:06 lwall Exp $
  63.   #
  64.   # $Log:    Pnews.SH,v $
  65.   # Revision 4.3.1.3  85/08/01  14:24:06  lwall
  66.   # Added AUTHORCOPY.  Temp file is no longer in /tmp.  'e editor' added.
  67.   # 
  68.  
  69. --- 7,15 -----
  70.   # $Header: Pnews.SH,v 4.3.1.4 86/09/05 15:21:10 lwall Exp $
  71.   #
  72.   # $Log:    Pnews.SH,v $
  73. + # Revision 4.3.1.4  86/09/05  15:21:10  lwall
  74. + # Changes for new top-level newsgroup names.
  75. + # 
  76.   # Revision 4.3.1.3  85/08/01  14:24:06  lwall
  77.   # Added AUTHORCOPY.  Temp file is no longer in /tmp.  'e editor' added.
  78.   # 
  79. ***************
  80. *** 99,105
  81.   help.
  82.   
  83.   If you've never posted an article to the net before, it is HIGHLY recommended
  84. ! that you read the netiquette document found in net.announce.newusers so
  85.   that you'll know to avoid the commonest blunders.  To do that, interrupt
  86.   Pnews, and get to the top-level prompt of rn.  Say "g net.announce.newusers"
  87.   and you are on your way.
  88.  
  89. --- 102,108 -----
  90.   help.
  91.   
  92.   If you've never posted an article to the net before, it is HIGHLY recommended
  93. ! that you read the netiquette document found in mod.announce.newusers so
  94.   that you'll know to avoid the commonest blunders.  To do that, interrupt
  95.   Pnews, and get to the top-level prompt of rn.  Say "g mod.announce.newusers"
  96.   and you are on your way.
  97. ***************
  98. *** 101,107
  99.   If you've never posted an article to the net before, it is HIGHLY recommended
  100.   that you read the netiquette document found in net.announce.newusers so
  101.   that you'll know to avoid the commonest blunders.  To do that, interrupt
  102. ! Pnews, and get to the top-level prompt of rn.  Say "g net.announce.newusers"
  103.   and you are on your way.
  104.   
  105.   EOM
  106.  
  107. --- 104,110 -----
  108.   If you've never posted an article to the net before, it is HIGHLY recommended
  109.   that you read the netiquette document found in mod.announce.newusers so
  110.   that you'll know to avoid the commonest blunders.  To do that, interrupt
  111. ! Pnews, and get to the top-level prompt of rn.  Say "g mod.announce.newusers"
  112.   and you are on your way.
  113.   
  114.   EOM
  115. ***************
  116. *** 156,162
  117.       shift
  118.       case $# in
  119.       0|1)
  120. !     set "x net.whatever"
  121.       ;;
  122.       esac
  123.       ;;
  124.  
  125. --- 159,165 -----
  126.       shift
  127.       case $# in
  128.       0|1)
  129. !     set "x misc.whatever"
  130.       ;;
  131.       esac
  132.       ;;
  133. ***************
  134. *** 182,189
  135.   
  136.   # tell them what we think they are doing... !DIST!
  137.   case $1 in
  138. ! net.*)
  139. !     $echo 'This program posts news to many hundreds of machines throughout the world.'
  140.       ;;
  141.   $cont.*)
  142.       $echo 'This program posts news to many machines throughout the continent.'
  143.  
  144. --- 185,197 -----
  145.   
  146.   # tell them what we think they are doing... !DIST!
  147.   case $1 in
  148. ! net.*|world.*|comp.*|news.*|sci.*|rec.*|misc.*|soc.*|talk.*|mod.*)
  149. !     $cat <<'EOM'
  150. ! This program posts news to thousands of machines throughout the entire
  151. ! civilized world.  You message will cost the net hundreds if not thousands of
  152. ! dollars to send everywhere.  Please be sure you know what you are doing.
  153. ! EOM
  154.       ;;
  155.   $cont.*)
  156.       $echo 'This program posts news to many machines throughout the continent.'
  157. ***************
  158. *** 434,440
  159.       case "${AUTHORCOPY-none}" in
  160.       none)
  161.           ;;
  162. !     *)  if $cat $tmpart >> $AUTHORCOPY; then
  163.           $echo "Article appended to $AUTHORCOPY"
  164.           $echo "" >> $AUTHORCOPY
  165.           $echo "" >> $AUTHORCOPY
  166.  
  167. --- 442,449 -----
  168.       case "${AUTHORCOPY-none}" in
  169.       none)
  170.           ;;
  171. !     *)  if $echo From $USER `date` >> $AUTHORCOPY; then
  172. !         $cat $tmpart >> $AUTHORCOPY
  173.           $echo "Article appended to $AUTHORCOPY"
  174.           $echo "" >> $AUTHORCOPY
  175.           $echo "" >> $AUTHORCOPY
  176. ***************
  177. *** 484,491
  178.       ;;
  179.   esac
  180.   case $ng in
  181. ! net.*|fa.*|mod.*)
  182. !     defdist=net
  183.       dist=h
  184.       ;;
  185.   *.*)
  186.  
  187. --- 493,500 -----
  188.       ;;
  189.   esac
  190.   case $ng in
  191. ! net.*|mod.*|comp.*|news.*|sci.*|rec.*|misc.*|soc.*|talk.*)
  192. !     defdist=world
  193.       dist=h
  194.       ;;
  195.   *.*)
  196. ***************
  197. *** 503,508
  198.       $echo " "
  199.       $echo "Your local distribution prefixes are:"
  200.       $cat $lib/distributions
  201.       else
  202.       $egrep -v '[     ]none$' <<EOM
  203.   
  204.  
  205. --- 512,518 -----
  206.       $echo " "
  207.       $echo "Your local distribution prefixes are:"
  208.       $cat $lib/distributions
  209. +     $echo " "
  210.       else
  211.       $egrep -v '[     ]none$' <<EOM
  212.   
  213. ***************
  214. *** 513,519
  215.       $stpr:          $state
  216.       Country:        $cntry
  217.       Continent:        $cont
  218. !     Everywhere:        net,mod,fa
  219.   
  220.   EOM
  221.       fi
  222.  
  223. --- 523,529 -----
  224.       $stpr:          $state
  225.       Country:        $cntry
  226.       Continent:        $cont
  227. !     Everywhere:        world
  228.   
  229.   EOM
  230.       fi
  231. ***************
  232. *** 528,534
  233.   
  234.   The Distribution line may be used to limit the distribution of an article
  235.   to some subset of the systems that would receive the article based only on
  236. ! the Newsgroups line.  For example, if you want to sell your car in net.auto,
  237.   and you live in New Jersey, you might want to put "nj" on the Distribution
  238.   line to avoid advertising in California, which has enough problems of its own.
  239.   The actual area designators to use depend on where you are, of course.
  240.  
  241. --- 538,544 -----
  242.   
  243.   The Distribution line may be used to limit the distribution of an article
  244.   to some subset of the systems that would receive the article based only on
  245. ! the Newsgroups line.  For example, if you want to sell your car in talk.auto,
  246.   and you live in New Jersey, you might want to put "nj" on the Distribution
  247.   line to avoid advertising in California, which has enough problems of its own.
  248.   The actual area designators to use depend on where you are, of course.
  249. ***************
  250. *** 534,540
  251.   The actual area designators to use depend on where you are, of course.
  252.   EOH
  253.       ;;
  254. !     ''|$loc*|$org*|$city*|$state*|$cntry*|$cont*|fa*|mod*)
  255.       ;;
  256.       net*|world*)
  257.       dist=''
  258.  
  259. --- 544,550 -----
  260.   The actual area designators to use depend on where you are, of course.
  261.   EOH
  262.       ;;
  263. !     ''|$loc*|$org*|$city*|$state*|$cntry*|$cont*|$defdist)
  264.       ;;
  265.       net*|world*|comp*|news*|sci*|rec*|misc*|soc*|talk*)
  266.       dist=''
  267. ***************
  268. *** 536,542
  269.       ;;
  270.       ''|$loc*|$org*|$city*|$state*|$cntry*|$cont*|fa*|mod*)
  271.       ;;
  272. !     net*|world*)
  273.       dist=''
  274.       ;;
  275.       *)  
  276.  
  277. --- 546,552 -----
  278.       ;;
  279.       ''|$loc*|$org*|$city*|$state*|$cntry*|$cont*|$defdist)
  280.       ;;
  281. !     net*|world*|comp*|news*|sci*|rec*|misc*|soc*|talk*)
  282.       dist=''
  283.       ;;
  284.       *)  
  285. ***************
  286. *** 545,551
  287.         $test -s $tmpart; then
  288.           : null
  289.       else
  290. !         $echo "Unrecognized distribution prefix--type h for help."
  291.           dist=h
  292.       fi
  293.       ;;
  294.  
  295. --- 555,562 -----
  296.         $test -s $tmpart; then
  297.           : null
  298.       else
  299. !         $echo "Unrecognized distribution prefix--type h for help, CR to use anyway."
  300. !         defdist=$dist
  301.           dist=h
  302.       fi
  303.       ;;
  304.  
  305. Index: init.c
  306. Prereq: 4.3.1.3
  307. *** init.c.old    Fri Sep  5 14:25:01 1986
  308. --- init.c    Fri Sep  5 14:25:07 1986
  309. ***************
  310. *** 1,4
  311. ! /* $Header: init.c,v 4.3.1.3 85/07/23 18:08:36 lwall Exp $
  312.    *
  313.    * $Log:    init.c,v $
  314.    * Revision 4.3.1.3  85/07/23  18:08:36  lwall
  315.  
  316. --- 1,4 -----
  317. ! /* $Header: init.c,v 4.3.1.4 86/09/05 14:24:02 lwall Exp $
  318.    *
  319.    * $Log:    init.c,v $
  320.    * Revision 4.3.1.4  86/09/05  14:24:02  lwall
  321. ***************
  322. *** 1,6
  323.   /* $Header: init.c,v 4.3.1.3 85/07/23 18:08:36 lwall Exp $
  324.    *
  325.    * $Log:    init.c,v $
  326.    * Revision 4.3.1.3  85/07/23  18:08:36  lwall
  327.    * Fixed up NOLINEBUF option to work.
  328.    * 
  329.  
  330. --- 1,9 -----
  331.   /* $Header: init.c,v 4.3.1.4 86/09/05 14:24:02 lwall Exp $
  332.    *
  333.    * $Log:    init.c,v $
  334. +  * Revision 4.3.1.4  86/09/05  14:24:02  lwall
  335. +  * Removed net.announce dependency.
  336. +  * 
  337.    * Revision 4.3.1.3  85/07/23  18:08:36  lwall
  338.    * Fixed up NOLINEBUF option to work.
  339.    * 
  340. ***************
  341. *** 111,121
  342.   
  343.       free(tcbuf);            /* recover 1024 bytes */
  344.   
  345. -     /* make sure we are the right version */
  346. -     if (!checkflag)
  347. -     version_check();
  348.       /* make sure we are the sole possessors of .newsrc */
  349.   
  350.       if (!checkflag)
  351.  
  352. --- 114,119 -----
  353.   
  354.       free(tcbuf);            /* recover 1024 bytes */
  355.   
  356.       /* make sure we are the sole possessors of .newsrc */
  357.   
  358.       if (!checkflag)
  359. ***************
  360. *** 308,330
  361.           putchar('\n') FLUSH;
  362.       }
  363.       fclose(tmpfp);
  364. -     }
  365. - }
  366. - void
  367. - version_check()
  368. - {
  369. -     set_ngname("net.announce");
  370. -     if (access(ngdir,0)) {
  371. - #ifdef VERBOSE
  372. -     IF(verbose)
  373. -         fputs("Can't find net.announce.  Wrong news version?\n",stdout)
  374. -           FLUSH;
  375. -     ELSE
  376. - #endif
  377. - #ifdef TERSE
  378. -         fputs("Wrong version?\n",stdout) FLUSH;
  379. - #endif
  380. -     finalize(1);
  381.       }
  382.   }
  383.  
  384. --- 306,310 -----
  385.           putchar('\n') FLUSH;
  386.       }
  387.       fclose(tmpfp);
  388.       }
  389.   }
  390.  
  391. Index: newsetup.SH
  392. Prereq: 4.3
  393. *** newsetup.SH.old    Fri Sep  5 15:41:33 1986
  394. --- newsetup.SH    Fri Sep  5 15:41:35 1986
  395. ***************
  396. *** 4,10
  397.   echo "Extracting newsetup (with variable substitutions)"
  398.   $spitshell >newsetup <<!GROK!THIS!
  399.   $startsh
  400. ! # $Header: newsetup.SH,v 4.3 85/05/01 11:43:05 lwall Exp $
  401.   # 
  402.   # $Log:    newsetup.SH,v $
  403.   # Revision 4.3  85/05/01  11:43:05  lwall
  404.  
  405. --- 4,10 -----
  406.   echo "Extracting newsetup (with variable substitutions)"
  407.   $spitshell >newsetup <<!GROK!THIS!
  408.   $startsh
  409. ! # $Header: newsetup.SH,v 4.3.1.2 86/09/05 15:41:04 lwall Exp $
  410.   # 
  411.   # $Log:    newsetup.SH,v $
  412.   # Revision 4.3.1.2  86/09/05  15:41:04  lwall
  413. ***************
  414. *** 7,12
  415.   # $Header: newsetup.SH,v 4.3 85/05/01 11:43:05 lwall Exp $
  416.   # 
  417.   # $Log:    newsetup.SH,v $
  418.   # Revision 4.3  85/05/01  11:43:05  lwall
  419.   # Baseline for release with 4.3bsd.
  420.   # 
  421.  
  422. --- 7,18 -----
  423.   # $Header: newsetup.SH,v 4.3.1.2 86/09/05 15:41:04 lwall Exp $
  424.   # 
  425.   # $Log:    newsetup.SH,v $
  426. + # Revision 4.3.1.2  86/09/05  15:41:04  lwall
  427. + # Changes for newsgroup renaming.
  428. + # 
  429. + # Revision 4.3.1.1  85/05/10  11:35:43  lwall
  430. + # Branch for patches.
  431. + # 
  432.   # Revision 4.3  85/05/01  11:43:05  lwall
  433.   # Baseline for release with 4.3bsd.
  434.   # 
  435. ***************
  436. *** 94,99
  437.       -e "  w /tmp/n.to\$\$"        \\
  438.       -e '  d'            \\
  439.       -e '}'                \\
  440.       -e "/\./{"            \\
  441.       -e "  w /tmp/n.misc\$\$"    \\
  442.       -e '  d'            \\
  443.  
  444. --- 100,129 -----
  445.       -e "  w /tmp/n.to\$\$"        \\
  446.       -e '  d'            \\
  447.       -e '}'                \\
  448. +     -e "/^comp\./{"            \\
  449. +     -e "  w /tmp/n.comp\$\$"    \\
  450. +     -e '  d'            \\
  451. +     -e '}'                \\
  452. +     -e "/^news\./{"            \\
  453. +     -e "  w /tmp/n.news\$\$"    \\
  454. +     -e '  d'            \\
  455. +     -e '}'                \\
  456. +     -e "/^rec\./{"            \\
  457. +     -e "  w /tmp/n.rec\$\$"        \\
  458. +     -e '  d'            \\
  459. +     -e '}'                \\
  460. +     -e "/^sci\./{"            \\
  461. +     -e "  w /tmp/n.sci\$\$"        \\
  462. +     -e '  d'            \\
  463. +     -e '}'                \\
  464. +     -e "/^soc\./{"            \\
  465. +     -e "  w /tmp/n.soc\$\$"        \\
  466. +     -e '  d'            \\
  467. +     -e '}'                \\
  468. +     -e "/^talk\./{"            \\
  469. +     -e "  w /tmp/n.talk\$\$"    \\
  470. +     -e '  d'            \\
  471. +     -e '}'                \\
  472.       -e "/\./{"            \\
  473.       -e "  w /tmp/n.misc\$\$"    \\
  474.       -e '  d'            \\
  475. ***************
  476. *** 115,120
  477.       /tmp/n.\$cntry\$\$ \\
  478.       /tmp/n.\$cont\$\$ \\
  479.       /tmp/n.mod\$\$ \\
  480.       /tmp/n.net\$\$ \\
  481.       /tmp/n.fa\$\$ \\
  482.       /tmp/n.misc\$\$ \\
  483.  
  484. --- 145,157 -----
  485.       /tmp/n.\$cntry\$\$ \\
  486.       /tmp/n.\$cont\$\$ \\
  487.       /tmp/n.mod\$\$ \\
  488. +     /tmp/n.news\$\$ \\
  489. +     /tmp/n.comp\$\$ \\
  490. +     /tmp/n.sci\$\$ \\
  491. +     /tmp/n.rec\$\$ \\
  492. +     /tmp/n.soc\$\$ \\
  493. +     /tmp/n.misc\$\$ \\
  494. +     /tmp/n.talk\$\$ \\
  495.       /tmp/n.net\$\$ \\
  496.       /tmp/n.fa\$\$ \\
  497.       /tmp/n.test\$\$ \\
  498. ***************
  499. *** 117,123
  500.       /tmp/n.mod\$\$ \\
  501.       /tmp/n.net\$\$ \\
  502.       /tmp/n.fa\$\$ \\
  503. -     /tmp/n.misc\$\$ \\
  504.       /tmp/n.test\$\$ \\
  505.   | $uniq >\$dotdir/.newsrc
  506.   
  507.  
  508. --- 154,159 -----
  509.       /tmp/n.talk\$\$ \\
  510.       /tmp/n.net\$\$ \\
  511.       /tmp/n.fa\$\$ \\
  512.       /tmp/n.test\$\$ \\
  513.   | $uniq >\$dotdir/.newsrc
  514.   
  515. ***************
  516. *** 131,136
  517.       /tmp/n.\$cntry\$\$ \\
  518.       /tmp/n.\$cont\$\$ \\
  519.       /tmp/n.mod\$\$ \\
  520.       /tmp/n.net\$\$ \\
  521.       /tmp/n.fa\$\$ \\
  522.       /tmp/n.misc\$\$ \\
  523.  
  524. --- 167,178 -----
  525.       /tmp/n.\$cntry\$\$ \\
  526.       /tmp/n.\$cont\$\$ \\
  527.       /tmp/n.mod\$\$ \\
  528. +     /tmp/n.news\$\$ \\
  529. +     /tmp/n.comp\$\$ \\
  530. +     /tmp/n.sci\$\$ \\
  531. +     /tmp/n.soc\$\$ \\
  532. +     /tmp/n.rec\$\$ \\
  533. +     /tmp/n.talk\$\$ \\
  534.       /tmp/n.net\$\$ \\
  535.       /tmp/n.fa\$\$ \\
  536.       /tmp/n.misc\$\$ \\
  537. ***************
  538. *** 140,146
  539.   Done.
  540.   
  541.   If you have never used the news system before, you may find the articles
  542. ! in net.announce.newuser to be helpful.  There is also a manual entry for rn.
  543.   
  544.   To get rid of newsgroups you aren't interested in, use the 'u' command.
  545.   Type h for help at any time while running rn.
  546.  
  547. --- 182,188 -----
  548.   Done.
  549.   
  550.   If you have never used the news system before, you may find the articles
  551. ! in mod.announce.newuser to be helpful.  There is also a manual entry for rn.
  552.   
  553.   To get rid of newsgroups you aren't interested in, use the 'u' command.
  554.   Type h for help at any time while running rn.
  555. /* End of text from mirror:net.sources.bu */
  556.