svn commit: r452619 - in head/mail/spfmilter: . files
Craig Leres
leres at FreeBSD.org
Sun Oct 22 01:34:23 UTC 2017
Author: leres
Date: Sun Oct 22 01:34:21 2017
New Revision: 452619
URL: https://svnweb.freebsd.org/changeset/ports/452619
Log:
This adds spfmilter, a simple sendmail milter that uses either
libspf or libspf2 to implemnt Sender Policy Framework.
Reviewed by: ler (mentor)
Approved by: ler (mentor)
Differential Revision: https://reviews.freebsd.org/D12755
Added:
head/mail/spfmilter/
head/mail/spfmilter/Makefile (contents, props changed)
head/mail/spfmilter/distinfo (contents, props changed)
head/mail/spfmilter/files/
head/mail/spfmilter/files/patch-rc__scripts_freebsd (contents, props changed)
head/mail/spfmilter/pkg-descr (contents, props changed)
Added: head/mail/spfmilter/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/spfmilter/Makefile Sun Oct 22 01:34:21 2017 (r452619)
@@ -0,0 +1,46 @@
+# Created by: Craig Leres <leres at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= spfmilter
+PORTVERSION= 2.001
+CATEGORIES= mail
+MASTER_SITES= https://acme.com/software/spfmilter/
+
+MAINTAINER= leres at FreeBSD.org
+COMMENT= SPF milter for sendmail
+
+LICENSE= BSD2CLAUSE
+
+LIB_DEPENDS= libmilter.so:mail/libmilter
+
+USES= cpe
+GNU_CONFIGURE= yes
+NO_MTREE= yes
+CPE_VENDOR= acme
+
+OPTIONS_DEFAULT= LIBSPF2
+OPTIONS_RADIO= SPF
+OPTIONS_RADIO_SPF= LIBSPF LIBSPF2
+
+LIBSPF_LIB_DEPENDS= libspf.so:mail/libspf
+LIBSPF2_LIB_DEPENDS= libspf2.so:mail/libspf2
+
+LIBSPF_DESC= Use the libspf Sender Policy Framework library
+LIBSPF2_DESC= Use the libspf2 Sender Policy Framework library
+
+PLIST_FILES= libexec/spfmilter \
+ etc/rc.d/spfmilter \
+ man/man8/spfmilter.8.gz
+
+DIRS= ${PREFIX}/libexec \
+ ${PREFIX}/etc/rc.d \
+ ${MANPREFIX}/man/man8 \
+ /var/run/spfmilter
+
+do-install:
+ ${MKDIR} ${DIRS:S,^,${STAGEDIR},}
+ ${INSTALL_PROGRAM} ${WRKSRC}/spfmilter ${STAGEDIR}${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKSRC}/rc_scripts/freebsd ${STAGEDIR}${PREFIX}/etc/rc.d/spfmilter
+ ${INSTALL_MAN} ${WRKSRC}/spfmilter.8 ${STAGEDIR}${MANPREFIX}/man/man8
+
+.include <bsd.port.mk>
Added: head/mail/spfmilter/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/spfmilter/distinfo Sun Oct 22 01:34:21 2017 (r452619)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1508375790
+SHA256 (spfmilter-2.001.tar.gz) = fe446200947a910dcabc8c26b7a038548a98abb653bb10a311e90c4071968e7d
+SIZE (spfmilter-2.001.tar.gz) = 65204
Added: head/mail/spfmilter/files/patch-rc__scripts_freebsd
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/spfmilter/files/patch-rc__scripts_freebsd Sun Oct 22 01:34:21 2017 (r452619)
@@ -0,0 +1,17 @@
+--- rc_scripts/freebsd.orig 2015-02-05 18:18:42 UTC
++++ rc_scripts/freebsd
+@@ -23,11 +23,12 @@ load_rc_config "$name"
+
+ # Defaults.
+ spfmilter_enable="${spfmilter_enable:-NO}"
+-spfmilter_program="${spfmilter_program:-/usr/local/sbin/spfmilter}"
++spfmilter_program="${spfmilter_program:-/usr/local/libexec/spfmilter}"
+ spfmilter_socket="${spfmilter_socket:-/var/run/spfmilter.sock}"
++spfmilter_runas="${spfmilter_runas:-nobody}"
+
+ # Add socket to any given argument.
+-spfmilter_flags="${spfmilter_flags} ${spfmilter_socket}"
++spfmilter_flags="${spfmilter_flags} -u ${spfmilter_runas} ${spfmilter_socket}"
+
+ command="$spfmilter_program"
+
Added: head/mail/spfmilter/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/spfmilter/pkg-descr Sun Oct 22 01:34:21 2017 (r452619)
@@ -0,0 +1,4 @@
+Spfmilter implements the Sender Policy Framework (SPF) as a sendmail
+milter, using either the libspf or libspf2 libraries.
+
+WWW: https://acme.com/software/spfmilter/
More information about the svn-ports-head
mailing list