diff options
Diffstat (limited to 'usr.sbin/sendmail/src')
34 files changed, 3625 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/src/Makefile.386BSD b/usr.sbin/sendmail/src/Makefile.386BSD new file mode 100644 index 0000000..63d94aa --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.386BSD @@ -0,0 +1,42 @@ +# @(#)Makefile.386BSD 8.1 (Berkeley) 2/26/94 + +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 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 +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/Makefile.AIX b/usr.sbin/sendmail/src/Makefile.AIX new file mode 100644 index 0000000..5d3041d --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.AIX @@ -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 AIX 3.1.5 and 3.2.3e. +# +# @(#)Makefile.AIX 8.3 (Berkeley) 4/11/94 +# + +# 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/db + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +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= + +INSTALL=/usr/ucb/install + +################### 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 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 +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.AUX b/usr.sbin/sendmail/src/Makefile.AUX new file mode 100644 index 0000000..dc84b21 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.AUX @@ -0,0 +1,105 @@ +# +# 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.AUX 8.3 (Berkeley) 4/11/94 +# + +# 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/db + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldbm -lposix + +# 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/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/misc + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.BSD43 b/usr.sbin/sendmail/src/Makefile.BSD43 new file mode 100644 index 0000000..4177c3b --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.BSD43 @@ -0,0 +1,123 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + +# 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/db + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.BSDI b/usr.sbin/sendmail/src/Makefile.BSDI new file mode 100644 index 0000000..898de3e --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.BSDI @@ -0,0 +1,32 @@ +# @(#)Makefile.BSDI 8.1 (Berkeley) 2/26/94 + +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 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 +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/Makefile.CLIX b/usr.sbin/sendmail/src/Makefile.CLIX new file mode 100644 index 0000000..7e54e36 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.CLIX @@ -0,0 +1,115 @@ +# +# 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.1 (Berkeley) 4/12/94 +# + +# 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 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 +BINOWN= root +BINGRP= mail +BINMODE=6555 +INSTALL=cp + +ALL= sendmail # aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +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} + ${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 diff --git a/usr.sbin/sendmail/src/Makefile.ConvexOS b/usr.sbin/sendmail/src/Makefile.ConvexOS new file mode 100644 index 0000000..7bf7450 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.ConvexOS @@ -0,0 +1,105 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + + +# use O=-O (usual) or O=-g (debugging) +O= -g -tm c1 -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/db + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.DGUX b/usr.sbin/sendmail/src/Makefile.DGUX new file mode 100644 index 0000000..d7f63af --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.DGUX @@ -0,0 +1,101 @@ +# +# Tested on DG/UX 5.4.2 by A. Bryan Curnutt <bryan@Stoner.COM>. +# +# @(#)Makefile.DGUX 8.3 (Berkeley) 4/11/94 +# + +# 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=-DDGUX + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include/db + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.Dell b/usr.sbin/sendmail/src/Makefile.Dell new file mode 100644 index 0000000..39bc1e8 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Dell @@ -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). +# +# 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.3 (Berkeley) 4/11/94 +# + +# 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 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 aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +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 + +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/Makefile.DomainOS b/usr.sbin/sendmail/src/Makefile.DomainOS new file mode 100644 index 0000000..5564ecb --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.DomainOS @@ -0,0 +1,123 @@ +# +# 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.5 (Berkeley) 4/12/94 +# +# + +# 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 -ldbm +LIBS= -ldbm -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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.Dynix b/usr.sbin/sendmail/src/Makefile.Dynix new file mode 100644 index 0000000..344a9b7 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Dynix @@ -0,0 +1,113 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + +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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.FreeBSD b/usr.sbin/sendmail/src/Makefile.FreeBSD new file mode 100644 index 0000000..e86ff59 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.FreeBSD @@ -0,0 +1,50 @@ +# +# Makefile for FreeBSD +# +# @(#)Makefile.FreeBSD 8.1 (Berkeley) 2/26/94 + +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 + +# FreeBSD 1.0 RELEASE has uname(2) now. Use -DUSEUNAME in order to use it. +CFLAGS+=-I${.CURDIR} ${DBMDEF} -DMIME -DUSEUNAME + +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 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 +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/Makefile.HP-UX b/usr.sbin/sendmail/src/Makefile.HP-UX new file mode 100644 index 0000000..cebc499 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.HP-UX @@ -0,0 +1,105 @@ +# +# 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 8.07 on 7xx series. +# +# @(#)Makefile.HP-UX 8.3 (Berkeley) 4/11/94 +# + +# 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/db + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -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 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 +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.IRIX b/usr.sbin/sendmail/src/Makefile.IRIX new file mode 100644 index 0000000..30e8f1c --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.IRIX @@ -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 IRIX 4.0.4. +# +# @(#)Makefile.IRIX 8.4 (Berkeley) 4/11/94 +# +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= -DIRIX + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lmld +#LIBS= -lsun -ldb -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 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 +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.Linux b/usr.sbin/sendmail/src/Makefile.Linux new file mode 100644 index 0000000..3c8f3e5 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Linux @@ -0,0 +1,120 @@ +# +# 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. +# +# @(#)Makefile.Linux 8.7 (Berkeley) 4/11/94 +# + +# 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/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +LIBS= -lndbm + +# 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 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 +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.Mach386 b/usr.sbin/sendmail/src/Makefile.Mach386 new file mode 100644 index 0000000..eaed6ca --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Mach386 @@ -0,0 +1,107 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + +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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.NCR3000 b/usr.sbin/sendmail/src/Makefile.NCR3000 new file mode 100644 index 0000000..a556951 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.NCR3000 @@ -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). +# +# NCR 3000 support from Kevin Darcy <kevin@tech.mis.cfc.com>. +# +# @(#)Makefile.NCR3000 8.2 (Berkeley) 4/16/94 +# + +# 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/ucbinclude + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/ucblib + +# libraries required on your system +LIBS= -lsocket -lc -lelf -lucb -ldbm -lnet -lnsl + +# 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 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= 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 + +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.NeXT b/usr.sbin/sendmail/src/Makefile.NeXT new file mode 100644 index 0000000..de0dc7f --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.NeXT @@ -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 NeXT 2.1. +# +# @(#)Makefile.NeXT 8.3 (Berkeley) 4/11/94 +# + +# 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= -DNeXT -DNETINFO + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS=-L/usr/local/lib + +# 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}/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} + +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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.NetBSD b/usr.sbin/sendmail/src/Makefile.NetBSD new file mode 100644 index 0000000..ebeacd0 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.NetBSD @@ -0,0 +1,46 @@ +# +# NetBSD Makefile +# +# @(#)Makefile.NetBSD 8.1 (Berkeley) 2/26/94 +# @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 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 +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/Makefile.OSF1 b/usr.sbin/sendmail/src/Makefile.OSF1 new file mode 100644 index 0000000..c79b2bb --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.OSF1 @@ -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 OSF/1 1.3 +# +# @(#)Makefile.OSF1 8.3 (Berkeley) 4/11/94 +# + +# 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= -Olimit 1000 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include/db + +# 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 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 +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 + +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 + installbsd -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 + installbsd -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/Makefile.PTX b/usr.sbin/sendmail/src/Makefile.PTX new file mode 100644 index 0000000..f27238b --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.PTX @@ -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). +# +# For Sequent DYNIX/ptx. +# +# From Tim "Pinball Wizard" Wright <timw@sequent.com>. +# +# @(#)Makefile.PTX 8.3 (Berkeley) 4/11/94 +# + +# 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/db +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 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 +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 + +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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.RISCos b/usr.sbin/sendmail/src/Makefile.RISCos new file mode 100644 index 0000000..b4c4b36 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.RISCos @@ -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 Mips RISC/os 4.52. +# +# @(#)Makefile.RISCos 8.3 (Berkeley) 4/11/94 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# be sure we are compiling in BSD mode +CC= cc -systype bsd43 + +# 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 -Olimit 800 + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include/db + +# 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 + +################### 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 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= kmem +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: + cp /dev/null $@ + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.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 diff --git a/usr.sbin/sendmail/src/Makefile.SCO b/usr.sbin/sendmail/src/Makefile.SCO new file mode 100644 index 0000000..f1e7316 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.SCO @@ -0,0 +1,104 @@ +# +# 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.4 (Berkeley) 4/12/94 +# + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.SVR4 b/usr.sbin/sendmail/src/Makefile.SVR4 new file mode 100644 index 0000000..92de6dd --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.SVR4 @@ -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). +# +# 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.3 (Berkeley) 4/11/94 +# + +# 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 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 aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +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 + +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/Makefile.Solaris b/usr.sbin/sendmail/src/Makefile.Solaris new file mode 100644 index 0000000..cf359e6 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Solaris @@ -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). +# +# This has been tested on Solaris 2.1 and 2.2. +# +# @(#)Makefile.Solaris 8.5 (Berkeley) 4/12/94 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with gcc +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/db + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -lresolv -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 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= sys +BINMODE=6555 +INSTALL=/usr/ucb/install + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: /usr/ucbinclude/sysexits.h + ln -s /usr/ucbinclude/sysexits.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 diff --git a/usr.sbin/sendmail/src/Makefile.SunOS b/usr.sbin/sendmail/src/Makefile.SunOS new file mode 100644 index 0000000..ee3025f --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.SunOS @@ -0,0 +1,111 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + +# 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/db + +# loader options +LDOPTS= -Bstatic + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -ldbm -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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.SunOS.4.0.3 b/usr.sbin/sendmail/src/Makefile.SunOS.4.0.3 new file mode 100644 index 0000000..126ac64 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.SunOS.4.0.3 @@ -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). +# +# 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.3 8.3 (Berkeley) 4/11/94 +# + +# 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/db + +# loader options +LDOPTS= -Bstatic + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -ldbm -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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.SunOS.5.x b/usr.sbin/sendmail/src/Makefile.SunOS.5.x new file mode 100644 index 0000000..d40f9dd --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.SunOS.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). +# +# This has been tested on Solaris 2.3. +# +# @(#)Makefile.SunOS.5.x 8.5 (Berkeley) 4/12/94 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with gcc +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_2_3 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include/db + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -lresolv -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 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= sys +BINMODE=6555 +INSTALL=/usr/ucb/install + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: /usr/ucbinclude/sysexits.h + ln -s /usr/ucbinclude/sysexits.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 diff --git a/usr.sbin/sendmail/src/Makefile.Titan b/usr.sbin/sendmail/src/Makefile.Titan new file mode 100644 index 0000000..89b156a --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Titan @@ -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). +# +# @(#)Makefile.Titan 8.3 (Berkeley) 4/11/94 +# + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.ULTRIX b/usr.sbin/sendmail/src/Makefile.ULTRIX new file mode 100644 index 0000000..a3f222e --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.ULTRIX @@ -0,0 +1,107 @@ +# +# 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.3 (Berkeley) 4/11/94 +# + +# 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= -Olimit 800 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include/db + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -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}/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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.UMAX b/usr.sbin/sendmail/src/Makefile.UMAX new file mode 100644 index 0000000..c69e2b6 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.UMAX @@ -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 Encore UMAX V +# +# @(#)Makefile.UMAX 8.3 (Berkeley) 4/11/94 +# + +# 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 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= 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 + +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 diff --git a/usr.sbin/sendmail/src/Makefile.Utah b/usr.sbin/sendmail/src/Makefile.Utah new file mode 100644 index 0000000..84ee571 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.Utah @@ -0,0 +1,40 @@ +# @(#)Makefile.Utah 8.1 (Berkeley) 2/26/94 + +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 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 +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/Makefile.dist b/usr.sbin/sendmail/src/Makefile.dist new file mode 100644 index 0000000..5fab596 --- /dev/null +++ b/usr.sbin/sendmail/src/Makefile.dist @@ -0,0 +1,107 @@ +# +# 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.dist 8.12 (Berkeley) 4/11/94 +# + +# 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/sww/include/db + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -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/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/misc + +# 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 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= 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 + +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 + +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 diff --git a/usr.sbin/sendmail/src/TODO b/usr.sbin/sendmail/src/TODO new file mode 100644 index 0000000..80d35d0 --- /dev/null +++ b/usr.sbin/sendmail/src/TODO @@ -0,0 +1,287 @@ +(Version 8.22 of 3/12/94) + +Key: + X -- extension (user visible change) + B -- bug fix + S -- security fix + E -- enhancement to existing algorithm + + +X **** 8 -> 7 bit MIME conversion. + +E **** Change NoReturn to be an envelope flag. [8.7] + +X **** Add M_NOLOOPBACKCHK (k) mailer flag to turn off check of name in + HELO command. [8.8] + +X **** Merge Sun changes. [8.7] + +X **** Macro giving size of the message in bytes. + +X **** Create a "service switch" abstraction that will interface with + Sun NSS, Ultrix /etc/svc.conf, etc. This will allow you to + turn off DNS entirely, a la ``OIoff''. [8.7] + +X **** Should have new mailer flags to override LocalMailer stuff: + - M_ALIASABLE (A) -- can use as the LHS of an alias. + - M_HASPWENT (w) -- should have a /etc/passwd entry. If not found + there, implies user unknown. Also implies .forward and UDB + searching, search for |, /, and :include:, etc.). + - Actually, UDB searching and |, /, and :include: mapping should + probably be on another flag. (Cannot be 'l' for back compat + reasons.) + - Need for $@host part of triple and Return-Receipt-To: processing + should also be split apart. + [8.8] + +X **** Mailer flag to enable/disable surrounding route-addrs with + angle brackets in setsender(). UUCP cleanup scripts treat + these as file redirection. + +X **** Mailer flag to override MX lookups. + +E **** Fix parseaddr to return a dummy mailer with QBADADDR set for + all cases except null input; change calls to be more sceptical + about the return value, checking this bit instead of just + checking for == NULL. (Eric Wassenaar) [8.7] + +X **** Run time configurable locking -- e.g., compile in HASFLOCK and + HASLOCKF, and then choose at runtime between these. + +B **** Aliases with .REDIRECT fail during newaliases if the "n" flag + is given. Problem is, sometimes you want them to, sometimes + you don't. Perhaps two flavors of "error" mailer? + +B **** Calls to gethostbyname with a trailing dot fail if you are + not running DNS. + +E **** Move delivery forking from sendenvelope to sendall so that + the connection cache works between split envelopes, and to + avoid a flurry of processes should you be sending to lots of + sub-lists. + +X **** Add uucp-bang mailer that strips off any domain name from + the envelope recipient address first; this is for use in + mailer table entries. + +X **** "quote" map (inverse of dequote). Lets you turn node::user + into "node::user"@DECNET.gateway + +X **** Named rulesets. + +? **** Should $( [1.2.3.4] $) convert the address to a name? + +E **** Change collect() handling to use high level timeouts instead + of per-line timeouts -- the current mechanism is swamping + the machine with system calls. (Look at KJS code.) + +E *** Long term host status -- store host status on disk for sharing + between runs. + +X *** Extend I option to allow setting of retry and timeout values. + drl@vuse.vanderbilt.edu (David R. Linn). + +X *** Total connection cache lifespan timeout -- a way to give a + timeout on connections regardless of whether they are active + or not. For single threaded servers such as Microsoft SMTP + gateway. Douglas Anderson <dlander@afterlife.ncsc.mil>. + +X *** Mailer flag that does a "ping" equivalent -- if it fails, wait + 30 seconds and try again (for dialup PPP connections). Could + just try the connection and then immediately retry on some + kinds of failures. + +X *** Create a macro that has message size. + Peter Wemm <peter@DIALix.oz.au> + +E *** Dynamically allocate MAXNAME buffers for headers. + +E *** Dynamically allocate "line" buffer in readaliases(). + +X *** Add ability to disable Return-Receipt-To: on a privacy flag. [8.8] + +X *** Add -P to set precedence (e.g., -Pbulk). [8.8] (BCX) + +X *** Runtime option to enable/disable IDENT protocol. + +E *** Don't send ErrMsgFile to postmaster bounces. (Josh Smith, + josh@osiris.ac.hmc.edu). + +X *** Add "user" map to look up a user name via getpwnam -- so that + non-local names can be forwarded to another site. [8.8] + +E *** Have daemons that start up check the alias database for + correctness and auto-rebuild if necessary. This is to handle + the case of a system crash during an alias database rebuild. + +E *** Eliminate E qf line and e_errorqueue; use e_errorsto a la + e_receiptto. This simplifies and gives symmetry. (Eric + Wassenaar) + +X *** DECNET_RELAY support in configs. + +X *** -wN command line flag to set the width of mailq output. + (Allan Johannesen) + +E *** Move mailertable lookup after UUCP-specific class checks? + (Kimmo Suominen <kim@tac.nyc.ny.us>) + +E *** Users in more than one list with different owners get duplicate + deliveries -- maybe just assign them arbitrarily to one + envelope or the other? + +X ** Make MAXBADCOMMANDS run time configurable. + +E ** Allow mailertable entries of the form ``error:message''. + +X ** Have .forward files re-queue if the home directory isn't + accessible? On some option... + (Q.G.Campbell@newcastle.ac.uk) + +X ** Have local delivery queue if NIS is down? On some option... + (Q.G.Campbell@newcastle.ac.uk) + +E ** Have nullclient configuration resolve local names to the local + mailer and then redirect them in ruleset 5; this allows you to + redirect root differently depending on the client. It's not + clear this is really a good idea though. + +E ** Move CurHostAddr into mci struct, and make CurMCI variable + point to this, so that logging will give the correct address + instead of (0) for cached connections. Motonori Nakamura. + +X ** Allow use of a generalized network service for aliasing? + How would the protocol be defined? + James Gritton <gritton@byu.edu>. + +E ** Make "local configuration error" a temporary failure? + (add EX_CONFIG to the markfailure list) + +X ** (sigh) BSMTP. + +X ** "E" configuration line that sets environment variables. + +E ** Change listen() high-load backoff to accept and issue a 4xx + message so that it responds more quickly. + +E ** Change "/usr/tmp/dead.letter" to be based on _PATH_VARTMP. + +B ** Commas in NAME envariable cause problems (Peter Wan + <peter@cc.gatech.edu>). Merge with suggestions to use + MIME-format for 8-bit characters? + +E ** Save address information that comes back as the "additional + records" part of an MX lookup, to avoid additional name server + attempts. If there is an MX record without an additional A + record, delete it (this avoids a problem with misconfigured + DNS situations). + +X ** Allow a way to extend the $Z macro with local configuration + information. + +X ** Allow $x in -bt mode to expand macro "x". (BCX) [8.8] + +X ** Allow /address in -bt mode to expand address through ruleset 0, + aliases, etc. and display results. [8.8] + +X ** "R mailer address" in -bt mode does remotename on address. + +E ** Adjust "infinite loop in rule" code to handle entire ruleset + (Code from Michael Corrigan). + +E ** Allow :include: from command line (not SMTP) to assist in + "personal list" management -- i.e., creating lists that + cannot be EXPNed. + +X ** Database (keyed lookup) auto-rebuild. + +X ** Find a good test suite and include in the distribution. + +S ** You can use symbolic links to point into protected directories. + (AEJ) + +X ** Extend OI to allow separate settings for canonification, MX, and A + lookups. [8.8?] + +X ** Add $!x class to match any number of words not in class x. (KRE) + +X ** LOCAL_RULE_5 (Spencer Sun, spencer@phoenix.Princeton.EDU) + +X ** Add "bestmx" map -- returns "best MX host" for this address. + Allows you to do automatic detection of when you are the best + MX for a given address. [8.7?] + +X ** Some way to diddle resolver flags on a per-lookup basis, such + as a flag to the map declaration. (Rick McCarty) + - Is this really a good idea? DNSRCH can be turned off by + putting a dot at the end. AAONLY? + +X ** Extend makemap to "gather" values -- i.e., merge entries that + have the same keys. [8.8] (BCX) + +E ** Allow error messages on individual addresses in the qf file. + (BCX) + +X ** Multi-character option names. [9.1] + +X ** User database extensions for mailing lists: + list:precedence -- Precedence: value for new message + list:envelopefrom -- envelope "from" value for new message + others? [8.8] + +X ** Command line switch to set precedence (for mailing list + generation). (BCX) + +B ** Restore `T' line to eliminate X-Authentication-Warning: at + inappropriate times. (Christophe Wolfhugel) + - T could become a shorthand for Ct -- i.e., create a new + predefined class. + - Eliminate "<user> set sender to <address>" message entirely? + (this is the workaround) + +B ** Return-Path: header should have <> added if not already there. + +X ** Add heuristic to determine if other end is a sendmail; use + that to decide whether or not to honor F=I mailer flag. + [der Mouse <mouse@collatz.mcrcim.mcgill.edu>] + +X ** Automatically drop into MIME mode if you have a full name + with 8-bit characters. See envelope.c 8.19.1.1 and util.c + 8.17.1.1. From Anders Ellefsrud <anders@ifi.uio.no>. + +X ** -b? flag to read a header and show you what it will look like + after all rewriting for an indicated address. + +E ** Log $u in logsender() (for=<someaddress>). + +B ** Include SOCKADDR in MCI struct for logging (currently gives + a sockaddr of zero when printing from the cache). + +X ** Allow option to set the characters that are autoquoted in + addresses? + +X * Map that does MB/MR lookups. Rick McCarty <mccarty@io.com>. + +X * Allow $> anywhere in RHS. John Boeske <jboeske@ualberta.ca>. + +X * -V flag to print state of all (?) compilation flags. + +X * Handle Expires: header field (if still in queue). + +X * WIN/3B support (non-atomic rename, no h_addr_list, others?) + (Bruce Lilly <blilly!bruce@uu.psi.com>) + +X * Sun YBTS daemon uses -ba. [Martin Kiff <MGK@newton.npl.co.uk>] + +B * EXPN adds @domain to all mailers, including prog. Is this right? + [Bob Henry] + +B * EXPN adds @localhost instead of @$M. [Pel Emanuelsson] + +E * Change body put code to time out around individual puts. This will + make the timeout algorithm more responsive and more resilient. + Unfortunately, it's also a pain in the butt. + +X * Some way to relay unfound local users to another site. + +X * Disable all default RW sets except mailer-specific? |