Import sendmail-8.7.3. One small but important bugfix.

I was about to apply this bugfix manually, not expecting 8.7.3 to be
released quite this quickly.. :-)
This commit is contained in:
Peter Wemm 1995-12-03 17:45:56 +00:00
parent 58162a7314
commit 3ba89ccd65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/sendmail/dist-old/; revision=12601
70 changed files with 6503 additions and 94 deletions

View file

@ -1,11 +1,30 @@
SENDMAIL RELEASE NOTES
@(#)RELEASE_NOTES 8.7.2.1 (Berkeley) 11/19/95
@(#)RELEASE_NOTES 8.7.3.1 (Berkeley) 12/3/95
This listing shows the version of the sendmail binary, the version
of the sendmail configuration files, the date of release, and a
summary of the changes in that release.
8.7.3/8.7.3 95/12/xx
Fix botch in name server timeout in RCPT code; this problem caused
two responses in SMTP, which breaks things horribly. Fix
from Gregory Neil Shapiro of WPI.
Verify that L= value on M lines cannot be negative, which could cause
negative array subscripting. Not a security problem since
this has to be in the config file, but it could have caused
core dumps. Pointed out by Bryan Costales.
Fix -d21 debug output for long macro names. Pointed out by Bryan
Costales.
PORTABILITY FIXES:
SCO doesn't have ftruncate. From Bill Aten of Computerizers.
IBM's version of arpa/nameser.h defaults to the wrong byte
order. Tweak it to work properly. Based on fixes
from Fletcher Mattox of UTexas and Betty Lee of
Stanford University.
CONFIG: add confHOSTS_FILE m4 variable to set HostsFile option.
Deficiency pointed out by Bryan Costales of ICSI.
8.7.2/8.7.2 95/11/19
REALLY fix the backslash escapes in SmtpGreetingMessage,
OperatorChars, and UnixFromLine options. They were not
@ -110,6 +129,12 @@ summary of the changes in that release.
that have the hes_getmailhost() routine. DEC Hesiod
distributions do not have this routine. Based on a patch
from Betty Lee of Stanford University.
Extensive cleanups to map open code to handle a locking race condition
in ndbm, hash, and btree format database files on some (most
non-4.4-BSD based) OS architectures. This should solve the
occassional "user unknown" problem during alias rebuilds that
has plagued me for quite some time. Based on a patch from
Thomas Dwyer III of Michigan Technological University.
PORTABILITY FIXES:
Solaris: Change location of newaliases and mailq from
/usr/ucb to /usr/bin to match Sun settings. From

View file

@ -4,7 +4,7 @@
Eric Allman <eric@CS.Berkeley.EDU>
@(#)README 8.80 (Berkeley) 11/19/95
@(#)README 8.81 (Berkeley) 12/3/95
This document describes the sendmail configuration files being used
@ -1349,28 +1349,30 @@ confMIN_FREE_BLOCKS MinFreeBlocks [100] Minimum number of free blocks on
blocks and maxsize was the maximum
message size. Use confMAX_MESSAGE_SIZE
for the second value now.)
confMAX_MESSAGE_SIZE MaxMessageSize The maximum size of messages that will
be accepted (in bytes).
confBLANK_SUB BlankSub [.] Blank (space) substitution
confMAX_MESSAGE_SIZE MaxMessageSize [infinite] The maximum size of messages
that will be accepted (in bytes).
confBLANK_SUB BlankSub [ ] Blank (space) substitution
character.
confCON_EXPENSIVE HoldExpensive [False] Avoid connecting immediately
to mailers marked expensive?
confCHECKPOINT_INTERVAL CheckpointInterval
Checkpoint queue files every N
[10] Checkpoint queue files every N
recipients.
confDELIVERY_MODE DeliveryMode [background] Default delivery mode.
confAUTO_REBUILD AutoRebuildAliases
Automatically rebuild alias
[False] Automatically rebuild alias
file if needed.
confERROR_MODE ErrorMode Error message mode.
confERROR_MESSAGE ErrorHeader Error message header/file.
confERROR_MODE ErrorMode [print] Error message mode.
confERROR_MESSAGE ErrorHeader [undefined] Error message header/file.
confSAVE_FROM_LINES SafeFromLine Save extra leading From_ lines.
confTEMP_FILE_MODE TempFileMode [0600] Temporary file mode.
confMATCH_GECOS MatchGECOS Match GECOS field.
confMAX_HOP MaxHopCount Maximum hop count.
confIGNORE_DOTS* IgnoreDots Ignore dot as terminator for incoming
confMATCH_GECOS MatchGECOS [True] Match GECOS field.
confMAX_HOP MaxHopCount [25] Maximum hop count.
confIGNORE_DOTS* IgnoreDots [False; always False in -bs or -bd mode]
Ignore dot as terminator for incoming
messages?
confBIND_OPTS ResolverOptions Default options for DNS resolver.
confBIND_OPTS ResolverOptions [undefined] Default options for DNS
resolver.
confMIME_FORMAT_ERRORS* SendMimeErrors [True] Send error messages as MIME-
encapsulated messages per RFC 1344.
confFORWARD_PATH ForwardPath [$z/.forward.$w:$z/.forward]
@ -1381,12 +1383,14 @@ confMCI_CACHE_SIZE ConnectionCacheSize
[2] Size of open connection cache.
confMCI_CACHE_TIMEOUT ConnectionCacheTimeout
[5m] Open connection cache timeout.
confUSE_ERRORS_TO* UserErrorsTo [False] Use the Errors-To: header to deliver
error messages. This should not be
necessary because of general acceptance
of the envelope/header distinction.
confUSE_ERRORS_TO* UserErrorsTo [False] Use the Errors-To: header to
deliver error messages. This should
not be necessary because of general
acceptance of the envelope/header
distinction.
confLOG_LEVEL LogLevel [9] Log level.
confME_TOO MeToo Include sender in group expansions.
confME_TOO MeToo [False] Include sender in group
expansions.
confCHECK_ALIASES CheckAliases [False] Check RHS of aliases when
running newaliases. Since this does
DNS lookups on every address, it can
@ -1395,13 +1399,14 @@ confCHECK_ALIASES CheckAliases [False] Check RHS of aliases when
confOLD_STYLE_HEADERS* OldStyleHeaders [True] Assume that headers without
special chars are old style.
confDAEMON_OPTIONS DaemonPortOptions
SMTP daemon options.
[none] SMTP daemon options.
confPRIVACY_FLAGS PrivacyOptions [authwarnings] Privacy flags.
confCOPY_ERRORS_TO PostmasterCopy Address for additional copies of all
error messages.
confQUEUE_FACTOR QueueFactor Slope of queue-only function.
confDONT_PRUNE_ROUTES DontPruneRoutes Don't prune down route-addr syntax
addresses to the minimum possible.
confCOPY_ERRORS_TO PostmasterCopy [undefined] Address for additional
copies of all error messages.
confQUEUE_FACTOR QueueFactor [600000] Slope of queue-only function.
confDONT_PRUNE_ROUTES DontPruneRoutes [False] Don't prune down route-addr
syntax addresses to the minimum
possible.
confSAFE_QUEUE* SuperSafe [True] Commit all messages to disk
before forking.
confTO_INITIAL Timeout.initial [5m] The timeout waiting for a response
@ -1470,42 +1475,47 @@ confTIME_ZONE TimeZoneSpec [USE_SYSTEM] Time zone info -- can be
or something else to force that value.
confDEF_USER_ID DefaultUser [1:1] Default user id.
confUSERDB_SPEC UserDatabaseSpec
User database specification.
confFALLBACK_MX FallbackMXhost Fallback MX host.
confTRY_NULL_MX_LIST TryNullMXList If we are the best MX for a host and
haven't made other arrangements, try
connecting to the host directly;
normally this would be a config error.
confQUEUE_LA QueueLA Load average at which queue-only
[undefined] User database specification.
confFALLBACK_MX FallbackMXhost [undefined] Fallback MX host.
confTRY_NULL_MX_LIST TryNullMXList [False] If we are the best MX for a
host and haven't made other
arrangements, try connecting to the
host directly; normally this would be
a config error.
confQUEUE_LA QueueLA [8] Load average at which queue-only
function kicks in.
confREFUSE_LA RefuseLA Load average at which incoming
confREFUSE_LA RefuseLA [12] Load average at which incoming
SMTP connections are refused.
confWORK_RECIPIENT_FACTOR
RecipientFactor Cost of each recipient.
confSEPARATE_PROC ForkEachJob Run all deliveries in a separate
RecipientFactor [30000] Cost of each recipient.
confSEPARATE_PROC ForkEachJob [False] Run all deliveries in a separate
process.
confWORK_CLASS_FACTOR ClassFactor Priority multiplier for class.
confWORK_TIME_FACTOR RetryFactor Cost of each delivery attempt.
confQUEUE_SORT_ORDER QueueSortOrder Queue sort algorithm: Priority or Host.
confMIN_QUEUE_AGE MinQueueAge The minimum amount of time a job
confWORK_CLASS_FACTOR ClassFactor [1800] Priority multiplier for class.
confWORK_TIME_FACTOR RetryFactor [90000] Cost of each delivery attempt.
confQUEUE_SORT_ORDER QueueSortOrder [Priority] Queue sort algorithm:
Priority or Host.
confMIN_QUEUE_AGE MinQueueAge [0] The minimum amount of time a job
must sit in the queue between queue
runs. This allows you to set the
queue run interval low for better
resposiveness without trying all
jobs in each run.
confDEF_CHAR_SET DefaultCharSet When converting unlabelled 8 bit
input to MIME, the character set to
use by default.
confDEF_CHAR_SET DefaultCharSet [unknown-8bit] When converting
unlabelled 8 bit input to MIME, the
character set to use by default.
confSERVICE_SWITCH_FILE ServiceSwitchFile
The file to use for the service switch
on systems that do not have a system-
defined switch.
confDIAL_DELAY DialDelay If a connection fails, wait this long
and try again. This is to allow
"dial on demand" connections to have
enough time to complete a connection.
[/etc/service.switch] The file to use
for the service switch on systems that
do not have a system-defined switch.
confHOSTS_FILE HostsFile [/etc/hosts] The file to use when doing
"file" type access of hosts names.
confDIAL_DELAY DialDelay [0s] If a connection fails, wait this
long and try again. Zero means "don't
retry". This is to allow "dial on
demand" connections to have enough time
to complete a connection.
confNO_RCPT_ACTION NoRecipientAction
What to do if there are no legal
[none] What to do if there are no legal
recipient fields (To:, Cc: or Bcc:)
in the message. Legal values can
be "none" to just leave the
@ -1518,20 +1528,20 @@ confNO_RCPT_ACTION NoRecipientAction
empty Bcc: header, or
"add-to-undisclosed" to add the header
``To: undisclosed-recipients:;''.
Default is "none".
confSAFE_FILE_ENV SafeFileEnvironment
If set, sendmail will do a chroot()
into this directory before writing
files.
confCOLON_OK_IN_ADDR ColonOkInAddr If set, colons are treated as a regular
[undefined] If set, sendmail will do a
chroot() into this directory before
writing files.
confCOLON_OK_IN_ADDR ColonOkInAddr [True unless Configuration Level > 6]
If set, colons are treated as a regular
character in addresses. If not set,
they are treated as the introducer to
the RFC 822 "group" syntax. Colons are
handled properly in route-addrs. This
option defaults on for V5 and lower
configuration files.
confMAX_QUEUE_RUN_SIZE MaxQueueRunSize If set, limit the maximum size of any
given queue run to this number of
confMAX_QUEUE_RUN_SIZE MaxQueueRunSize [0] If set, limit the maximum size of
any given queue run to this number of
entries. Essentially, this will stop
reading the queue directory after this
number of entries are reached; it does
@ -1540,10 +1550,10 @@ confMAX_QUEUE_RUN_SIZE MaxQueueRunSize If set, limit the maximum size of any
system can tolerate. If not set, there
is no limit.
confDONT_EXPAND_CNAMES DontExpandCnames
If set, $[ ... $] lookups that do DNS
based lookups do not expand CNAME
records. This currently violates the
published standards, but the IETF
[False] If set, $[ ... $] lookups that
do DNS based lookups do not expand
CNAME records. This currently violates
the published standards, but the IETF
seems to be moving toward legalizing
this. For example, if "FTP.Foo.ORG"
is a CNAME for "Cruft.Foo.ORG", then
@ -1564,15 +1574,16 @@ confSMTP_LOGIN_MSG SmtpGreetingMessage
will be inserted between the first and
second words to convince other
sendmails to try to speak ESMTP.
confDONT_INIT_GROUPS DontInitGroups If set, the initgroups(3) routine will
never be invoked. You might want to
do this if you are running NIS and you
have a large group map, since this
call does a sequential scan of the map;
in a large site this can cause your
ypserv to run essentially full time.
If you set this, agents run on behalf
of users will only have their primary
confDONT_INIT_GROUPS DontInitGroups [False] If set, the initgroups(3)
routine will never be invoked. You
might want to do this if you are
running NIS and you have a large group
map, since this call does a sequential
scan of the map; in a large site this
can cause your ypserv to run
essentially full time. If you set
this, agents run on behalf of users
will only have their primary
(/etc/passwd) group permissions.
See also the description of OSTYPE for some parameters that can be

View file

@ -34,7 +34,7 @@ divert(-1)
#
divert(0)
VERSIONID(`@(#)proto.m4 8.99 (Berkeley) 11/18/95')
VERSIONID(`@(#)proto.m4 8.100 (Berkeley) 12/3/95')
MAILER(local)dnl
@ -367,6 +367,9 @@ _OPTION(DefaultCharSet, `confDEF_CHAR_SET', iso-8859-1)
# service switch file (ignored on Solaris, Ultrix, OSF/1, others)
_OPTION(ServiceSwitchFile, `confSERVICE_SWITCH_FILE', /etc/service.switch)
# hosts file (normally /etc/hosts)
_OPTION(HostsFile, `confHOSTS_FILE', /etc/hosts)
# dialup line delay on connection failure
_OPTION(DialDelay, `confDIAL_DELAY', 10s)

View file

@ -32,8 +32,8 @@ divert(-1)
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
VERSIONID(`@(#)version.m4 8.7.2.2 (Berkeley) 11/20/95')
VERSIONID(`@(#)version.m4 8.7.3.1 (Berkeley) 12/3/95')
#
divert(0)
# Configuration version number
DZ8.7.2`'ifdef(`confCF_VERSION', `/confCF_VERSION')
DZ8.7.3`'ifdef(`confCF_VERSION', `/confCF_VERSION')

View file

@ -0,0 +1,43 @@
# @(#)Makefile.386BSD 8.3 (Berkeley) 9/13/95
PROG= sendmail
# define the database format to use for aliases et al. Can be -DNEWDB (for
# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
# database package. The old putrescent V7 DBM package is no longer
# supported.
# You can define both NEWDB and NDBM during a transition period; old
# databases are read, but the new format will be used on any rebuilds. On
# really gnarly systems, you can set this to null; it will crawl like a high
# spiral snail, but it will work.
DBMDEF= -DNEWDB
CFLAGS+=-I${.CURDIR} ${DBMDEF} -DMIME
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
DPADD=
LDADD= $(LIBUTIL)
MAN1= newaliases.0 mailq.0
MAN5= aliases.0
MAN8= sendmail.0
LINKS= /usr/sbin/sendmail /usr/bin/newaliases \
/usr/sbin/sendmail /usr/bin/mailq
INSTALL=install
BINDIR= /usr/sbin
BINOWN= root
BINGRP= kmem
BINMODE=6555
beforeinstall:
# ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
# ${DESTDIR}/etc/sendmail.fc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
.include <bsd.prog.mk>

View file

@ -0,0 +1,113 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# @(#)Makefile.A-UX 8.12 (Berkeley) 9/13/95
#
# Tested on A/UX 3.1.
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
# If you are running A/UX prior to 3.1, delete -DNEWDB
DBMDEF= -DNDBM -DNEWDB
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D_POSIX_SOURCE
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
# If you are running A/UX prior to 3.1, delete -ldb
LIBS= -ldbm -ldb -lposix -lmalloc
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do ; rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,116 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on AIX 3.1.5 and 3.2.3e.
#
# @(#)Makefile.AIX 8.10 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
# you can use -O3 on AIX 3.2.4 or greater ONLY!
O= -g
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
#
# If you did not install the NEWDB on your AIX platform, use:
#DBMDEF=-DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D_AIX3
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
# library directories
#LIBDIRS=-L/usr/sww/lib
# libraries required on your system -- add -ls if you define USEGETCONFATTR
LIBS= -ldbm -ldb
#
# If you did not install the NEWDB on your AIX platform, use:
#LIBS= -ldbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/sbin/newaliases ${DESTDIR}/usr/sbin/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= system
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,109 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Altos System V.
#
# @(#)Makefile.Altos 8.4 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF=
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DALTOS_SYS_V
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lsocket -lrpc
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,37 @@
#
# This Makefile is for BSDI boxes running BSD-OS (formerly BSD-386).
#
# @(#)Makefile.BSD-OS 8.4 (Berkeley) 9/13/95
#
PROG= sendmail
DBMDEF= -DNEWDB
CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
DPADD= ${LIBUTIL} ${LIBKVM}
LDADD= -lutil -lkvm
MAN1= mailq.0 newaliases.0
MAN5= aliases.0
MAN8= sendmail.0
LINKS= /usr/sbin/sendmail /usr/bin/newaliases \
/usr/sbin/sendmail /usr/bin/mailq
INSTALL=install
BINDIR= /usr/sbin
BINOWN= root
BINGRP= kmem
BINMODE=6555
beforeinstall:
# ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
# ${DESTDIR}/etc/sendmail.fc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
.include <bsd.prog.mk>

View file

@ -0,0 +1,128 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This is based on work from Jim Oldroyd -- I believe he was
# using a fairly old Mt Xinu port.
#
# It should also work on UMIPS-BSD from MIPS, if you still have
# any lying around.
#
# @(#)Makefile.BSD43 8.8 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DoldBSD43
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
# library directories
#LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -ldbm -lresolv -ll
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= unistd.h stddef.h stdlib.h dirent.h sys/time.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
unistd.h stddef.h stdlib.h sys/time.h:
cp /dev/null $@
sys/time.h: sys
sys:
mkdir sys
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,119 @@
#
# This makefile is for clipper-based Intergraph systems running CLIX.
# It and the defines supporting it in the source tree should be considered
# alpha-quality and used at own risk.
#
# Porting done for CICNet, Inc., on behalf the Michigan State Department
# of Natural Resources.
#
# --Paul Southworth <pauls@cic.net>
#
# @(#)Makefile.CLIX 8.5 (Berkeley) 9/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DCLIX
# see also conf.h for additional compilation flags
# include directories
INCDIRS= -I/usr/include
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lnsl -lbsd
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD= getusershell.o
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=cp
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail # aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail #install-docs
install-sendmail: sendmail
#${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
${INSTALL} sendmail ${BINDIR}
chmod ${BINMODE} ${BINDIR}/sendmail
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
#${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
# ${STDIR}/sendmail.st
${INSTALL} /dev/null ${STDIR}/sendmail.st
#${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
${INSTALL} sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail #aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,114 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- which is fine since there is no nroff under CSOS.
#
# Contributed by Scott Bolte <scott@craycos.com>.
#
# @(#)Makefile.CSOS 8.6 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
# Contact CCC for new db support. If all goes well, it should be
# available soon.
#
DBMDEF=
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
# loader options
LDOPTS=
# library directories
#LIBDIRS=-L/usr/sww/lib
# libraries required on your system
#LIBS= -ldb -ldbm
LIBS= -lnet
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=cpset
BINOWN= root
BINGRP= kmem
BINMODE=6555
SHELL= /bin/sh
ALL= sendmail
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail
install-sendmail: sendmail
${INSTALL} sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP}
${INSTALL} sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,110 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on CxOS 11.0 beta 1 and 10.x.
#
# @(#)Makefile.ConvexOS 8.9 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -g -D__STDC__ -d non_int_bit_field
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DYPCOMPAT -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
# library directories
#LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS=
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,117 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Based on a Makefile for Dell SVR4 Issue 2.2 from Kimmo Suominen
# <kim@grendel.lut.fi> -- I haven't tested this myself. It may
# work on other SVR4 ports.
#
# @(#)Makefile.Dell 8.7 (Berkeley) 9/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O2
CC= gcc
#DESTDIR=/usr/local/sendmail
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNEWDB -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D__svr4__
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -ldb -ldbm -lresolv -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,128 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on DomainOS 10.3.5
#
# @(#)Makefile.DomainOS 8.10 (Berkeley) 10/29/95
#
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNDBM -DNEWDB -DYPCOMPAT -- use both plus YP compatility
# -DNIS -- include client NIS support
# The really old (V7) DBM library is no longer supported.
# If YPCOMPAT is defined and /var/yp/Makefile exists, sendmail will build
# both the NEWDB and DBM libraries (the DBM just for YP).
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
# You might want to use the BIND 4.9 resolver library here
#LIBS= -ldb
LIBS= -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= unistd.h dirent.h
################### end of user configuration flags ######################
CFLAGS= -I. -A nansi $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
unistd.h:
cp /dev/null unistd.h
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,118 @@
#
# Tested on Dynix 3.2.0.
#
# From Jim Davis <jdavis@cs.arizona.edu>.
#
# ``There is no strtol in libc (well there is in the 'att universe'
# libc, but I couldn't figure out how to link that in), so I
# got the Chris Torek strtol.c from bsd-sources on uunet and
# compiled that. There is no native ndbm either; I couldn't
# get db 1.72 to pass it's regression test, so I used gdbm-1.7
# instead. I compiled it with gcc 1.40a. The -lseq is to pick
# up getopt.''
#
# @(#)Makefile.Dynix 8.7 (Berkeley) 9/13/95
#
CC= gcc
# use O=-O (usual) or O=-g (debugging)
O= -O -g
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lseq -lgdbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=strtol.o
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= staff # no kmem group,
BINMODE=4555 # so not setgid
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,132 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on NEC EWS-UX/V 4.2
#
# @(#)Makefile.EWS-UX_V 8.5 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# make sure that /usr/abiccs/bin/cc is used (do not use /usr/ucb/cc).
#CC= /bin/cc -KOlimit=900
CC= /usr/abiccs/bin/cc -KOlimit=900
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -Dnec_ews_svr4
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= ndbm.o -lsocket -lnsl -lelf -lresolv # -l44bsd # with NDBM
#LIBS= -lsocket -lnsl -lelf -ldb -lresolv # -l44bsd # with NEWDB
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/var/ucblib
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h ndbm.h ndbm.o
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h;
echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h;
cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h;
echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h;
# ln -s /usr/abiccs/ucbinclude/sysexits.h .
ndbm.h:
ln -s /usr/abiccs/ucbinclude/ndbm.h .
ndbm.o:
ar x /usr/abiccs/ucblib/libucb.a ndbm.o
# ar x /usr/ucblib/libucb.a ndbm.o
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,50 @@
#
# Makefile for FreeBSD
#
# @(#)Makefile.FreeBSD 8.4 (Berkeley) 9/13/95
PROG= sendmail
# define the database format to use for aliases et al. Can be -DNEWDB (for
# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
# database package. The old putrescent V7 DBM package is no longer
# supported.
# You can define both NEWDB and NDBM during a transition period; old
# databases are read, but the new format will be used on any rebuilds. On
# really gnarly systems, you can set this to null; it will crawl like a high
# spiral snail, but it will work.
DBMDEF= -DNEWDB
CFLAGS+=-I${.CURDIR} ${DBMDEF}
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
DPADD=
LDADD= $(LIBUTIL)
#
# FreeBSD 1.0 RELEASE has GNU man and doesn't need preformatted man pages anymore
# (assuming you consider a slower "man" command a feature)
#
MAN1= mailq.1 newaliases.1
MAN5= aliases.5
MAN8= sendmail.8
LINKS= /usr/sbin/sendmail /usr/bin/newaliases \
/usr/sbin/sendmail /usr/bin/mailq
INSTALL=install
BINDIR= /usr/sbin
BINOWN= root
BINGRP= kmem
BINMODE=6555
beforeinstall:
# ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
# ${DESTDIR}/etc/sendmail.fc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
.include <bsd.prog.mk>

View file

@ -0,0 +1,114 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on HP-UX 9.05 on 7xx series and HP-UX 9.04
# on 8xx series.
#
# @(#)Makefile.HP-UX 8.14 (Berkeley) 11/1/95
#
CC= cc -Aa -D_HPUX_SOURCE
# use O=-O (usual) or O=-g (debugging)
# +O is OK on 7xx, and 300xx at 9.0
O= +O1
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -lresolv if you are not running BIND 4.9.x
LIBS= -ldb -lndbm -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
cpset sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cpset /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP}
cpset sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,114 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on HP-UX 10.x. Changes for 10.0 contributed
# by John Beck of Hewlett-Packard.
#
# @(#)Makefile.HP-UX.10.x 8.8 (Berkeley) 11/1/95
#
CC= cc -Aa -D_HPUX_SOURCE
# use O=-O (usual) or O=-g (debugging)
# +O is OK on 7xx, and 300xx at 9.0
O= +O3
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DV4FS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -lresolv if you are not running BIND 4.9.x
LIBS= -ldb -lndbm -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc/mail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/share/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
cpset sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cpset /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP}
cpset sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,113 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on IRIX 4.0.4.
#
# @(#)Makefile.IRIX 8.10 (Berkeley) 9/13/95
#
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC=gcc
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB (requires -ldb)
# -DNIS -- include NIS support (requires -lsun)
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DIRIX
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lmld -lmalloc -lsun
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq
INSTALL=install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN} ${STDIR}/sendmail.st
chgrp ${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,115 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Tested on IRIX 5.3 by Kari E. Hurtta <Kari.Hurtta@fmi.fi>.
#
# @(#)Makefile.IRIX.5.x 8.7 (Berkeley) 9/26/95
#
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB (requires -ldb)
# -DNIS -- include NIS support (requires -lsun)
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
# N.B.: Include -D__BIT_TYPES_DEFINED__ if you use -DNEWDB!
#
DBMDEF= -DNDBM -DNIS
#DBMDEF= -DNDBM -DNIS -DNEWDB -D__BIT_TYPES_DEFINED__
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DIRIX5
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lmld -lmalloc -lsun
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq
INSTALL=install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN} ${STDIR}/sendmail.st
chgrp ${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,114 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on IRIX64 6.0.
# Changes from Mark R. Levinson <ml@cvdev.rochester.edu>.
#
# @(#)Makefile.IRIX64 8.4 (Berkeley) 9/13/95
#
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC=gcc
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB (requires -ldb)
# -DNIS -- include NIS support (requires -lsun)
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DIRIX64
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lelf -lmalloc
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bsd/newaliases ${DESTDIR}/usr/bsd/mailq
INSTALL=install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN} ${STDIR}/sendmail.st
chgrp ${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,108 @@
#
# Makefile for ISC (SunSoft) UNIX.
#
# Contributed by J.J. Bailey <jjb@jagware.bcc.com>
#
# @(#)Makefile.ISC 8.8 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DISC_UNIX -D_POSIX_SOURCE -D_SYSV3
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
LIBS= -lyp -lrpc -lndbm -linet -lcposix
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/spool/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,112 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on KSR OS 1.2.2. Contributed by Todd C. Miller
# <Todd.Miller@cs.colorado.edu>
#
# @(#)Makefile.KSR 8.2 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib
# libraries required on your system
# delete -lresolv if you are not running BIND 4.9.x
LIBS= -ldbm -ldb -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/adm/sendmail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/share/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${BINDIR}/newaliases ${BINDIR}/mailq
INSTALL=installbsd
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
rm -f /usr/sbin/smtpd
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h

View file

@ -0,0 +1,147 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# @(#)Makefile.LUNA 8.5 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS=
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= dirent.h stddef.h stdlib.h unistd.h limits.h time.h sys/time.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
stddef.h unistd.h limits.h:
if [ -f /usr/include/$@ ]; then \
ln -s /usr/include/$@ .; \
else \
cp /dev/null $@; \
fi
stdlib.h:
if [ -f /usr/include/stdlib.h ]; then \
ln -s /usr/include/stdlib.h .; \
else \
if [ -f /usr/include/libc.h ]; then \
ln -s /usr/include/libc.h stdlib.h; \
else \
cp /dev/null stdlib.h; \
fi; \
fi
# just for UNIOS-B
time.h:
echo "#ifndef _LOCAL_TIME_H_" > time.h
echo "#define _LOCAL_TIME_H_" >> time.h
cat /usr/include/time.h >> time.h
echo "#endif" >> time.h
sys/time.h:
-mkdir sys
echo "#ifndef _LOCAL_SYS_TIME_H_" > sys/time.h
echo "#define _LOCAL_SYS_TIME_H_" >> sys/time.h
cat /usr/include/sys/time.h >> sys/time.h
echo "#endif" >> sys/time.h
NROFF= nroff -h
aliases.0: aliases.5
${NROFF} -mandoc aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} -mandoc mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} -mandoc newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} -mandoc sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,134 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Linux 0.99p10.
#
# Linux doesn't really have standard places to install things, so this
# Makefile is likely to require a lot of customization. Read it over
# carefully before proceeding.
#
# If you don't want to install the Berkeley db package, remove -DNEWDB
# from DBMDEF and -ldb from LIBS (but please consider installing it; see
# the READ_ME file for details).
#
# This assumes libc 4.7.0 or later. If you have an earlier version of
# the library, you may need to add -lbsd to LIBS *or* add -DHASSNPRINTF=0
# to ENVDEF. If you are running libc < 4.4.4, you must use -DHASSNPRINTF=0
# (or upgrade your libc -- an even better idea!).
#
# @(#)Makefile.Linux 8.15 (Berkeley) 9/26/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
LIBS= -lgdbm -ldb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
unistd.h:
cp /dev/null unistd.h
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN} ${STDIR}/sendmail.st
chgrp ${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,112 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# @(#)Makefile.Mach386 8.7 (Berkeley) 9/13/95
#
CC= gcc
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -ldbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,113 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# NCR 3000 support from Kevin Darcy <kevin@tech.mis.cfc.com>
# and Tom Moore <tmoore@fievel.DaytonOH.NCR.COM>.
#
# @(#)Makefile.NCR3000 8.11 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DNCR3000
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/include -I/usr/ucbinclude
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/ucblib
# libraries required on your system
LIBS= -lnsl -lnet -lsocket -lelf -lc -lucb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
NROFF= /usr/ucb/nroff -h
#NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,110 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# @(#)Makefile.NEWS-OS.4.x 8.4 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -lmld
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,133 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on NEWS-OS 6.0.3
#
# @(#)Makefile.NEWS-OS.6.x 8.5 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O=
# make sure that /bin/cc is used (do not use /usr/ucb/cc).
CC= /bin/cc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
# define SYSLOG_BUFSIZE=256 if you have a problem on syslog buffer size
# define SPT_TYPE=SPT_NONE if you are using NEWS-OS 6.0.1
ENVDEF= -DSYSLOG_BUFSIZE=256 # -DSPT_TYPE=SPT_NONE
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
# -lndbm can be used instead of ndbm.o with NEWS-OS 6.1 or later
LIBS= ndbm.o -lelf -lsocket -lnsl -lresolv # -l44bsd # with NDBM
#LIBS= -lelf -lsocket -lnsl -ldb -lresolv # -l44bsd # with NEWDB
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h ndbm.o
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
ln -s /usr/ucbinclude/sysexits.h .
ndbm.o:
if [ ! -f /usr/include/ndbm.h ]; then \
ln -s /usr/ucbinclude/ndbm.h .; \
fi; \
if [ -f /usr/lib/libndbm.a ]; then \
ar x /usr/lib/libndbm.a ndbm.o; \
else \
ar x /usr/ucblib/libucb.a ndbm.o; \
fi;
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,128 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on NEXTSTEP 3.3.
#
# @(#)Makefile.NEXTSTEP 8.4 (Berkeley) 9/14/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# NEXTSTEP 3.1 and 3.2 only support m68k and i386
ARCH= -arch m68k -arch i386 -arch hppa -arch sparc
#ARCH= -arch m68k -arch i386
COPTS= -Wno-precomp -pipe
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS -DNETINFO
#DBMDEF= -DNDBM -DNEWDB -DNIS -DNETINFO
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DNeXT
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
LIBS= -ldbm
#LIBS= -ldbm -ldb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc/sendmail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= unistd.h dirent.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} ${COPTS} ${ARCH}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} ${ARCH} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
unistd.h:
cp /dev/null unistd.h
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,122 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on NeXT 2.1.
#
# @(#)Makefile.NeXT 8.10 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS -DNETINFO
#DBMDEF= -DNDBM -DNEWDB -DNIS -DNETINFO
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DNeXT
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
LIBS= -ldbm
#LIBS= -ldbm -ldb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc/sendmail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= unistd.h dirent.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} ${COPTS}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
unistd.h:
cp /dev/null unistd.h
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,47 @@
#
# NetBSD Makefile
#
# @(#)Makefile.NetBSD 8.3 (Berkeley) 9/13/95
# @Id: Makefile.NetBSD,v 1.3 1994/02/01 05:33:44 glass Exp $
#
PROG= sendmail
# define the database format to use for aliases et al. Can be -DNEWDB (for
# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
# database package. The old putrescent V7 DBM package is no longer
# supported.
# You can define both NEWDB and NDBM during a transition period; old
# databases are read, but the new format will be used on any rebuilds. On
# really gnarly systems, you can set this to null; it will crawl like a high
# spiral snail, but it will work.
DBMDEF= -DNEWDB -DNIS
#nasty warning about gcc 2.4.x caused bugs
CFLAGS=-I${.CURDIR} ${DBMDEF} -DNETISO
#CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
mci.c mime.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
MAN1= mailq.0 newaliases.0
MAN5= aliases.0
MAN8= sendmail.0
LINKS= /usr/sbin/sendmail /usr/bin/newaliases \
/usr/sbin/sendmail /usr/bin/mailq
INSTALL=install
BINDIR= /usr/sbin
BINOWN= root
BINMODE=4555
beforeinstall:
# ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
# ${DESTDIR}/etc/sendmail.fc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
.include <bsd.prog.mk>

View file

@ -0,0 +1,116 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Tandem Support from Rick McCarty <mccarty@mpd.tandem.com>.
# (I don't think this actually compiles cleanly -- I had trouble
# integrating Rick's changes. EPA 6/94)
#
# @(#)Makefile.NonStop-UX 8.6 (Berkeley) 9/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DNonStop_UX_BXX -D_SVID
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/include -I/usr/ucbinclude
# library directories
LIBDIRS=-L/usr/ucblib
# libraries required on your system
LIBS= -lresolv -lsocket -lnsl -lelf -lucb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,118 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on OSF/1 1.3
#
# @(#)Makefile.OSF1 8.9 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# native compiler requires -Olimit to optimize properly
CC= cc -Olimit 1000
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib
# libraries required on your system
# delete -lresolv if you are not running BIND 4.9.x
LIBS= -ldbm -ldb -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/adm/sendmail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/share/lib
# additional .o files needed
OBJADD=
# additional link flags
#LDADD= -non_shared
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${BINDIR}/newaliases ${BINDIR}/mailq
INSTALL=installbsd
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
rm -f /usr/sbin/smtpd
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,117 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# For Sequent DYNIX/ptx.
#
# From Tim "Pinball Wizard" Wright <timw@sequent.com>.
#
# @(#)Makefile.PTX 8.8 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -g
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
INCDIRS=
# loader options
LDOPTS=
# library directories
#LIBDIRS=-L/usr/sww/lib
LIBDIRS=
# libraries required on your system
#LIBS= -ldb -ldbm
LIBS= -lsocket -linet -lnsl -lseq
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: $& ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,114 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on OSF/1 1.3
#
# @(#)Makefile.Paragon 8.5 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib
# libraries required on your system
LIBS= -ldbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/sbin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/adm/sendmail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/share/lib
# additional .o files needed
OBJADD=
# additional link flags
#LDADD= -non_shared
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${BINDIR}/newaliases ${BINDIR}/mailq
INSTALL=installbsd
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
cp /dev/null ${STDIR}/sendmail.st
chmod 644 ${STDIR}/sendmail.st
chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
rm -f /usr/sbin/smtpd
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,122 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# For Mips RISC/os 4.52.
#
# @(#)Makefile.RISCos 8.11 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# be sure we are compiling in BSD mode
CC= cc -systype bsd43 -Olimit 900
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DRISCOS
# see also conf.h for additional compilation flags
# include directories
#INCDIRS=-I/usr/sww/include
# library directories
#LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -lmld
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= stdlib.h dirent.h unistd.h stddef.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/bsd43/bin/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
stdlib.h unistd.h stddef.h:
cp /dev/null $@
dirent.h:
echo "#include <sys/dir.h>" > dirent.h
echo "#define dirent direct" >> dirent.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,109 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on SCO.
#
# @(#)Makefile.SCO 8.8 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF=
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D_SCO_unix_
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lsocket
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,109 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Tested on SCO rel 4.2 by Marian Durkovic <marian@svf.stuba.sk>.
#
# @(#)Makefile.SCO.3.2v4.2 8.2 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF=-DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D_SCO_unix_4_2
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lsocket -lndbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,117 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Based on a Makefile for Dell SVR4 Issue 2.2 from Kimmo Suominen
# <kim@grendel.lut.fi> -- I haven't tested this myself. It may
# work on other SVR4 ports.
#
# @(#)Makefile.SVR4 8.7 (Berkeley) 9/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC= gcc
#DESTDIR=/usr/local/sendmail
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNEWDB -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D__svr4__
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -ldb -ldbm -lresolv -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,124 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any significant work on sendmail).
#
# This has been tested on Solaris 2.1 and 2.2. If you are compiling
# for Solaris 2.3, use Makefile.SunOS.5.x.
#
# @(#)Makefile.Solaris 8.15 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
# include -DSOLARIS_2_3 for version 2.3 and higher
ENVDEF= -DSOLARIS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/ucbinclude/sysexits.h ]; \
then \
ln -s /usr/ucbinclude/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,116 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on SunOS 4.1.[12].
# For SunOS 4.0.3, add -DSUNOS403 to the ENVDEF macro, and
# create empty files stdlib.h and stddef.h in your
# compile directory.
#
# @(#)Makefile.SunOS 8.9 (Berkeley) 9/30/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
# need to add -DSUNOS403 if you are on a SunOS 4.0.3 system
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS= -Bstatic
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -ldb -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,118 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any significant work on sendmail).
#
# You may find you need to find versions of some routines
# such as strcasecmp in order to link this on SunOS 4.0.3.
#
# @(#)Makefile.SunOS.4.0 8.10 (Berkeley) 9/30/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DSUNOS403
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS= -Bstatic
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -ldb -lresolv
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
BEFORE= stdlib.h stddef.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
stddef.h stdlib.h:
cp /dev/null $@
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,124 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any significant work on sendmail).
#
# This has been tested on Solaris 2.1 and 2.2. If you are compiling
# for Solaris 2.3, use Makefile.SunOS.5.x.
#
# @(#)Makefile.Solaris 8.15 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
# include -DSOLARIS_2_3 for version 2.3 and higher
ENVDEF= -DSOLARIS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/ucbinclude/sysexits.h ]; \
then \
ln -s /usr/ucbinclude/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,124 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any significant work on sendmail).
#
# This has been tested on Solaris 2.1 and 2.2. If you are compiling
# for Solaris 2.3, use Makefile.SunOS.5.x.
#
# @(#)Makefile.Solaris 8.15 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
# include -DSOLARIS_2_3 for version 2.3 and higher
ENVDEF= -DSOLARIS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/ucbinclude/sysexits.h ]; \
then \
ln -s /usr/ucbinclude/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,122 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Solaris 2.3.
#
# @(#)Makefile.SunOS.5.3 8.16 (Berkeley) 10/20/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS -DNISPLUS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DSOLARIS=203
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/ucbinclude/sysexits.h ]; \
then \
ln -s /usr/ucbinclude/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,122 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Solaris 2.4.
#
# @(#)Makefile.SunOS.5.4 8.17 (Berkeley) 10/20/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS -DNISPLUS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DSOLARIS=204
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/include/sysexits.h ]; \
then \
ln -s /usr/include/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,122 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Solaris 2.5.
#
# @(#)Makefile.SunOS.5.5 8.5 (Berkeley) 10/20/95
#
# use O=-O (usual) or O=-g (debugging)
# warning: do not use -O with versions of gcc prior to 2.6
O= -O
CC= gcc
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS -DNISPLUS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DSOLARIS=205
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
if [ -r /usr/include/sysexits.h ]; \
then \
ln -s /usr/include/sysexits.h; \
fi
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,119 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# @(#)Makefile.Titan 8.7 (Berkeley) 9/13/95
#
# put the compiler in BSD mode
CC= cc -43
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF=
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -ldbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/share/misc
# additional .o files needed
OBJADD=
# additional pseudo-sources needed
BEFORE= stddef.h stdlib.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
stddef.h stdlib.h:
cp /dev/null $@
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,117 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Ultrix 4.2A and 4.3A.
#
# @(#)Makefile.ULTRIX 8.11 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# native compiler requires -Olimit to optimize properly
CC= cc -Olimit 900
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNEWDB -DNIS
# environment definitions (e.g., -D_AIX3)
# On Ultrix 4.4 and later, you can set IDENTPROTO=1.
ENVDEF= -DIDENTPROTO=0
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
# delete -lresolv and -l44bsd if you are not running BIND 4.9.x
LIBS= -ldb -lresolv -l44bsd
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,119 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on Encore UMAX V
#
# @(#)Makefile.UMAX 8.7 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DUMAXV
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# loader options
LDOPTS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lyp -lrpc
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/log
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# things to do before compilation
BEFORE= stddef.h
stddef.h:
echo "#define _STDDEF_H" > stddef.h
chmod 444 stddef.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,117 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Should work with UNICOS 8.0. Note that you must also acquire
# gdbm, as UNICOS does not have ndbm, and I had no luck at all
# getting the Berkeley DB package to compile.
# Douglas K. Rand, University of North Dakota
# rand@aero.und.nodak.edu
#
# @(#)Makefile.UNICOS 8.4 (Berkeley) 9/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DUNICOS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
LIBS=-lgdbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/etc/mail
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc/mail
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= kmem
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,118 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# UnixWare 1.1 Makefile from John Warburton <jwarb@SACBH.com.au>.
#
# For UnixWare 2.x, use -DUNIXWARE2 in ENVDEF in place of -DUNIXWARE.
#
# @(#)Makefile.UNIX_SV.4.x.i386 8.6 (Berkeley) 9/26/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
CC= gcc
#DESTDIR=/usr/local/sendmail
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNEWDB -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D__svr4__ -DUNIXWARE
#ENVDEF= -D__svr4__ -DUNIXWARE2
# see also conf.h for additional compilation flags
# include directories
INCDIRS=
# library directories
LIBDIRS=
# libraries required on your system
LIBS= -lc -ldbm -lresolv -lsocket -lnsl -lgen -lelf
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= mail
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,129 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# This has been tested on NEC UX4800.
# Contributed by Kazuhisa Shimizu <shimizu@lang.csd.nes.nec.co.jp>.
#
# @(#)Makefile.UX4800 8.3 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# make sure that /usr/abiccs/bin/cc is used (do not use /usr/ucb/cc).
#CC= /bin/cc -KOlimit=900
CC= /usr/abiccs/bin/cc -KOlimit=900
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS # without NEWDB
#DBMDEF= -DNEWDB -DNDBM -DNIS # with NEWDB
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DHASSNPRINTF=1
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/local/include
# library directories
LIBDIRS=-L/usr/local/lib
# libraries required on your system
# delete -l44bsd if you are not running BIND 4.9.x
LIBS= -lsocket -lnsl -lelf -lresolv # -l44bsd # without NEWDB
#LIBS= -lsocket -lnsl -lelf -ldb -lresolv # -l44bsd # with NEWDB
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/var/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/var/ucblib
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE= sysexits.h ndbm.h
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=/usr/ucb/install
BINOWN= root
BINGRP= sys
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
sysexits.h:
echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h;
echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h;
cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h;
echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h;
ndbm.h:
sed 's/void/char/' /usr/abiccs/include/ndbm.h > ndbm.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,130 @@
#
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Contributed by Diego R. Lopez <drlopez@cica.es>. Based on
# Makefile.SVR4. I haven't tested this myself. It may
# work on other SVR4 ports.
#
# @(#)Makefile.UXPDS 8.2 (Berkeley) 11/13/95
#
# make sure the shell constructs below use the right shell
SHELL= /bin/sh
# use O=-O (usual) or O=-g (debugging)
O= -O
#DESTDIR=/usr/local/sendmail
# define the database mechanism used for alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
ENVDEF= -DUXPDS
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/include -I/usr/ucbinclude
# library directories
LIBDIRS=-L/usr/ucblib
# libraries required on your system
LIBS= -ldbm -lresolv -lsocket -lnsl -lelf -lucb
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/ucblib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/ucblib
# location and mode for man pages
MAN1= /usr/share/man/bsd_man/cat1
MAN4= /usr/share/man/bsd_man/cat4
MANMODE=444
# additional .o files needed
OBJADD=
# things to be made before compilation begins
BEFORE=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
BINOWN= root
BINGRP= mail
BINMODE=6555
INSTALL=/usr/ucb/install
ALL= sendmail man-pages
all: ${ALL}
man-pages: aliases.0 mailq.0 newaliases.0 sendmail.0
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
NROFF= nroff -h
aliases.0: aliases.5
${NROFF} -mandoc aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} -mandoc mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} -mandoc newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} -mandoc sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
cp aliases.0 ${MAN4}/aliases.4
chmod ${MANMODE} ${MAN4}/aliases.4
cp mailq.0 ${MAN1}/mailq.1m
chmod ${MANMODE} ${MAN1}/mailq.1m
cp newaliases.0 ${MAN1}/newaliases.1m
chmod ${MANMODE} ${MAN1}/newaliases.1m
cp sendmail.0 ${MAN1}/sendmail.1m
chmod ${MANMODE} ${MAN1}/sendmail.1m
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h

View file

@ -0,0 +1,41 @@
# @(#)Makefile.Utah 8.3 (Berkeley) 9/13/95
PROG= sendmail
# define the database format to use for aliases et al. Can be -DNEWDB (for
# the new BSD database package -- this is preferred) or -DNDBM for the NDBM
# database package. The old putrescent V7 DBM package is no longer
# supported.
# You can define both NEWDB and NDBM during a transition period; old
# databases are read, but the new format will be used on any rebuilds. On
# really gnarly systems, you can set this to null; it will crawl like a high
# spiral snail, but it will work.
DBMDEF= -DNEWDB -DNDBM -DOLD_NEWDB
CFLAGS+=-I${.CURDIR} ${DBMDEF} -Dsetpgid=setpgrp
SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \
mci.c mci.c parseaddr.c queue.c readcf.c recipient.c savemail.c \
srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c usersmtp.c \
util.c version.c
DPADD= ${LIBDBM} ${LIBCOMPAT}
LDADD=
MAN1= mailq.0 newaliases.0
MAN5= aliases.0
MAN8= sendmail.0
LINKS= ${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/newaliases \
${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/mailq
INSTALL=install
BINDIR= /usr/sbin
BINOWN= root
BINGRP= kmem
BINMODE=6555
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/sendmail.hf \
${DESTDIR}/usr/share/misc
.include <bsd.prog.mk>

View file

@ -0,0 +1,108 @@
#
# Tested on DG/UX 5.4.2 by A. Bryan Curnutt <bryan@Stoner.COM>.
# Updated for DG/UX 5.4.3 by Mark T. Robinson <mtr@ornl.gov>.
#
# @(#)Makefile.dgux 8.9 (Berkeley) 9/13/95
#
# use O=-O (usual) or O=-g (debugging)
O= -O
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
DBMDEF= -DNDBM -DNIS
# environment definitions (e.g., -D_AIX3)
# use DGUX_5_4_2 for versions prior to 5.4.3.
ENVDEF=-DDGUX
# see also conf.h for additional compilation flags
# include directories
INCDIRS=-I/usr/sww/include
# loader options
LDOPTS=
# library directories
LIBDIRS=-L/usr/sww/lib
# libraries required on your system
LIBS= -ldbm
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/bin
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/etc
# additional .o files needed
OBJADD=
################### end of user configuration flags ######################
CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
INSTALL=install
BINOWN= root
BINGRP= bin
BINMODE=6555
ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
install: install-sendmail install-docs
install-sendmail: sendmail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
${STDIR}/sendmail.st
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -0,0 +1,189 @@
# This Makefile is designed to work on the old "make" program. It does
# not use the obj subdirectory. It also does not install documentation
# automatically -- think of it as a quick start for sites that have the
# old make program (I recommend that you get and port the new make if you
# are going to be doing any signficant work on sendmail).
#
# Makefile for an Amdahl 5890 running UTS System V 2.1.5 (SVr3)
# By Janet Jackson <janet@dialix.oz.au> 1994-11-24
# This has been tested on (uname -a output) uts bsuts systemV 2.1.5 5890
#
# @(#)Makefile.uts.systemV 8.4 (Berkeley) 6/20/95
#
# Sendmail 8 on UTS requires BIND 4.9's include files and lib44bsd and
# libresolv libraries. The BIND version on UTS is much too old.
#
BINDPATH=../../../bind
# use O=-O (usual) or O=-g (debugging)
O= -g
# define the database mechanisms available for map & alias lookups:
# -DNDBM -- use new DBM
# -DNEWDB -- use new Berkeley DB
# -DNIS -- include NIS support
# The really old (V7) DBM library is no longer supported.
# See READ_ME for a description of how these flags interact.
#
# Getting NIS working on UTS is possible (I did it!) but awkward.
# And forget it unless you're behind some sort of a firewall.
#
DBMDEF= -DNIS -DNDBM
# environment definitions (e.g., -D_AIX3)
ENVDEF= -D_UTS
# see also conf.h for additional compilation flags
# include directories
# To find new BIND header files. This path assumes we are using "makesendmail".
INCDIRS=-I${BINDPATH}/include -I${BINDPATH}/compat/include
# loader options
LDOPTS=
# library directories
# To find new libresolv.a. This path assumes we are using "makesendmail".
LIBDIRS=-L${BINDPATH}/res -L${BINDPATH}/compat/lib
# libraries required on your system
LIBS= -lyp -lrpc -lresolv -l44bsd -lbsd -lsocket -la
# location of sendmail binary (usually /usr/sbin or /usr/lib)
BINDIR= ${DESTDIR}/usr/lib
# location of sendmail.st file (usually /var/log or /usr/lib)
STDIR= ${DESTDIR}/usr/lib
# location of sendmail.hf file (usually /usr/share/misc or /usr/lib)
HFDIR= ${DESTDIR}/usr/lib
# additional .o files needed
OBJADD=
# things to do before compilation
BEFORE= stddef.h
################### end of user configuration flags ######################
CFLAGS= -eft -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o \
map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \
savemail.o srvrsmtp.o stab.o stats.o sysexits.o \
trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
LINKS= ${DESTDIR}/usr/lib/newaliases ${DESTDIR}/usr/lib/mailq
BINOWN= root
BINGRP= mail
BINMODE=6555
#ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
ALL= sendmail
all: ${ALL}
sendmail: ${BEFORE} ${OBJS}
${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
stddef.h:
echo "#include <sys/types.h>" > stddef.h
#NROFF= nroff -h
NROFF= groff -Tascii
MANDOC= -mandoc
aliases.0: aliases.5
${NROFF} ${MANDOC} aliases.5 > aliases.0
mailq.0: mailq.1
${NROFF} ${MANDOC} mailq.1 > mailq.0
newaliases.0: newaliases.1
${NROFF} ${MANDOC} newaliases.1 > newaliases.0
sendmail.0: sendmail.8
${NROFF} ${MANDOC} sendmail.8 > sendmail.0
# new target to save original sendmail files before installation
save-orig:
if [ -f ${BINDIR}/sendmail.orig ]; then \
echo "Error: original already saved" 1>&2; \
exit 1; \
else \
/bin/mv ${BINDIR}/sendmail ${BINDIR}/sendmail.orig; \
for i in ${LINKS}; do \
if [ -h $$i ]; then \
/bin/mv $$i $$i.orig; \
fi; \
done; \
if [ -f ${STDIR}/sendmail.st ]; then \
/bin/mv ${STDIR}/sendmail.st ${STDIR}/sendmail.st.orig; \
fi; \
if [ -f ${HFDIR}/sendmail.hf ]; then \
/bin/mv ${HFDIR}/sendmail.hf ${HFDIR}/sendmail.hf.orig; \
fi; \
echo "Now run 'make install'." 1>&2; \
echo "(To back out, run 'make backout'.)" 1>&2; \
fi
# new target to back out, ie, put back original files
backout:
if [ ! -f ${BINDIR}/sendmail.orig ]; then \
echo "Error: original was not saved" 1>&2; \
exit 1; \
else \
/bin/mv ${BINDIR}/sendmail.orig ${BINDIR}/sendmail; \
for i in ${LINKS}; do \
if [ -h $$i.orig ]; then \
/bin/mv $$i.orig $$i; \
else \
rm -f $$i; \
fi; \
done; \
if [ -f ${STDIR}/sendmail.st.orig ]; then \
/bin/mv ${STDIR}/sendmail.st.orig ${STDIR}/sendmail.st; \
else \
rm -f ${STDIR}/sendmail.st; \
fi; \
if [ -f ${HFDIR}/sendmail.hf.orig ]; then \
/bin/mv ${HFDIR}/sendmail.hf.orig ${HFDIR}/sendmail.hf; \
else \
rm -f ${HFDIR}/sendmail.hf; \
fi; \
echo "Now back out config file change if necessary." 1>&2; \
fi
#install: install-sendmail install-docs
install: install-sendmail
install-sendmail: sendmail
if [ ! -f ${BINDIR}/sendmail.orig ]; then \
echo "Error: Original not saved yet \
(no ${BINDIR}/sendmail.orig)" 1>&2; \
exit 1; \
else \
cpset -o sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP}; \
for i in ${LINKS}; do \
rm -f $$i; \
ln ${BINDIR}/sendmail $$i; \
done; \
cpset -o /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP}; \
cpset -o sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP}; \
echo "Now install the new config file: \
go to ../../cf/cf and run ./Install-dcd-config" 1>&2; \
fi
# doesn't actually install them -- you may want to install pre-nroff versions
install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
clean:
rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
# dependencies
# gross overkill, and yet still not quite enough....
${OBJS}: sendmail.h conf.h
depend:

View file

@ -30,7 +30,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# @(#)READ_ME 8.112 (Berkeley) 11/18/95
# @(#)READ_ME 8.113 (Berkeley) 11/29/95
#
This directory contains the source files for sendmail.
@ -576,6 +576,16 @@ GCC 2.7.x problems
problems. I recommend against using -O on that architecture. This
has been seen on FreeBSD 2.0.5 RELEASE.
Configuration file location
Up to 8.6, sendmail tried to find the sendmail.cf file in the same
place as the vendors had put it, even when this was obviously
stupid. As of 8.7, sendmail ALWAYS looks for /etc/sendmail.cf.
You can get sendmail to use the stupid vendor .cf location by
adding -DUSE_VENDOR_CF_PATH during compilation, but this may break
support programs and scripts that need to find sendmail.cf. You
are STRONGLY urged to use symbolic links if you want to use the
vendor location rather than changing the location in the sendmail
binary.
SunOS 4.x (Solaris 1.x)
You may have to use -lresolv on SunOS. However, beware that
@ -1180,4 +1190,4 @@ version.c The version number and information about this
Eric Allman
(Version 8.112, last update 11/18/95 08:44:31)
(Version 8.113, last update 11/29/95 11:05:14)

View file

@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)conf.h 8.219 (Berkeley) 11/11/95
* @(#)conf.h 8.220 (Berkeley) 11/29/95
*/
/*
@ -216,6 +216,7 @@ extern void hard_syslog(int, char *, ...);
#ifdef _AIX3
# include <paths.h>
# include <sys/machine.h> /* to get byte order */
# define HASINITGROUPS 1 /* has initgroups(3) call */
# define HASUNAME 1 /* use System V uname(2) system call */
# define HASGETUSERSHELL 0 /* does not have getusershell(3) call */
@ -677,6 +678,7 @@ extern int errno;
# define SYSTEM5 1 /* include all the System V defines */
# define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */
# define HASGETUSERSHELL 0 /* does not have getusershell(3) call */
# define NOFTRUNCATE 0 /* does not have ftruncate(3) call */
# define NEEDFSYNC 1 /* needs the fsync(2) call stub */
# define FORK fork
# define MAXPATHLEN PATHSIZE

View file

@ -37,9 +37,9 @@
#ifndef lint
#ifdef DAEMON
static char sccsid[] = "@(#)daemon.c 8.118 (Berkeley) 10/8/95 (with daemon mode)";
static char sccsid[] = "@(#)daemon.c 8.119 (Berkeley) 11/29/95 (with daemon mode)";
#else
static char sccsid[] = "@(#)daemon.c 8.118 (Berkeley) 10/8/95 (without daemon mode)";
static char sccsid[] = "@(#)daemon.c 8.119 (Berkeley) 11/29/95 (without daemon mode)";
#endif
#endif /* not lint */
@ -1034,10 +1034,10 @@ myhostname(hostbuf, size)
!getcanonname(hostbuf, size, TRUE))
{
#ifdef LOG
syslog(LOG_CRIT, "My unqualifed host name (%s) unknown; sleeping for retry",
syslog(LOG_CRIT, "My unqualified host name (%s) unknown; sleeping for retry",
hostbuf);
#endif
message("My unqualifed host name (%s) unknown; sleeping for retry",
message("My unqualified host name (%s) unknown; sleeping for retry",
hostbuf);
sleep(60);
if (!getcanonname(hostbuf, size, TRUE))

View file

@ -33,7 +33,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)err.c 8.41 (Berkeley) 10/8/95";
static char sccsid[] = "@(#)err.c 8.42 (Berkeley) 11/29/95";
#endif /* not lint */
# include "sendmail.h"
@ -385,7 +385,7 @@ putoutmsg(msg, holdmsg, heldmsg)
fprintf(CurEnv->e_xfp, "%s\n", msg);
if (msgcode == '8')
msg[0] == '0';
msg[0] = '0';
/* output to channel if appropriate */
if (!Verbose && msg[0] == '0')

View file

@ -33,7 +33,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)map.c 8.107 (Berkeley) 11/20/95";
static char sccsid[] = "@(#)map.c 8.108 (Berkeley) 11/29/95";
#endif /* not lint */
#include "sendmail.h"
@ -1854,7 +1854,7 @@ nisplus_getcanonname(name, hbsize, statp)
/* ignore second entry */
if (tTd(38, 20))
printf("nisplus_getcanoname(%s), got %d entries, addtional entries ignores\n", name);
printf("nisplus_getcanoname(%s), got %d entries, all but first ignored\n", name);
}
if (tTd(38, 20))

View file

@ -33,7 +33,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)parseaddr.c 8.86 (Berkeley) 9/28/95";
static char sccsid[] = "@(#)parseaddr.c 8.87 (Berkeley) 11/29/95";
#endif /* not lint */
# include "sendmail.h"
@ -888,8 +888,8 @@ rewrite(pvp, ruleset, reclevel, e)
ap = macvalue(rp[1], e);
mlp->first = avp;
if (tTd(21, 2))
printf("rewrite: LHS $&%c => \"%s\"\n",
rp[1],
printf("rewrite: LHS $&%s => \"%s\"\n",
macname(rp[1]),
ap == NULL ? "(NULL)" : ap);
if (ap == NULL)
@ -1060,8 +1060,8 @@ rewrite(pvp, ruleset, reclevel, e)
{
*avp = macvalue(rp[1], e);
if (tTd(21, 2))
printf("rewrite: RHS $&%c => \"%s\"\n",
rp[1],
printf("rewrite: RHS $&%s => \"%s\"\n",
macname(rp[1]),
*avp == NULL ? "(NULL)" : *avp);
if (*avp != NULL)
avp++;

View file

@ -33,7 +33,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)readcf.c 8.138 (Berkeley) 11/20/95";
static char sccsid[] = "@(#)readcf.c 8.139 (Berkeley) 11/29/95";
#endif /* not lint */
# include "sendmail.h"
@ -935,6 +935,8 @@ makemailer(line)
case 'L': /* maximum line length */
m->m_linelimit = atoi(p);
if (m->m_linelimit < 0)
m->m_linelimit = 0;
break;
case 'N': /* run niceness */

View file

@ -36,9 +36,9 @@
#ifndef lint
#if USERDB
static char sccsid [] = "@(#)udb.c 8.32 (Berkeley) 11/18/95 (with USERDB)";
static char sccsid [] = "@(#)udb.c 8.33 (Berkeley) 11/29/95 (with USERDB)";
#else
static char sccsid [] = "@(#)udb.c 8.32 (Berkeley) 11/18/95 (without USERDB)";
static char sccsid [] = "@(#)udb.c 8.33 (Berkeley) 11/29/95 (without USERDB)";
#endif
#endif
@ -356,7 +356,7 @@ udbexpand(a, sendq, aliaslevel, e)
}
if (tTd(28, 2))
printf("hes_getmailhost(%s): %d\n",
a->q_user, hes_error();
a->q_user, hes_error());
continue;
}
sprintf(info.data, "%s@%s",

View file

@ -33,7 +33,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)version.c 8.7.2.2 (Berkeley) 11/20/95";
static char sccsid[] = "@(#)version.c 8.7.3.1 (Berkeley) 12/3/95";
#endif /* not lint */
char Version[] = "8.7.2";
char Version[] = "8.7.3";

View file

@ -20,6 +20,7 @@ HP-UX 9.01 OK 93.11.19 Cassidy (on 7xx series)
Solaris 2.1
Solaris 2.2 FAIL 93.07.19 Bill Wisner
Solaris 2.3 FAIL 95.11.22 Scott J. Kramer <sjk@lux.com>
OSF/1 T1.3-4 OK 93.07.19 eric (on DEC Alpha)
OSF/1 1.3 OK 94.12.10 Jeff A. Earickson (on Intel Paragon)
@ -60,6 +61,10 @@ The following are results of running t_seteuid on various architectures.
OPSYS VERSION STATUS DATE TESTER/NOTES
===== ======= ====== ==== ============
Solaris 2.3 OK 95.11.22 Scott J. Kramer <sjk@lux.com>
Solaris 2.4 OK 95.09.22 Thomas 'Mike' Michlmayr <mike@cosy.sbg.ac.at>
Linux 1.2.13 FAIL 95.11.02 Sven Neuhaus <sven@ping.de>
IRIX 5.2 OK 95.12.01 Mark Andrews <mandrews@aw.sgi.com>
IRIX 5.3 OK 95.12.01 Mark Andrews <mandrews@aw.sgi.com>