home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume21 / xarchie / patch03 < prev    next >
Encoding:
Text File  |  1993-10-07  |  10.3 KB  |  324 lines

  1. Newsgroups: comp.sources.x
  2. From: ferguson@cs.rochester.edu (George Ferguson)
  3. Subject: v21i007:  xarchie - An X browser interface to Archie, Patch03
  4. Message-ID: <1993Oct7.221552.29190@sparky.sterling.com>
  5. X-Md4-Signature: e9fa80a8b4a35ddebd867fb883b8816f
  6. Sender: chris@sparky.sterling.com (Chris Olson)
  7. Organization: Sterling Software
  8. Date: Thu, 7 Oct 1993 22:15:52 GMT
  9. Approved: chris@sterling.com
  10.  
  11. Submitted-by: ferguson@cs.rochester.edu (George Ferguson)
  12. Posting-number: Volume 21, Issue 7
  13. Archive-name: xarchie/patch03
  14. Environment: X11
  15. Patch-To: xarchie: Volume 20, Issue 29-52
  16.  
  17. This patch brings xarchie to version 2.0.9. It and all previous
  18. patches and the complete xarchie-2.0.9 distribution are available from
  19. export.lcs.mit.edu in /contrib.
  20.  
  21. This patch adds some server info, corrects an error I made
  22. interpreting RFC959 for ftp CWD commands, and adds some configuration
  23. stuff.
  24.  
  25. Extract this archive to create xarchie.p3, then apply it by doing
  26.     patch -p <xarchie.p3
  27. in the xarchie source directory.  Don't forget the "-p" flag or the
  28. subdirectories will not get properly patched.
  29.  
  30. #!/bin/sh
  31. # This is a shell archive (produced by shar 3.49)
  32. # To extract the files from this archive, save it to a file, remove
  33. # everything above the "!/bin/sh" line above, and type "sh file_name".
  34. #
  35. # made 08/24/1993 17:03 UTC by ferguson@larynx.cs.rochester.edu
  36. # Source directory /home/diamond/u11/ferguson/src/x/xarchie/Patches
  37. #
  38. # existing files will NOT be overwritten unless -c is specified
  39. #
  40. # This shar contains:
  41. # length  mode       name
  42. # ------ ---------- ------------------------------------------
  43. #   8039 -rw-r--r-- xarchie.p3
  44. #
  45. # ============= xarchie.p3 ==============
  46. if test -f 'xarchie.p3' -a X"$1" != X"-c"; then
  47.     echo 'x - skipping xarchie.p3 (File already exists)'
  48. else
  49. echo 'x - extracting xarchie.p3 (Text)'
  50. sed 's/^X//' << 'SHAR_EOF' > 'xarchie.p3' &&
  51. *** ../xarchie-2.0.8/README    Tue Jul 27 10:17:46 1993
  52. --- README    Tue Aug 24 11:49:51 1993
  53. ***************
  54. *** 2,8 ****
  55. X  
  56. X          George Ferguson, ferguson@cs.rochester.edu
  57. X  
  58. !              Last Change: 27 Jul 1993
  59. X  
  60. X  DISCLAIMER:
  61. X  
  62. --- 2,8 ----
  63. X  
  64. X          George Ferguson, ferguson@cs.rochester.edu
  65. X  
  66. !              Last Change: 24 Aug 1993
  67. X  
  68. X  DISCLAIMER:
  69. X  
  70. ***************
  71. *** 72,77 ****
  72. --- 72,90 ----
  73. X       in the manpage.
  74. X  
  75. X  HISTORY:
  76. + Version 2.0.9 - 24 Aug 1993
  77. + - Allow 200 reply for ftp CWD as well as 250 (ftp.c).
  78. +   <amoss@cs.huji.ac.il>
  79. + - New servers for Korea and Sweden (Xarchie.ad).
  80. +   <mark@rfisk.is>
  81. + - Use perror() rather than herror() in resolv.c. Hopefully this will
  82. +   allow resolv.c to compile, so then the configure test will be based
  83. +   on whether it worked or not, rather than deciding on -lresolv
  84. +   because the compile failed.
  85. +   <chris@wg.estec.esa.nl>
  86. + - NeXT uses BSD-style fcntl (ftp.c).
  87. +   <jk@zarniwoop.pc-labor.uni-bremen.de>
  88. X  
  89. X  Version 2.0.8 - 27 Jul 1993
  90. X  - Only call XtRemoveTimeOut() if HAVE_RANDOM or HAVE_RAND (about.c).
  91. *** ../xarchie-2.0.8/Xarchie.ad    Tue Jul 27 10:12:07 1993
  92. --- Xarchie.ad    Tue Aug 24 11:43:57 1993
  93. ***************
  94. *** 16,21 ****
  95. --- 16,22 ----
  96. X  !              Added line to About panel referring to archie-admin address.
  97. X  ! 27 Jul 1993: Added archie.unipi.it to hostMenu.
  98. X  !              Added archie.ac.il to hostMenu.
  99. + ! 24 Aug 1993: Added archie.kr and archie.luth.se to hostMenu.
  100. X  !
  101. X  
  102. X  !    -    -    -    -    -    -    -    -    -
  103. ***************
  104. *** 826,832 ****
  105. X  Xarchie*hostMenuItem12.label:    archie.switch.ch       (Switzerland)
  106. X  Xarchie*hostMenuItem13.label:    archie.unipi.it        (Italy)
  107. X  Xarchie*hostMenuItem14.label:    archie.ac.el           (Israel)
  108. ! Xarchie*numHosts:               15
  109. X  Xarchie*hostMenu*leftMargin:    15
  110. X  ! These translations are for popups only
  111. X  Xarchie*hostMenu.translations:#override\n\
  112. --- 827,835 ----
  113. X  Xarchie*hostMenuItem12.label:    archie.switch.ch       (Switzerland)
  114. X  Xarchie*hostMenuItem13.label:    archie.unipi.it        (Italy)
  115. X  Xarchie*hostMenuItem14.label:    archie.ac.el           (Israel)
  116. ! Xarchie*hostMenuItem15.label:    archie.kr              (Korea)
  117. ! Xarchie*hostMenuItem16.label:    archie.luth.se         (Sweden)
  118. ! Xarchie*numHosts:               17
  119. X  Xarchie*hostMenu*leftMargin:    15
  120. X  ! These translations are for popups only
  121. X  Xarchie*hostMenu.translations:#override\n\
  122. *** ../xarchie-2.0.8/Xarchie.ad.h    Tue Jul 27 10:24:16 1993
  123. --- Xarchie.ad.h    Tue Aug 24 11:57:16 1993
  124. ***************
  125. *** 538,544 ****
  126. X  "Xarchie*hostMenuItem12.label:    archie.switch.ch       (Switzerland)",
  127. X  "Xarchie*hostMenuItem13.label:    archie.unipi.it        (Italy)",
  128. X  "Xarchie*hostMenuItem14.label:    archie.ac.el           (Israel)",
  129. ! "Xarchie*numHosts:               15",
  130. X  "Xarchie*hostMenu*leftMargin:    15",
  131. X  "Xarchie*hostMenu.translations:#override\\n\
  132. X       <EnterWindow>:     highlight()             \\n\
  133. --- 538,546 ----
  134. X  "Xarchie*hostMenuItem12.label:    archie.switch.ch       (Switzerland)",
  135. X  "Xarchie*hostMenuItem13.label:    archie.unipi.it        (Italy)",
  136. X  "Xarchie*hostMenuItem14.label:    archie.ac.el           (Israel)",
  137. ! "Xarchie*hostMenuItem15.label:    archie.kr              (Korea)",
  138. ! "Xarchie*hostMenuItem16.label:    archie.luth.se         (Sweden)",
  139. ! "Xarchie*numHosts:               17",
  140. X  "Xarchie*hostMenu*leftMargin:    15",
  141. X  "Xarchie*hostMenu.translations:#override\\n\
  142. X       <EnterWindow>:     highlight()             \\n\
  143. *** ../xarchie-2.0.8/ftp.c    Wed Jun 30 14:54:16 1993
  144. --- ftp.c    Tue Aug 24 11:51:25 1993
  145. ***************
  146. *** 39,44 ****
  147. --- 39,46 ----
  148. X   * 28 Apr 1993: Status mesage for bytes transferred was backwards.
  149. X   *  1 Jun 1993: Fixes for ISC. Are these needed for other SYS5?
  150. X   * 30 Jun 1993: Fixes for Encore Umax (used cpp symbol "umax" as a guess).
  151. +  * 24 Aug 1993: Allow 200 reply for CWD as well as 250.
  152. +  *              Non-blocking IO defs for NeXT.
  153. X   */
  154. X  #include <stdio.h>
  155. X  #include <errno.h>
  156. ***************
  157. *** 67,77 ****
  158. X   *   hp300 : From Andy.Linton@comp.vuw.ac.nz
  159. X   *   sgi   : From amoss@cs.huji.ac.il
  160. X   *   umax  : From Gerry.Tomlinson@newcastle.ac.uk
  161. X   */
  162. ! #if defined(hp300)
  163. X    /* Here's for BSD, maybe, but Sys5 can't tell this from EOF. */
  164. X  # include <fcntl.h>
  165. ! # define MAKE_BONBLOCKING(fd) fcntl(fd,F_SETFL,O_NDELAY)
  166. X  # define ITWOULDBLOCK EWOULDBLOCK
  167. X  #else
  168. X  #if defined(sgi)
  169. --- 69,80 ----
  170. X   *   hp300 : From Andy.Linton@comp.vuw.ac.nz
  171. X   *   sgi   : From amoss@cs.huji.ac.il
  172. X   *   umax  : From Gerry.Tomlinson@newcastle.ac.uk
  173. +  *   NeXT  : From jk@zarniwoop.pc-labor.uni-bremen.de
  174. X   */
  175. ! #if defined(hp300) || defined(NeXT)
  176. X    /* Here's for BSD, maybe, but Sys5 can't tell this from EOF. */
  177. X  # include <fcntl.h>
  178. ! # define MAKE_NONBLOCKING(fd) fcntl(fd,F_SETFL,O_NDELAY)
  179. X  # define ITWOULDBLOCK EWOULDBLOCK
  180. X  #else
  181. X  #if defined(sgi)
  182. ***************
  183. *** 771,777 ****
  184. X      break;
  185. X        case FTPS_CWD:
  186. X      /* can come here direct from USER or PASS also... */
  187. !     if (ftpc->retcode == FTP_FILE_ACTION_OK) {    /* last CWD ok */
  188. X          if (ftpc->wd == NULL || *(ftpc->wd) == '\0') { /* CWD done */
  189. X          ftpc->state = FTPS_TYPE;
  190. X          ftpSendType(ftpc);
  191. --- 774,781 ----
  192. X      break;
  193. X        case FTPS_CWD:
  194. X      /* can come here direct from USER or PASS also... */
  195. !     if (ftpc->retcode == FTP_FILE_ACTION_OK ||
  196. !         ftpc->retcode == FTP_COMMAND_OK) {    /* last CWD ok */
  197. X          if (ftpc->wd == NULL || *(ftpc->wd) == '\0') { /* CWD done */
  198. X          ftpc->state = FTPS_TYPE;
  199. X          ftpSendType(ftpc);
  200. *** ../xarchie-2.0.8/help-text1.h    Tue Jul 27 10:24:58 1993
  201. --- help-text1.h    Tue Aug 24 11:58:35 1993
  202. ***************
  203. *** 2,8 ****
  204. X  NULL,
  205. X  "NAME\n",
  206. X  "     xarchie - X11 browser interface  to\n",
  207. ! "     archie, version 2.0.8\n",
  208. X  "\n",
  209. X  NULL,
  210. X  "SYNOPSIS\n",
  211. --- 2,8 ----
  212. X  NULL,
  213. X  "NAME\n",
  214. X  "     xarchie - X11 browser interface  to\n",
  215. ! "     archie, version 2.0.9\n",
  216. X  "\n",
  217. X  NULL,
  218. X  "SYNOPSIS\n",
  219. *** ../xarchie-2.0.8/patchlevel.h    Tue Jul 27 10:18:22 1993
  220. --- patchlevel.h    Tue Aug 24 11:36:09 1993
  221. ***************
  222. *** 11,18 ****
  223. X   * Version 2.0.6:  7 Jun 1993
  224. X   * Version 2.0.7: 30 Jun 1993
  225. X   * Version 2.0.8: 27 Jul 1993
  226. X   */
  227. X  
  228. X  #undef BETA
  229. X  #define VERSION        2.0
  230. ! #define PATCHLEVEL    8
  231. --- 11,19 ----
  232. X   * Version 2.0.6:  7 Jun 1993
  233. X   * Version 2.0.7: 30 Jun 1993
  234. X   * Version 2.0.8: 27 Jul 1993
  235. +  * Version 2.0.9: 24 Aug 1993
  236. X   */
  237. X  
  238. X  #undef BETA
  239. X  #define VERSION        2.0
  240. ! #define PATCHLEVEL    9
  241. *** ../xarchie-2.0.8/resolv.c    Thu Apr 22 15:43:21 1993
  242. --- resolv.c    Tue Aug 24 11:47:08 1993
  243. ***************
  244. *** 7,12 ****
  245. --- 7,14 ----
  246. X   * Compile with: cc -o resolv resolv.c
  247. X   *
  248. X   * If you get an error message when you run the program, you need -lresolv.
  249. +  *
  250. +  * 24 Aug 1993: Use perror() rather than herror().
  251. X   */
  252. X  
  253. X  #include <stdio.h>
  254. ***************
  255. *** 24,30 ****
  256. X      if (argc > 1)
  257. X      hostname = argv[1];
  258. X      if((host=gethostbyname(hostname)) == NULL) {
  259. !         herror(hostname);
  260. X          exit(1);
  261. X      } else {
  262. X      if (strcmp(hostname,host->h_name) != 0)
  263. --- 26,33 ----
  264. X      if (argc > 1)
  265. X      hostname = argv[1];
  266. X      if((host=gethostbyname(hostname)) == NULL) {
  267. !     /* Not everyone has herror() */
  268. !         perror(hostname);
  269. X          exit(1);
  270. X      } else {
  271. X      if (strcmp(hostname,host->h_name) != 0)
  272. *** ../xarchie-2.0.8/xarchie.man    Tue Jul 27 10:18:45 1993
  273. --- xarchie.man    Tue Aug 24 11:42:10 1993
  274. ***************
  275. *** 24,30 ****
  276. X  ..
  277. X  .de }F
  278. X  .. \}
  279. ! .TH XARCHIE 1 "27 Jul 1993" "U of Rochester"
  280. X  .\" If formatting for Help, set line length and tabs after .TH
  281. X  .if \n(XX \{\
  282. X  .nr LL 40n
  283. --- 24,30 ----
  284. X  ..
  285. X  .de }F
  286. X  .. \}
  287. ! .TH XARCHIE 1 "24 Aug 1993" "U of Rochester"
  288. X  .\" If formatting for Help, set line length and tabs after .TH
  289. X  .if \n(XX \{\
  290. X  .nr LL 40n
  291. ***************
  292. *** 33,39 ****
  293. X  .el .ta 4,8,12,16,20,24,28,32,36,40
  294. X  .\" Real manpage begins here
  295. X  .SH NAME
  296. ! xarchie \- X11 browser interface to archie, version 2.0.8
  297. X  .SH SYNOPSIS
  298. X  .na
  299. X  .in +8n
  300. --- 33,39 ----
  301. X  .el .ta 4,8,12,16,20,24,28,32,36,40
  302. X  .\" Real manpage begins here
  303. X  .SH NAME
  304. ! xarchie \- X11 browser interface to archie, version 2.0.9
  305. X  .SH SYNOPSIS
  306. X  .na
  307. X  .in +8n
  308. SHAR_EOF
  309. chmod 0644 xarchie-2.0.8-2.0.9.patch ||
  310. echo 'restore of xarchie-2.0.8-2.0.9.patch failed'
  311. Wc_c="`wc -c < 'xarchie-2.0.8-2.0.9.patch'`"
  312. test 8039 -eq "$Wc_c" ||
  313.     echo 'xarchie-2.0.8-2.0.9.patch: original size 8039, current size' "$Wc_c"
  314. fi
  315. exit 0
  316.  
  317. exit 0 # Just in case...
  318. -- 
  319.   // chris@Sterling.COM           | Send comp.sources.x submissions to:
  320. \X/  Amiga - The only way to fly! |    sources-x@sterling.com
  321.  "It's intuitively obvious to the |
  322.   most casual observer..."        | GCS d+/-- p+ c++ l+ m+ s++/+ g+ w+ t+ r+ x+
  323.