aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sendmail
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r--usr.sbin/sendmail/Makefile73
-rw-r--r--usr.sbin/sendmail/Makefile.depend20
-rw-r--r--usr.sbin/sendmail/Makefile.depend.options7
3 files changed, 100 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile
new file mode 100644
index 000000000000..178b35bf7852
--- /dev/null
+++ b/usr.sbin/sendmail/Makefile
@@ -0,0 +1,73 @@
+.include <src.opts.mk>
+
+PACKAGE=sendmail
+SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
+SMDIR= ${SENDMAIL_DIR}/src
+.PATH: ${SMDIR}
+
+BINDIR= ${LIBEXECDIR}/sendmail
+
+PROG= sendmail
+MAN= mailq.1 newaliases.1 aliases.5 sendmail.8
+MLINKS+=sendmail.8 hoststat.8
+MLINKS+=sendmail.8 purgestat.8
+SRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \
+ convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
+ macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
+ ratectrl.c readcf.c recipient.c savemail.c sasl.c sched.c sfsasl.c \
+ shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \
+ timers.c tlsh.c tls.c trace.c udb.c usersmtp.c util.c version.c
+BINOWN= root
+BINGRP= smmsp
+.ifdef SENDMAIL_SET_USER_ID
+BINMODE=4555
+.else
+BINMODE=2555
+.endif
+
+# Define the database format to use for aliases et al.
+DBMDEF= -DNEWDB
+# If you don't want NIS alias/map support, comment out this line
+.if ${MK_NIS} != "no"
+NIS= -DNIS
+.endif
+# Map extensions
+MAPS= -DMAP_REGEX -DDNSMAP
+
+CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
+CFLAGS+= ${DBMDEF} ${NIS} ${MAPS}
+
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+= -DNETINET6
+.endif
+
+WARNS?= 0
+
+LIBADD= util sm smutil
+
+SRCS+= sm_os.h
+CLEANFILES+=sm_os.h
+
+.if ${MK_OPENSSL} != "no"
+# STARTTLS support
+CFLAGS+= -DSTARTTLS -DTLS_EC
+LIBADD+= ssl crypto
+.endif
+
+.if ${MK_TCP_WRAPPERS} != "no"
+CFLAGS+= -DTCPWRAPPERS
+LIBADD+= wrap
+.endif
+
+CFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
+
+# User customizations to the sendmail build environment
+CFLAGS+=${SENDMAIL_CFLAGS}
+DPADD+=${SENDMAIL_DPADD}
+LDADD+=${SENDMAIL_LDADD}
+LDFLAGS+=${SENDMAIL_LDFLAGS}
+
+sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
+ ln -sf ${.ALLSRC} ${.TARGET}
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/sendmail/Makefile.depend b/usr.sbin/sendmail/Makefile.depend
new file mode 100644
index 000000000000..236c896d87e1
--- /dev/null
+++ b/usr.sbin/sendmail/Makefile.depend
@@ -0,0 +1,20 @@
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ include \
+ include/arpa \
+ include/rpcsvc \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libsm \
+ lib/libsmutil \
+ lib/libutil \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/usr.sbin/sendmail/Makefile.depend.options b/usr.sbin/sendmail/Makefile.depend.options
new file mode 100644
index 000000000000..c0a29e52552f
--- /dev/null
+++ b/usr.sbin/sendmail/Makefile.depend.options
@@ -0,0 +1,7 @@
+# This file is not autogenerated - take care!
+
+DIRDEPS_OPTIONS= OPENSSL TCP_WRAPPERS
+
+DIRDEPS.OPENSSL.yes= secure/lib/libssl
+
+.include <dirdeps-options.mk>