mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
Domainkeys milter
This commit is contained in:
parent
d926fe33ad
commit
a9304a6481
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135851
@ -55,6 +55,7 @@
|
||||
SUBDIR += dcc-dccd
|
||||
SUBDIR += demime
|
||||
SUBDIR += distribute
|
||||
SUBDIR += dk-milter
|
||||
SUBDIR += dkimap4
|
||||
SUBDIR += dovecot
|
||||
SUBDIR += drac
|
||||
|
76
mail/dk-milter/Makefile
Normal file
76
mail/dk-milter/Makefile
Normal file
@ -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>
|
2
mail/dk-milter/distinfo
Normal file
2
mail/dk-milter/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (dk-milter-0.3.0.tar.gz) = 64f1d925994deb5eaa31d8e080f0094b
|
||||
SIZE (dk-milter-0.3.0.tar.gz) = 304023
|
51
mail/dk-milter/files/milter-dk.sh
Normal file
51
mail/dk-milter/files/milter-dk.sh
Normal file
@ -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
|
11
mail/dk-milter/files/patch-dk-filter-Makefile.m4
Normal file
11
mail/dk-milter/files/patch-dk-filter-Makefile.m4
Normal file
@ -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/ ')
|
10
mail/dk-milter/files/patch-libar-Makefile.m4
Normal file
10
mail/dk-milter/files/patch-libar-Makefile.m4
Normal file
@ -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')
|
15
mail/dk-milter/files/patch-libdk-Makefile.m4
Normal file
15
mail/dk-milter/files/patch-libdk-Makefile.m4
Normal file
@ -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 ')
|
6
mail/dk-milter/files/site.config.m4
Normal file
6
mail/dk-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/dk-milter/files/site.config.m4.milter
Normal file
2
mail/dk-milter/files/site.config.m4.milter
Normal file
@ -0,0 +1,2 @@
|
||||
APPENDDEF(`confENVDEF',`-I%%LOCALBASE%%/include')
|
||||
APPENDDEF(`confLIBDIRS', `-L%%LOCALBASE%%/lib')
|
7
mail/dk-milter/pkg-descr
Normal file
7
mail/dk-milter/pkg-descr
Normal file
@ -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/
|
11
mail/dk-milter/pkg-message
Normal file
11
mail/dk-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(`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}')
|
||||
|
||||
************************************************************************
|
11
mail/dk-milter/pkg-plist
Normal file
11
mail/dk-milter/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user