From 51c415ef8ab02b097de44b27a8dd7d19cd8a20d9 Mon Sep 17 00:00:00 2001 From: pettai Date: Thu, 5 Dec 2013 16:00:19 +0000 Subject: The OpenDMARC project is a community effort to develop and maintain an open source package for providing DMARC report generation and policy enforcement services. It includes a library for handling DMARC record parsing, a database schema and tools for aggregating and processing transaction history to produce DMARC reports, and a filter that ties it all together with an MTA using the milter protocol. --- mail/opendmarc/DESCR | 6 ++++ mail/opendmarc/Makefile | 44 ++++++++++++++++++++++++ mail/opendmarc/PLIST | 70 +++++++++++++++++++++++++++++++++++++++ mail/opendmarc/distinfo | 5 +++ mail/opendmarc/files/opendmarc.sh | 39 ++++++++++++++++++++++ 5 files changed, 164 insertions(+) create mode 100644 mail/opendmarc/DESCR create mode 100644 mail/opendmarc/Makefile create mode 100644 mail/opendmarc/PLIST create mode 100644 mail/opendmarc/distinfo create mode 100644 mail/opendmarc/files/opendmarc.sh (limited to 'mail') diff --git a/mail/opendmarc/DESCR b/mail/opendmarc/DESCR new file mode 100644 index 00000000000..e0c97e2ae6e --- /dev/null +++ b/mail/opendmarc/DESCR @@ -0,0 +1,6 @@ +The OpenDMARC project is a community effort to develop and maintain an open +source package for providing DMARC report generation and policy enforcement +services. It includes a library for handling DMARC record parsing, +a database schema and tools for aggregating and processing transaction +history to produce DMARC reports, and a filter that ties it all together +with an MTA using the milter protocol. diff --git a/mail/opendmarc/Makefile b/mail/opendmarc/Makefile new file mode 100644 index 00000000000..5d1dc526c70 --- /dev/null +++ b/mail/opendmarc/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2013/12/05 16:00:19 pettai Exp $ + +DISTNAME= opendmarc-1.1.3 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opendmarc/} + +MAINTAINER= pettai@NetBSD.org +HOMEPAGE= http://opendmarc.org/ +COMMENT= Open source DMARC library, MTA filter implementation and tools +LICENSE= modified-bsd + +DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI +DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql +DEPENDS+= p5-File-Temp-[0-9]*:../../devel/p5-File-Temp +DEPENDS+= p5-Switch-[0-9]*:../../lang/p5-Switch + +RCD_SCRIPTS= opendmarc + +USE_LIBTOOL= yes +USE_TOOLS+= perl + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-milter=${PREFIX} + +REPLACE_PERL= reports/opendmarc-expire.in +REPLACE_PERL+= reports/opendmarc-import.in +REPLACE_PERL+= reports/opendmarc-params.in +REPLACE_PERL+= reports/opendmarc-reports.in + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} + +INSTALLATION_DIRS= ${EGDIR} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/opendmarc/opendmarc.conf.sample \ + ${DESTDIR}${EGDIR}/ + +BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.8 +.include "../../security/openssl/buildlink3.mk" +BUILDLINK_API_DEPENDS.libmilter+= libmilter>=8.13.0 +.include "../../mail/libmilter/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/opendmarc/PLIST b/mail/opendmarc/PLIST new file mode 100644 index 00000000000..c592f0a29e0 --- /dev/null +++ b/mail/opendmarc/PLIST @@ -0,0 +1,70 @@ +@comment $NetBSD: PLIST,v 1.1 2013/12/05 16:00:19 pettai Exp $ +include/opendmarc/dmarc.h +lib/libopendmarc.la +man/man5/opendmarc.conf.5 +man/man8/opendmarc-check.8 +man/man8/opendmarc-expire.8 +man/man8/opendmarc-import.8 +man/man8/opendmarc-params.8 +man/man8/opendmarc-reports.8 +man/man8/opendmarc.8 +sbin/opendmarc +sbin/opendmarc-check +sbin/opendmarc-expire +sbin/opendmarc-import +sbin/opendmarc-importstats +sbin/opendmarc-params +sbin/opendmarc-reports +share/doc/opendmarc/LICENSE +share/doc/opendmarc/LICENSE.Sendmail +share/doc/opendmarc/README +share/doc/opendmarc/README.rddmarc +share/doc/opendmarc/README.schema +share/doc/opendmarc/dmarc_policy_t.html +share/doc/opendmarc/dmarcfail.py +share/doc/opendmarc/draft-dmarc-base-00-03.txt +share/doc/opendmarc/index.html +share/doc/opendmarc/mkdb.mysql +share/doc/opendmarc/mkdmarc +share/doc/opendmarc/mysql_ip6.c +share/doc/opendmarc/opendmarc +share/doc/opendmarc/opendmarc.conf.sample +share/doc/opendmarc/opendmarc.spec.in +share/doc/opendmarc/opendmarc_dns_fake_record.html +share/doc/opendmarc/opendmarc_get_policy_to_enforce.html +share/doc/opendmarc/opendmarc_lib_t.html +share/doc/opendmarc/opendmarc_policy_connect_clear.html +share/doc/opendmarc/opendmarc_policy_connect_init.html +share/doc/opendmarc/opendmarc_policy_connect_rset.html +share/doc/opendmarc/opendmarc_policy_connect_shutdown.html +share/doc/opendmarc/opendmarc_policy_fetch_adkim.html +share/doc/opendmarc/opendmarc_policy_fetch_alignment.html +share/doc/opendmarc/opendmarc_policy_fetch_aspf.html +share/doc/opendmarc/opendmarc_policy_fetch_fo.html +share/doc/opendmarc/opendmarc_policy_fetch_p.html +share/doc/opendmarc/opendmarc_policy_fetch_pct.html +share/doc/opendmarc/opendmarc_policy_fetch_rf.html +share/doc/opendmarc/opendmarc_policy_fetch_rua.html +share/doc/opendmarc/opendmarc_policy_fetch_ruf.html +share/doc/opendmarc/opendmarc_policy_fetch_sp.html +share/doc/opendmarc/opendmarc_policy_fetch_utilized_domain.html +share/doc/opendmarc/opendmarc_policy_library_init.html +share/doc/opendmarc/opendmarc_policy_library_shutdown.html +share/doc/opendmarc/opendmarc_policy_parse_dmarc.html +share/doc/opendmarc/opendmarc_policy_query_dmarc.html +share/doc/opendmarc/opendmarc_policy_status_to_str.html +share/doc/opendmarc/opendmarc_policy_store_dkim.html +share/doc/opendmarc/opendmarc_policy_store_dmarc.html +share/doc/opendmarc/opendmarc_policy_store_from_domain.html +share/doc/opendmarc/opendmarc_policy_store_spf.html +share/doc/opendmarc/opendmarc_policy_to_buf.html +share/doc/opendmarc/opendmarc_status_t.html +share/doc/opendmarc/opendmarc_tld_read_file.html +share/doc/opendmarc/opendmarc_tld_shutdown.html +share/doc/opendmarc/opendmarc_util_clearargv.html +share/doc/opendmarc/opendmarc_xml.html +share/doc/opendmarc/opendmarc_xml_parse.html +share/doc/opendmarc/rddmarc +share/doc/opendmarc/schema.mysql +share/examples/opendmarc/opendmarc.conf.sample +share/examples/rc.d/opendmarc diff --git a/mail/opendmarc/distinfo b/mail/opendmarc/distinfo new file mode 100644 index 00000000000..62973a99fe4 --- /dev/null +++ b/mail/opendmarc/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/12/05 16:00:19 pettai Exp $ + +SHA1 (opendmarc-1.1.3.tar.gz) = 28d90511fdf6f459cf1d16b50310f91dbb297045 +RMD160 (opendmarc-1.1.3.tar.gz) = e5018a3079fe12d2f82f91ddc598a7d59d1a2cdc +Size (opendmarc-1.1.3.tar.gz) = 586574 bytes diff --git a/mail/opendmarc/files/opendmarc.sh b/mail/opendmarc/files/opendmarc.sh new file mode 100644 index 00000000000..4e718a419d4 --- /dev/null +++ b/mail/opendmarc/files/opendmarc.sh @@ -0,0 +1,39 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: opendmarc.sh,v 1.1 2013/12/05 16:00:19 pettai Exp $ +# +# PROVIDE: opendmarc +# REQUIRE: DAEMON +# BEFORE: mail + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="opendmarc" +rcvar=$name +command="@PREFIX@/sbin/opendmarc" +pidfile="@VARBASE@/run/opendmarc/${name}.pid" +command_args="-P ${pidfile} -c @PKG_SYSCONFDIR@/opendmarc.conf" +required_files="@PKG_SYSCONFDIR@/opendmarc.conf" +start_precmd="opendmarc_precmd" + +opendmarc_precmd() +{ + if [ ! -d @VARBASE@/run/opendmarc ]; then + @MKDIR@ @VARBASE@/run/opendmarc + @CHMOD@ 0750 @VARBASE@/run/opendmarc + fi + + if [ -f @VARBASE@/run/opendmarc/${name}.sock ]; then + @RM@ -f @VARBASE@/run/opendmarc/${name}.sock + fi +} + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${opendmarc_flags} ${command_args} +fi -- cgit v1.2.3