	Compiling Zmailer 2.99 on Solaris 2.4 (SPARC)

According to porting experiences by  Matti Aarnio <mea@nic.funet.fi>
on 10-Nov-95


"Go to the BSD universe" (not really needed)

	Have GNU CC 2.7.0 (there are ways to use older versions, but
	2.7.0 is the most painless to use..)

	Set your PATH to be:

		PATH=/usr/ccs/bin:/usr/ucb:/opt/gnu/bin:(+ whatever you like)

	thus getting GNU CC, Sun-supplied  make,  and UCB install.
	Makes life a lot easier.  BE CAREFULL NOT TO USE GNU-Binutils
	AR, WHICH ISN'T COMPATIBLE WITH SYSTEM AR!   (well, things may
	change, and perhaps that notion was due to too long name for a
	".o" -file, which wrecked havoc..)


To let you to compile this without being super-user ALL the time,
do following:    ("/usr/local/mail" is from example config..)

	$ su
	# mkdir /usr/local/mail
	# touch /usr/local/mail/zmailer.conf
	# chown YOURID /usr/local/mail/zmailer.conf
	# ln -s /usr/local/mail/zmailer.conf /etc
	# ln -s /usr/local/mail/bin/zmailer /etc
	# exit
	$

( zmailer-2.99 changed that, but it is usefull anyway.. )

thus you can re-edit Config parameters -- change compiler, and other
such trivia -- and compile without running as super-user..

You can compile it all with command:

	$ make it all
	$ su
	# make install

The "make install" needs super-user powers, and will create all the
directories, and store most of the configurations BUT NOT ALL!
You need to manually install files   $MAILSHARE/router.cf,
$MAILSHARE/scheduler.conf, $MAILSHARE/sm.conf, and $MAILSHARE/smtpserver.conf.
See samples at   proto/utu.*


For generating fullname database, a sample utility to do it from
system /etc/passwd  GECOS data is provided as
	proto/fullnamealiasmaker.perl
(but you propably need to roll your own, this sample one processes
 /etc/passwd  user names to   user.name -> account@your.domain )


To do a re-install of BINARIES only (not touching on configs), do:

	# make install-bin


Good luck!
	22-Mar-94	Matti Aarnio	<mea@utu.fi> <mea@nic.funet.fi>
	(23-Dec-94, 25-Aug-95, 10-Nov-95 some updates)

	---------------- Config  for Solaris 2.4 ----------------

# Edit this file to reflect information specific to your installation.
# See  SiteConfig -file for things like directories, NNTP servers, ...

# ZCONFIG is the pathname of the configuration file specifying all the other
# host-dependent information needed by ZMailer programs.  This file is
# created from the Config file in the distribution (the file you are reading
# right now), and contains variable assignments in an sh-compatible format.
ZCONFIG=	/etc/zmailer.conf

# HOSTENV selects one of the files in the hostenv directory, perhaps one
# you have just created, that describes the system you are trying to compile
# this software on.  The contents of that file will be processed to produce
# include/libsupport.h and some sed commands in Config.sed to munge makefiles
# appropriately.  Valid values for HOSTENV is any unqualified filename in
# the hostenv directory (SunOS4.0, BSD4.3, IRIX3.3, Ultrix3.1, SystemVr3.2,...).
HOSTENV=	SunOS5.4

# DEFS is where you put global preprocessor definitions that aren't handled
# by the HOSTENV based configuration procedure.  Hopefully this will be empty,
# but some sample uses are:
#
#	-Du_int=uint -Du_char=unchar -Du_long=ulong
#
# for a system that doesn't define u_int u_char u_long etc in <sys/types.h>,
# or	-DMAXPATHLEN=1024	for a system that doesn't define this in
# <sys/param.h>.
# Define here  -DUSE_ALLOCA, and "-DALLOC_H=<alloc.h>", if they are available
# on some compilers (GCC for example) on the platform, but not on all, and
# thus nonexistent on  hostenv/ -file.  Remember to add possibly needed
# libraries for including the actual alloca() routine -- "-lPW" on some SVR3s
# into appropriate library lists..
DEFS=	-DSTDC_HEADERS -DHAVE_STRING_H  #-DXMEM -DMALLOC_TRACE

# MAILBOXDEFS has defines related to 'mailbox' and 'lock':
# -DBIFF         - tell biff about mail
# -DRBIFF        - tell remote comsats about mail
# -DRBIFF_ALWAYS - tell even if user has no  "~/.rbiff" file
# -DUSE_NFSMBOX  - do remote locking of mail spool files mounted via NFS
#	see  support/{nfslock,rlockd} for more about this
MAILBOXDEFS=	-DBIFF -DRBIFF -DRBIFF_ALWAYS # -DUSE_NFSMBOX

# SHELL is usually /bin/sh, but some systems may require a different
# pathname to get a working shell.  On Ultrix or other systems with a very
# old default shell, this may have to be set to /bin/sh5 or similar.
SHELL=		/bin/sh

# INSTALL is the program to do system installation.  UCB-install behaviour
# is expected..
INSTALL=	/usr/ucb/install

# SENDMAILLIB  is the location where the (classically) /usr/lib/sendmail
# is located at.  On some newer machines it is to be placed on different
# places, like  /usr/sbin/sendmail, or (why on earth!) /usr/bin/sendmail ??
SENDMAILLIB=	/usr/lib

# CC gives the command (and associated arguments) used to invoke the C
# compiler on your system.  Usually this would be the standard C compiler,
# so you won't need to define this -- leave it commented out.  However,
# a sample use is:
CC=		gcc #-traditional


# COPTS are the pervasive options to be given with all C compilations.
# The -g option is advised unless you have supreme confidence in your compiler.
COPTS=		-g -O

# CPPDEP is a command used by "mkdep" and "mklibdep" for finding out
# the includes -- gcc -MM yields only the NON-SYSTEM includes
CPPDEP= gcc -MM

# RANLIB is included to cater to machines that don't need it at all, because
# their ar(1) program has been smitten by featuritis.  Usually ranlib or true.
RANLIB=	:	# : ar does the work of ranlib under System V
