<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
</p>
<p></p>
<p>********** How to install the gopher-techinfo gateway **********
</p>
<p>1) Edit the file &quot;gw.h&quot; and change any #defines that need to
   be changed.
</p>
<p>   DEBUGLOG		the filename where the gateway will write
			debugging and statistics information.  The
			gateway runs as userid &quot;daemon&quot;, so make sure
			daemon has write permission on this file.  If
			necessary, create an empty file and change
			owner to daemon.
</p>
<p>   MSGFILE		the filename of the &quot;About this Gopher&quot; item.
			The gateway will read this file and send it to
			the Gopher client.  See the file &quot;MSG&quot; for an
			example.  DAEMON needs read permission for
			this file.
</p>
<p>   LOCALTI_SERVER	the domain name of the local Techinfo server
			The gateway connects to this server when a
			gopher sends &quot;&quot; as the token.  At UPENN, the
			name is penninfo-srv.upenn.edu.
</p>
<p>			if there&#x27;s no local TechInfo, change this line to:
#define LOCALTI_SERVER &quot;&quot;  /* there is no local techinfo */
</p>
<p>   LOCALTI_PORT		the port that the local TechInfo server
			listens at (ignored if LOCALTI_SERVER is &quot;&quot;).
</p>
<p>   LOCALTI_MAINMENU	the nodeid of the top menu of the local
			Techinfo server (ignored if LOCALTI_SERVER is
			&quot;&quot;).  You can pick any menu&#x27;s nodeid.
</p>
<p></p>
<p>   TISERVERS_HOST	the domain name of the host that knows the
			list of TechInfo servers.
</p>
<p>   TISERVERS_PORT	the port at which the TISERVERS_HOST server
			listens.
</p>
<p>   LOCALGOPHTITLE	the name(title) of a gopher server.  If
			you don&#x27;t want to point to any, set it to
			&quot;&quot;.  If you leave it blank, then
			LOCALGOPHERSERVER, LOCALGOPHERPORT, and
			LOCALGOPHERPATH are ignored.  Otherwise,
			the gateway sends them along with the
			title as part of the root menu.  The
			local gopher file type must be a Gopher
			Directory file (gopher type 1).  For the
			local gopher server at UPENN, these three
			values should be &quot;gopher.upenn.edu&quot;, port
			&quot;70&quot;, and &quot;&quot;.
</p>
<p>   WAIS			#define this flag if you want each menu
			to contain an item for full text wais
			searching.
</p>
<p>   SOURCES_MSGFILE	Name of file that describes how to view the
			Gopher path &amp; use it to see the TechInfo Source.
</p>
<p>   SOURCES_NODEID	Nodeid of the TechInfo document at LOCALTI_SERVER.
			Ignored if there is no LOCALTI_SERVER.
</p>
<p></p>
<p></p>
<p>2) Compile the gateway code:
	make -k
</p>
<p>3) Move the executable to /usr/local/bin or whatever is the convention
   on your operating system.
</p>
<p>4) Edit /etc/services and add the gopher service to it, if it&#x27;s not
   already there:
gophtech	71/tcp
</p>
<p>5) Edit /etc/inetd.conf and add the gophtech gateway to it.  The
   gateway program takes two arguments: the domain name of the
   localhost, and the port at which the gateway is listening.
</p>
<p>Example:
</p>
<p>gophtech stream tcp nowait /usr/local/bin/gophtech gophtech gopher-penninfo.upenn.edu gophtech
</p>
<p>6) Send a HUP to the inetd daemon so that it will re-read inetd.conf.
</p>
<p>7) Copy MSG and PROVIDERS to the right directory.
</p>
<p>   Give DAEMON the permission to read these files, since the gateway
   runs as userid DAEMON.  chmod ugo+r .../{MSG,PROVIDERS}
</p>
<p>8) Define the domain name (or a CNAME) in the domain name system for
   your site.  In the example I used above, it would be
   gopher-penninfo.upenn.edu.
</p>
<p>9) The MSG file refers to a mail alias to report bugs with
   the gophtech gateway (gopher-penninfo@dccs.upenn.edu).  Please
   create the mail alias and be sure that at least murphy@dccs.upenn.edu
   is on the list.  I don&#x27;t know who, if anyone else, should be on
   it.
</p>
</card>
</wml>
