home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume24 / bsnews / patch01 next >
Text File  |  1991-10-26  |  8KB  |  305 lines

  1. Newsgroups: comp.sources.misc
  2. From: ron@mlfarm (Ronald Florence)
  3. Subject:  v24i020:  bsnews - Bootstrap News v2.1, Patch01
  4. Message-ID: <1991Oct26.214956.4752@sparky.imd.sterling.com>
  5. X-Md4-Signature: ce0f356784bb05d4722b596dbe575469
  6. Date: Sat, 26 Oct 1991 21:49:56 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: ron@mlfarm (Ronald Florence)
  10. Posting-number: Volume 24, Issue 20
  11. Archive-name: bsnews/patch01
  12. Environment: SunOS, Xenix, SYSV, MS-DOS, Amiga, Atari, Coherent
  13. Patch-To: bsnews: Volume 22, Issue 106
  14.  
  15. This patch fixes some minor problems with the configuration and
  16. compilation of bsnews on older systems, including pre-SCO Xenix, and a
  17. possible problem with rnews dumping cores or producing segmentation
  18. violations.  Do `| patch -d bsnews-source-directory' to install the
  19. patch from a newsreader.  To rebuild bsnews, do `make clean', then
  20. follow the directions in the Readme.
  21.  
  22.                 Ronald Florence
  23.                 ron@mlfarm.com
  24.  
  25. *** Makefile.old    Sun Sep 15 09:15:45 1991
  26. --- Makefile    Wed Oct  9 00:12:40 1991
  27. ***************
  28. *** 1,6 ****
  29.   # Makefile for bsnews
  30.   # copyright 1991 Ronald Florence  
  31. ! # @(#) version 2.1 (ron@mlfarm.com, 15 Sep 1991)
  32.   
  33.   # ----- For Unix systems, edit the following defines, as needed. -----
  34.   
  35. --- 1,6 ----
  36.   # Makefile for bsnews
  37.   # copyright 1991 Ronald Florence  
  38. ! # @(#) version 2.11 (ron@mlfarm.com, 4 Oct 1991)
  39.   
  40.   # ----- For Unix systems, edit the following defines, as needed. -----
  41.   
  42. ***************
  43. *** 61,67 ****
  44.       chmod 544 expire
  45.       chmod 555 readnews pn checknews
  46.       chmod 6555 rnews uurec
  47. !     cp config $(NEWSLIB)
  48.       mv $(PGMS) $(BINDIR)
  49.       mv bsnews.man $(MANDIR)/bsnews.$(MANEXT)
  50.       [ -x $(BINDIR)/uudecode ] || mv uudecode $(BINDIR)
  51. --- 61,67 ----
  52.       chmod 544 expire
  53.       chmod 555 readnews pn checknews
  54.       chmod 6555 rnews uurec
  55. !     cp config $(NEWSLIB)/config
  56.       mv $(PGMS) $(BINDIR)
  57.       mv bsnews.man $(MANDIR)/bsnews.$(MANEXT)
  58.       [ -x $(BINDIR)/uudecode ] || mv uudecode $(BINDIR)
  59. ***************
  60. *** 89,94 ****
  61. --- 89,95 ----
  62.   
  63.   checkname: myname.c Makefile bsnews.h
  64.       $(CC) -DCHECKNAME myname.c -o checkname
  65. +     @rm -f myname.o
  66.       @./checkname
  67.   
  68.   checknews: checknews.o init.o 
  69. ***************
  70. *** 98,104 ****
  71.       $(CC) $(CFLAGS) rnews.o myname.o init.o -o rnews
  72.   
  73.   pn:    Makefile pn.S
  74. !     if echo "zip\c" | fgrep -s "c" ; \
  75.             then sed -e "s/^n=.*/n=-n/" \
  76.                      -e "s/BigNode/$(FEED)/" pn.S > pn ; \
  77.             else sed -e "s/BigNode/$(FEED)/" pn.S > pn ; \
  78. --- 99,105 ----
  79.       $(CC) $(CFLAGS) rnews.o myname.o init.o -o rnews
  80.   
  81.   pn:    Makefile pn.S
  82. !     if echo "zip\c" | fgrep "c" > /dev/null; \
  83.             then sed -e "s/^n=.*/n=-n/" \
  84.                      -e "s/BigNode/$(FEED)/" pn.S > pn ; \
  85.             else sed -e "s/BigNode/$(FEED)/" pn.S > pn ; \
  86. *** expire.S.old    Sun Sep 15 09:23:13 1991
  87. --- expire.S    Fri Oct  4 12:56:54 1991
  88. ***************
  89. *** 2,8 ****
  90.   #! /bin/sh
  91.   # expire - expires bsnews spool
  92.   # copyright 1991 Ronald Florence 
  93. ! # @(#) version 2.1 (ron@mlfarm.com, 15 Sep 1991)
  94.   #
  95.   # A version for gawk or nawk would be cleaner; this is portable.
  96.   
  97. --- 2,8 ----
  98.   #! /bin/sh
  99.   # expire - expires bsnews spool
  100.   # copyright 1991 Ronald Florence 
  101. ! # @(#) version 2.11 (ron@mlfarm.com, 4 Oct 1991)
  102.   #
  103.   # A version for gawk or nawk would be cleaner; this is portable.
  104.   
  105. ***************
  106. *** 14,20 ****
  107.   
  108.   Touch=touch
  109.   [ -x /usr/5bin/touch ] && Touch=/usr/5bin/touch
  110. ! if $Touch 2>&1 | fgrep -s '[-amc]'; then
  111.     :
  112.   else 
  113.     Touch=true
  114. --- 14,20 ----
  115.   
  116.   Touch=touch
  117.   [ -x /usr/5bin/touch ] && Touch=/usr/5bin/touch
  118. ! if $Touch 2>&1 | fgrep '[-amc]' > /dev/null; then
  119.     :
  120.   else 
  121.     Touch=true
  122. *** makefile.pc.old    Wed Sep 11 11:00:27 1991
  123. --- makefile.pc    Fri Oct  4 12:57:31 1991
  124. ***************
  125. *** 1,7 ****
  126.   # makefile.pc
  127.   # Auxiliary makefile for non-Unix systems.
  128.   # Copyright 1991 Ronald Florence
  129. ! # @(#) version 2.1 (ron@mlfarm.com, 6 Sep 1991)
  130.   
  131.   # Your C compiler.
  132.   CC = cc
  133. --- 1,7 ----
  134.   # makefile.pc
  135.   # Auxiliary makefile for non-Unix systems.
  136.   # Copyright 1991 Ronald Florence
  137. ! # @(#) version 2.11 (ron@mlfarm.com, 4 Oct 1991)
  138.   
  139.   # Your C compiler.
  140.   CC = cc
  141. ***************
  142. *** 16,22 ****
  143.       $(CC) -DMSDOS $(CFLAGS) $(SRCS)
  144.       $(CC) -DMSDOS $(CFLAGS) uudecode.c
  145.   
  146. ! amiga:    $(SRCS) bsnews.h uudecode
  147.       $(CC) $(CFLAGS) $(SRCS)
  148.       $(CC) $(CFLAGS) uudecode.c
  149.   
  150. --- 16,22 ----
  151.       $(CC) -DMSDOS $(CFLAGS) $(SRCS)
  152.       $(CC) -DMSDOS $(CFLAGS) uudecode.c
  153.   
  154. ! amiga:    $(SRCS) bsnews.h 
  155.       $(CC) $(CFLAGS) $(SRCS)
  156.       $(CC) $(CFLAGS) uudecode.c
  157.   
  158. *** rnews.c.old    Fri Sep  6 21:11:48 1991
  159. --- rnews.c    Wed Oct  9 00:12:18 1991
  160. ***************
  161. *** 1,7 ****
  162.   /*
  163.    * rnews.c 
  164.    * copyright 1991 Ronald Florence
  165. !  * @(#) version 2.1 (ron@mlfarm.com, 6 Sep 1991)
  166.    */
  167.   
  168.   #include <time.h>
  169. --- 1,7 ----
  170.   /*
  171.    * rnews.c 
  172.    * copyright 1991 Ronald Florence
  173. !  * @(#) version 2.11 (ron@mlfarm.com, 4 Oct 1991)
  174.    */
  175.   
  176.   #include <time.h>
  177. ***************
  178. *** 209,215 ****
  179.             if (!strncmp(hold[i], "Path: ", 6))
  180.           fprintf(nf, "Path: %s!%s", iam, &hold[i][6]);
  181.             else
  182. !         fprintf(nf, hold[i]);
  183.             free(hold[i]);
  184.           }
  185.         h = -1;
  186. --- 209,215 ----
  187.             if (!strncmp(hold[i], "Path: ", 6))
  188.           fprintf(nf, "Path: %s!%s", iam, &hold[i][6]);
  189.             else
  190. !         fputs(hold[i], nf);
  191.             free(hold[i]);
  192.           }
  193.         h = -1;
  194. ***************
  195. *** 220,226 ****
  196.       {
  197.         if (!strncmp(buf, "From ", 5))
  198.       putc('>', nf);
  199. !       fprintf(nf, buf);
  200.       }
  201.   }
  202.   
  203. --- 220,226 ----
  204.       {
  205.         if (!strncmp(buf, "From ", 5))
  206.       putc('>', nf);
  207. !       fputs(buf, nf);
  208.       }
  209.   }
  210.   
  211. *** whatami.sh.old    Sat Sep 14 22:29:52 1991
  212. --- whatami.sh    Mon Oct  7 10:09:29 1991
  213. ***************
  214. *** 2,8 ****
  215.   #! /bin/sh
  216.   # whatami.sh
  217.   # copyright 1991 Ronald Florence
  218. ! # @(#) version 2.1 (ron@mlfarm.com, 30 Aug 1991)
  219.   
  220.   sys="looks unusual."
  221.   eflag=
  222. --- 2,8 ----
  223.   #! /bin/sh
  224.   # whatami.sh
  225.   # copyright 1991 Ronald Florence
  226. ! # @(#) version 2.11 (ron@mlfarm.com, 4 Oct 1991)
  227.   
  228.   sys="looks unusual."
  229.   eflag=
  230. ***************
  231. *** 16,22 ****
  232.   echo ""
  233.   echo "This may take a minute..."
  234.   
  235. ! for i in /lib /usr/lib
  236.   do
  237.     [ -f $i/$lib ] && { libdir=$i; break; }
  238.   done
  239. --- 16,22 ----
  240.   echo ""
  241.   echo "This may take a minute..."
  242.   
  243. ! for i in /usr/lib/386 /lib/386 /usr/lib /lib /usr/local/lib
  244.   do
  245.     [ -f $i/$lib ] && { libdir=$i; break; }
  246.   done
  247. ***************
  248. *** 52,58 ****
  249.     site=`uname -n`
  250.     eflag="-DUNAME"
  251.   elif [ "$libdir" != "bogus" ]; then
  252. !   nm $libdir/$lib | fgrep -s gethostname && {
  253.       sys="has gethostname()."
  254.       site=`hostname`
  255.       eflag=-DGETHOSTNAME
  256. --- 52,58 ----
  257.     site=`uname -n`
  258.     eflag="-DUNAME"
  259.   elif [ "$libdir" != "bogus" ]; then
  260. !   nm $libdir/$lib | fgrep gethostname > /dev/null && {
  261.       sys="has gethostname()."
  262.       site=`hostname`
  263.       eflag=-DGETHOSTNAME
  264. ***************
  265. *** 62,68 ****
  266.     [ -z "$site" ] || sys="has a working uuname."
  267.   fi
  268.   
  269. ! [ $libdir != "bogus" ] && nm $libdir/$lib | fgrep -s strchr ||
  270.       eflag="$eflag -DBSD"
  271.   
  272.   echo ""
  273. --- 62,68 ----
  274.     [ -z "$site" ] || sys="has a working uuname."
  275.   fi
  276.   
  277. ! [ $libdir != "bogus" ] && nm $libdir/$lib | fgrep strchr > /dev/null ||
  278.       eflag="$eflag -DBSD"
  279.   
  280.   echo ""
  281. ***************
  282. *** 72,78 ****
  283.   [ "$mandir" = "?" ] && 
  284.     echo "Not sure where to install the man page on your system."
  285.   [ -x /usr/5bin/touch ] && Touch=/usr/5bin/touch
  286. ! if $Touch 2>&1 | fgrep -s '[-amc]'; then
  287.     :
  288.   else
  289.     echo "The $Touch command on your system cannot set an arbitrary time; the"
  290. --- 72,78 ----
  291.   [ "$mandir" = "?" ] && 
  292.     echo "Not sure where to install the man page on your system."
  293.   [ -x /usr/5bin/touch ] && Touch=/usr/5bin/touch
  294. ! if $Touch 2>&1 | fgrep '[-amc]' > /dev/null; then
  295.     :
  296.   else
  297.     echo "The $Touch command on your system cannot set an arbitrary time; the"
  298.  
  299. exit 0 # Just in case...
  300. -- 
  301. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  302. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  303. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  304. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  305.