Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2006 20:04:54 +0900 (JST)
From:      Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/100381: New port: mail/dkimproxy DKIM filter for Postfix MTA.
Message-ID:  <200607161104.k6GB4sWl024777@frodo.csg.is.titech.ac.jp>
Resent-Message-ID: <200607161110.k6GBAG9s038925@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100381
>Category:       ports
>Synopsis:       New port: mail/dkimproxy  DKIM filter for Postfix MTA.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 16 11:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yoshisato YANAGISAWA
>Release:        FreeBSD 6.1-RELEASE-p1 i386
>Organization:
Tokyo Institute of Technology.
>Environment:
System: FreeBSD frodo.csg.is.titech.ac.jp 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #90: Fri Jun 2 20:33:54 JST 2006 yanagisawa@frodo.csg.is.titech.ac.jp:/usr/obj/usr/src/sys/FRODO i386


	
>Description:
	Dkimproxy is a filter for the Postfix mail user agent that implement
	DomainKeys Identified Mail (DKIM).  DKIM is a protocol to verify the
	e-mail according to per-domain basis by using public-key crypt system.
	Dkimproxy has evolved from dkfilter project, which is a project to 
	implement DomainKeys by the same developers, and it might be only the
	DKIM filter for Postfix.

	This port is depend on mail/p5-Mail-DKIM, which was sended PR at:
	http://www.freebsd.org/cgi/query-pr.cgi?pr=100380.
	
>How-To-Repeat:
	n/a
	
>Fix:

	


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dkimproxy
#	dkimproxy/files
#	dkimproxy/files/dkimproxy_in.in
#	dkimproxy/files/dkimproxy_out.in
#	dkimproxy/Makefile
#	dkimproxy/distinfo
#	dkimproxy/pkg-descr
#	dkimproxy/pkg-plist
#
echo c - dkimproxy
mkdir -p dkimproxy > /dev/null 2>&1
echo c - dkimproxy/files
mkdir -p dkimproxy/files > /dev/null 2>&1
echo x - dkimproxy/files/dkimproxy_in.in
sed 's/^X//' >dkimproxy/files/dkimproxy_in.in << 'END-of-dkimproxy/files/dkimproxy_in.in'
X#!/bin/sh
X# $FreeBSD$
X#
X
X# PROVIDE: dkimproxy_in
X# REQUIRE: LOGIN
X# BEFORE: mail
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable dkimproxy.in:
X#
X# dkimproxy_in_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=dkimproxy_in
Xrcvar=`set_rcvar`
X
X# set defaults
X
Xdkimproxy_in_enable=${dkimproxy_in_enable:-"NO"}
Xdkimproxy_in_flags=${dkimproxy_in_flags:-"127.0.0.1:10025 127.0.0.1:10026"}
Xdkimproxy_in_pidfile=${dkimproxy_in_pidfile:-"/var/run/dkimproxy_in.pid"}
Xdkimproxy_in_user=${dkimproxy_in_user:-"dkimproxy"}
X
Xstart_cmd="dkimproxy_in_start"
Xstop_cmd="dkimproxy_in_stop"
X
Xdkimproxy_in_start()
X{
X	if [ -f ${dkimproxy_in_pidfile} ]; then
X		echo "${name} already running?"
X		exit 1
X	fi
X	touch ${dkimproxy_in_pidfile}
X	chown ${dkimproxy_in_user} ${dkimproxy_in_pidfile}
X	su -m ${dkimproxy_in_user} -c "daemon -cf -p ${dkimproxy_in_pidfile} \
X		%%PREFIX%%/bin/dkimproxy.in ${dkimproxy_in_flags}"
X	echo "Starting ${name}"
X}
X
Xdkimproxy_in_stop()
X{
X	if [ ! -f ${dkimproxy_in_pidfile} ]; then
X		echo "${name} not running?"
X		exit 1
X	fi
X	kill `cat ${dkimproxy_in_pidfile}`
X	rm -f ${dkimproxy_in_pidfile}
X	echo "Stopping ${name}"
X}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-dkimproxy/files/dkimproxy_in.in
echo x - dkimproxy/files/dkimproxy_out.in
sed 's/^X//' >dkimproxy/files/dkimproxy_out.in << 'END-of-dkimproxy/files/dkimproxy_out.in'
X#!/bin/sh
X# $FreeBSD$
X#
X
X# PROVIDE: dkimproxy_out
X# REQUIRE: LOGIN
X# BEFORE: mail
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable dkimproxy.out:
X#
X# dkimproxy_out_enable="YES"
X#
X# Before you enable dkimproxy.out, you also need to make your domainkey to
X# set it to DNS and configurate dkimproxy_flags.
X#
X
X. %%RC_SUBR%%
X
Xname="dkimproxy_out"
Xrcvar=`set_rcvar`
X
X# set defaults
X
Xdkimproxy_out_enable=${dkimproxy_out_enable:-"NO"}
Xdkimproxy_out_flags=${dkimproxy_out_flags:-" \
X	--keyfile=%%PREFIX%%/etc/dkimproxy/private.key \
X	--selector=selector1 --domain=example.org --method=relaxed \
X	127.0.0.1:10027 127.0.0.1:10028"}
Xdkimproxy_out_pidfile=${dkimproxy_out_pidfile:-"/var/run/dkimproxy_out.pid"}
Xdkimproxy_out_user=${dkimproxy_out_user:-"dkimproxy"}
X
Xstart_cmd="dkimproxy_out_start"
Xstop_cmd="dkimproxy_out_stop"
X
Xdkimproxy_out_start()
X{
X	if [ -f ${dkimproxy_out_pidfile} ]; then
X		echo "${name} already running?"
X		exit 1
X	fi 
X	touch ${dkimproxy_out_pidfile}
X	chown ${dkimproxy_out_user} ${dkimproxy_out_pidfile}
X	su -m ${dkimproxy_out_user} -c "daemon -cf -p ${dkimproxy_out_pidfile} \
X		%%PREFIX%%/bin/dkimproxy.out ${dkimproxy_out_flags}"
X	echo "Starting ${name}."
X}
X
Xdkimproxy_out_stop()
X{
X	if [ ! -f ${dkimproxy_out_pidfile} ]; then
X		echo "${name} not running?"
X		exit 1
X	fi
X	kill `cat ${dkimproxy_out_pidfile}`
X	rm -f ${dkimproxy_out_pidfile}
X	echo "Stopping ${name}"
X}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-dkimproxy/files/dkimproxy_out.in
echo x - dkimproxy/Makefile
sed 's/^X//' >dkimproxy/Makefile << 'END-of-dkimproxy/Makefile'
X# New ports collection makefile for:	dkimproxy
X# Date created:				16 July 2006
X# Whom:					Yoshisato YANAGISAWA
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dkimproxy
XPORTVERSION=	0.13
XCATEGORIES=	mail
XMASTER_SITES=	http://jason.long.name/dkimproxy/
X
XMAINTAINER=	yanagisawa@csg.is.titech.ac.jp
XCOMMENT=	DKIM filter for Postfix
X
XBUILD_DEPENDS=	${SITE_PERL}/Mail/DKIM.pm:${PORTSDIR}/mail/p5-Mail-DKIM \
X		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XGNU_CONFIGURE=	yes
XUSE_RC_SUBR=	dkimproxy_in dkimproxy_out
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
X.include <bsd.port.mk>
END-of-dkimproxy/Makefile
echo x - dkimproxy/distinfo
sed 's/^X//' >dkimproxy/distinfo << 'END-of-dkimproxy/distinfo'
XMD5 (dkimproxy-0.13.tar.gz) = 473a9031fae051f076c2d94e81dc6583
XSHA256 (dkimproxy-0.13.tar.gz) = f9d4dfe6bdd04fcdfde2bab93503752da1075859f15ba2d8bdc4ee9dd655a0f1
XSIZE (dkimproxy-0.13.tar.gz) = 83743
END-of-dkimproxy/distinfo
echo x - dkimproxy/pkg-descr
sed 's/^X//' >dkimproxy/pkg-descr << 'END-of-dkimproxy/pkg-descr'
XThis is an implementation of DomainKeys Identified Mail (DKIM) draft standard
Xfor the Postfix mail transfer agent.  DKIM is a scheme to sign and verify 
Xe-mail messages on a per-domain basis.
X
XDetails regarding the protocol and other issues related to the draft standard
Xcan be found at http://mipassoc.org/dkim/.
X
XWWW: http://jason.long.name/dkimproxy/
END-of-dkimproxy/pkg-descr
echo x - dkimproxy/pkg-plist
sed 's/^X//' >dkimproxy/pkg-plist << 'END-of-dkimproxy/pkg-plist'
Xbin/dkim_responder.pl
Xbin/dkimproxy.in
Xbin/dkimproxy.out
Xbin/dkimsign.pl
Xbin/dkimverify.pl
Xlib/DKMessage.pm
Xlib/MSDW/SMTP/Client.pm
Xlib/MSDW/SMTP/Server.pm
Xlib/MySmtpProxyServer.pm
Xlib/MySmtpServer.pm
X@dirrm lib/MSDW/SMTP
X@dirrm lib/MSDW
END-of-dkimproxy/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607161104.k6GB4sWl024777>