summaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail/src')
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.386BSD43
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.A-UX113
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.AIX116
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Altos109
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.BSD-OS37
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.BSD43128
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.CLIX119
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.CSOS114
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.ConvexOS110
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Dell117
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.DomainOS128
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Dynix118
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.EWS-UX_V132
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.FreeBSD50
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX114
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX.10.x114
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.IRIX113
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.IRIX.5.x115
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.IRIX64114
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.ISC108
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.KSR112
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.LUNA147
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Linux134
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Mach386112
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NCR3000113
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.4.x110
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.6.x133
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NEXTSTEP128
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NeXT122
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NetBSD47
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.NonStop-UX116
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.OSF1118
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.PTX117
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Paragon114
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.RISCos122
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SCO109
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SCO.3.2v4.2109
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SVR4117
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Solaris124
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS116
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.4.0118
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.1124
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.2124
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.3122
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.4122
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.5122
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Titan119
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.ULTRIX117
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.UMAX119
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.UNICOS117
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.UNIX_SV.4.x.i386118
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.UX4800129
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.UXPDS130
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.Utah41
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.dgux108
-rw-r--r--usr.sbin/sendmail/src/Makefiles/Makefile.uts.systemV189
-rw-r--r--usr.sbin/sendmail/src/READ_ME14
-rw-r--r--usr.sbin/sendmail/src/conf.h4
-rw-r--r--usr.sbin/sendmail/src/daemon.c8
-rw-r--r--usr.sbin/sendmail/src/err.c4
-rw-r--r--usr.sbin/sendmail/src/map.c4
-rw-r--r--usr.sbin/sendmail/src/parseaddr.c10
-rw-r--r--usr.sbin/sendmail/src/readcf.c4
-rw-r--r--usr.sbin/sendmail/src/udb.c6
-rw-r--r--usr.sbin/sendmail/src/version.c4
65 files changed, 6387 insertions, 22 deletions
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.386BSD b/usr.sbin/sendmail/src/Makefiles/Makefile.386BSD
new file mode 100644
index 000000000000..10b27919def6
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.386BSD
@@ -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>
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.A-UX b/usr.sbin/sendmail/src/Makefiles/Makefile.A-UX
new file mode 100644
index 000000000000..6a303c07a691
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.A-UX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.AIX b/usr.sbin/sendmail/src/Makefiles/Makefile.AIX
new file mode 100644
index 000000000000..2858b93a9033
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.AIX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Altos b/usr.sbin/sendmail/src/Makefiles/Makefile.Altos
new file mode 100644
index 000000000000..2b37f922e61f
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Altos
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.BSD-OS b/usr.sbin/sendmail/src/Makefiles/Makefile.BSD-OS
new file mode 100644
index 000000000000..7b79abbf2a62
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.BSD-OS
@@ -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>
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.BSD43 b/usr.sbin/sendmail/src/Makefiles/Makefile.BSD43
new file mode 100644
index 000000000000..37423c7e06fc
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.BSD43
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.CLIX b/usr.sbin/sendmail/src/Makefiles/Makefile.CLIX
new file mode 100644
index 000000000000..debb2e1767f4
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.CLIX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.CSOS b/usr.sbin/sendmail/src/Makefiles/Makefile.CSOS
new file mode 100644
index 000000000000..8cf32292ed86
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.CSOS
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.ConvexOS b/usr.sbin/sendmail/src/Makefiles/Makefile.ConvexOS
new file mode 100644
index 000000000000..e158b17c95b2
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.ConvexOS
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Dell b/usr.sbin/sendmail/src/Makefiles/Makefile.Dell
new file mode 100644
index 000000000000..ffce495d1e04
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Dell
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.DomainOS b/usr.sbin/sendmail/src/Makefiles/Makefile.DomainOS
new file mode 100644
index 000000000000..5f8417de40e3
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.DomainOS
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Dynix b/usr.sbin/sendmail/src/Makefiles/Makefile.Dynix
new file mode 100644
index 000000000000..ee5a6ce36342
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Dynix
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.EWS-UX_V b/usr.sbin/sendmail/src/Makefiles/Makefile.EWS-UX_V
new file mode 100644
index 000000000000..5eed83189723
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.EWS-UX_V
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.FreeBSD b/usr.sbin/sendmail/src/Makefiles/Makefile.FreeBSD
new file mode 100644
index 000000000000..a163f04ac4c3
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.FreeBSD
@@ -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>
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX b/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX
new file mode 100644
index 000000000000..575dae388de5
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX.10.x b/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX.10.x
new file mode 100644
index 000000000000..993efedfd092
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.HP-UX.10.x
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX
new file mode 100644
index 000000000000..2e2f3a196ff1
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX.5.x b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX.5.x
new file mode 100644
index 000000000000..cb1a7e886237
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX.5.x
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX64 b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX64
new file mode 100644
index 000000000000..1fec703a5ea5
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.IRIX64
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.ISC b/usr.sbin/sendmail/src/Makefiles/Makefile.ISC
new file mode 100644
index 000000000000..56f5131a37ec
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.ISC
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.KSR b/usr.sbin/sendmail/src/Makefiles/Makefile.KSR
new file mode 100644
index 000000000000..c5995874f241
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.KSR
@@ -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
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.LUNA b/usr.sbin/sendmail/src/Makefiles/Makefile.LUNA
new file mode 100644
index 000000000000..29b2d58b0ce6
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.LUNA
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Linux b/usr.sbin/sendmail/src/Makefiles/Makefile.Linux
new file mode 100644
index 000000000000..dc74ca81e01f
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Linux
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Mach386 b/usr.sbin/sendmail/src/Makefiles/Makefile.Mach386
new file mode 100644
index 000000000000..b72826fb1d77
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Mach386
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NCR3000 b/usr.sbin/sendmail/src/Makefiles/Makefile.NCR3000
new file mode 100644
index 000000000000..894407b363f7
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NCR3000
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.4.x b/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.4.x
new file mode 100644
index 000000000000..3add6acd22e7
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.4.x
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.6.x b/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.6.x
new file mode 100644
index 000000000000..3bdd6a095d32
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NEWS-OS.6.x
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NEXTSTEP b/usr.sbin/sendmail/src/Makefiles/Makefile.NEXTSTEP
new file mode 100644
index 000000000000..492cba18a682
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NEXTSTEP
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NeXT b/usr.sbin/sendmail/src/Makefiles/Makefile.NeXT
new file mode 100644
index 000000000000..5e3fa5f281fa
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NeXT
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NetBSD b/usr.sbin/sendmail/src/Makefiles/Makefile.NetBSD
new file mode 100644
index 000000000000..9a6f36f2d82c
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NetBSD
@@ -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>
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.NonStop-UX b/usr.sbin/sendmail/src/Makefiles/Makefile.NonStop-UX
new file mode 100644
index 000000000000..acb82156453b
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.NonStop-UX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.OSF1 b/usr.sbin/sendmail/src/Makefiles/Makefile.OSF1
new file mode 100644
index 000000000000..de556d6d69ee
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.OSF1
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.PTX b/usr.sbin/sendmail/src/Makefiles/Makefile.PTX
new file mode 100644
index 000000000000..2a6ffce153d4
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.PTX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Paragon b/usr.sbin/sendmail/src/Makefiles/Makefile.Paragon
new file mode 100644
index 000000000000..d58119b72b18
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Paragon
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.RISCos b/usr.sbin/sendmail/src/Makefiles/Makefile.RISCos
new file mode 100644
index 000000000000..bbb507d1583f
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.RISCos
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SCO b/usr.sbin/sendmail/src/Makefiles/Makefile.SCO
new file mode 100644
index 000000000000..c6ffaaf94f1d
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SCO
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SCO.3.2v4.2 b/usr.sbin/sendmail/src/Makefiles/Makefile.SCO.3.2v4.2
new file mode 100644
index 000000000000..33289f62470b
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SCO.3.2v4.2
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SVR4 b/usr.sbin/sendmail/src/Makefiles/Makefile.SVR4
new file mode 100644
index 000000000000..a6da0ba760ff
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SVR4
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Solaris b/usr.sbin/sendmail/src/Makefiles/Makefile.Solaris
new file mode 100644
index 000000000000..ccdffc5a19bd
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Solaris
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS
new file mode 100644
index 000000000000..61bb3d64e961
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.4.0 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.4.0
new file mode 100644
index 000000000000..083ac3aa2e31
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.4.0
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.1 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.1
new file mode 100644
index 000000000000..ccdffc5a19bd
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.1
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.2 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.2
new file mode 100644
index 000000000000..ccdffc5a19bd
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.2
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.3 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.3
new file mode 100644
index 000000000000..125502c4dd31
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.3
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.4 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.4
new file mode 100644
index 000000000000..272505a1ac35
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.4
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.5 b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.5
new file mode 100644
index 000000000000..67a47c890e89
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.SunOS.5.5
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Titan b/usr.sbin/sendmail/src/Makefiles/Makefile.Titan
new file mode 100644
index 000000000000..2419929b540d
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Titan
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.ULTRIX b/usr.sbin/sendmail/src/Makefiles/Makefile.ULTRIX
new file mode 100644
index 000000000000..0f3cd1d11750
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.ULTRIX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.UMAX b/usr.sbin/sendmail/src/Makefiles/Makefile.UMAX
new file mode 100644
index 000000000000..f37c058f08ef
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.UMAX
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.UNICOS b/usr.sbin/sendmail/src/Makefiles/Makefile.UNICOS
new file mode 100644
index 000000000000..f68e2857a0dd
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.UNICOS
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.UNIX_SV.4.x.i386 b/usr.sbin/sendmail/src/Makefiles/Makefile.UNIX_SV.4.x.i386
new file mode 100644
index 000000000000..598bbc04c0c7
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.UNIX_SV.4.x.i386
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.UX4800 b/usr.sbin/sendmail/src/Makefiles/Makefile.UX4800
new file mode 100644
index 000000000000..5ea295754c85
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.UX4800
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.UXPDS b/usr.sbin/sendmail/src/Makefiles/Makefile.UXPDS
new file mode 100644
index 000000000000..d4bfba47a38b
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.UXPDS
@@ -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
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.Utah b/usr.sbin/sendmail/src/Makefiles/Makefile.Utah
new file mode 100644
index 000000000000..c5232b76cedb
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.Utah
@@ -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>
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.dgux b/usr.sbin/sendmail/src/Makefiles/Makefile.dgux
new file mode 100644
index 000000000000..a84aadfff393
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.dgux
@@ -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:
diff --git a/usr.sbin/sendmail/src/Makefiles/Makefile.uts.systemV b/usr.sbin/sendmail/src/Makefiles/Makefile.uts.systemV
new file mode 100644
index 000000000000..df843fbc8316
--- /dev/null
+++ b/usr.sbin/sendmail/src/Makefiles/Makefile.uts.systemV
@@ -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:
diff --git a/usr.sbin/sendmail/src/READ_ME b/usr.sbin/sendmail/src/READ_ME
index 82889ff53389..264b2ebaac99 100644
--- a/usr.sbin/sendmail/src/READ_ME
+++ b/usr.sbin/sendmail/src/READ_ME
@@ -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)
diff --git a/usr.sbin/sendmail/src/conf.h b/usr.sbin/sendmail/src/conf.h
index 30bb9d1e2e6b..9ac4d8f34275 100644
--- a/usr.sbin/sendmail/src/conf.h
+++ b/usr.sbin/sendmail/src/conf.h
@@ -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
diff --git a/usr.sbin/sendmail/src/daemon.c b/usr.sbin/sendmail/src/daemon.c
index c2f5327b1e34..4bb9a99e4e4c 100644
--- a/usr.sbin/sendmail/src/daemon.c
+++ b/usr.sbin/sendmail/src/daemon.c
@@ -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))
diff --git a/usr.sbin/sendmail/src/err.c b/usr.sbin/sendmail/src/err.c
index 6acb8fbeed27..241a4865c8a2 100644
--- a/usr.sbin/sendmail/src/err.c
+++ b/usr.sbin/sendmail/src/err.c
@@ -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')
diff --git a/usr.sbin/sendmail/src/map.c b/usr.sbin/sendmail/src/map.c
index b8ea903fb3de..23060d07e6e9 100644
--- a/usr.sbin/sendmail/src/map.c
+++ b/usr.sbin/sendmail/src/map.c
@@ -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))
diff --git a/usr.sbin/sendmail/src/parseaddr.c b/usr.sbin/sendmail/src/parseaddr.c
index e8bda9c4be58..f1bd16a219ea 100644
--- a/usr.sbin/sendmail/src/parseaddr.c
+++ b/usr.sbin/sendmail/src/parseaddr.c
@@ -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++;
diff --git a/usr.sbin/sendmail/src/readcf.c b/usr.sbin/sendmail/src/readcf.c
index c98d82c5054f..e7528655ae49 100644
--- a/usr.sbin/sendmail/src/readcf.c
+++ b/usr.sbin/sendmail/src/readcf.c
@@ -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 */
diff --git a/usr.sbin/sendmail/src/udb.c b/usr.sbin/sendmail/src/udb.c
index d2b60fc19196..1bcf68c3424b 100644
--- a/usr.sbin/sendmail/src/udb.c
+++ b/usr.sbin/sendmail/src/udb.c
@@ -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",
diff --git a/usr.sbin/sendmail/src/version.c b/usr.sbin/sendmail/src/version.c
index 2d51c38c826f..644f1a276f43 100644
--- a/usr.sbin/sendmail/src/version.c
+++ b/usr.sbin/sendmail/src/version.c
@@ -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";