summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-02-21 07:26:49 +0000
committerbapt <bapt@FreeBSD.org>2014-02-21 07:26:49 +0000
commit44c7fbcbb3b7c13b5be4cf327f496c5f7e93fee2 (patch)
tree50c8cd4c6b55c353a3f982a5f9f8c8590d1ba5ec /libexec
parent3e0732cf3e211d62b325cfd4d0dfc2e43c6b249a (diff)
parentd38539d80511f5f603eb076cdc91cbdb5d69e1b4 (diff)
downloadFreeBSD-src-44c7fbcbb3b7c13b5be4cf327f496c5f7e93fee2.zip
FreeBSD-src-44c7fbcbb3b7c13b5be4cf327f496c5f7e93fee2.tar.gz
Import Dragonfly Mail Agent into base system
It is a small and lightweight Mail Transport Agent. It accepts mails from locally installed Mail User Agents (MUA) and delivers the mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support, SMTP authentication and NULLCLIENT. Make dma conditional to new WITHOUT_DMA option and make it respect WITHOUT_MAIL Reviewed by: peter Discussed with: emaste, bz, peter
Diffstat (limited to 'libexec')
-rw-r--r--libexec/Makefile7
-rw-r--r--libexec/dma/Makefile32
2 files changed, 39 insertions, 0 deletions
diff --git a/libexec/Makefile b/libexec/Makefile
index e4781b8..8463b90 100644
--- a/libexec/Makefile
+++ b/libexec/Makefile
@@ -8,6 +8,8 @@ SUBDIR= ${_atf} \
bootpd \
${_casper} \
${_comsat} \
+ ${_dma} \
+ ${_dma-mbox-create} \
fingerd \
ftpd \
getty \
@@ -47,6 +49,11 @@ _casper= casper
_comsat= comsat
.endif
+.if ${MK_DMA} != "no"
+_dma= dma
+_dma-mbox-create= dma-mbox-create
+.endif
+
.if ${MK_NIS} != "no"
_mknetid= mknetid
_ypxfr= ypxfr
diff --git a/libexec/dma/Makefile b/libexec/dma/Makefile
new file mode 100644
index 0000000..d28d203
--- /dev/null
+++ b/libexec/dma/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/dma
+
+CFLAGS= -I${.CURDIR}/../../contrib/dma \
+ -DHAVE_REALLOCF -DHAVE_STRLCPY -DHAVE_GETPROGNAME \
+ -DCONF_PATH='"/etc/dma"' \
+ -DLIBEXEC_PATH='"/usr/libexec"' -DDMA_VERSION='"v0.9+"'
+DPADD= ${LIBSSL} ${LIBCRYPTO}
+LDADD= -lssl -lcrypto
+
+PROG= dma
+SRCS= aliases_parse.y \
+ aliases_scan.l \
+ base64.c \
+ conf.c \
+ crypto.c \
+ dma.c \
+ dns.c \
+ local.c \
+ mail.c \
+ net.c \
+ spool.c \
+ util.c
+MAN8= dma.8
+YFLAGS+= -i
+CLEANFILES= aliases_parse.i
+
+BINGRP= mail
+BINMODE= 2555
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud