diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-01-11 21:50:22 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-01-11 21:50:22 +0800 |
commit | f61a4cb1b2f677031029fbc2efd497d446983104 (patch) | |
tree | 1e99f90b97a9f9acd57eedd16ef620a6bc073931 /mail | |
parent | a248c6d4d17e4f764094d0ffcb62277e8467c76a (diff) | |
download | freebsd-ports-gnome-f61a4cb1b2f677031029fbc2efd497d446983104.tar.gz freebsd-ports-gnome-f61a4cb1b2f677031029fbc2efd497d446983104.tar.zst freebsd-ports-gnome-f61a4cb1b2f677031029fbc2efd497d446983104.zip |
Add dkim-milter, a domainkeys milter for Sendmail.
PR: ports/91582
Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/dkim-milter/Makefile | 81 | ||||
-rw-r--r-- | mail/dkim-milter/distinfo | 3 | ||||
-rw-r--r-- | mail/dkim-milter/files/milter-dkim.sh.in | 46 | ||||
-rw-r--r-- | mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 | 11 | ||||
-rw-r--r-- | mail/dkim-milter/files/patch-libar-Makefile.m4 | 10 | ||||
-rw-r--r-- | mail/dkim-milter/files/patch-libdkim-Makefile.m4 | 15 | ||||
-rw-r--r-- | mail/dkim-milter/files/site.config.m4 | 6 | ||||
-rw-r--r-- | mail/dkim-milter/files/site.config.m4.milter | 2 | ||||
-rw-r--r-- | mail/dkim-milter/pkg-descr | 7 | ||||
-rw-r--r-- | mail/dkim-milter/pkg-message | 11 |
11 files changed, 193 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 08dd7e94028d..6b3921a93515 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -61,6 +61,7 @@ SUBDIR += distribute SUBDIR += dk-milter SUBDIR += dkfilter + SUBDIR += dkim-milter SUBDIR += dkimap4 SUBDIR += dovecot SUBDIR += drac diff --git a/mail/dkim-milter/Makefile b/mail/dkim-milter/Makefile new file mode 100644 index 000000000000..f49543edce87 --- /dev/null +++ b/mail/dkim-milter/Makefile @@ -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> diff --git a/mail/dkim-milter/distinfo b/mail/dkim-milter/distinfo new file mode 100644 index 000000000000..18492ae8da14 --- /dev/null +++ b/mail/dkim-milter/distinfo @@ -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 diff --git a/mail/dkim-milter/files/milter-dkim.sh.in b/mail/dkim-milter/files/milter-dkim.sh.in new file mode 100644 index 000000000000..c667758b79a8 --- /dev/null +++ b/mail/dkim-milter/files/milter-dkim.sh.in @@ -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" diff --git a/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 b/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 new file mode 100644 index 000000000000..d5f514f8aed9 --- /dev/null +++ b/mail/dkim-milter/files/patch-dkim-filter-Makefile.m4 @@ -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/ ') diff --git a/mail/dkim-milter/files/patch-libar-Makefile.m4 b/mail/dkim-milter/files/patch-libar-Makefile.m4 new file mode 100644 index 000000000000..7a19358fb1f1 --- /dev/null +++ b/mail/dkim-milter/files/patch-libar-Makefile.m4 @@ -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') diff --git a/mail/dkim-milter/files/patch-libdkim-Makefile.m4 b/mail/dkim-milter/files/patch-libdkim-Makefile.m4 new file mode 100644 index 000000000000..18238533d663 --- /dev/null +++ b/mail/dkim-milter/files/patch-libdkim-Makefile.m4 @@ -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 ') diff --git a/mail/dkim-milter/files/site.config.m4 b/mail/dkim-milter/files/site.config.m4 new file mode 100644 index 000000000000..27e89c0c22a6 --- /dev/null +++ b/mail/dkim-milter/files/site.config.m4 @@ -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') diff --git a/mail/dkim-milter/files/site.config.m4.milter b/mail/dkim-milter/files/site.config.m4.milter new file mode 100644 index 000000000000..b02c20ecfe0a --- /dev/null +++ b/mail/dkim-milter/files/site.config.m4.milter @@ -0,0 +1,2 @@ +APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include') +APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib') diff --git a/mail/dkim-milter/pkg-descr b/mail/dkim-milter/pkg-descr new file mode 100644 index 000000000000..f88a2be73fa6 --- /dev/null +++ b/mail/dkim-milter/pkg-descr @@ -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/ diff --git a/mail/dkim-milter/pkg-message b/mail/dkim-milter/pkg-message new file mode 100644 index 000000000000..90324af84e9e --- /dev/null +++ b/mail/dkim-milter/pkg-message @@ -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}') + +************************************************************************ |