home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.x
- From: ferguson@cs.rochester.edu (George Ferguson)
- Subject: v21i007: xarchie - An X browser interface to Archie, Patch03
- Message-ID: <1993Oct7.221552.29190@sparky.sterling.com>
- X-Md4-Signature: e9fa80a8b4a35ddebd867fb883b8816f
- Sender: chris@sparky.sterling.com (Chris Olson)
- Organization: Sterling Software
- Date: Thu, 7 Oct 1993 22:15:52 GMT
- Approved: chris@sterling.com
-
- Submitted-by: ferguson@cs.rochester.edu (George Ferguson)
- Posting-number: Volume 21, Issue 7
- Archive-name: xarchie/patch03
- Environment: X11
- Patch-To: xarchie: Volume 20, Issue 29-52
-
- This patch brings xarchie to version 2.0.9. It and all previous
- patches and the complete xarchie-2.0.9 distribution are available from
- export.lcs.mit.edu in /contrib.
-
- This patch adds some server info, corrects an error I made
- interpreting RFC959 for ftp CWD commands, and adds some configuration
- stuff.
-
- Extract this archive to create xarchie.p3, then apply it by doing
- patch -p <xarchie.p3
- in the xarchie source directory. Don't forget the "-p" flag or the
- subdirectories will not get properly patched.
-
- #!/bin/sh
- # This is a shell archive (produced by shar 3.49)
- # To extract the files from this archive, save it to a file, remove
- # everything above the "!/bin/sh" line above, and type "sh file_name".
- #
- # made 08/24/1993 17:03 UTC by ferguson@larynx.cs.rochester.edu
- # Source directory /home/diamond/u11/ferguson/src/x/xarchie/Patches
- #
- # existing files will NOT be overwritten unless -c is specified
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 8039 -rw-r--r-- xarchie.p3
- #
- # ============= xarchie.p3 ==============
- if test -f 'xarchie.p3' -a X"$1" != X"-c"; then
- echo 'x - skipping xarchie.p3 (File already exists)'
- else
- echo 'x - extracting xarchie.p3 (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xarchie.p3' &&
- *** ../xarchie-2.0.8/README Tue Jul 27 10:17:46 1993
- --- README Tue Aug 24 11:49:51 1993
- ***************
- *** 2,8 ****
- X
- X George Ferguson, ferguson@cs.rochester.edu
- X
- ! Last Change: 27 Jul 1993
- X
- X DISCLAIMER:
- X
- --- 2,8 ----
- X
- X George Ferguson, ferguson@cs.rochester.edu
- X
- ! Last Change: 24 Aug 1993
- X
- X DISCLAIMER:
- X
- ***************
- *** 72,77 ****
- --- 72,90 ----
- X in the manpage.
- X
- X HISTORY:
- +
- + Version 2.0.9 - 24 Aug 1993
- + - Allow 200 reply for ftp CWD as well as 250 (ftp.c).
- + <amoss@cs.huji.ac.il>
- + - New servers for Korea and Sweden (Xarchie.ad).
- + <mark@rfisk.is>
- + - Use perror() rather than herror() in resolv.c. Hopefully this will
- + allow resolv.c to compile, so then the configure test will be based
- + on whether it worked or not, rather than deciding on -lresolv
- + because the compile failed.
- + <chris@wg.estec.esa.nl>
- + - NeXT uses BSD-style fcntl (ftp.c).
- + <jk@zarniwoop.pc-labor.uni-bremen.de>
- X
- X Version 2.0.8 - 27 Jul 1993
- X - Only call XtRemoveTimeOut() if HAVE_RANDOM or HAVE_RAND (about.c).
- *** ../xarchie-2.0.8/Xarchie.ad Tue Jul 27 10:12:07 1993
- --- Xarchie.ad Tue Aug 24 11:43:57 1993
- ***************
- *** 16,21 ****
- --- 16,22 ----
- X ! Added line to About panel referring to archie-admin address.
- X ! 27 Jul 1993: Added archie.unipi.it to hostMenu.
- X ! Added archie.ac.il to hostMenu.
- + ! 24 Aug 1993: Added archie.kr and archie.luth.se to hostMenu.
- X !
- X
- X ! - - - - - - - - -
- ***************
- *** 826,832 ****
- X Xarchie*hostMenuItem12.label: archie.switch.ch (Switzerland)
- X Xarchie*hostMenuItem13.label: archie.unipi.it (Italy)
- X Xarchie*hostMenuItem14.label: archie.ac.el (Israel)
- ! Xarchie*numHosts: 15
- X Xarchie*hostMenu*leftMargin: 15
- X ! These translations are for popups only
- X Xarchie*hostMenu.translations:#override\n\
- --- 827,835 ----
- X Xarchie*hostMenuItem12.label: archie.switch.ch (Switzerland)
- X Xarchie*hostMenuItem13.label: archie.unipi.it (Italy)
- X Xarchie*hostMenuItem14.label: archie.ac.el (Israel)
- ! Xarchie*hostMenuItem15.label: archie.kr (Korea)
- ! Xarchie*hostMenuItem16.label: archie.luth.se (Sweden)
- ! Xarchie*numHosts: 17
- X Xarchie*hostMenu*leftMargin: 15
- X ! These translations are for popups only
- X Xarchie*hostMenu.translations:#override\n\
- *** ../xarchie-2.0.8/Xarchie.ad.h Tue Jul 27 10:24:16 1993
- --- Xarchie.ad.h Tue Aug 24 11:57:16 1993
- ***************
- *** 538,544 ****
- X "Xarchie*hostMenuItem12.label: archie.switch.ch (Switzerland)",
- X "Xarchie*hostMenuItem13.label: archie.unipi.it (Italy)",
- X "Xarchie*hostMenuItem14.label: archie.ac.el (Israel)",
- ! "Xarchie*numHosts: 15",
- X "Xarchie*hostMenu*leftMargin: 15",
- X "Xarchie*hostMenu.translations:#override\\n\
- X <EnterWindow>: highlight() \\n\
- --- 538,546 ----
- X "Xarchie*hostMenuItem12.label: archie.switch.ch (Switzerland)",
- X "Xarchie*hostMenuItem13.label: archie.unipi.it (Italy)",
- X "Xarchie*hostMenuItem14.label: archie.ac.el (Israel)",
- ! "Xarchie*hostMenuItem15.label: archie.kr (Korea)",
- ! "Xarchie*hostMenuItem16.label: archie.luth.se (Sweden)",
- ! "Xarchie*numHosts: 17",
- X "Xarchie*hostMenu*leftMargin: 15",
- X "Xarchie*hostMenu.translations:#override\\n\
- X <EnterWindow>: highlight() \\n\
- *** ../xarchie-2.0.8/ftp.c Wed Jun 30 14:54:16 1993
- --- ftp.c Tue Aug 24 11:51:25 1993
- ***************
- *** 39,44 ****
- --- 39,46 ----
- X * 28 Apr 1993: Status mesage for bytes transferred was backwards.
- X * 1 Jun 1993: Fixes for ISC. Are these needed for other SYS5?
- X * 30 Jun 1993: Fixes for Encore Umax (used cpp symbol "umax" as a guess).
- + * 24 Aug 1993: Allow 200 reply for CWD as well as 250.
- + * Non-blocking IO defs for NeXT.
- X */
- X #include <stdio.h>
- X #include <errno.h>
- ***************
- *** 67,77 ****
- X * hp300 : From Andy.Linton@comp.vuw.ac.nz
- X * sgi : From amoss@cs.huji.ac.il
- X * umax : From Gerry.Tomlinson@newcastle.ac.uk
- X */
- ! #if defined(hp300)
- X /* Here's for BSD, maybe, but Sys5 can't tell this from EOF. */
- X # include <fcntl.h>
- ! # define MAKE_BONBLOCKING(fd) fcntl(fd,F_SETFL,O_NDELAY)
- X # define ITWOULDBLOCK EWOULDBLOCK
- X #else
- X #if defined(sgi)
- --- 69,80 ----
- X * hp300 : From Andy.Linton@comp.vuw.ac.nz
- X * sgi : From amoss@cs.huji.ac.il
- X * umax : From Gerry.Tomlinson@newcastle.ac.uk
- + * NeXT : From jk@zarniwoop.pc-labor.uni-bremen.de
- X */
- ! #if defined(hp300) || defined(NeXT)
- X /* Here's for BSD, maybe, but Sys5 can't tell this from EOF. */
- X # include <fcntl.h>
- ! # define MAKE_NONBLOCKING(fd) fcntl(fd,F_SETFL,O_NDELAY)
- X # define ITWOULDBLOCK EWOULDBLOCK
- X #else
- X #if defined(sgi)
- ***************
- *** 771,777 ****
- X break;
- X case FTPS_CWD:
- X /* can come here direct from USER or PASS also... */
- ! if (ftpc->retcode == FTP_FILE_ACTION_OK) { /* last CWD ok */
- X if (ftpc->wd == NULL || *(ftpc->wd) == '\0') { /* CWD done */
- X ftpc->state = FTPS_TYPE;
- X ftpSendType(ftpc);
- --- 774,781 ----
- X break;
- X case FTPS_CWD:
- X /* can come here direct from USER or PASS also... */
- ! if (ftpc->retcode == FTP_FILE_ACTION_OK ||
- ! ftpc->retcode == FTP_COMMAND_OK) { /* last CWD ok */
- X if (ftpc->wd == NULL || *(ftpc->wd) == '\0') { /* CWD done */
- X ftpc->state = FTPS_TYPE;
- X ftpSendType(ftpc);
- *** ../xarchie-2.0.8/help-text1.h Tue Jul 27 10:24:58 1993
- --- help-text1.h Tue Aug 24 11:58:35 1993
- ***************
- *** 2,8 ****
- X NULL,
- X "NAME\n",
- X " xarchie - X11 browser interface to\n",
- ! " archie, version 2.0.8\n",
- X "\n",
- X NULL,
- X "SYNOPSIS\n",
- --- 2,8 ----
- X NULL,
- X "NAME\n",
- X " xarchie - X11 browser interface to\n",
- ! " archie, version 2.0.9\n",
- X "\n",
- X NULL,
- X "SYNOPSIS\n",
- *** ../xarchie-2.0.8/patchlevel.h Tue Jul 27 10:18:22 1993
- --- patchlevel.h Tue Aug 24 11:36:09 1993
- ***************
- *** 11,18 ****
- X * Version 2.0.6: 7 Jun 1993
- X * Version 2.0.7: 30 Jun 1993
- X * Version 2.0.8: 27 Jul 1993
- X */
- X
- X #undef BETA
- X #define VERSION 2.0
- ! #define PATCHLEVEL 8
- --- 11,19 ----
- X * Version 2.0.6: 7 Jun 1993
- X * Version 2.0.7: 30 Jun 1993
- X * Version 2.0.8: 27 Jul 1993
- + * Version 2.0.9: 24 Aug 1993
- X */
- X
- X #undef BETA
- X #define VERSION 2.0
- ! #define PATCHLEVEL 9
- *** ../xarchie-2.0.8/resolv.c Thu Apr 22 15:43:21 1993
- --- resolv.c Tue Aug 24 11:47:08 1993
- ***************
- *** 7,12 ****
- --- 7,14 ----
- X * Compile with: cc -o resolv resolv.c
- X *
- X * If you get an error message when you run the program, you need -lresolv.
- + *
- + * 24 Aug 1993: Use perror() rather than herror().
- X */
- X
- X #include <stdio.h>
- ***************
- *** 24,30 ****
- X if (argc > 1)
- X hostname = argv[1];
- X if((host=gethostbyname(hostname)) == NULL) {
- ! herror(hostname);
- X exit(1);
- X } else {
- X if (strcmp(hostname,host->h_name) != 0)
- --- 26,33 ----
- X if (argc > 1)
- X hostname = argv[1];
- X if((host=gethostbyname(hostname)) == NULL) {
- ! /* Not everyone has herror() */
- ! perror(hostname);
- X exit(1);
- X } else {
- X if (strcmp(hostname,host->h_name) != 0)
- *** ../xarchie-2.0.8/xarchie.man Tue Jul 27 10:18:45 1993
- --- xarchie.man Tue Aug 24 11:42:10 1993
- ***************
- *** 24,30 ****
- X ..
- X .de }F
- X .. \}
- ! .TH XARCHIE 1 "27 Jul 1993" "U of Rochester"
- X .\" If formatting for Help, set line length and tabs after .TH
- X .if \n(XX \{\
- X .nr LL 40n
- --- 24,30 ----
- X ..
- X .de }F
- X .. \}
- ! .TH XARCHIE 1 "24 Aug 1993" "U of Rochester"
- X .\" If formatting for Help, set line length and tabs after .TH
- X .if \n(XX \{\
- X .nr LL 40n
- ***************
- *** 33,39 ****
- X .el .ta 4,8,12,16,20,24,28,32,36,40
- X .\" Real manpage begins here
- X .SH NAME
- ! xarchie \- X11 browser interface to archie, version 2.0.8
- X .SH SYNOPSIS
- X .na
- X .in +8n
- --- 33,39 ----
- X .el .ta 4,8,12,16,20,24,28,32,36,40
- X .\" Real manpage begins here
- X .SH NAME
- ! xarchie \- X11 browser interface to archie, version 2.0.9
- X .SH SYNOPSIS
- X .na
- X .in +8n
- SHAR_EOF
- chmod 0644 xarchie-2.0.8-2.0.9.patch ||
- echo 'restore of xarchie-2.0.8-2.0.9.patch failed'
- Wc_c="`wc -c < 'xarchie-2.0.8-2.0.9.patch'`"
- test 8039 -eq "$Wc_c" ||
- echo 'xarchie-2.0.8-2.0.9.patch: original size 8039, current size' "$Wc_c"
- fi
- exit 0
-
- exit 0 # Just in case...
- --
- // chris@Sterling.COM | Send comp.sources.x submissions to:
- \X/ Amiga - The only way to fly! | sources-x@sterling.com
- "It's intuitively obvious to the |
- most casual observer..." | GCS d+/-- p+ c++ l+ m+ s++/+ g+ w+ t+ r+ x+
-