diff options
Diffstat (limited to 'src/Makefiles')
72 files changed, 8353 insertions, 0 deletions
diff --git a/src/Makefiles/Makefile.386BSD b/src/Makefiles/Makefile.386BSD new file mode 100644 index 0000000..4eb18ff --- /dev/null +++ b/src/Makefiles/Makefile.386BSD @@ -0,0 +1,45 @@ +# @(#)Makefile.386BSD 8.6 (Berkeley) 8/7/97 + +PROG= sendmail + +# define the database format to use for aliases et al. Can be -DNEWDB (for +# the new BSD database package -- this is preferred) or -DNDBM for the NDBM +# database package. The old putrescent V7 DBM package is no longer +# supported. +# You can define both NEWDB and NDBM during a transition period; old +# databases are read, but the new format will be used on any rebuilds. On +# really gnarly systems, you can set this to null; it will crawl like a high +# spiral snail, but it will work. +DBMDEF= -DNEWDB + +CFLAGS+=-I${.CURDIR} ${DBMDEF} -DMIME + +SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ + deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ + mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.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 \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +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/src/Makefiles/Makefile.A-UX b/src/Makefiles/Makefile.A-UX new file mode 100644 index 0000000..69f75e7 --- /dev/null +++ b/src/Makefiles/Makefile.A-UX @@ -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). +# +# @(#)Makefile.A-UX 8.16 (Berkeley) 8/7/97 +# +# Tested on A/UX 3.1.1. +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# If you are running A/UX prior to 3.1, delete -DNEWDB +DBMDEF= -DNDBM -DNEWDB + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D_POSIX_SOURCE + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# loader options +LDOPTS= + +# library directories +LIBDIRS= + +# libraries required on your system +# If you are running A/UX prior to 3.1, delete -ldb +# It may be necessary to change -lUTIL to -lmalloc on older versions +LIBS= -ldbm -ldb -lposix -lUTIL + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do ; rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.AIX b/src/Makefiles/Makefile.AIX new file mode 100644 index 0000000..b5fabce --- /dev/null +++ b/src/Makefiles/Makefile.AIX @@ -0,0 +1,117 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on AIX 3.1.5 and 3.2.3e. +# +# @(#)Makefile.AIX 8.13 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# you can use -O3 on AIX 3.2.4 or greater ONLY! +O= -g + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS +# +# If you did not install the NEWDB on your AIX platform, use: +#DBMDEF=-DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D_AIX3 + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system -- add -ls if you define USEGETCONFATTR +LIBS= -ldbm -ldb +# +# If you did not install the NEWDB on your AIX platform, use: +#LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/sbin/hoststat ${DESTDIR}/usr/sbin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= system +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.AIX.2 b/src/Makefiles/Makefile.AIX.2 new file mode 100644 index 0000000..047ebb1 --- /dev/null +++ b/src/Makefiles/Makefile.AIX.2 @@ -0,0 +1,122 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on AIX/RT V2.2.1 OPSYS level 1773 +# +# @(#)Makefile.AIX.2 8.5 (Berkeley) 8/7/97 +# + +SMROOT= /usr/local/newmail + +# use O=-O (usual) or O=-g (debugging) +O= -g + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM (or GNU dbm) +# -DNEWDB -- use new Berkeley DB (recommended) +# -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 -DNIS +# +# If you did not install the NEWDB on your AIX/RT V2 platform, get the latest +# GNU dbm, and use: +#DBMDEF=-DNDBM + +# environment definitions (drag in BSD compatibility) +ENVDEF= -DBSD -DBSD_INCLUDES -DBSD_REMAP_SIGNAL_TO_SIGVEC \ + -D_PATH_SENDMAILCF=\"${SMROOT}/sendmail.cf\" \ + -D_PATH_SENDMAILPID=\"${SMROOT}/sendmail.pid\" + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/u/markw/src/db.1.85/PORT/aixrt/include -I/u/markw/src/db.1.85/PORT/aixrt -I/fs/work/src/bind/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system -- +# This port uses the AIX/RT BSD compatibility library -lbsd, +# Add to this the location of either the NEWDB package library, or +# the GNU DBM library. the system supplied DBM utilities are ANCIENT. +# +LIBS= -lbsd /u/markw/src/db.1.85/PORT/aixrt/libdb.a /usr/local/lib/libgldavg.a /fs/work/src/bind/res/libresolv.a + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${SMROOT}/bin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${SMROOT} + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${SMROOT} + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.o savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ + trace.o udb.o usersmtp.o util.o version.o ${OBJADD} + +LINKS= newaliases mailq hoststat purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= system +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -Tlp +#NROFF= nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.AIX.4 b/src/Makefiles/Makefile.AIX.4 new file mode 100644 index 0000000..be3cfa4 --- /dev/null +++ b/src/Makefiles/Makefile.AIX.4 @@ -0,0 +1,117 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on AIX 3.1.5 and 3.2.3e. +# +# @(#)Makefile.AIX 8.11 (Berkeley) 9/20/96 +# + +# use O=-O (usual) or O=-g (debugging) +# you can use -O3 on AIX 3.2.4 or greater ONLY! +O= -O3 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS +# +# If you did not install the NEWDB on your AIX platform, use: +#DBMDEF=-DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D_AIX4 + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system -- add -ls if you define USEGETCONFATTR +LIBS= -ldbm -ldb +# +# If you did not install the NEWDB on your AIX platform, use: +#LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/sbin/hoststat ${DESTDIR}/usr/sbin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= system +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Altos b/src/Makefiles/Makefile.Altos new file mode 100644 index 0000000..04a344c --- /dev/null +++ b/src/Makefiles/Makefile.Altos @@ -0,0 +1,122 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Altos System V. +# +# @(#)Makefile.Altos 8.8 (Berkeley) 3/28/97 +# + +# The Altos System V compiler does not understand ANSI +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= + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DALTOS_SYSTEM_V + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lsocket -lrpc + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=cp +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + -mv ${BINDIR}/sendmail ${BINDIR}/sendmail.old + ${INSTALL} sendmail ${BINDIR} + chown ${BINOWN} ${BINDIR}/sendmail + chgrp ${BINGRP} ${BINDIR}/sendmail + chmod ${BINMODE} ${BINDIR}/sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} /dev/null ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + ${INSTALL} sendmail.hf ${HFDIR} + chown ${BINOWN} ${HFDIR}/sendmail.hf + chgrp ${BINGRP} ${HFDIR}/sendmail.hf + chmod 444 ${HFDIR}/sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.BSD-OS b/src/Makefiles/Makefile.BSD-OS new file mode 100644 index 0000000..deb9a1b --- /dev/null +++ b/src/Makefiles/Makefile.BSD-OS @@ -0,0 +1,39 @@ +# +# This Makefile is for BSDI boxes running BSD-OS (formerly BSD-386). +# +# @(#)Makefile.BSD-OS 8.7 (Berkeley) 8/7/97 +# + +PROG= sendmail +DBMDEF= -DNEWDB +CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO + +SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ + deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ + mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.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 \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +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/src/Makefiles/Makefile.BSD43 b/src/Makefiles/Makefile.BSD43 new file mode 100644 index 0000000..9cb506f --- /dev/null +++ b/src/Makefiles/Makefile.BSD43 @@ -0,0 +1,129 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This 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.11 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DoldBSD43 + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldbm -lresolv -ll + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= unistd.h stddef.h stdlib.h dirent.h sys/time.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h stddef.h stdlib.h sys/time.h: + cp /dev/null $@ + +sys/time.h: sys + +sys: + mkdir sys + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.CLIX b/src/Makefiles/Makefile.CLIX new file mode 100644 index 0000000..521490f --- /dev/null +++ b/src/Makefiles/Makefile.CLIX @@ -0,0 +1,120 @@ +# +# 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.9 (Berkeley) 8/7/97 +# + +# 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= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=cp +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail # aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail #install-docs + +install-sendmail: sendmail + #${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + ${INSTALL} sendmail ${BINDIR} + chmod ${BINMODE} ${BINDIR}/sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + #${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + # ${STDIR}/sendmail.st + ${INSTALL} /dev/null ${STDIR}/sendmail.st + #${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + ${INSTALL} sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail #aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.CSOS b/src/Makefiles/Makefile.CSOS new file mode 100644 index 0000000..6d6baf4 --- /dev/null +++ b/src/Makefiles/Makefile.CSOS @@ -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 -- which is fine since there is no nroff under CSOS. +# +# Contributed by Scott Bolte <scott@craycos.com>. +# +# @(#)Makefile.CSOS 8.9 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +# Contact CCC for new db support. If all goes well, it should be +# available soon. +# +DBMDEF= + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +#LIBS= -ldb -ldbm +LIBS= -lnet + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=cpset +BINOWN= root +BINGRP= kmem +BINMODE=4555 +SHELL= /bin/sh + +ALL= sendmail + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail + +install-sendmail: sendmail + ${INSTALL} sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP} + ${INSTALL} sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.ConvexOS b/src/Makefiles/Makefile.ConvexOS new file mode 100644 index 0000000..f4a814f --- /dev/null +++ b/src/Makefiles/Makefile.ConvexOS @@ -0,0 +1,116 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on CxOS 11.0 beta 1 and 10.x. +# +# @(#)Makefile.ConvexOS 8.14 (Berkeley) 8/7/97 +# + + +# use O=-O (usual) or O=-g (debugging) +O= -g -D__STDC__ -d non_int_bit_field + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DYPCOMPAT -DNIS + +# environment definitions (e.g., -D_AIX3) +# -D_ACL and -D_AUDIT are needed for SecureWare/SecureOS on ConvexOS +#ENVDEF=-D_ACL -D_AUDIT -DSECUREWARE +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# -lshare is for the Fair Share Scheduler +# -lprot is for the SecureWare hooks +#LIBS= -lshare -lprot +LIBS= -lshare + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Dell b/src/Makefiles/Makefile.Dell new file mode 100644 index 0000000..06f31e3 --- /dev/null +++ b/src/Makefiles/Makefile.Dell @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# 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.10 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O2 + +CC= gcc +#DESTDIR=/usr/local/sendmail + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNEWDB -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -ldb -ldbm -lresolv -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.DomainOS b/src/Makefiles/Makefile.DomainOS new file mode 100644 index 0000000..f46682c --- /dev/null +++ b/src/Makefiles/Makefile.DomainOS @@ -0,0 +1,129 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on DomainOS 10.3.5 +# +# @(#)Makefile.DomainOS 8.13 (Berkeley) 8/7/97 +# +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNDBM -DNEWDB -DYPCOMPAT -- use both plus YP compatility +# -DNIS -- include client NIS support +# The really old (V7) DBM library is no longer supported. +# If YPCOMPAT is defined and /var/yp/Makefile exists, sendmail will build +# both the NEWDB and DBM libraries (the DBM just for YP). +# + +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# loader options +LDOPTS= + +# library directories +LIBDIRS= + +# libraries required on your system +# You might want to use the BIND 4.9 resolver library here +#LIBS= -ldb +LIBS= -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= unistd.h dirent.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. -A nansi $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h: + cp /dev/null unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Dynix b/src/Makefiles/Makefile.Dynix new file mode 100644 index 0000000..63c454a --- /dev/null +++ b/src/Makefiles/Makefile.Dynix @@ -0,0 +1,119 @@ +# +# 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.10 (Berkeley) 7/6/97 +# + +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= + +# 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 + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD=strtol.o + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= staff # no kmem group, +BINMODE=4555 # so not setgid + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.EWS-UX_V b/src/Makefiles/Makefile.EWS-UX_V new file mode 100644 index 0000000..e97d2be --- /dev/null +++ b/src/Makefiles/Makefile.EWS-UX_V @@ -0,0 +1,133 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on NEC EWS-UX/V 4.2 +# +# @(#)Makefile.EWS-UX_V 8.8 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# make sure that /usr/abiccs/bin/cc is used (do not use /usr/ucb/cc). +#CC= /bin/cc -KOlimit=900 +CC= /usr/abiccs/bin/cc -KOlimit=900 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -Dnec_ews_svr4 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= ndbm.o -lsocket -lnsl -lelf -lresolv # -l44bsd # with NDBM +#LIBS= -lsocket -lnsl -lelf -ldb -lresolv # -l44bsd # with NEWDB + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/var/ucblib + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h ndbm.h ndbm.o + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h; + echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h; + cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h; + echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h; +# ln -s /usr/abiccs/ucbinclude/sysexits.h . + +ndbm.h: + ln -s /usr/abiccs/ucbinclude/ndbm.h . + +ndbm.o: + ar x /usr/abiccs/ucblib/libucb.a ndbm.o +# ar x /usr/ucblib/libucb.a ndbm.o + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.FreeBSD b/src/Makefiles/Makefile.FreeBSD new file mode 100644 index 0000000..f3ae29a --- /dev/null +++ b/src/Makefiles/Makefile.FreeBSD @@ -0,0 +1,52 @@ +# +# Makefile for FreeBSD +# +# @(#)Makefile.FreeBSD 8.8 (Berkeley) 8/7/97 + +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 + +CFLAGS+=-I${.CURDIR} ${DBMDEF} + +SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ + deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ + mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.c \ + savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c \ + usersmtp.c util.c version.c +DPADD= ${LIBUTIL} +LDADD= -lutil +# +# 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 \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +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/src/Makefiles/Makefile.HP-UX b/src/Makefiles/Makefile.HP-UX new file mode 100644 index 0000000..5745386 --- /dev/null +++ b/src/Makefiles/Makefile.HP-UX @@ -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 HP-UX 9.05 on 7xx series and HP-UX 9.04 +# on 8xx series. +# +# @(#)Makefile.HP-UX 8.17 (Berkeley) 8/7/97 +# + +CC= cc -Aa -D_HPUX_SOURCE + +# use O=-O (usual) or O=-g (debugging) +# +O is OK on 7xx, and 300xx at 9.0 +O= +O1 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldb -lndbm -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + cpset sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cpset /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP} + cpset sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.HP-UX.10.x b/src/Makefiles/Makefile.HP-UX.10.x new file mode 100644 index 0000000..87b8f3a --- /dev/null +++ b/src/Makefiles/Makefile.HP-UX.10.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 HP-UX 10.x. Changes for 10.0 contributed +# by John Beck of Hewlett-Packard. +# +# @(#)Makefile.HP-UX.10.x 8.11 (Berkeley) 8/7/97 +# + +CC= cc -Aa -D_HPUX_SOURCE + +# use O=-O (usual) or O=-g (debugging) +# +O is OK on 7xx, and 300xx at 9.0 +O= +O3 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DV4FS + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldb -lndbm -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/lib + +# additional .o files needed +OBJADD= + + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + cpset sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cpset /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP} + cpset sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX b/src/Makefiles/Makefile.IRIX new file mode 100644 index 0000000..4235f02 --- /dev/null +++ b/src/Makefiles/Makefile.IRIX @@ -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 IRIX 4.0.4. +# +# @(#)Makefile.IRIX 8.15 (Berkeley) 8/7/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -DNIS -- include NIS support (requires -lsun) +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DIRIX + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +# If running bind-4.9.5, you may need to remove -lsun +LIBS= -lmld -lmalloc -lsun + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX.5.x b/src/Makefiles/Makefile.IRIX.5.x new file mode 100644 index 0000000..76b25b6 --- /dev/null +++ b/src/Makefiles/Makefile.IRIX.5.x @@ -0,0 +1,112 @@ +# +# This Makefile is designed to work on the old "make" program. +# +# Tested on IRIX 5.3 by Kari E. Hurtta <Kari.Hurtta@fmi.fi>. +# +# @(#)Makefile.IRIX.5.x 8.11 (Berkeley) 3/28/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -DNIS -- include NIS support (requires -lsun) +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +# N.B.: Include -D__BIT_TYPES_DEFINED__ if you use -DNEWDB! +# +DBMDEF= -DNDBM -DNIS +#DBMDEF= -DNDBM -DNIS -DNEWDB -D__BIT_TYPES_DEFINED__ + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DIRIX5 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lmld -lmalloc + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX.6.x b/src/Makefiles/Makefile.IRIX.6.x new file mode 100644 index 0000000..ed09ab0 --- /dev/null +++ b/src/Makefiles/Makefile.IRIX.6.x @@ -0,0 +1,134 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# IRIX 6.2 is successor of IRIX 5.3. It combines 64bit IRIX 6.[01] and +# 32bit IRIX 5.x. +# +# IRIX 6.2 support provided by Kari Hurtta <Kari.Hurtta@dionysos.fmi.fi>. +# +# @(#)Makefile.IRIX.6.x 8.5 (Berkeley) 4/7/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# Select what ABI we are using -- see abi(5) for details +# -32 ~ IRIX 5.3 (default: -mips2) +# - long and pointer are 32 bit +# -n32 New to IRIX 6.2 (default: -mips3) +# - long and pointer are 32 bit +# -64 ~ IRIX 6.1 (default: -mips4) +# - long and pointer are 64 bit +# We force ABI here, so then it does not depend on CPU +ABI= -n32 + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -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. +# +# N.B.: Include -D__BIT_TYPES_DEFINED__ if you use -DNEWDB! +# +DBMDEF= -DNDBM -DNIS +#DBMDEF= -DNDBM -DNIS -DNEWDB -D__BIT_TYPES_DEFINED__ + +# environment definitions (e.g., -D_AIX3) +# -DIRIX6 is needed, if you use ABI=-32 +# (or conf.h can't make difference between IRIX 5.3 and IRIX 6.2) +ENVDEF= -DIRIX6 ${ABI} + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lelf + +# loader options +LDOPTS= ${ABI} + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX64.6.0 b/src/Makefiles/Makefile.IRIX64.6.0 new file mode 100644 index 0000000..4d405ab --- /dev/null +++ b/src/Makefiles/Makefile.IRIX64.6.0 @@ -0,0 +1,114 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on IRIX64 6.0. +# Changes from Mark R. Levinson <ml@cvdev.rochester.edu>. +# +# @(#)Makefile.IRIX64.6.0 8.8 (Berkeley) 8/7/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -DNIS -- include NIS support (requires -lsun) +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DIRIX64 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lelf -lmalloc + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX64.6.1 b/src/Makefiles/Makefile.IRIX64.6.1 new file mode 100644 index 0000000..4d405ab --- /dev/null +++ b/src/Makefiles/Makefile.IRIX64.6.1 @@ -0,0 +1,114 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on IRIX64 6.0. +# Changes from Mark R. Levinson <ml@cvdev.rochester.edu>. +# +# @(#)Makefile.IRIX64.6.0 8.8 (Berkeley) 8/7/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -DNIS -- include NIS support (requires -lsun) +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DIRIX64 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lelf -lmalloc + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.IRIX64.6.x b/src/Makefiles/Makefile.IRIX64.6.x new file mode 100644 index 0000000..ed09ab0 --- /dev/null +++ b/src/Makefiles/Makefile.IRIX64.6.x @@ -0,0 +1,134 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# IRIX 6.2 is successor of IRIX 5.3. It combines 64bit IRIX 6.[01] and +# 32bit IRIX 5.x. +# +# IRIX 6.2 support provided by Kari Hurtta <Kari.Hurtta@dionysos.fmi.fi>. +# +# @(#)Makefile.IRIX.6.x 8.5 (Berkeley) 4/7/97 +# +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# Select what ABI we are using -- see abi(5) for details +# -32 ~ IRIX 5.3 (default: -mips2) +# - long and pointer are 32 bit +# -n32 New to IRIX 6.2 (default: -mips3) +# - long and pointer are 32 bit +# -64 ~ IRIX 6.1 (default: -mips4) +# - long and pointer are 64 bit +# We force ABI here, so then it does not depend on CPU +ABI= -n32 + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB (requires -ldb) +# -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. +# +# N.B.: Include -D__BIT_TYPES_DEFINED__ if you use -DNEWDB! +# +DBMDEF= -DNDBM -DNIS +#DBMDEF= -DNDBM -DNIS -DNEWDB -D__BIT_TYPES_DEFINED__ + +# environment definitions (e.g., -D_AIX3) +# -DIRIX6 is needed, if you use ABI=-32 +# (or conf.h can't make difference between IRIX 5.3 and IRIX 6.2) +ENVDEF= -DIRIX6 ${ABI} + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lelf + +# loader options +LDOPTS= ${ABI} + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bsd/hoststat ${DESTDIR}/usr/bsd/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f ${BINDIR} sendmail + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -u ${BINOWN} -g ${BINGRP} -m 444 -f ${HFDIR} sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.ISC b/src/Makefiles/Makefile.ISC new file mode 100644 index 0000000..04f8bf4 --- /dev/null +++ b/src/Makefiles/Makefile.ISC @@ -0,0 +1,109 @@ +# +# Makefile for ISC (SunSoft) UNIX. +# +# Contributed by J.J. Bailey <jjb@jagware.bcc.com> +# +# @(#)Makefile.ISC 8.11 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DISC_UNIX -D_POSIX_SOURCE -D_SYSV3 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +LIBS= -lyp -lrpc -lndbm -linet -lcposix + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/spool/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.KSR b/src/Makefiles/Makefile.KSR new file mode 100644 index 0000000..291b19c --- /dev/null +++ b/src/Makefiles/Makefile.KSR @@ -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 KSR OS 1.2.2. Contributed by Todd C. Miller +# <Todd.Miller@cs.colorado.edu> +# +# @(#)Makefile.KSR 8.5 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldbm -ldb -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/adm/sendmail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/lib + +# additional .o files needed +OBJADD= + + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${BINDIR}/hoststat ${BINDIR}/purgestat +INSTALL=installbsd +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + rm -f /usr/sbin/smtpd + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h diff --git a/src/Makefiles/Makefile.LUNA b/src/Makefiles/Makefile.LUNA new file mode 100644 index 0000000..9fdc842 --- /dev/null +++ b/src/Makefiles/Makefile.LUNA @@ -0,0 +1,148 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# @(#)Makefile.LUNA 8.8 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= dirent.h stddef.h stdlib.h unistd.h limits.h time.h sys/time.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +stddef.h unistd.h limits.h: + if [ -f /usr/include/$@ ]; then \ + ln -s /usr/include/$@ .; \ + else \ + cp /dev/null $@; \ + fi + +stdlib.h: + if [ -f /usr/include/stdlib.h ]; then \ + ln -s /usr/include/stdlib.h .; \ + else \ + if [ -f /usr/include/libc.h ]; then \ + ln -s /usr/include/libc.h stdlib.h; \ + else \ + cp /dev/null stdlib.h; \ + fi; \ + fi + +# just for UNIOS-B +time.h: + echo "#ifndef _LOCAL_TIME_H_" > time.h + echo "#define _LOCAL_TIME_H_" >> time.h + cat /usr/include/time.h >> time.h + echo "#endif" >> time.h + +sys/time.h: + -mkdir sys + echo "#ifndef _LOCAL_SYS_TIME_H_" > sys/time.h + echo "#define _LOCAL_SYS_TIME_H_" >> sys/time.h + cat /usr/include/sys/time.h >> sys/time.h + echo "#endif" >> sys/time.h + +NROFF= nroff -h + +aliases.0: aliases.5 + ${NROFF} -mandoc aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} -mandoc mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} -mandoc newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} -mandoc sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Linux b/src/Makefiles/Makefile.Linux new file mode 100644 index 0000000..0b91323 --- /dev/null +++ b/src/Makefiles/Makefile.Linux @@ -0,0 +1,137 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Linux 0.99p10. +# +# Linux doesn't really have standard places to install things, so this +# Makefile is likely to require a lot of customization. Read it over +# carefully before proceeding. +# +# If you don't want to install the Berkeley db package, remove -DNEWDB +# from DBMDEF and -ldb from LIBS (but please consider installing it; see +# the READ_ME file for details). +# +# This assumes libc 4.7.0 or later. If you have an earlier version of +# the library, you may need to add -lbsd to LIBS *or* add -DHASSNPRINTF=0 +# to ENVDEF. If you are running libc < 4.4.4, you must use -DHASSNPRINTF=0 +# (or upgrade your libc -- an even better idea!). +# +# @(#)Makefile.Linux 8.20 (Berkeley) 8/7/97 +# + +# 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= -DNEWDB + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +# you may need to add -lresolv if you've installed BIND on +# your system (see the BIND section for linux in src/READ_ME) +LIBS= -ldb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h: + cp /dev/null unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Linux.ppc b/src/Makefiles/Makefile.Linux.ppc new file mode 100644 index 0000000..e518f71 --- /dev/null +++ b/src/Makefiles/Makefile.Linux.ppc @@ -0,0 +1,139 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Linux 0.99p10. +# +# Linux doesn't really have standard places to install things, so this +# Makefile is likely to require a lot of customization. Read it over +# carefully before proceeding. +# +# If you don't want to install the Berkeley db package, remove -DNEWDB +# from DBMDEF and -ldb from LIBS (but please consider installing it; see +# the READ_ME file for details). +# +# This assumes libc 4.7.0 or later. If you have an earlier version of +# the library, you may need to add -lbsd to LIBS *or* add -DHASSNPRINTF=0 +# to ENVDEF. If you are running libc < 4.4.4, you must use -DHASSNPRINTF=0 +# (or upgrade your libc -- an even better idea!). +# +# This Makefile contributed by Paul DuBois <dubois@primate.wisc.edu>. +# +# @(#)Makefile.Linux.ppc 8.4 (Berkeley) 8/7/97 +# + +# 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= -DNEWDB + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +# you may need to add -lresolv if you've installed BIND on +# your system (see the BIND section for linux in src/READ_ME) +LIBS= -ldb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h: + cp /dev/null unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Mach386 b/src/Makefiles/Makefile.Mach386 new file mode 100644 index 0000000..c1c4335 --- /dev/null +++ b/src/Makefiles/Makefile.Mach386 @@ -0,0 +1,113 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# @(#)Makefile.Mach386 8.10 (Berkeley) 8/7/97 +# + +CC= gcc + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# loader options +LDOPTS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NCR.MP-RAS.2.x b/src/Makefiles/Makefile.NCR.MP-RAS.2.x new file mode 100644 index 0000000..65ba6ac --- /dev/null +++ b/src/Makefiles/Makefile.NCR.MP-RAS.2.x @@ -0,0 +1,114 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# NCR 3000 support from Kevin Darcy <kevin@tech.mis.cfc.com> +# and Tom Moore <tmoore@fievel.DaytonOH.NCR.COM>. +# +# @(#)Makefile.NCR.MP-RAS.2.x 8.17 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O2 + +# 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= -DNCR_MP_RAS2 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/include -I/usr/ucbinclude + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/ucblib + +# libraries required on your system +LIBS= -lnsl -lnet -lsocket -lelf -lc -lucb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= /usr/ucb/nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NCR.MP-RAS.3.x b/src/Makefiles/Makefile.NCR.MP-RAS.3.x new file mode 100644 index 0000000..aa63826 --- /dev/null +++ b/src/Makefiles/Makefile.NCR.MP-RAS.3.x @@ -0,0 +1,114 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# NCR SVR4 MP-RAS 3.x support from +# Tom Moore <tmoore@fievel.DaytonOH.NCR.COM>. +# +# @(#)Makefile.NCR.MP-RAS.3.x 8.7 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O2 + +# 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= -DNCR_MP_RAS3 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/include -I/usr/ucbinclude + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/ucblib + +# libraries required on your system +LIBS= -lsocket -lnsl -lresolv -lelf -lc -lucb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= /usr/ucb/nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NEWS-OS.4.x b/src/Makefiles/Makefile.NEWS-OS.4.x new file mode 100644 index 0000000..0a76a1f --- /dev/null +++ b/src/Makefiles/Makefile.NEWS-OS.4.x @@ -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). +# +# @(#)Makefile.NEWS-OS.4.x 8.9 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# native compiler on RISC OS requires -Olimit to optimize properly +#CC= cc -Olimit 1100 + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -lmld + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= limits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +limits.h: + touch limits.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NEWS-OS.6.x b/src/Makefiles/Makefile.NEWS-OS.6.x new file mode 100644 index 0000000..9f257af --- /dev/null +++ b/src/Makefiles/Makefile.NEWS-OS.6.x @@ -0,0 +1,134 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on NEWS-OS 6.0.3 +# +# @(#)Makefile.NEWS-OS.6.x 8.8 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= + +# make sure that /bin/cc is used (do not use /usr/ucb/cc). +CC= /bin/cc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +# define SYSLOG_BUFSIZE=256 if you have a problem on syslog buffer size +# define SPT_TYPE=SPT_NONE if you are using NEWS-OS 6.0.1 +ENVDEF= -DSYSLOG_BUFSIZE=256 # -DSPT_TYPE=SPT_NONE + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +# -lndbm can be used instead of ndbm.o with NEWS-OS 6.1 or later +LIBS= ndbm.o -lelf -lsocket -lnsl -lresolv # -l44bsd # with NDBM +#LIBS= -lelf -lsocket -lnsl -ldb -lresolv # -l44bsd # with NEWDB + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h ndbm.o + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + ln -s /usr/ucbinclude/sysexits.h . + +ndbm.o: + if [ ! -f /usr/include/ndbm.h ]; then \ + ln -s /usr/ucbinclude/ndbm.h .; \ + fi; \ + if [ -f /usr/lib/libndbm.a ]; then \ + ar x /usr/lib/libndbm.a ndbm.o; \ + else \ + ar x /usr/ucblib/libucb.a ndbm.o; \ + fi; + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NeXT.2.x b/src/Makefiles/Makefile.NeXT.2.x new file mode 100644 index 0000000..85c3e2e --- /dev/null +++ b/src/Makefiles/Makefile.NeXT.2.x @@ -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 NeXT 2.1. +# +# @(#)Makefile.NeXT.2.x 8.13 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNETINFO +#DBMDEF= -DNDBM -DNEWDB -DNIS -DNETINFO + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DNeXT + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +LIBS= -ldbm +#LIBS= -ldbm -ldb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/sendmail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= unistd.h dirent.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} ${COPTS} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h: + cp /dev/null unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NeXT.3.x b/src/Makefiles/Makefile.NeXT.3.x new file mode 100644 index 0000000..3f976e8 --- /dev/null +++ b/src/Makefiles/Makefile.NeXT.3.x @@ -0,0 +1,131 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on NEXTSTEP 3.3. +# +# @(#)Makefile.NeXT.3.x 8.8 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# NEXTSTEP 3.1 and 3.2 only support m68k and i386 +#ARCH= -arch m68k -arch i386 -arch hppa -arch sparc +#ARCH= -arch m68k -arch i386 +ARCH= ${RC_CFLAGS} + +COPTS= -Wno-precomp -pipe + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# -DNETINFO -- include NETINFO support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNETINFO +#DBMDEF= -DNDBM -DNEWDB -DNIS -DNETINFO + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DNeXT + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +LIBS= -ldbm +#LIBS= -ldbm -ldb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/sendmail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= unistd.h dirent.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} ${COPTS} ${ARCH} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} ${ARCH} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +unistd.h: + cp /dev/null unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${BEFORE} ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.NetBSD b/src/Makefiles/Makefile.NetBSD new file mode 100644 index 0000000..9635243 --- /dev/null +++ b/src/Makefiles/Makefile.NetBSD @@ -0,0 +1,49 @@ +# +# NetBSD Makefile +# +# @(#)Makefile.NetBSD 8.7 (Berkeley) 8/7/97 +# @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 + +CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO + +SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ + deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ + mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.c \ + savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c \ + usersmtp.c util.c version.c +MAN= aliases.5 mailq.1 newaliases.1 sendmail.8 +#MAN1= mailq.0 newaliases.0 +#MAN5= aliases.0 +#MAN8= sendmail.0 +LINKS= /usr/sbin/sendmail /usr/bin/newaliases \ + /usr/sbin/sendmail /usr/bin/mailq \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +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/src/Makefiles/Makefile.NonStop-UX b/src/Makefiles/Makefile.NonStop-UX new file mode 100644 index 0000000..56f3f18 --- /dev/null +++ b/src/Makefiles/Makefile.NonStop-UX @@ -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). +# +# Tandem Support from Rick McCarty <mccarty@mpd.tandem.com>. +# (I don't think this actually compiles cleanly -- I had trouble +# integrating Rick's changes. EPA 6/94) +# +# @(#)Makefile.NonStop-UX 8.9 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DNonStop_UX_BXX -D_SVID + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/include -I/usr/ucbinclude + +# library directories +LIBDIRS=-L/usr/ucblib + +# libraries required on your system +LIBS= -lresolv -lsocket -lnsl -lelf -lucb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.OSF1 b/src/Makefiles/Makefile.OSF1 new file mode 100644 index 0000000..848d084 --- /dev/null +++ b/src/Makefiles/Makefile.OSF1 @@ -0,0 +1,119 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on OSF/1 1.3 +# +# @(#)Makefile.OSF1 8.12 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# native compiler requires -Olimit to optimize properly +CC= cc -Olimit 1000 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldbm -ldb -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/adm/sendmail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/lib + +# additional .o files needed +OBJADD= + +# additional link flags +#LDADD= -non_shared + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${BINDIR}/hoststat ${BINDIR}/purgestat +INSTALL=installbsd +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN}.${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + rm -f /usr/sbin/smtpd + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.OpenBSD b/src/Makefiles/Makefile.OpenBSD new file mode 100644 index 0000000..22b80da --- /dev/null +++ b/src/Makefiles/Makefile.OpenBSD @@ -0,0 +1,48 @@ +# +# OpenBSD Makefile +# +# @(#)Makefile.OpenBSD 8.2 (Berkeley) 8/7/97 +# + +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 + +CFLAGS+=-I${.CURDIR} ${DBMDEF} -DNETISO + +SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ + deliver.c domain.c envelope.c err.c headers.c macro.c main.c map.c \ + mci.c mime.c parseaddr.c queue.c readcf.c recipient.c safefile.c \ + savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c udb.c \ + usersmtp.c util.c version.c +MAN= aliases.5 mailq.1 newaliases.1 sendmail.8 +#MAN1= mailq.0 newaliases.0 +#MAN5= aliases.0 +#MAN8= sendmail.0 +LINKS= /usr/sbin/sendmail /usr/bin/newaliases \ + /usr/sbin/sendmail /usr/bin/mailq \ + /usr/sbin/sendmail /usr/bin/hoststat \ + /usr/sbin/sendmail /usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +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/src/Makefiles/Makefile.PTX b/src/Makefiles/Makefile.PTX new file mode 100644 index 0000000..a833582 --- /dev/null +++ b/src/Makefiles/Makefile.PTX @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# For Sequent DYNIX/ptx. +# +# From Tim "Pinball Wizard" Wright <timw@sequent.com>. +# +# @(#)Makefile.PTX 8.12 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -g + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include +INCDIRS= + +# loader options +LDOPTS= + +# library directories +#LIBDIRS=-L/usr/sww/lib +LIBDIRS= + +# libraries required on your system +#LIBS= -ldb -ldbm +LIBS= -lsocket -linet -lelf -lnsl -lseq + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: $& ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Paragon b/src/Makefiles/Makefile.Paragon new file mode 100644 index 0000000..4eafb43 --- /dev/null +++ b/src/Makefiles/Makefile.Paragon @@ -0,0 +1,116 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on OSF/1 1.3 +# +# @(#)Makefile.Paragon 8.9 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib -L/usr/shlib -L/usr/lib + +# libraries required on your system +LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/adm/sendmail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/lib + +# additional .o files needed +OBJADD= + +# additional link flags +#LDADD= -non_shared + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${BINDIR}/hoststat ${BINDIR}/purgestat +INSTALL=installbsd +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDADD} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chmod 644 ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + rm -f /usr/sbin/smtpd + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.PowerUX b/src/Makefiles/Makefile.PowerUX new file mode 100644 index 0000000..1ccb2d3 --- /dev/null +++ b/src/Makefiles/Makefile.PowerUX @@ -0,0 +1,126 @@ +# +# 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.PowerUX 8.3 (Berkeley) 8/7/97 +# +# Harris Nighthawk 6000 series (nh6000) PowerUX Makefile +# Bob Miorelli, Pratt & Whitney <miorelli@pweh.com> +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= cc +DESTDIR=/etc/mail + +# 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 + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ + +# 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= -Bstatic -ldb -lresolv -lsocket -lnsl -lelf -lgen + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= /usr/local/bin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR} + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR} + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.o savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ + trace.o udb.o usersmtp.o util.o version.o ${OBJADD} + +LINKS= ${BINDIR}/newaliases ${BINDIR}/mailq +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -h +MANDOC= -man + +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 + cp sendmail ${DESTDIR} + chown ${BINOWN} ${DESTDIR}/sendmail + chgrp ${BINGRP} ${DESTDIR}/sendmail + chmod ${BINMODE} ${DESTDIR}/sendmail + + for i in ${LINKS}; do rm -f $$i; ln -s ${DESTDIR}/sendmail $$i; done + cp /dev/null ${STDIR}/sendmail.st + chown ${BINOWN} ${STDIR}/sendmail.st + chgrp ${BINGRP} ${STDIR}/sendmail.st + chmod 0644 ${STDIR}/sendmail.st + + cp sendmail.hf ${STDIR}/sendmail.hf + chown ${BINOWN} ${STDIR}/sendmail.hf + chgrp ${BINGRP} ${STDIR}/sendmail.hf + chmod 0444 ${STDIR}/sendmail.hf + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.RISCos b/src/Makefiles/Makefile.RISCos new file mode 100644 index 0000000..5d803bb --- /dev/null +++ b/src/Makefiles/Makefile.RISCos @@ -0,0 +1,126 @@ +# +# 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.15 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# be sure we are compiling in BSD mode +CC= cc -systype bsd43 -Olimit 900 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DRISCOS + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -lmld + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= stdlib.h dirent.h unistd.h stddef.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/bsd43/bin/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +stdlib.h stddef.h: + cp /dev/null $@ + +unistd.h: + echo "typedef unsigned short mode_t;" > unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.RISCos.4_0 b/src/Makefiles/Makefile.RISCos.4_0 new file mode 100644 index 0000000..d0b28b2 --- /dev/null +++ b/src/Makefiles/Makefile.RISCos.4_0 @@ -0,0 +1,132 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# For Mips RISC/os 4.0, 4.01. Contributed by Paul DuBois +# <dubois@primate.wisc.edu>, based on Makefile for RISC/os 4.50 +# by Harlan Stenn. I have also found it necessary to set TimeZoneSpec +# in the *.mc file, or sendmail doesn't get the right offset from GMT. +# +# @(#)Makefile.RISCos.4_0 8.2 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# be sure we are compiling in BSD mode +CC= cc -systype bsd43 -Olimit 900 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DRISCOS -DRISCOS_4_0 + +# see also conf.h for additional compilation flags + +# include directories +#INCDIRS=-I/usr/sww/include + +# library directories +#LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -lmld + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/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= stdlib.h dirent.h unistd.h stddef.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/etc/mipsinstall +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +stdlib.h stddef.h: + cp /dev/null $@ + +unistd.h: + echo "typedef unsigned short mode_t;" > unistd.h + +dirent.h: + echo "#include <sys/dir.h>" > dirent.h + echo "#define dirent direct" >> dirent.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} -f 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 -f sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: + diff --git a/src/Makefiles/Makefile.SCO b/src/Makefiles/Makefile.SCO new file mode 100644 index 0000000..f84fe2f --- /dev/null +++ b/src/Makefiles/Makefile.SCO @@ -0,0 +1,110 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on SCO. +# +# @(#)Makefile.SCO 8.12 (Berkeley) 8/7/97 +# + +# 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 -lprot_s -lx -lc_s + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SCO.4.2 b/src/Makefiles/Makefile.SCO.4.2 new file mode 100644 index 0000000..5a868e9 --- /dev/null +++ b/src/Makefiles/Makefile.SCO.4.2 @@ -0,0 +1,110 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# Tested on SCO rel 4.2 by Marian Durkovic <marian@svf.stuba.sk>. +# +# @(#)Makefile.SCO.4.2 8.6 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF=-DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D_SCO_unix_4_2 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lsocket -lndbm -lprot_s -lx -lc_s + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SCO.5.x b/src/Makefiles/Makefile.SCO.5.x new file mode 100644 index 0000000..8c19e3e --- /dev/null +++ b/src/Makefiles/Makefile.SCO.5.x @@ -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). +# +# Tested on SCO OpenServer 5 by Keith Reynolds <keithr@sco.COM>. +# +# @(#)Makefile.SCO.5.x 8.6 (Berkeley) 8/7/97 +# + +# 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= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lsocket -lndbm -lprot -lcurses -lm -lx + +# 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 ###################### + +CC= cc -b elf +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SINIX b/src/Makefiles/Makefile.SINIX new file mode 100644 index 0000000..99e6ab8 --- /dev/null +++ b/src/Makefiles/Makefile.SINIX @@ -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). +# +# Contributed by Gerald Rinske <Gerald.Rinske@mch.sni.de>. +# +# @(#)Makefile.SINIX 8.4 (Berkeley) 9/13/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= /usr/bin/cc +#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 + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ + +# 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= -ldb -lsocket -lnsl -lresolv -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -h +#NROFF= groff -Tascii +#MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SMP_DC.OSx.NILE b/src/Makefiles/Makefile.SMP_DC.OSx.NILE new file mode 100644 index 0000000..d301bde --- /dev/null +++ b/src/Makefiles/Makefile.SMP_DC.OSx.NILE @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# For Pyramid NILE running DC/OSx. +# +# Contributed by Earle F. Ake <akee@wpdis03.wpafb.af.mil>. +# +# @(#)Makefile.SMP_DC.OSx.NILE 8.3 (Berkeley) 3/28/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= cc +#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 + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ -DDCOSx + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -ldb -lresolv -lsocket -lnsl -lelf + +# 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/lib/mail + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4511 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SVR4 b/src/Makefiles/Makefile.SVR4 new file mode 100644 index 0000000..bf485d1 --- /dev/null +++ b/src/Makefiles/Makefile.SVR4 @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# 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.10 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= gcc +#DESTDIR=/usr/local/sendmail + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNEWDB -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -ldb -ldbm -lresolv -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS b/src/Makefiles/Makefile.SunOS new file mode 100644 index 0000000..01cff7f --- /dev/null +++ b/src/Makefiles/Makefile.SunOS @@ -0,0 +1,117 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on 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.12 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +# need to add -DSUNOS403 if you are on a SunOS 4.0.3 system +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= -Bstatic + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.4.0 b/src/Makefiles/Makefile.SunOS.4.0 new file mode 100644 index 0000000..f001e8d --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.4.0 @@ -0,0 +1,119 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any significant work on sendmail). +# +# You may find you need to find versions of some routines +# such as strcasecmp in order to link this on SunOS 4.0.3. +# +# @(#)Makefile.SunOS.4.0 8.14 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSUNOS403 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= -Bstatic + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldb -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +BEFORE= stdlib.h stddef.h limits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +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 limits.h: + cp /dev/null $@ + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.1 b/src/Makefiles/Makefile.SunOS.5.1 new file mode 100644 index 0000000..57122af --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.1 @@ -0,0 +1,124 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any significant work on sendmail). +# +# This has been tested on Solaris 2.1 and 2.2. It DOES NOT WORK on +# versions of Solaris after 2.2. +# +# @(#)Makefile.SunOS.5.1 8.21 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20100 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/ucbinclude/sysexits.h ]; \ + then \ + ln -s /usr/ucbinclude/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.2 b/src/Makefiles/Makefile.SunOS.5.2 new file mode 100644 index 0000000..57122af --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.2 @@ -0,0 +1,124 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any significant work on sendmail). +# +# This has been tested on Solaris 2.1 and 2.2. It DOES NOT WORK on +# versions of Solaris after 2.2. +# +# @(#)Makefile.SunOS.5.1 8.21 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20100 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/ucbinclude/sysexits.h ]; \ + then \ + ln -s /usr/ucbinclude/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.3 b/src/Makefiles/Makefile.SunOS.5.3 new file mode 100644 index 0000000..6628c7f --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.3 @@ -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 Solaris 2.3. +# +# @(#)Makefile.SunOS.5.3 8.21 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNISPLUS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20300 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/ucbinclude/sysexits.h ]; \ + then \ + ln -s /usr/ucbinclude/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.4 b/src/Makefiles/Makefile.SunOS.5.4 new file mode 100644 index 0000000..32c8558 --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.4 @@ -0,0 +1,126 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Solaris 2.4. +# +# @(#)Makefile.SunOS.5.4 8.23 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# -DLDAPMAP -- include LDAP support (requires Umich ldap & lber libraries) +# -DSUNET_ID -- include Stanford LDAP tweaks +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNISPLUS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20400 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +# add -lldap -llber -lkrb -ldes for LDAP support +LIBS= -lresolv -l44bsd -lsocket -lnsl -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/include/sysexits.h ]; \ + then \ + ln -s /usr/include/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.5 b/src/Makefiles/Makefile.SunOS.5.5 new file mode 100644 index 0000000..9322440 --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.5 @@ -0,0 +1,124 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Solaris 2.5. +# +# @(#)Makefile.SunOS.5.5 8.12 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNISPLUS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20500 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +# add -ldb if you add -DNEWDB above (in DBMDEF) +LIBS= -lresolv -l44bsd -lsocket -lnsl -lkstat + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/include/sysexits.h ]; \ + then \ + ln -s /usr/include/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.SunOS.5.6 b/src/Makefiles/Makefile.SunOS.5.6 new file mode 100644 index 0000000..872a207 --- /dev/null +++ b/src/Makefiles/Makefile.SunOS.5.6 @@ -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 Solaris 2.6. +# +# @(#)Makefile.SunOS.5.6 8.4 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +# warning: do not use -O with versions of gcc prior to 2.6 +O= -O + +CC= gcc + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS -DNISPLUS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DSOLARIS=20600 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= -lresolv -l44bsd -lsocket -lnsl -lkstat + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/bin/hoststat ${DESTDIR}/usr/bin/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + if [ -r /usr/include/sysexits.h ]; \ + then \ + ln -s /usr/include/sysexits.h; \ + fi + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Titan b/src/Makefiles/Makefile.Titan new file mode 100644 index 0000000..e46307d --- /dev/null +++ b/src/Makefiles/Makefile.Titan @@ -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). +# +# @(#)Makefile.Titan 8.10 (Berkeley) 8/7/97 +# + +# put the compiler in BSD mode +CC= cc -43 + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# loader options +LDOPTS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/share/misc + +# additional .o files needed +OBJADD= + +# additional pseudo-sources needed +BEFORE= stddef.h stdlib.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +stddef.h stdlib.h: + cp /dev/null $@ + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.ULTRIX b/src/Makefiles/Makefile.ULTRIX new file mode 100644 index 0000000..c44e75e --- /dev/null +++ b/src/Makefiles/Makefile.ULTRIX @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on Ultrix 4.2A and 4.3A. +# +# @(#)Makefile.ULTRIX 8.15 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# native compiler requires -Olimit to optimize properly +CC= cc -Olimit 950 + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNEWDB -DNIS + +# environment definitions (e.g., -D_AIX3) +# On Ultrix 4.4 and later, you can set IDENTPROTO=1. +ENVDEF= -DIDENTPROTO=0 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -lresolv and -l44bsd if you are not running BIND 4.9.x +LIBS= -ldb -lresolv -l44bsd + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UMAX b/src/Makefiles/Makefile.UMAX new file mode 100644 index 0000000..b74b4ea --- /dev/null +++ b/src/Makefiles/Makefile.UMAX @@ -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 Encore UMAX V +# +# @(#)Makefile.UMAX 8.10 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNIS + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DUMAXV + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# loader options +LDOPTS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lyp -lrpc + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# things to do before compilation +BEFORE= stddef.h + +stddef.h: + echo "#define _STDDEF_H" > stddef.h + chmod 444 stddef.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UNICOS b/src/Makefiles/Makefile.UNICOS new file mode 100644 index 0000000..f3b273c --- /dev/null +++ b/src/Makefiles/Makefile.UNICOS @@ -0,0 +1,118 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# Should work with UNICOS 8.0. Note that you must also acquire +# gdbm, as UNICOS does not have ndbm, and I had no luck at all +# getting the Berkeley DB package to compile. +# Douglas K. Rand, University of North Dakota +# rand@aero.und.nodak.edu +# +# @(#)Makefile.UNICOS 8.8 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DUNICOS + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +LIBS= + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/etc/mail + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/mail + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UNIX_SV.4.x.i386 b/src/Makefiles/Makefile.UNIX_SV.4.x.i386 new file mode 100644 index 0000000..9a0b50b --- /dev/null +++ b/src/Makefiles/Makefile.UNIX_SV.4.x.i386 @@ -0,0 +1,119 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# UnixWare 1.1 Makefile from John Warburton <jwarb@SACBH.com.au>. +# +# For UnixWare 2.x, use -DUNIXWARE2 in ENVDEF in place of -DUNIXWARE. +# +# @(#)Makefile.UNIX_SV.4.x.i386 8.9 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +# use O=-O (usual) or O=-g (debugging) +O= -O + +CC= gcc +#DESTDIR=/usr/local/sendmail + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNEWDB -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D__svr4__ -DUNIXWARE +#ENVDEF= -D__svr4__ -DUNIXWARE2 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= -lc -ldbm -lresolv -lsocket -lnsl -lgen -lelf + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/ucblib + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UX4800 b/src/Makefiles/Makefile.UX4800 new file mode 100644 index 0000000..be1e748 --- /dev/null +++ b/src/Makefiles/Makefile.UX4800 @@ -0,0 +1,130 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# This has been tested on NEC UX4800. +# Contributed by Kazuhisa Shimizu <shimizu@lang.csd.nes.nec.co.jp>. +# +# @(#)Makefile.UX4800 8.6 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# make sure that /usr/abiccs/bin/cc is used (do not use /usr/ucb/cc). +#CC= /bin/cc -KOlimit=900 +CC= /usr/abiccs/bin/cc -KOlimit=900 + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS # without NEWDB +#DBMDEF= -DNEWDB -DNDBM -DNIS # with NEWDB + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -DHASSNPRINTF=1 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/local/include + +# library directories +LIBDIRS=-L/usr/local/lib + +# libraries required on your system +# delete -l44bsd if you are not running BIND 4.9.x +LIBS= -lsocket -lnsl -lelf -lresolv # -l44bsd # without NEWDB +#LIBS= -lsocket -lnsl -lelf -ldb -lresolv # -l44bsd # with NEWDB + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/ucblib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/var/ucblib + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= sysexits.h ndbm.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= root +BINGRP= sys +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +sysexits.h: + echo '#ifndef _LOCAL_SYSEXITS_H_' > sysexits.h; + echo '#define _LOCAL_SYSEXITS_H_' >> sysexits.h; + cat /usr/abiccs/ucbinclude/sysexits.h >> sysexits.h; + echo '#endif /* _LOCAL_SYSEXITS_H_ */' >> sysexits.h; + +ndbm.h: + sed 's/void/char/' /usr/abiccs/include/ndbm.h > ndbm.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UXPDS.V10 b/src/Makefiles/Makefile.UXPDS.V10 new file mode 100644 index 0000000..b2cdf53 --- /dev/null +++ b/src/Makefiles/Makefile.UXPDS.V10 @@ -0,0 +1,142 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# Contributed by Diego R. Lopez <drlopez@cica.es>. Based on +# Makefile.SVR4. I haven't tested this myself. +# +# Additional changes for UXP/DS V20L10 (SVR4.2) from Fumio Moriya +# and Toshiaki Nomura of the Fujitsu FreeSoftware Group +# <dsfrsoft@oai6.yk.fujitsu.co.jp>. +# +# @(#)Makefile.UXPDS.V10 8.9 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +CC= /usr/ccs/bin/cc + +# use O=-O (usual) or O=-g (debugging) +O= -O + +#DESTDIR=/usr/local/sendmail + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +# +ENVDEF= -DUXPDS=10 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/include -I/usr/ucbinclude + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= /usr/ucblib/libdbm.a /usr/ucblib/libucb.a -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 + +# location and mode for man pages +MAN1= /usr/local/man/man1 +MAN4= /usr/local/man/man4 +MANMODE=444 + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +BINOWN= root +BINGRP= mail +BINMODE=4555 +INSTALL=/usr/ucb/install + +ALL= sendmail man-pages + +all: ${ALL} + +man-pages: aliases.0 mailq.0 newaliases.0 sendmail.0 + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= groff -Tascii + +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: ${MAN1} ${MAN4} aliases.0 mailq.0 newaliases.0 sendmail.0 + cp aliases.0 ${MAN4}/aliases.4 + chmod ${MANMODE} ${MAN4}/aliases.4 + cp mailq.0 ${MAN1}/mailq.1m + chmod ${MANMODE} ${MAN1}/mailq.1m + cp newaliases.0 ${MAN1}/newaliases.1m + chmod ${MANMODE} ${MAN1}/newaliases.1m + cp sendmail.0 ${MAN1}/sendmail.1m + chmod ${MANMODE} ${MAN1}/sendmail.1m + +${MAN1} ${MAN4}: + mkdir -p $@ + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.UXPDS.V20 b/src/Makefiles/Makefile.UXPDS.V20 new file mode 100644 index 0000000..51ce445 --- /dev/null +++ b/src/Makefiles/Makefile.UXPDS.V20 @@ -0,0 +1,148 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# Contributed by Diego R. Lopez <drlopez@cica.es>. Based on +# Makefile.SVR4. I haven't tested this myself. +# +# Additional changes for UXP/DS V20L10 (SVR4.2) from Fumio Moriya +# and Toshiaki Nomura of the Fujitsu FreeSoftware Group +# <dsfrsoft@oai6.yk.fujitsu.co.jp>. +# +# @(#)Makefile.UXPDS.V20 8.9 (Berkeley) 8/7/97 +# + +# make sure the shell constructs below use the right shell +SHELL= /bin/sh + +CC= /usr/ccs/bin/cc + +# use O=-O (usual) or O=-g (debugging) +O= -O + +#DESTDIR=/usr/local/sendmail + +# define the database mechanism used for alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +# +ENVDEF= -DUXPDS=20 + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS= + +# library directories +LIBDIRS= + +# libraries required on your system +LIBS= /usr/ucblib/libdbm.a -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 + +# location and mode for man pages +MAN1= /usr/local/man/man1 +MAN4= /usr/local/man/man4 +MANMODE=444 + +# additional .o files needed +OBJADD= + +# things to be made before compilation begins +BEFORE= netinet/ip_var.h + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +BINOWN= root +BINGRP= mail +BINMODE=4555 +INSTALL=/usr/ucb/install + +ALL= sendmail man-pages + +all: ${ALL} + +man-pages: aliases.0 mailq.0 newaliases.0 sendmail.0 + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS} + +netinet/ip_var.h: netinet /usr/include/netinet/ip_var.h + sed '/ip_var_f.h/d' /usr/include/netinet/ip_var.h > netinet/ip_var.h + +netinet: + mkdir netinet + +NROFF= groff -Tascii + +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: ${MAN1} ${MAN4} aliases.0 mailq.0 newaliases.0 sendmail.0 + cp aliases.0 ${MAN4}/aliases.4 + chmod ${MANMODE} ${MAN4}/aliases.4 + cp mailq.0 ${MAN1}/mailq.1m + chmod ${MANMODE} ${MAN1}/mailq.1m + cp newaliases.0 ${MAN1}/newaliases.1m + chmod ${MANMODE} ${MAN1}/newaliases.1m + cp sendmail.0 ${MAN1}/sendmail.1m + chmod ${MANMODE} ${MAN1}/sendmail.1m + +${MAN1} ${MAN4}: + mkdir -p $@ + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.Utah b/src/Makefiles/Makefile.Utah new file mode 100644 index 0000000..f5e8965 --- /dev/null +++ b/src/Makefiles/Makefile.Utah @@ -0,0 +1,43 @@ +# @(#)Makefile.Utah 8.6 (Berkeley) 8/7/97 + +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 mime.c parseaddr.c queue.c readcf.c recipient.c safefile.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 \ + ${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/hoststat \ + ${DESTDIR}/usr/sbin/sendmail ${DESTDIR}/usr/bin/purgestat +INSTALL=install +BINDIR= /usr/sbin +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +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/src/Makefiles/Makefile.dgux b/src/Makefiles/Makefile.dgux new file mode 100644 index 0000000..0ff26ff --- /dev/null +++ b/src/Makefiles/Makefile.dgux @@ -0,0 +1,109 @@ +# +# Tested on DG/UX 5.4.2 by A. Bryan Curnutt <bryan@Stoner.COM>. +# Updated for DG/UX 5.4.3 by Mark T. Robinson <mtr@ornl.gov>. +# +# @(#)Makefile.dgux 8.12 (Berkeley) 8/7/97 +# + +# use O=-O (usual) or O=-g (debugging) +O= -O + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +DBMDEF= -DNDBM -DNIS + +# environment definitions (e.g., -D_AIX3) +# use DGUX_5_4_2 for versions prior to 5.4.3. +ENVDEF=-DDGUX + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I/usr/sww/include + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +LIBS= -ldbm + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/bin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= bin +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.dist b/src/Makefiles/Makefile.dist new file mode 100644 index 0000000..44d9d9d --- /dev/null +++ b/src/Makefiles/Makefile.dist @@ -0,0 +1,112 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# @(#)Makefile.dist 8.20 (Berkeley) 8/7/97 +# + +# 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 + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/sww/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldb -ldbm -lresolv + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/sbin + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/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 mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=install +BINOWN= root +BINGRP= kmem +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.maxion b/src/Makefiles/Makefile.maxion new file mode 100644 index 0000000..1047a66 --- /dev/null +++ b/src/Makefiles/Makefile.maxion @@ -0,0 +1,116 @@ +# +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# @(#)Makefile.maxion 8.5 (Berkeley) 8/7/97 +# +# Concurrent Computer Corporation Maxion support contributed by +# Donald R. Laster Jr. <laster@access.digex.net>. +# +CC=/usr/ucb/cc +# +# 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=-D__MAXION__ + +# see also conf.h for additional compilation flags + +# include directories +INCDIRS=-I ../ + +# loader options +LDOPTS= + +# library directories +LIBDIRS=-L/usr/ucblib -L/usr/local/lib + +# libraries required on your system +# delete -lresolv if you are not running BIND 4.9.x +LIBS= -ldbm -lresolv -lgen -lucb + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/ucblib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/var/adm/log + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/etc/ucbmail + +# additional .o files needed +OBJADD= + +################### end of user configuration flags ###################### + +CFLAGS= -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.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 \ + ${DESTDIR}/usr/ucb/hoststat ${DESTDIR}/usr/ucb/purgestat +INSTALL=/usr/ucb/install +BINOWN= smtp +BINGRP= mail +BINMODE=4555 + +ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +NROFF= nroff -h +#NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +install: install-sendmail install-docs + +install-sendmail: sendmail + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR} + for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ + ${STDIR}/sendmail.st + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR} + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: diff --git a/src/Makefiles/Makefile.uts.systemV b/src/Makefiles/Makefile.uts.systemV new file mode 100644 index 0000000..503d3a7 --- /dev/null +++ b/src/Makefiles/Makefile.uts.systemV @@ -0,0 +1,190 @@ +# This Makefile is designed to work on the old "make" program. It does +# not use the obj subdirectory. It also does not install documentation +# automatically -- think of it as a quick start for sites that have the +# old make program (I recommend that you get and port the new make if you +# are going to be doing any signficant work on sendmail). +# +# Makefile for an Amdahl 5890 running UTS System V 2.1.5 (SVr3) +# By Janet Jackson <janet@dialix.oz.au> 1994-11-24 +# This has been tested on (uname -a output) uts bsuts systemV 2.1.5 5890 +# +# @(#)Makefile.uts.systemV 8.7 (Berkeley) 8/7/97 +# + +# Sendmail 8 on UTS requires BIND 4.9's include files and lib44bsd and +# libresolv libraries. The BIND version on UTS is much too old. +# +BINDPATH=../../../bind + +# use O=-O (usual) or O=-g (debugging) +O= -g + +# define the database mechanisms available for map & alias lookups: +# -DNDBM -- use new DBM +# -DNEWDB -- use new Berkeley DB +# -DNIS -- include NIS support +# The really old (V7) DBM library is no longer supported. +# See READ_ME for a description of how these flags interact. +# +# Getting NIS working on UTS is possible (I did it!) but awkward. +# And forget it unless you're behind some sort of a firewall. +# +DBMDEF= -DNIS -DNDBM + +# environment definitions (e.g., -D_AIX3) +ENVDEF= -D_UTS + +# see also conf.h for additional compilation flags + +# include directories +# To find new BIND header files. This path assumes we are using "makesendmail". +INCDIRS=-I${BINDPATH}/include -I${BINDPATH}/compat/include + +# loader options +LDOPTS= + +# library directories +# To find new libresolv.a. This path assumes we are using "makesendmail". +LIBDIRS=-L${BINDPATH}/res -L${BINDPATH}/compat/lib + +# libraries required on your system +LIBS= -lyp -lrpc -lresolv -l44bsd -lbsd -lsocket -la + +# location of sendmail binary (usually /usr/sbin or /usr/lib) +BINDIR= ${DESTDIR}/usr/lib + +# location of sendmail.st file (usually /var/log or /usr/lib) +STDIR= ${DESTDIR}/usr/lib + +# location of sendmail.hf file (usually /usr/share/misc or /usr/lib) +HFDIR= ${DESTDIR}/usr/lib + +# additional .o files needed +OBJADD= + +# things to do before compilation +BEFORE= stddef.h + +################### end of user configuration flags ###################### + +CFLAGS= -eft -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF} + +OBJS= alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \ + deliver.o domain.o envelope.o err.o headers.o macro.o main.o \ + map.o mci.o mime.o parseaddr.o queue.o readcf.o recipient.o \ + safefile.o savemail.o srvrsmtp.o stab.o stats.o sysexits.o \ + trace.o udb.o usersmtp.o util.o version.o ${OBJADD} + +LINKS= ${DESTDIR}/usr/lib/newaliases ${DESTDIR}/usr/lib/mailq \ + ${DESTDIR}/usr/lib/hoststat ${DESTDIR}/usr/lib/purgestat +BINOWN= root +BINGRP= mail +BINMODE=4555 + +#ALL= sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 +ALL= sendmail + +all: ${ALL} + +sendmail: ${BEFORE} ${OBJS} + ${CC} -o sendmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS} + +stddef.h: + echo "#include <sys/types.h>" > stddef.h + +#NROFF= nroff -h +NROFF= groff -Tascii +MANDOC= -mandoc + +aliases.0: aliases.5 + ${NROFF} ${MANDOC} aliases.5 > aliases.0 + +mailq.0: mailq.1 + ${NROFF} ${MANDOC} mailq.1 > mailq.0 + +newaliases.0: newaliases.1 + ${NROFF} ${MANDOC} newaliases.1 > newaliases.0 + +sendmail.0: sendmail.8 + ${NROFF} ${MANDOC} sendmail.8 > sendmail.0 + +# new target to save original sendmail files before installation +save-orig: + if [ -f ${BINDIR}/sendmail.orig ]; then \ + echo "Error: original already saved" 1>&2; \ + exit 1; \ + else \ + /bin/mv ${BINDIR}/sendmail ${BINDIR}/sendmail.orig; \ + for i in ${LINKS}; do \ + if [ -h $$i ]; then \ + /bin/mv $$i $$i.orig; \ + fi; \ + done; \ + if [ -f ${STDIR}/sendmail.st ]; then \ + /bin/mv ${STDIR}/sendmail.st ${STDIR}/sendmail.st.orig; \ + fi; \ + if [ -f ${HFDIR}/sendmail.hf ]; then \ + /bin/mv ${HFDIR}/sendmail.hf ${HFDIR}/sendmail.hf.orig; \ + fi; \ + echo "Now run 'make install'." 1>&2; \ + echo "(To back out, run 'make backout'.)" 1>&2; \ + fi + +# new target to back out, ie, put back original files +backout: + if [ ! -f ${BINDIR}/sendmail.orig ]; then \ + echo "Error: original was not saved" 1>&2; \ + exit 1; \ + else \ + /bin/mv ${BINDIR}/sendmail.orig ${BINDIR}/sendmail; \ + for i in ${LINKS}; do \ + if [ -h $$i.orig ]; then \ + /bin/mv $$i.orig $$i; \ + else \ + rm -f $$i; \ + fi; \ + done; \ + if [ -f ${STDIR}/sendmail.st.orig ]; then \ + /bin/mv ${STDIR}/sendmail.st.orig ${STDIR}/sendmail.st; \ + else \ + rm -f ${STDIR}/sendmail.st; \ + fi; \ + if [ -f ${HFDIR}/sendmail.hf.orig ]; then \ + /bin/mv ${HFDIR}/sendmail.hf.orig ${HFDIR}/sendmail.hf; \ + else \ + rm -f ${HFDIR}/sendmail.hf; \ + fi; \ + echo "Now back out config file change if necessary." 1>&2; \ + fi + +#install: install-sendmail install-docs +install: install-sendmail + +install-sendmail: sendmail + if [ ! -f ${BINDIR}/sendmail.orig ]; then \ + echo "Error: Original not saved yet \ + (no ${BINDIR}/sendmail.orig)" 1>&2; \ + exit 1; \ + else \ + cpset -o sendmail ${BINDIR} ${BINMODE} ${BINOWN} ${BINGRP}; \ + for i in ${LINKS}; do \ + rm -f $$i; \ + ln ${BINDIR}/sendmail $$i; \ + done; \ + cpset -o /dev/null ${STDIR}/sendmail.st 644 ${BINOWN} ${BINGRP}; \ + cpset -o sendmail.hf ${HFDIR} 444 ${BINOWN} ${BINGRP}; \ + echo "Now install the new config file: \ + go to ../../cf/cf and run ./Install-dcd-config" 1>&2; \ + fi + +# doesn't actually install them -- you may want to install pre-nroff versions +install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0 + +clean: + rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0 + +# dependencies +# gross overkill, and yet still not quite enough.... +${OBJS}: sendmail.h conf.h + +depend: |