source: trunk/third/nmh/INSTALL @ 12455

Revision 12455, 9.2 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1#
2# INSTALL -- installation instructions
3#
4# $Id: INSTALL,v 1.1.1.1 1999-02-07 18:14:04 danw Exp $
5#
6
7--------------
8Installing nmh
9--------------
10Please read all of the following instructions before you begin
11building nmh.
12
13You should check the MACHINES file to see if there are any specific
14build instructions for your operating system.  To build nmh, you will
15need an ANSI C compiler such as gcc.
16
171) Run the command
18
19   sh configure [options]
20
21   This will check the configuration of your OS, and create
22   the include file config.h, as well as the various Makefiles.
23
24   The configure script accepts various options.  The options of
25   most interest are listed below.  To see the list of all available
26   options, you can run
27
28   sh configure --help
29
302) (IMPORTANT)  Edit the user configuration section at the beginning
31   of the generated include file `config.h'.  Currently, not everything
32   is auto-configured, so some #defines must be set manually.
33
343) Edit the user configuration section at the top of the main Makefile.
35
364) make
37
385) make install
39
406) Edit the file `mts.conf' (installed in the nmh `etc' directory)
41   and make any necessary changes for the mail transport interface
42   you are using.
43
44   The default `mts.conf' file assumes you retrieve new mail from
45   a local (or NFS mounted) maildrop, and send outgoing mail by
46   injecting the message to a mail transfer agent (such as sendmail)
47   on the local machine via SMTP.
48
49   If you have enabled POP support and you want this to be the
50   default method of accessing new mail, you will need to change
51   the values of the variables "servers", "pophost", "localname",
52   and possibly "mmailid".
53
54   a) "servers" defines the server to which you send outgoing SMTP
55      traffic.
56
57   b) "pophost" defines the server that runs the POP daemon, and to
58      which `inc' and `msgchk' will query for new mail.
59
60   c) "localname" defines the hostname that nmh considers local.
61      If not set, then nmh queries your OS for this value.  You may
62      want to change this if you wish your e-mail to appear as if it
63      originated on the POP server.
64
65   d) "mmailid" is checked to see if nmh should do username
66      masquerading.  If the value of this field is non-zero, then
67      nmh will check if the pw_gecos field in the password file
68      has the form
69
70          Full Name <fakeusername>
71
72      If the pw_gecos field has this form, then the internal nmh
73      routines that find the username and full name of a user will
74      return "fakeusername" and "Full Name" respectively.  This is
75      useful if you wish messages that you send to appear to come
76      from the username of your POP account, rather than your username
77      on the local machine.
78
79   If you compile with POP support, but only want to use it occasionally,
80   then you can always use the `-host' and `-user' options to `inc'
81   and `msgchk' instead of changing `mts.conf'.
82
83   Check the `mh-tailor' man page for a list of all the available
84   options for this file.
85
867) If you have enabled POP support, make sure that `pop3' (or more
87   precisely the value of the define POPSERVICE in config.h) is defined
88   in the /etc/services file (or its NIS/NIS+ equivalent) on the client
89   machine.  It should be something equivalent to "110/tcp".  This might
90   have already been done when the pop daemon was installed.
91
928) Edit the file `mhn.defaults' (installed in the nmh `etc' directory).
93   This file contains the default profile entries for the nmh command
94   `mhn' and is created by the script `mhn.defaults.sh'.  This script
95   will search a generic path (essentially your $PATH) for programs to
96   handle various content types (for example, xv to display images).
97   You can re-run this script and give it a more tailored path.  You may
98   want to re-run this script later if you install new programs to
99   display content.  An example of this is:
100
101   cd support/general
102   ./mhn.defaults.sh /usr/local/bin:/usr/X11/bin:/usr/ucb > mhn.defaults
103
104   and then move `mhn.defaults' into the nmh `etc' directory.
105
106   The `mhn.defaults.sh' script only searches for a simple set of programs.
107   If you have specialized programs to handle various types, you will need
108   to edit the `mhn.defaults' file manually.  The syntax of this file is
109   described in the man page for `mhn', and in section 9.4 of the book
110   "MH & xmh: Email for Users and Programmers", 3rd edition, by Jerry Peek.
111
1129) Add an optional global mh.profile, if desired.  This profile should be
113   placed in the nmh `etc' directory with the name `mh.profile'.  This
114   file will be used to construct the initial .mh_profile of a new nmh
115   user, but will not be consulted after that.
116
117-----------------------------------------------
118Compiler options, or using a different compiler
119-----------------------------------------------
120By default, configure will use the "gcc" compiler if found.  You can use a
121different compiler, or add unusual options for compiling or linking that
122the "configure" script does not know about, by either editing the user
123configuration section of the top level Makefile (after running configure)
124or giving "configure" initial values for these variables by setting them
125in the environment.  Using a Bourne-compatible shell (such as sh,ksh,zsh),
126 
127you can do that on the command line like this:
128    CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
129 
130Or on systems that have the "env" program, you can do it like this:
131    env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
132
133----------------------------------------
134Building nmh on additional architectures
135----------------------------------------
136To build nmh on additional architectures, you can do a "make distclean".
137This should restore the nmh source distribution back to its original
138state.  You can then configure nmh as above on other architectures in
139which you wish to build nmh.  Or alternatively, you can use a different
140build directory for each architecture.
141 
142---------------------------------
143Using a different build directory
144---------------------------------
145You can compile the nmh in a different directory from the one containing
146the source code.  Doing so allows you to compile it on more than one
147architecture at the same time.  To do this, you must use a version of
148"make" that supports the "VPATH" variable, such as GNU "make".  "cd" to
149the directory where you want the object files and executables to go and
150run the "configure" script.  "configure" automatically checks for the
151source code in the directory that "configure" is in.  For example,
152 
153    cd /usr/local/solaris/nmh
154    /usr/local/src/nmh-1.0/configure
155    make
156
157---------------------
158Options for configure
159---------------------
160--prefix=DIR     (DEFAULT is /usr/local/nmh)
161     This will change the base prefix for the installation location
162     for the various parts of nmh.  Unless overridden, nmh is installed
163     in ${prefix}/bin, ${prefix}/etc, ${prefix}/lib, ${prefix}/man.
164
165--bindir=DIR     (DEFAULT is ${prefix}/bin)
166     nmh's binaries (show, inc, comp, ...) are installed here.
167
168--libdir=DIR     (DEFAULT is ${prefix}/lib)
169     nmh's support binaries (post, slocal, mhl, ...) are installed here.
170
171--sysconfdir=DIR     (DEFAULT is ${prefix}/etc)
172     nmh's config files (mts.conf, mhn.defaults, ...) are installed here.
173
174--mandir=DIR     (DEFAULT is ${prefix}/man)
175     nmh's man pages are installed here.
176
177--with-mts=MTS   (DEFAULT is smtp)
178     specify the mail transport system you want to use.  The two
179     acceptable options are "smtp" (which is the default), and
180     "sendmail".
181
182     If you use "smtp", this will enable a direct SMTP (simple
183     mail transport protocol) interface in nmh.  When sending
184     mail, instead of passing the message to the mail transport
185     agent, `post' will open a socket connection to the mail
186     port on the machine specified in the `mts.conf' file
187     (default is localhost), and speak SMTP directly.
188
189     If you use "sendmail", then `post' will send messages by
190     passing forking a local copy of sendmail.  Currently it
191     will still speak SMTP with this local copy of sendmail.
192
193     If you wish to use a transport agent other than sendmail, you will
194     need to use a `sendmail wrapper'.
195
196--with-editor=EDITOR  (DEFAULT is vi)
197     specify the full path of the default editor to use.  If this
198     option is not given, then the configuration process will search
199     for the `vi' command and use it as the default.  If you wish to
200     specify an interface which is compatible with MH, then use the
201     nmh command `prompter'.  If you specify `prompter', then you don't
202     need to give the full pathname.
203
204--with-pager=PAGER    (DEFAULT is more)
205     specify the default pager (file lister) to use.  If this option
206     is not given, then the configuration process will search for the
207     command `more' and use it as the default.
208
209--enable-nmh-mhe    (DEFAULT)
210     Add support for the Emacs front-end `mhe'.
211
212--enable-nmh-pop
213    Enable client-side support for pop.
214
215--with-krb4=PREFIX
216    Specify the location of Kerberos V4 for KPOP support.  You will
217    also need to specify the option `--enable-nmh-pop'.  After running
218    configure, you will probably need to change the POPSERVICE define
219    in config.h.  See the comments inside config.h for details.
220
221--with-hesiod=PREFIX
222    Specify the location of Hesiod.
223
224--enable-nmh-debug
225    Enable debugging support.
226
227--
228Richard Coleman
229coleman@math.gatech.edu
Note: See TracBrowser for help on using the repository browser.