Add dkim-milter, a domainkeys milter for Sendmail.
PR: ports/91582 Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp>
This commit is contained in:
parent
d92f8ffc2f
commit
a7b2d36c10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153262
11 changed files with 193 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
|||
SUBDIR += distribute
|
||||
SUBDIR += dk-milter
|
||||
SUBDIR += dkfilter
|
||||
SUBDIR += dkim-milter
|
||||
SUBDIR += dkimap4
|
||||
SUBDIR += dovecot
|
||||
SUBDIR += drac
|
||||
|
|
81
mail/dkim-milter/Makefile
Normal file
81
mail/dkim-milter/Makefile
Normal file
|
@ -0,0 +1,81 @@
|
|||
# New ports collection makefile for: dkim-milter
|
||||
# Date created: 10 Jan 2006
|
||||
# Whom: Hirohisa Yamaguchi <umq@ueo.co.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= dkim-milter
|
||||
PORTVERSION= 0.2.1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= umq@ueo.co.jp
|
||||
COMMENT= Domainkeys milter for Sendmail
|
||||
|
||||
USE_SUBR= yes
|
||||
USE_RC_SUBR= milter-dkim.sh
|
||||
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
.if defined(SENDMAIL_WITH_SHARED_MILTER)
|
||||
LIB_DEPENDS+= milter.3:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT}
|
||||
.else
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
SENDMAIL_MILTER_PORT?= sendmail
|
||||
USE_REINPLACE= yes
|
||||
SUB_FILES= milter-dkim.sh
|
||||
WCONF= ${WRKSRC}/devtools/Site
|
||||
MAN8= dkim-filter.8
|
||||
PLIST_FILES= libexec/dkim-filter sbin/gentxt
|
||||
PORTDOCS= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \
|
||||
autorespond.csh
|
||||
|
||||
SITE+= ${FILESDIR}/site.config.m4
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
SITE+= ${FILESDIR}/site.config.m4.milter
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(SENDMAIL_WITHOUT_MILTER)
|
||||
pre-fetch:
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} You must unset variable SENDMAIL_WITHOUT_MILTER,
|
||||
@${ECHO_MSG} and rebuild sendmail in the ports
|
||||
@${FALSE}
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${CP} ${WRKSRC}/dkim-filter/autorespond.csh ${WRKSRC}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
|
||||
-e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
|
||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
-e "s|\`-O'|\`${CFLAGS}'|g" \
|
||||
${WRKSRC}/devtools/OS/FreeBSD
|
||||
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
|
||||
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
||||
${SITE} > ${WCONF}/site.config.m4
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${PREFIX}/libexec/dkim-filter
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/dkim-filter/gentxt.csh \
|
||||
${PREFIX}/sbin/gentxt
|
||||
.for i in ${MAN8}
|
||||
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
mail/dkim-milter/distinfo
Normal file
3
mail/dkim-milter/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (dkim-milter-0.2.1.tar.gz) = 0ba3729f70abed5908c627241ac08dd2
|
||||
SHA256 (dkim-milter-0.2.1.tar.gz) = aa3012d96b4844b299ec4f3820ad87e69fed97761e9ffbda919b836ce778674a
|
||||
SIZE (dkim-milter-0.2.1.tar.gz) = 360704
|
46
mail/dkim-milter/files/milter-dkim.sh.in
Normal file
46
mail/dkim-milter/files/milter-dkim.sh.in
Normal file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: milterdkim
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: sendmail
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Define these milterdkim_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/milterdkim
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
#
|
||||
milterdkim_enable=${milterdkim_enable:-"NO"}
|
||||
milterdkim_socket=${milterdkim_socket:-"local:/var/run/dkim-filter"}
|
||||
milterdkim_pid=${milterdkim_pid:-"/var/run/dkim-filter.pid"}
|
||||
milterdkim_domain=${milterdkim_domain:-"example.com"}
|
||||
milterdkim_key=${milterdkim_key:-"/var/db/domainkeys/default.key.pem"}
|
||||
milterdkim_flags=${milterdkim_flags:-"-d ${milterdkim_domain} -c nowsp -m MSA \
|
||||
-s ${milterdkim_key} -S default"}
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="milterdkim"
|
||||
pidfile=${milterdkim_pid}
|
||||
rcvar=`set_rcvar`
|
||||
command="%%PREFIX%%/libexec/dkim-filter"
|
||||
command_args="-l -p ${milterdkim_socket} -P ${milterdkim_pid}"
|
||||
stop_postcmd="dkim_postcmd"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
dkim_postcmd ()
|
||||
{
|
||||
if [ -S ${milterdkim_socket##local:} ] ; then
|
||||
rm -f ${milterdkim_socket##local:}
|
||||
elif [ -S ${milterdkim_socket##unix:} ] ; then
|
||||
rm -f ${milterdkim_socket##unix:}
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
11
mail/dkim-milter/files/patch-dkim-filter-Makefile.m4
Normal file
11
mail/dkim-milter/files/patch-dkim-filter-Makefile.m4
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- dkim-filter/Makefile.m4.bak Fri Apr 8 21:50:08 2005
|
||||
+++ dkim-filter/Makefile.m4 Sun May 22 13:07:23 2005
|
||||
@@ -10,7 +10,7 @@
|
||||
dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib ')
|
||||
|
||||
dnl To use the asynchronous resolver library provided, enable this line:
|
||||
-dnl bldPUSH_SMLIB(`ar')
|
||||
+bldPUSH_SMLIB(`ar')
|
||||
|
||||
bldPUSH_SMLIB(`dkim')
|
||||
APPENDDEF(`confINCDIRS', `-I../libdkim/ ')
|
10
mail/dkim-milter/files/patch-libar-Makefile.m4
Normal file
10
mail/dkim-milter/files/patch-libar-Makefile.m4
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- libar/Makefile.m4.orig Tue Jul 19 06:18:09 2005
|
||||
+++ libar/Makefile.m4 Tue Jan 10 14:57:04 2006
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
bldPRODUCT_START(`library', `libar')
|
||||
define(`bldSOURCES', `ar.c fix.c ')
|
||||
-define(`bldINSTALLABLE', `true')
|
||||
bldPRODUCT_END
|
||||
|
||||
bldPRODUCT_START(`manpage', `ar')
|
15
mail/dkim-milter/files/patch-libdkim-Makefile.m4
Normal file
15
mail/dkim-milter/files/patch-libdkim-Makefile.m4
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- libdkim/Makefile.m4.bak Sat Sep 4 00:39:01 2004
|
||||
+++ libdkim/Makefile.m4 Sun May 22 13:10:14 2005
|
||||
@@ -4,9 +4,9 @@
|
||||
define(`confREQUIRE_LIBSM', `true')
|
||||
|
||||
dnl Enable these lines to make use of the provided asynchronous resolver:
|
||||
-dnl bldPUSH_SMLIB(`ar')
|
||||
-dnl APPENDDEF(`confENVDEF', `-DUSE_ARLIB ')
|
||||
-dnl APPENDDEF(`confINCDIRS', `-I../libar/ ')
|
||||
+bldPUSH_SMLIB(`ar')
|
||||
+APPENDDEF(`confENVDEF', `-DUSE_ARLIB ')
|
||||
+APPENDDEF(`confINCDIRS', `-I../libar/ ')
|
||||
|
||||
dnl Enable and edit this as appropriate for your system:
|
||||
dnl APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include ')
|
6
mail/dkim-milter/files/site.config.m4
Normal file
6
mail/dkim-milter/files/site.config.m4
Normal file
|
@ -0,0 +1,6 @@
|
|||
define(`confEBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confMANROOT',`%%PREFIX%%/man/man')
|
||||
define(`confMANROOTMAN',`%%PREFIX%%/man/man')
|
||||
define(`confUBINDIR',`%%PREFIX%%/libexec')
|
||||
define(`confLIBDIR',`%%PREFIX%%/lib')
|
||||
define(`confDONT_INSTALL_CATMAN',`True')
|
2
mail/dkim-milter/files/site.config.m4.milter
Normal file
2
mail/dkim-milter/files/site.config.m4.milter
Normal file
|
@ -0,0 +1,2 @@
|
|||
APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
7
mail/dkim-milter/pkg-descr
Normal file
7
mail/dkim-milter/pkg-descr
Normal file
|
@ -0,0 +1,7 @@
|
|||
implements DomainKeys Identified Mail draft standard for signing
|
||||
and verifying e-mail messages.
|
||||
|
||||
Details regarding the protocol and other issues related to the
|
||||
draft standard can be found at http://mipassoc.org/dkim/
|
||||
|
||||
WWW: http://sourceforge.net/projects/dkim-milter/
|
11
mail/dkim-milter/pkg-message
Normal file
11
mail/dkim-milter/pkg-message
Normal file
|
@ -0,0 +1,11 @@
|
|||
************************************************************************
|
||||
|
||||
In order to run this port, please add the following lines to
|
||||
/etc/mail/<your_configuration>.mc:
|
||||
|
||||
INPUT_MAIL_FILTER(`dkim-filter', `S=unix:/var/run/dkim-filter, F=T, T=R:2m')
|
||||
|
||||
define(`confMILTER_MACROS_CONNECT', `j, {daemon_name}')
|
||||
define(`confMILTER_MACROS_ENVFROM', `i, {auth_type}')
|
||||
|
||||
************************************************************************
|
Loading…
Reference in a new issue