summaryrefslogtreecommitdiffstats
path: root/mail/dk-milter
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2005-05-22 13:39:11 +0000
committerache <ache@FreeBSD.org>2005-05-22 13:39:11 +0000
commit3dbc5b63822c29253afdf8e2b912326afba7de33 (patch)
treea92f14ac0ac8edc0464bb92605bad02cb136c7d1 /mail/dk-milter
parent27b91cb94b883b8e2d12fd1c0039d79bb8187748 (diff)
downloadFreeBSD-ports-3dbc5b63822c29253afdf8e2b912326afba7de33.zip
FreeBSD-ports-3dbc5b63822c29253afdf8e2b912326afba7de33.tar.gz
Domainkeys milter
Diffstat (limited to 'mail/dk-milter')
-rw-r--r--mail/dk-milter/Makefile76
-rw-r--r--mail/dk-milter/distinfo2
-rw-r--r--mail/dk-milter/files/milter-dk.sh51
-rw-r--r--mail/dk-milter/files/patch-dk-filter-Makefile.m411
-rw-r--r--mail/dk-milter/files/patch-libar-Makefile.m410
-rw-r--r--mail/dk-milter/files/patch-libdk-Makefile.m415
-rw-r--r--mail/dk-milter/files/site.config.m46
-rw-r--r--mail/dk-milter/files/site.config.m4.milter2
-rw-r--r--mail/dk-milter/pkg-descr7
-rw-r--r--mail/dk-milter/pkg-message11
-rw-r--r--mail/dk-milter/pkg-plist11
11 files changed, 202 insertions, 0 deletions
diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile
new file mode 100644
index 0000000..91cd72f
--- /dev/null
+++ b/mail/dk-milter/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: dk-milter
+# Date created: 22 May 2005
+# Whom: ache
+#
+# $FreeBSD$
+#
+
+PORTNAME= dk-milter
+PORTVERSION= 0.3.0
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= dk-milter
+
+MAINTAINER= ache@FreeBSD.org
+COMMENT= Domainkeys milter for Sendmail
+
+.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
+WCONF= ${WRKSRC}/devtools/Site
+MAN8= dk-filter.8
+DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README RELEASE_NOTES \
+ dk-filter/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
+
+pre-configure:
+ @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/milter-dk.sh \
+ > ${WRKSRC}/milter-dk.sh
+ ${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
+ -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|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/dk-filter
+ ${INSTALL_SCRIPT} ${WRKSRC}/dk-filter/gentxt.csh \
+ ${PREFIX}/sbin/gentxt
+ ${INSTALL_DATA} ${WRKSRC}/milter-dk.sh \
+ ${PREFIX}/etc/rc.d/milter-dk.sh.sample
+.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 i in ${DOCSFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
+.endfor
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/mail/dk-milter/distinfo b/mail/dk-milter/distinfo
new file mode 100644
index 0000000..066889b
--- /dev/null
+++ b/mail/dk-milter/distinfo
@@ -0,0 +1,2 @@
+MD5 (dk-milter-0.3.0.tar.gz) = 64f1d925994deb5eaa31d8e080f0094b
+SIZE (dk-milter-0.3.0.tar.gz) = 304023
diff --git a/mail/dk-milter/files/milter-dk.sh b/mail/dk-milter/files/milter-dk.sh
new file mode 100644
index 0000000..168908c
--- /dev/null
+++ b/mail/dk-milter/files/milter-dk.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+if ! test -x %%PREFIX%%/libexec/dk-filter
+then
+ exit 0
+fi
+dk_filter_args="-c nofws -H -m MSA -s /var/db/domainkeys/default.key.pem -S default"
+case "$1" in
+start)
+ sh "${0}" wait
+ rm -f /var/run/dk-filter.pid /var/run/dk-filter
+ %%PREFIX%%/libexec/dk-filter -l -p local:/var/run/dk-filter \
+ -P /var/run/dk-filter.pid ${dk_filter_args}
+ echo -n ' dk-filter'
+ ;;
+stop)
+ if test -r /var/run/dk-filter.pid
+ then
+ kill `head -1 /var/run/dk-filter.pid`
+ else
+ echo " dk-filter: not running" 2>&1
+ fi
+ sh "${0}" wait
+ rm -f /var/run/dk-filter.pid
+ ;;
+wait)
+ while ps -axw -o pid,command | egrep "^[0-9]+ %%PREFIX%%/libexec/dk-filter "
+ do
+ echo "please wait"
+ sleep 1
+ done
+ ;;
+restart)
+ "$0" stop
+ "$0" start
+ ;;
+status)
+ if [ -z "$(ps -axw -o pid,command | egrep "^[0-9]+ %%PREFIX%%/libexec/dk-filter ")" ]
+ then
+ echo "FAILED dk-filter is not running!"
+ else
+ echo "OK dk-filter is running!"
+ fi
+ ;;
+*)
+ echo "Usage: ${0##*/}: {start|stop|restart|status}" >&2
+ exit 64
+ ;;
+esac
diff --git a/mail/dk-milter/files/patch-dk-filter-Makefile.m4 b/mail/dk-milter/files/patch-dk-filter-Makefile.m4
new file mode 100644
index 0000000..8416aab
--- /dev/null
+++ b/mail/dk-milter/files/patch-dk-filter-Makefile.m4
@@ -0,0 +1,11 @@
+--- dk-filter/Makefile.m4.bak Fri Apr 8 21:50:08 2005
++++ dk-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(`dk')
+ APPENDDEF(`confINCDIRS', `-I../libdk/ ')
diff --git a/mail/dk-milter/files/patch-libar-Makefile.m4 b/mail/dk-milter/files/patch-libar-Makefile.m4
new file mode 100644
index 0000000..f5f7dde
--- /dev/null
+++ b/mail/dk-milter/files/patch-libar-Makefile.m4
@@ -0,0 +1,10 @@
+--- libar/Makefile.m4.bak Thu Sep 2 03:42:21 2004
++++ libar/Makefile.m4 Sun May 22 13:29:22 2005
+@@ -6,7 +6,6 @@
+
+ bldPRODUCT_START(`library', `libar')
+ define(`bldSOURCES', `ar.c ')
+-define(`bldINSTALLABLE', `true')
+ bldPRODUCT_END
+
+ bldPRODUCT_START(`manpage', `ar')
diff --git a/mail/dk-milter/files/patch-libdk-Makefile.m4 b/mail/dk-milter/files/patch-libdk-Makefile.m4
new file mode 100644
index 0000000..74f6543
--- /dev/null
+++ b/mail/dk-milter/files/patch-libdk-Makefile.m4
@@ -0,0 +1,15 @@
+--- libdk/Makefile.m4.bak Sat Sep 4 00:39:01 2004
++++ libdk/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/dk-milter/files/site.config.m4 b/mail/dk-milter/files/site.config.m4
new file mode 100644
index 0000000..27e89c0
--- /dev/null
+++ b/mail/dk-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/dk-milter/files/site.config.m4.milter b/mail/dk-milter/files/site.config.m4.milter
new file mode 100644
index 0000000..b02c20e
--- /dev/null
+++ b/mail/dk-milter/files/site.config.m4.milter
@@ -0,0 +1,2 @@
+APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include')
+APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
diff --git a/mail/dk-milter/pkg-descr b/mail/dk-milter/pkg-descr
new file mode 100644
index 0000000..6036d4c
--- /dev/null
+++ b/mail/dk-milter/pkg-descr
@@ -0,0 +1,7 @@
+implements Yahoo!, Inc.'s DomainKeys draft standard for signing
+and verifying e-mail messages on a per-domain basis.
+
+Details regarding the protocol and other issues related to the
+draft standard can be found at http://antispam.yahoo.com/domainkeys
+
+WWW: http://sendmail.net/dk-milter/
diff --git a/mail/dk-milter/pkg-message b/mail/dk-milter/pkg-message
new file mode 100644
index 0000000..97cb833f
--- /dev/null
+++ b/mail/dk-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(`dk-filter', `S=unix:/var/run/dk-filter, F=T, T=R:2m')
+
+define(`confMILTER_MACROS_CONNECT', `j, {daemon_name}')
+define(`confMILTER_MACROS_ENVFROM', `i, {auth_type}')
+
+************************************************************************
diff --git a/mail/dk-milter/pkg-plist b/mail/dk-milter/pkg-plist
new file mode 100644
index 0000000..941bc55
--- /dev/null
+++ b/mail/dk-milter/pkg-plist
@@ -0,0 +1,11 @@
+etc/rc.d/milter-dk.sh.sample
+libexec/dk-filter
+sbin/gentxt
+%%PORTDOCS%%%%DOCSDIR%%/FEATURES
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/KNOWNBUGS
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
+%%PORTDOCS%%%%DOCSDIR%%/autorespond.csh
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud