diff -ruN mail/opendmarc.orig/Makefile mail/opendmarc/Makefile --- mail/opendmarc.orig/Makefile 2014-08-01 18:43:41.000000000 +0100 +++ mail/opendmarc/Makefile 2014-08-25 23:37:45.116353960 +0100 @@ -3,6 +3,7 @@ PORTNAME= opendmarc PORTVERSION= 1.3.0 +PORTREVISION= 1 CATEGORIES= mail security MASTER_SITES= SF MASTER_SITE_SUBDIR= ${PORTNAME} \ @@ -32,6 +33,18 @@ PORTDOCS= * +OPTIONS_DEFINE= SPF +OPTIONS_DEFAULT= SPF +SPF_DESC= Include direct SPF checking support + +SPF_BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2 + +.include + +.if ${PORT_OPTIONS:MSPF} +CONFIGURE_ARGS+= --with-spf --with-spf2-include=${LOCALBASE}/include/spf2 --with-spf2-lib=${LOCALBASE}/lib +.endif + post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail ${INSTALL_DATA} \