summaryrefslogtreecommitdiff
path: root/mail/opendmarc
diff options
context:
space:
mode:
Diffstat (limited to 'mail/opendmarc')
-rw-r--r--mail/opendmarc/Makefile47
-rw-r--r--mail/opendmarc/files/patch-opendmarc_opendmarc.conf.sample10
2 files changed, 35 insertions, 22 deletions
diff --git a/mail/opendmarc/Makefile b/mail/opendmarc/Makefile
index 078c9b8d52ef..ed7afab32169 100644
--- a/mail/opendmarc/Makefile
+++ b/mail/opendmarc/Makefile
@@ -1,6 +1,6 @@
PORTNAME= opendmarc
-PORTVERSION= 1.4.2
-PORTREVISION= 3
+DISTVERSION= 1.4.2
+PORTREVISION= 4
CATEGORIES= mail security
MASTER_SITES= GH
@@ -8,30 +8,36 @@ MAINTAINER= freebsd@gushi.org
COMMENT= DMARC library and milter implementation
WWW= http://www.trusteddomain.org/opendmarc.html
-LICENSE= BSD3CLAUSE SENDMAIL
-LICENSE_COMB= multi
+LICENSE= BSD3CLAUSE SENDMAIL
+LICENSE_COMB= multi
+LICENSE_GROUPS_SENDMAIL= FSF OSI
+LICENSE_NAME_SENDMAIL= Sendmail Open Source License
+LICENSE_FILE_SENDMAIL= ${WRKSRC}/LICENSE.Sendmail
+LICENSE_PERMS_SENDMAIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= p5-Switch>=0:lang/p5-Switch \
p5-DBI>=0:databases/p5-DBI \
${DBD_MYSQL} \
- p5-HTTP-Message>=0:www/p5-HTTP-Message
+ p5-HTTP-Message>=0:www/p5-HTTP-Message \
+ public_suffix_list>=0:dns/public_suffix_list
USES= cpe libtool mysql perl5 shebangfix autoreconf
-LICENSE_FILE_SENDMAIL= ${WRKSRC}/LICENSE.Sendmail
-LICENSE_GROUPS_SENDMAIL= FSF OSI
-LICENSE_NAME_SENDMAIL= Sendmail Open Source License
-LICENSE_PERMS_SENDMAIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-
CPE_VENDOR= trusteddomain
-USE_LDCONFIG= yes
-USE_RC_SUBR= opendmarc
-
USE_GITHUB= yes
GH_ACCOUNT= trusteddomainproject
-GH_TAGNAME= rel-opendmarc-1-4-2
GH_PROJECT= OpenDMARC
+GH_TAGNAME= rel-${PORTNAME}-${DISTVERSION:S/./-/g}
+USE_LDCONFIG= yes
+USE_RC_SUBR= ${PORTNAME}
+
+SHEBANG_FILES= reports/opendmarc-expire.in \
+ reports/opendmarc-import.in \
+ reports/opendmarc-params.in \
+ reports/opendmarc-reports.in
+
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+
+PORTDOCS= *
OPTIONS_DEFINE= SPF DOCS
OPTIONS_DEFAULT= SPF
@@ -43,18 +49,15 @@ SPF_CONFIGURE_ON= --with-spf \
--with-spf2-include=${LOCALBASE}/include/spf2 \
--with-spf2-lib=${LOCALBASE}/lib
-SHEBANG_FILES= reports/opendmarc-expire.in \
- reports/opendmarc-import.in \
- reports/opendmarc-params.in \
- reports/opendmarc-reports.in
-
-PORTDOCS= *
-
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
CONFIGURE_ARGS+= --with-milter=${MILTERBASE}
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/opendmarc/opendmarc.conf.sample
+
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
${INSTALL_DATA} \
diff --git a/mail/opendmarc/files/patch-opendmarc_opendmarc.conf.sample b/mail/opendmarc/files/patch-opendmarc_opendmarc.conf.sample
new file mode 100644
index 000000000000..96c7f823d274
--- /dev/null
+++ b/mail/opendmarc/files/patch-opendmarc_opendmarc.conf.sample
@@ -0,0 +1,10 @@
+--- opendmarc/opendmarc.conf.sample.orig 2021-12-20 06:40:37 UTC
++++ opendmarc/opendmarc.conf.sample
+@@ -294,6 +294,7 @@
+ ## One location to retrieve the file from is https://publicsuffix.org/list/
+ #
+ # PublicSuffixList path
++PublicSuffixList %%PREFIX%%/share/public_suffix_list/public_suffix_list.dat
+
+ ## RecordAllMessages { true | false }
+ ## default "false"