home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume36 / msend / part01 / Configuration next >
Text File  |  1993-03-22  |  5KB  |  129 lines

  1. CUSTOMIZATION AND INSTALLATION
  2.  
  3.   Be sure to properly customize "msend" by changing config.h and the
  4.   Makefile to work with your system.
  5.  
  6.  
  7.   In config.h:
  8.  
  9.   PATH DEFINITIONS
  10.  
  11.   The following paths are recommended:
  12.  
  13.         #define LOGFILE  "/usr/adm/msend.log"
  14.         #define SPOOLDIR "/usr/spool/msend"
  15.  
  16.   LOGFILE - the name of the file that all daemon error messages will be
  17.   sent to.
  18.  
  19.   SPOOLDIR - the path of the directory used to save user messages for
  20.   the "-huh" option.  It should be cleaned regularly to prevent
  21.   overfilling.  If SPOOLDIR is undefined, ~/.msendmsgs is used instead.
  22.  
  23.   OPTIONS
  24.  
  25.   SECURE_PORT - When defined msend will attempt to acquire a secure
  26.   port to make the the connect to the msend daemon.  This allows the
  27.   remote msendd to detect when someone is trying to spoof it, that is
  28.   make a message appear to come from a different user.  This method is
  29.   not fool proof, but it can cut way down on abuse.  This does not
  30.   currently work on systems the use POSIX setuid(2) semantics.  If you
  31.   meet someone from the POSIX committee, punch them in the mouth.
  32.  
  33.   ALONE - build msendd to run standalone instead of under inetd.
  34.  
  35.   The following three options can also be controlled via the command
  36.   line.  Best to just leave them defined.
  37.  
  38.   CBROADCAST - allow broadcasting from the client (outgoing broadcasts).
  39.  
  40.   DBROADCAST - allow broadcasting from the daemon (incoming broadcasts).
  41.  
  42.   ROUTING - allow routing of messages to other hosts.
  43.  
  44.   GNUREADLINE and EDIT require you to have GNU readline & history
  45.   library that is distributed with 'bash' and 'gdb.  It is worth getting.
  46.  
  47.   GNUREADLINE - make msend use the GNU readline & history library on
  48.                 the user interface.  This gives you bash/tcsh style
  49.                 input line editing.  
  50.  
  51.   EDIT - Only meaningful if GNUREADLINE is defined.  Set to ON or OFF,
  52.          EDIT determines whether input line editing is enabled or not.
  53.          OFF is safest, because readline can fail on terminals that
  54.          use 7 bits with parity.
  55.  
  56.   The remaining options are for OS dependences,  The correct ones are
  57.   automatically defined for SUNOS, AIX and IRIX.  You should only need
  58.   these if you are porting to a new system.
  59.  
  60.   USE_LOCKF - Use lockf() instead of flock().
  61.  
  62.   NEEDS_LOCK - If your system doesn't have flock() *NOR* lockf().  If
  63.                you define this it's possible that you'll get some
  64.                conflict in writing to spool files.
  65.  
  66.   NOHERROR - If your systems libraries do not contain h_errno.
  67.  
  68.   SYSVUTMP - If your system uses a SYSV style "utmp" file.
  69.  
  70.   SYSV_WAIT_STATUS - If you systems wait status is int not 'union wait'.
  71.  
  72.   SYSV_SETUID - If your system lacks seteuid(2) and setruid(2),
  73.                 but does have SYSV setuid(2) semantics.
  74.  
  75.   NO_BZERO -  If your system does not have bzero() and bcopy().  This
  76.               will use memset and mcopy instead.
  77.   In Makefile:
  78.  
  79.   READLINELIBS - if you are using the GNU readline/history package this
  80.                  should be the infomation to get that library and the
  81.                  termcap library.  If 'libreadline.a' is installed:
  82.                     'READLINELIBS = -lreadline -ltermcap'
  83.                  should work well.
  84.  
  85.   LIBS -  Any sytem libs you need.  Under SUNOS you may need
  86.           "-lresolv" if you are using DNS and have not modified the
  87.           system libraries or changed YP to use the name server.
  88.           Under IRIX on SGI's you may need "-lsun -lbsd" if you are
  89.           using NIS (YP).  For SCO UNIX-ODT you will need "-lx -lsocket".
  90.  
  91.   DESTDIR  -  Directory to install "msend" in.
  92.   DAEMONDIR - Directory to install the msend daemon in.
  93.   DAEMONNAME - What to call the daemon  (SUN likes "in.msendd"),
  94.                others like "msendd"
  95.   MANDIR - Directory to install the man page in.
  96.   MANSEC - Man section (i.e '1', 'l', or 'n').
  97.  
  98.  
  99.   PORT NUMBER
  100.  
  101.   Msend determines which port to use by first looking in /etc/services
  102.   and if it's not there, using a port number that's fixed at
  103.   compilation time.  The default port number is 56060, a number I
  104.   picked out of my head.  At some point a universal number may be
  105.   allocated, but for now use the default.
  106.  
  107. INSTALLATION
  108.  
  109.   On systems with the BSD install program 'make install' as root.  On
  110.   other systems try 'make install-sysv'.
  111.  
  112.  
  113. Initialization
  114.  
  115.   If you build msend to run normally (you did not define ALONE)
  116.   you will need to add entries to /etc/inetd.conf (/usr/etc/inetd.conf
  117.   on some systems) and /etc/servers.
  118.  
  119.   /etc/inetd.conf:
  120.     msend   stream  tcp     nowait  root    /usr/etc/in.msendd  in.msendd
  121.  
  122.   /etc/services:
  123.     msend           56060/tcp
  124.  
  125.   If your are using NIS (YP) you will need to rebuild the maps.  In
  126.   any case you need to 'kill -HUP' the inetd process.
  127.  
  128. Send bugs, fixes, and ports to 'msend-bugs@world.std.com'.
  129.