Blame SOURCES/x3270-3.3.10-ibmhostpath.patch

4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/c3270.man.ibmhostspath x3270-3.3.10ga4/c3270-3.3/c3270.man
4bc4eb
--- x3270-3.3.10ga4/c3270-3.3/c3270.man.ibmhostspath	2009-12-07 13:06:22.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/c3270-3.3/c3270.man	2009-12-07 13:09:17.000000000 +0100
4bc4eb
@@ -3204,7 +3204,7 @@ backslash character.
4bc4eb
 If more than one \fB\-xrm\fP option is given for the same resource,
4bc4eb
 the last one on the command line is used.
4bc4eb
 .SH "FILES"
4bc4eb
-/usr/local/lib/x3270/ibm_hosts
4bc4eb
+/etc/ibm_hosts
4bc4eb
 .br
4bc4eb
 $HOME/.c3270pro
4bc4eb
 
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/glue.c.ibmhostspath x3270-3.3.10ga4/c3270-3.3/glue.c
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/host.c.ibmhostspath x3270-3.3.10ga4/c3270-3.3/host.c
4bc4eb
--- x3270-3.3.10ga4/c3270-3.3/host.c.ibmhostspath	2009-12-07 13:13:03.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/c3270-3.3/host.c	2009-12-07 13:14:35.000000000 +0100
4bc4eb
@@ -126,7 +126,7 @@ hostfile_init(void)
4bc4eb
 	hostfile_initted = True;
4bc4eb
 	hostfile_name = appres.hostsfile;
4bc4eb
 	if (hostfile_name == CN)
4bc4eb
-		hostfile_name = xs_buffer("%s/ibm_hosts", appres.conf_dir);
4bc4eb
+		hostfile_name = xs_buffer("%s/ibm_hosts", "/etc");
4bc4eb
 	else
4bc4eb
 		hostfile_name = do_subst(appres.hostsfile, True, True);
4bc4eb
 	hf = fopen(hostfile_name, "r");
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/html/c3270-man.html.ibmhostspath x3270-3.3.10ga4/c3270-3.3/html/c3270-man.html
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/c3270-3.3/html/Resources.html
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/Makefile.ibmhostspath x3270-3.3.10ga4/c3270-3.3/Makefile
4bc4eb
diff -up x3270-3.3.10ga4/c3270-3.3/Makefile.in.ibmhostspath x3270-3.3.10ga4/c3270-3.3/Makefile.in
4bc4eb
--- x3270-3.3.10ga4/c3270-3.3/Makefile.in.ibmhostspath	2009-12-07 13:06:43.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/c3270-3.3/Makefile.in	2009-12-07 13:12:43.000000000 +0100
4bc4eb
@@ -84,10 +84,10 @@ install:: c3270 x3270if
4bc4eb
 	$(INSTALL_PROGRAM) c3270 $(DESTDIR)$(BINDIR)/c3270
4bc4eb
 	$(INSTALL_PROGRAM) x3270if $(DESTDIR)$(BINDIR)/x3270if
4bc4eb
 install::
4bc4eb
-	[ -d $(DESTDIR)$(LIBX3270DIR) ] || \
4bc4eb
-		mkdir -p $(DESTDIR)$(LIBX3270DIR)
4bc4eb
-	[ -r $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ] || \
4bc4eb
-		$(INSTALL_DATA) ibm_hosts $(DESTDIR)$(LIBX3270DIR)/ibm_hosts
4bc4eb
+	[ -d $(DESTDIR)/etc ] || \
4bc4eb
+		mkdir -p $(DESTDIR)/etc
4bc4eb
+	[ -r $(DESTDIR)/etc/ibm_hosts ] || \
4bc4eb
+		$(INSTALL_DATA) ibm_hosts $(DESTDIR)/etc/ibm_hosts
4bc4eb
 @PR@install::
4bc4eb
 
4bc4eb
 install.man:
4bc4eb
diff -up x3270-3.3.10ga4/s3270-3.3/host.c.ibmhostspath x3270-3.3.10ga4/s3270-3.3/host.c
4bc4eb
--- x3270-3.3.10ga4/s3270-3.3/host.c.ibmhostspath	2009-12-07 13:17:07.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/s3270-3.3/host.c	2009-12-07 13:18:19.000000000 +0100
4bc4eb
@@ -126,7 +126,7 @@ hostfile_init(void)
4bc4eb
 	hostfile_initted = True;
4bc4eb
 	hostfile_name = appres.hostsfile;
4bc4eb
 	if (hostfile_name == CN)
4bc4eb
-		hostfile_name = xs_buffer("%s/ibm_hosts", appres.conf_dir);
4bc4eb
+		hostfile_name = xs_buffer("%s/ibm_hosts", "/etc");
4bc4eb
 	else
4bc4eb
 		hostfile_name = do_subst(appres.hostsfile, True, True);
4bc4eb
 	hf = fopen(hostfile_name, "r");
4bc4eb
diff -up x3270-3.3.10ga4/s3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/s3270-3.3/html/Resources.html
4bc4eb
diff -up x3270-3.3.10ga4/s3270-3.3/html/s3270-man.html.ibmhostspath x3270-3.3.10ga4/s3270-3.3/html/s3270-man.html
4bc4eb
diff -up x3270-3.3.10ga4/s3270-3.3/s3270.man.ibmhostspath x3270-3.3.10ga4/s3270-3.3/s3270.man
4bc4eb
--- x3270-3.3.10ga4/s3270-3.3/s3270.man.ibmhostspath	2009-12-07 13:16:49.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/s3270-3.3/s3270.man	2009-12-07 13:18:34.000000000 +0100
4bc4eb
@@ -2015,7 +2015,7 @@ the \fBtraceDir\fP resource.
4bc4eb
 If more than one \fB\-xrm\fP option is given for the same resource,
4bc4eb
 the last one on the command line is used.
4bc4eb
 .SH "FILES"
4bc4eb
-/usr/local/lib/x3270/ibm_hosts
4bc4eb
+/etc/ibm_hosts
4bc4eb
 .br
4bc4eb
 
4bc4eb
 .SH "SEE ALSO"
4bc4eb
diff -up x3270-3.3.10ga4/s3270-3.3/X3270.xad.ibmhostspath x3270-3.3.10ga4/s3270-3.3/X3270.xad
4bc4eb
--- x3270-3.3.10ga4/s3270-3.3/X3270.xad.ibmhostspath	2009-12-07 13:17:00.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/s3270-3.3/X3270.xad	2009-12-07 13:18:45.000000000 +0100
4bc4eb
@@ -221,7 +221,7 @@ x3270.charsetList:			U.S. English (CP 03
4bc4eb
 ! x3270.doConfirms:			true
4bc4eb
 ! x3270.debugTracing:			true
4bc4eb
 ! x3270.disconnectClear:		false
4bc4eb
-! x3270.hostsFile:			/usr/lib/X11/x3270/ibm_hosts
4bc4eb
+! x3270.hostsFile:			/etc/ibm_hosts
4bc4eb
 ! x3270.highlightSelect:		true
4bc4eb
 ! x3270.idleCommand:
4bc4eb
 ! x3270.idleTimeout:			~7m
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/html/ibm_hosts.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/ibm_hosts.html
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/Resources.html
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/html/x3270-man.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/x3270-man.html
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man.ibmhostspath x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man
4bc4eb
--- x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man.ibmhostspath	2009-12-07 12:59:42.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man	2009-12-07 13:01:03.000000000 +0100
4bc4eb
@@ -3,7 +3,7 @@
4bc4eb
 .SH "NAME"
4bc4eb
 ibm_hosts \- host database for x3270 and c3270
4bc4eb
 .SH "SYNOPSIS"
4bc4eb
-/usr/lib/X11/x3270/ibm_hosts
4bc4eb
+/etc/ibm_hosts
4bc4eb
 .SH "DESCRIPTION"
4bc4eb
 The \fBibm_hosts\fP
4bc4eb
 file contains information regarding IBM hosts on the network.
4bc4eb
@@ -82,7 +82,7 @@ The name \fBvm\fP will cause the 3270 em
4bc4eb
 enter the string `3' on the second data-entry field on the screen, and
4bc4eb
 send the Enter \s-1AID\s+1 sequence.
4bc4eb
 .SH "FILES"
4bc4eb
-/usr/lib/X11/x3270/ibm_hosts
4bc4eb
+/etc/ibm_hosts
4bc4eb
 .SH "SEE ALSO"
4bc4eb
 x3270(1),
4bc4eb
 c3270(1)
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/Imakefile.in.ibmhostspath x3270-3.3.10ga4/x3270-3.3/Imakefile.in
4bc4eb
--- x3270-3.3.10ga4/x3270-3.3/Imakefile.in.ibmhostspath	2009-12-07 12:57:19.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/x3270-3.3/Imakefile.in	2009-12-07 13:03:46.000000000 +0100
4bc4eb
@@ -190,8 +190,8 @@ $(DESTDIR)$(FONTINSTDIR)/fonts.dir::
4bc4eb
 /* Extra install rule for the sample ibm_hosts file (runs only if there is
4bc4eb
    no ibm_hosts file installed yet). */
4bc4eb
 install:: $(HOSTSFILE)
4bc4eb
-	@[ -r $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE) ] || \
4bc4eb
-		$(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE)
4bc4eb
+	@[ -r $(DESTDIR)/etc/$(HOSTSFILE) ] || \
4bc4eb
+		$(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)/etc/$(HOSTSFILE)
4bc4eb
 
4bc4eb
 /*
4bc4eb
  * Install rules for x3270if, x3270-script and ibm_hosts man pages.
4bc4eb
@@ -220,8 +220,8 @@ install.byprefix::
4bc4eb
 	$(MKFONTDIR) $(DESTDIR)$(autoconf_fontinstdir)
4bc4eb
 	chmod u=rwx,go=rx $(DESTDIR)$(autoconf_fontinstdir)
4bc4eb
 	chmod a=r $(DESTDIR)$(autoconf_fontinstdir)/fonts.dir
4bc4eb
-	@[ -r $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE) ] || \
4bc4eb
-		(set -x; $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE))
4bc4eb
+	@[ -r $(DESTDIR)/etc/$(HOSTSFILE) ] || \
4bc4eb
+		(set -x; $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)/etc/$(HOSTSFILE))
4bc4eb
 
4bc4eb
 /******************************************************************************
4bc4eb
  * Clean rules.                                                               *
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/Makefile.in.ibmhostspath x3270-3.3.10ga4/x3270-3.3/Makefile.in
4bc4eb
--- x3270-3.3.10ga4/x3270-3.3/Makefile.in.ibmhostspath	2009-12-07 12:59:22.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/x3270-3.3/Makefile.in	2009-12-07 13:16:01.000000000 +0100
4bc4eb
@@ -127,10 +127,10 @@ install:: x3270 x3270if
4bc4eb
 	$(INSTALL_PROGRAM) x3270 $(DESTDIR)$(BINDIR)/x3270
4bc4eb
 	$(INSTALL_PROGRAM) x3270if $(DESTDIR)$(BINDIR)/x3270if
4bc4eb
 install::
4bc4eb
-	[ -d $(DESTDIR)$(LIBX3270DIR) ] || \
4bc4eb
-		mkdir -p $(DESTDIR)$(LIBX3270DIR)
4bc4eb
-	[ -r $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ] || \
4bc4eb
-		$(INSTALL_DATA) ibm_hosts $(DESTDIR)$(LIBX3270DIR)/ibm_hosts
4bc4eb
+	[ -d $(DESTDIR)/etc ] || \
4bc4eb
+		mkdir -p $(DESTDIR)/etc
4bc4eb
+	[ -r $(DESTDIR)/etc/ibm_hosts ] || \
4bc4eb
+		$(INSTALL_DATA) ibm_hosts $(DESTDIR)/etc/ibm_hosts
4bc4eb
 install::
4bc4eb
 	[ -d $(DESTDIR)$(CIFONTDIR) ] || \
4bc4eb
 		mkdir -p $(DESTDIR)$(CIFONTDIR)
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/X3270.ad.ibmhostspath x3270-3.3.10ga4/x3270-3.3/X3270.ad
4bc4eb
--- x3270-3.3.10ga4/x3270-3.3/X3270.xad.ibmhostspath	2009-12-07 12:59:53.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/x3270-3.3/X3270.xad	2009-12-07 13:05:28.000000000 +0100
4bc4eb
@@ -214,7 +214,7 @@ x3270.charsetList:			U.S. English (CP 03
4bc4eb
 ! x3270.doConfirms:			true
4bc4eb
 ! x3270.debugTracing:			true
4bc4eb
 ! x3270.disconnectClear:		false
4bc4eb
-! x3270.hostsFile:			/usr/lib/X11/x3270/ibm_hosts
4bc4eb
+! x3270.hostsFile:			/etc/ibm_hosts
4bc4eb
 ! x3270.highlightSelect:		true
4bc4eb
 ! x3270.idleCommand:
4bc4eb
 ! x3270.idleTimeout:			~7m
4bc4eb
diff -up x3270-3.3.10ga4/x3270-3.3/x3270.man.ibmhostspath x3270-3.3.10ga4/x3270-3.3/x3270.man
4bc4eb
--- x3270-3.3.10ga4/x3270-3.3/x3270.man.ibmhostspath	2009-12-07 12:59:05.000000000 +0100
4bc4eb
+++ x3270-3.3.10ga4/x3270-3.3/x3270.man	2009-12-07 13:05:42.000000000 +0100
4bc4eb
@@ -5008,7 +5008,7 @@ T}
4bc4eb
 The special types \fBsocks4a\fP and \fBsocks5d\fP can also be used to force
4bc4eb
 the proxy server to do the hostname resolution for the SOCKS protocol.
4bc4eb
 .SH "FILES"
4bc4eb
-/usr/lib/X11/x3270/ibm_hosts
4bc4eb
+/etc/ibm_hosts
4bc4eb
 .br
4bc4eb
 $HOME/.x3270pro
4bc4eb