1 # Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
6 CATEGORIES= mail security
7 MASTER_SITES= SF/${PORTNAME} \
8 SF/${PORTNAME}/Previous%20Releases
10 MAINTAINER= freebsd@gushi.org
11 COMMENT= DMARC library and milter implementation
13 LICENSE= BSD3CLAUSE SENDMAIL
16 LICENSE_FILE_SENDMAIL= ${WRKSRC}/LICENSE.Sendmail
17 LICENSE_GROUPS_SENDMAIL= FSF OSI
18 LICENSE_NAME_SENDMAIL= Sendmail Open Source License
19 LICENSE_PERMS_SENDMAIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
21 .if !exists( /usr/include/libmilter/mfapi.h )
22 BUILD_DEPENDS+= ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
23 CFLAGS+= -I${LOCALBASE}/include
26 USES= libtool shebangfix
27 SHEBANG_FILES= reports/opendmarc-expire.in \
28 reports/opendmarc-import.in \
29 reports/opendmarc-params.in \
30 reports/opendmarc-reports.in
32 USE_RC_SUBR= opendmarc
41 SPF_DESC= Include direct SPF checking support
43 SPF_BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
45 .include <bsd.port.options.mk>
47 .if ${PORT_OPTIONS:MSPF}
48 CONFIGURE_ARGS+= --with-spf --with-spf2-include=${LOCALBASE}/include/spf2 --with-spf2-lib=${LOCALBASE}/lib
52 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
54 ${WRKSRC}/opendmarc/opendmarc.conf.sample ${STAGEDIR}${PREFIX}/etc/mail
55 @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendmarc.so.2
57 .include <bsd.port.mk>