Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 20:54:23 +0900
From:      Hirohisa Yamaguchi <umq@ueo.co.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/138232: [new port] mail/opendkim 1.0.0
Message-ID:  <86hbvt1ngw.wl%umq@ueo.co.jp>
Resent-Message-ID: <200908271200.n7RC0CD0077135@freefall.freebsd.org>

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

>Number:         138232
>Category:       ports
>Synopsis:       [new port] mail/opendkim 1.0.0
>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:   Thu Aug 27 12:00:11 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hirohisa Yamaguchi
>Release:        FreeBSD 8.0-BETA2 amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD calliope.****.org 8.0-BETA2 FreeBSD 8.0-BETA2 #21: Sun Aug 16 19:47:51 JST 2009 root@calliope.****.org:/usr/obj/usr/src/sys/CALLIOPE64 amd64

>Description:
	opendkim is a forked successor of mail/dkim-milter
	with the same developer.

	WWW: http://opendkim.org
>How-To-Repeat:
	N/A
>Fix:

	The skeleton follows:

# 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:
#
#	mail/opendkim
#	mail/opendkim/pkg-descr
#	mail/opendkim/Makefile
#	mail/opendkim/pkg-plist
#	mail/opendkim/distinfo
#	mail/opendkim/Makefile.features
#	mail/opendkim/files
#	mail/opendkim/files/patch-FEATURES
#	mail/opendkim/files/milter-opendkim.in
#	mail/opendkim/files/patch-opendkim__Makefile.in
#	mail/opendkim/pkg-message
#
echo c - mail/opendkim
mkdir -p mail/opendkim > /dev/null 2>&1
echo x - mail/opendkim/pkg-descr
sed 's/^X//' >mail/opendkim/pkg-descr << '7484ac2cab1337521e2ed207e1128ff1'
XOpenDKIM is an open source implementation of the DKIM sender authentication
Xsystem proposed by the E-mail Signing Technology Group (ESTG), now a proposed
Xstandard of the IETF (RFC4871).
X
XThe OpenDKIM package consists of a library that implements the DKIM service
Xand a milter-based filter application that can plug in to any milter-aware
XMTA to provide that service to sufficiently recent sendmail MTAs and other
XMTAs that support the milter protocol. 
X
XWWW:	http://opendkim.org/
7484ac2cab1337521e2ed207e1128ff1
echo x - mail/opendkim/Makefile
sed 's/^X//' >mail/opendkim/Makefile << '8193fe1222ca84770230d6f136679f96'
X# New ports collection makefile for:	opendkim
X# Date created:		2009-08-26
X# Whom:			Hirohisa Yamaguchi <umq@ueo.co.jp>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	opendkim
XPORTVERSION=	1.0.0
XCATEGORIES=	mail security
XMASTER_SITES=	SFE
X
XMAINTAINER=	umq@ueo.co.jp
XCOMMENT=	DKIM milter implimentation
X
XGNU_CONFIGURE=	yes
XUSE_OPENSSL=	yes
XUSE_RC_SUBR=	milter-opendkim
X
XMAN_COMPRESSED=	no
XMAN3=		ar.3
XMAN5=		opendkim.conf.5
XMAN8=		opendkim-genkey.8 opendkim-testadsp.8 \
X		opendkim-testkey.8 opendkim.8
XPORTDOCS0=	FEATURES INSTALL KNOWNBUGS LICENSE LICENSE.Sendmail \
X		README RELEASE_NOTES RELEASE_NOTES.Sendmail
XPORTDOCS=	docs/*
X#		draft-ietf-dkim-deployment-07.txt \
X#		draft-ietf-dkim-rfc4871-errata-07.txt \
X#		draft-kucherawy-dkim-reporting-04.txt \
X#		draft-shafranovich-feedback-report-07.txt \
X#		rfc4686.txt rfc4871.txt rfc5016.txt rfc.5451.txt rfc.5518.txt \
X#		rfc5585.txt rfc5617.txt
X
X.include <bsd.port.pre.mk>
XWITHOUT_MILTER_CFLAGS=	yes
XWITHOUT_MILTER_LDFLAGS=	yes
X.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
XCONFIGURE_ARGS+=	--with-milter=${MILTERBASE}
X
X.if ${OSVERSION} < 700000
XWITH_OPENSSL_PORT=	yes
X.endif
X.include "${PORTSDIR}/Mk/bsd.openssl.mk"
XCONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
X
X.include "${.CURDIR}/Makefile.features"
X
X.if defined(WITH_DEBUG)
XCONFIGURE_ARGS+=	--enable-debug
X.endif
X
X.if (defined(WITH_POPAUTH) \
X	|| defined(WITH_QUERY_CACHE) \
X	|| defined(WITH_BODYLENGTH_DB) \
X	|| defined(WITH_STATS)) \
X	&& !defined(WITH_BDB_BASE)
X#BROKEN=		LIBDB_INCDIR nor LIBDB_LIBDIRS cannot be set individually
XCONFIGURE_ARGS+=	--with-db
XUSE_BDB=	41+
X.endif
X.if defined(WITH_UNBOUND) && !defined(WITHOUT_UNBOUND)
XBROKEN=		configure fails since arlib cannot be disabled
X.if defined(WITH_ARLIB)
XIGNORE=		libar cannot be used simultaneously with libunbound
X.endif
XCONFIGURE_ARGS+=	--with-unbound \
X			--disable-arlib
XLIB_DEPENDS+=	unbound:${PORTSDIR}/dns/unbound
XPLIST_SUB+=		ARLIB="@comment "
X.else
X.if !defined(WITHOUT_ARLIB)
XPLIST_SUB+=		ARLIB=""
XCONFIGURE_ARGS+=	--enable-arlib
X.else
XCONFIGURE_ARGS+=	--disable-arlib
XPLIST_SUB+=		ARLIB="@comment "
X.endif
X.endif
X.if defined(WITH_POPAUTH) && !defined(WITHOUT_POPAUTH)
XCONFIGURE_ARGS+=	--enable-popauth
X.endif
X.if defined(WITH_QUERY_CACHE) && !defined(WITHOUT_QUERY_CACHE)
XCONFIGURE_ARGS+=	--enable-querycache
X.endif
X
Xpost-extract:
X.for f in ${PORTDOCS0}
X	@${CP} ${WRKSRC}/${f} ${WRKSRC}/docs/
X.endfor
X
Xpost-install:
X.if !defined(WITH_DEBUG)
X	@${STRIP_CMD} ${PREFIX}/sbin/opendkim
X.endif
X	@${MKDIR} ${PREFIX}/etc/mail
X	${INSTALL_DATA} ${WRKSRC}/opendkim/opendkim.conf.sample ${PREFIX}/etc/mail/
X.if !defined(NOPORTDOCS)
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
8193fe1222ca84770230d6f136679f96
echo x - mail/opendkim/pkg-plist
sed 's/^X//' >mail/opendkim/pkg-plist << 'eed37e8dc5ce5a9755bcde0327224f5a'
X@comment $FreeBSD$
Xetc/mail/opendkim.conf.sample
X%%ARLIB%%include/ar/ar.h
X%%ARLIB%%include/ar/manual.h
Xinclude/opendkim/dkim.h
X%%ARLIB%%lib/libar.a
Xlib/libopendkim.a
Xlib/libopendkim.la
Xlib/libopendkim.so
Xlib/libopendkim.so.0
Xsbin/opendkim
Xsbin/opendkim-genkey.sh
X%%STATS%%sbin/opendkim-stats
Xsbin/opendkim-testadsp
Xsbin/opendkim-testkey
X%%PORTDOCS%%share/doc/opendkim/FEATURES
X%%PORTDOCS%%share/doc/opendkim/INSTALL
X%%PORTDOCS%%share/doc/opendkim/KNOWNBUGS
X%%PORTDOCS%%share/doc/opendkim/LICENSE
X%%PORTDOCS%%share/doc/opendkim/LICENSE.Sendmail
X%%PORTDOCS%%share/doc/opendkim/README
X%%PORTDOCS%%share/doc/opendkim/RELEASE_NOTES
X%%PORTDOCS%%share/doc/opendkim/RELEASE_NOTES.Sendmail
X%%PORTDOCS%%share/doc/opendkim/draft-ietf-dkim-deployment-07.txt
X%%PORTDOCS%%share/doc/opendkim/draft-ietf-dkim-rfc4871-errata-07.txt
X%%PORTDOCS%%share/doc/opendkim/draft-kucherawy-dkim-reporting-04.txt
X%%PORTDOCS%%share/doc/opendkim/draft-shafranovich-feedback-report-07.txt
X%%PORTDOCS%%share/doc/opendkim/rfc4686.txt
X%%PORTDOCS%%share/doc/opendkim/rfc4871.txt
X%%PORTDOCS%%share/doc/opendkim/rfc5016.txt
X%%PORTDOCS%%share/doc/opendkim/rfc5451.txt
X%%PORTDOCS%%share/doc/opendkim/rfc5518.txt
X%%PORTDOCS%%share/doc/opendkim/rfc5585.txt
X%%PORTDOCS%%share/doc/opendkim/rfc5617.txt
Xshare/opendkim/dkim.html
Xshare/opendkim/dkim_alg_t.html
Xshare/opendkim/dkim_body.html
Xshare/opendkim/dkim_canon_t.html
Xshare/opendkim/dkim_cbstat.html
Xshare/opendkim/dkim_chunk.html
Xshare/opendkim/dkim_close.html
Xshare/opendkim/dkim_dnssec.html
Xshare/opendkim/dkim_eoh.html
Xshare/opendkim/dkim_eom.html
Xshare/opendkim/dkim_flush_cache.html
Xshare/opendkim/dkim_free.html
Xshare/opendkim/dkim_get_user_context.html
Xshare/opendkim/dkim_getcachestats.html
Xshare/opendkim/dkim_getdomain.html
Xshare/opendkim/dkim_geterror.html
Xshare/opendkim/dkim_getmode.html
Xshare/opendkim/dkim_getpolicystr.html
Xshare/opendkim/dkim_getpresult.html
Xshare/opendkim/dkim_getpresultstr.html
Xshare/opendkim/dkim_getresultstr.html
Xshare/opendkim/dkim_getsighdr.html
Xshare/opendkim/dkim_getsiglist.html
Xshare/opendkim/dkim_getsignature.html
Xshare/opendkim/dkim_header.html
Xshare/opendkim/dkim_init.html
Xshare/opendkim/dkim_key_syntax.html
Xshare/opendkim/dkim_lib.html
Xshare/opendkim/dkim_minbody.html
Xshare/opendkim/dkim_ohdrs.html
Xshare/opendkim/dkim_options.html
Xshare/opendkim/dkim_param_t.html
Xshare/opendkim/dkim_policy.html
Xshare/opendkim/dkim_policy_getdnssec.html
Xshare/opendkim/dkim_policy_getreportinfo.html
Xshare/opendkim/dkim_policy_syntax.html
Xshare/opendkim/dkim_policy_t.html
Xshare/opendkim/dkim_presult.html
Xshare/opendkim/dkim_pstate.html
Xshare/opendkim/dkim_query_t.html
Xshare/opendkim/dkim_set_dns_callback.html
Xshare/opendkim/dkim_set_final.html
Xshare/opendkim/dkim_set_key_lookup.html
Xshare/opendkim/dkim_set_margin.html
Xshare/opendkim/dkim_set_policy_lookup.html
Xshare/opendkim/dkim_set_prescreen.html
Xshare/opendkim/dkim_set_signature_handle.html
Xshare/opendkim/dkim_set_signature_handle_free.html
Xshare/opendkim/dkim_set_signature_tagvalues.html
Xshare/opendkim/dkim_set_signer.html
Xshare/opendkim/dkim_set_user_context.html
Xshare/opendkim/dkim_sig_getbh.html
Xshare/opendkim/dkim_sig_getcanonlen.html
Xshare/opendkim/dkim_sig_getcontext.html
Xshare/opendkim/dkim_sig_getdnssec.html
Xshare/opendkim/dkim_sig_getdomain.html
Xshare/opendkim/dkim_sig_geterror.html
Xshare/opendkim/dkim_sig_geterrorstr.html
Xshare/opendkim/dkim_sig_getflags.html
Xshare/opendkim/dkim_sig_getkeysize.html
Xshare/opendkim/dkim_sig_getreportinfo.html
Xshare/opendkim/dkim_sig_getselector.html
Xshare/opendkim/dkim_sig_getsignalg.html
Xshare/opendkim/dkim_sig_getsigntime.html
Xshare/opendkim/dkim_sig_hdrsigned.html
Xshare/opendkim/dkim_sig_ignore.html
Xshare/opendkim/dkim_sig_process.html
Xshare/opendkim/dkim_sig_syntax.html
Xshare/opendkim/dkim_sigerror.html
Xshare/opendkim/dkim_siginfo.html
Xshare/opendkim/dkim_sigkey_t.html
Xshare/opendkim/dkim_sign.html
Xshare/opendkim/dkim_ssl_version.html
Xshare/opendkim/dkim_stat.html
Xshare/opendkim/dkim_verify.html
Xshare/opendkim/index.html
Xshare/opendkim/overview.html
Xshare/opendkim/rfc2822_mailbox_split.html
X@dirrm share/opendkim
X@dirrm include/opendkim
X@dirrm include/ar
X@dirrm etc/mail
eed37e8dc5ce5a9755bcde0327224f5a
echo x - mail/opendkim/distinfo
sed 's/^X//' >mail/opendkim/distinfo << 'a150d3cf54ae17aaec5e1833834d12f1'
XMD5 (opendkim-1.0.0.tar.gz) = ecc09da6a40ba55b922d284d43db5468
XSHA256 (opendkim-1.0.0.tar.gz) = 9420aa7b0bd0bcd0122675d412060dc807fcc0cec65028c038f150a43f260aa5
XSIZE (opendkim-1.0.0.tar.gz) = 885016
a150d3cf54ae17aaec5e1833834d12f1
echo x - mail/opendkim/Makefile.features
sed 's/^X//' >mail/opendkim/Makefile.features << 'a81ea548cfa68bf668eab32379e08e7d'
X# Makefile.features
X# Author:			Hirohisa Yamaguchi <umq@ueo.co.jp>
X#
X# This file is used to tune build time options.
X# Please refer FEATURES file distributed with the source for details.
X#
X# $FreeBSD$
X#
X
X.if defined(WITH_BODYLENGTH_DB) && !defined(WITHOUT_BODYLENGTH_DB)
XCONFIGURE_ARGS+=	--enable-bodylengthdb
X.endif
X
X.if defined(WITH_CAPTURE_UNKNOWN_ERRORS) && !defined(WITHOUT_CAPTURE_UNKNOWN_ERRORS)
XCONFIGURE_ARGS+=	--enable-captureerrors
X.endif
X
X.if defined(WITH_COMMAIZE) && !defined(WITHOUT_COMMAIZE)
XCONFIGURE_ARGS+=	--enable-commaize
X.endif
X
X.if defined(WITH_DIFFHEADERS) && !defined(WITHOUT_DIFFHEADERS)
XCONFIGURE_ARGS+=	--enable-diffheaders
XLIB_DEPENDS+=		tre:${PORTSDIR}/textproc/libtre
X.endif
X
X.if defined(WITH_DKIM_REPUTATION) && !defined(WITHOUT_DKIM_REPUTATION)
XCONFIGURE_ARGS+=	--enable-dkimreputation
X.endif
X
X.if defined(WITH_DNS_UPGRADE) && !defined(WITHOUT_DNS_UPGRADE)
XCONFIGURE_ARGS+=	--enable-dnsupgrade
X.endif
X
X.if defined(WITH_MULTIPLE_SIGNATURES) && !defined(WITHOUT_MULTIPLE_SIGNATURES)
XCONFIGURE_ARGS+=	--enable-multiplesigs
X.endif
X
X.if defined(WITH_PARSE_TIME) && !defined(WITHOUT_PARSE_TIME)
XBROKEN=		The feature ``_FFR_PARSE_TIME'' is incomplete, does not work
XCONFIGURE_ARGS+=	--enable-parsetime
X.endif
X
X.if defined(WITH_REPLACE_RULES) && !defined(WITHOUT_REPLACE_RULES)
XCONFIGURE_ARGS+=	-enable-replacerules
X.endif
X
X.if defined(WITH_REPORT_INTERVALS) && !defined(WITHOUT_REPORT_INTERVALS)
XCONFIGURE_ARGS+=	--enable-reportintervals
X.endif
X
X.if defined(WITH_SELECT_CANONICALIZATION) && !defined(WITHOUT_SELECT_CANONICALIZATION)
XCONFIGURE_ARGS+=	--enable-selectcanon
X.endif
X
X.if defined(WITH_SELECTOR_HEADER) && !defined(WITHOUT_SELECTOR_HEADER)
XCONFIGURE_ARGS+=	--enable-selectorheader
X.endif
X
X.if defined(WITH_SENDER_HEADERS) && !defined(WITHOUT_SENDER_HEADERS)
XCONFIGURE_ARGS+=	--enable-senderheaders
X.endif
X
X.if defined(WITH_STATS) && !defined(WITHOUT_STATS)
XCONFIGURE_ARGS+=	--enable-stats
XMAN8+=			opendkim-stats.8
XPLIST_SUB+=		STATS=""
X.else
XPLIST_SUB+=		STATS="@comment "
X.endif
X
X.if defined(WITH_VBR) && !defined(WITHOUT_VBR)
XCONFIGURE_ARGS+=	--enable-vbr
X.endif
X
X.if defined(WITH_ZTAGS) && !defined(WITHOUT_ZTAGS)
XCONFIGURE_ARGS+=	--enable-ztags
X.endif
a81ea548cfa68bf668eab32379e08e7d
echo c - mail/opendkim/files
mkdir -p mail/opendkim/files > /dev/null 2>&1
echo x - mail/opendkim/files/patch-FEATURES
sed 's/^X//' >mail/opendkim/files/patch-FEATURES << '5399121e7e045327b14c2d3496468d90'
X--- ./FEATURES.orig	2009-08-04 06:31:48.000000000 +0900
X+++ ./FEATURES	2009-08-27 20:35:42.000000000 +0900
X@@ -74,6 +74,9 @@
X 		to use when signing based on the contents of an arbitrary
X 		header.  (opendkim)
X 
X+senderheaders	Optional control over which headers are used by the filter
X+		to make the sign vs. verify decision.  (opendkim)
X+
X stats		Optional generation of statistics about pass/fail sorted
X 		by domain and canonicalization.  Requires Sleepycat DB.
X 		(opendkim, libopendkim)
5399121e7e045327b14c2d3496468d90
echo x - mail/opendkim/files/milter-opendkim.in
sed 's/^X//' >mail/opendkim/files/milter-opendkim.in << '63e14f08bbb5e898579a585d4595fae7'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: milter-opendkim
X# REQUIRE: DAEMON
X# BEFORE: mail
X# KEYWORD: shutdown
X
X# Define these milteropendkim_* variables in one of these files:
X#	/etc/rc.conf
X#	/etc/rc.conf.local
X#	/etc/rc.conf.d/milteropendkim
X#
X# milteropendkim_enable (bool):   Set to "NO" by default.
X#                             Set it to "YES" to enable dkim-milter
X# milteropendkim_uid (str):       Set username to run milter.
X# milteropendkim_profiles (list): Set to "" by default.
X#                             Define your profiles here.
X# milteropendkim_cfgfile (str):   Configuration file. See opendkim.conf(5)
X#
X# milteropendkim_${profile}_* :   Variables per profile.
X#                             Sockets must be different from each other.
X#
X#  all parameters below now can be set in opendkim.conf(5).
X# milteropendkim_socket (str):    Path to the milter socket.
X# milteropendkim_domain (str):    Domainpart of From: in mails to sign.
X# milteropendkim_key (str):       Path to the private key file to sign with.
X# milteropendkim_selector (str):  Selector to use when signing
X# milteropendkim_alg (str):       Algorithm to use when signing
X# milteropendkim_flags (str):     Flags passed to start command.
X
X. %%RC_SUBR%%
X
Xname="milteropendkim"
Xrcvar=`set_rcvar`
X
Xstart_precmd="dkim_prepcmd"
Xstop_postcmd="dkim_postcmd"
Xcommand="%%PREFIX%%/sbin/opendkim"
X_piddir="/var/run/milteropendkim"
Xpidfile="${_piddir}/pid"
X
Xload_rc_config $name
X
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE
X#
X: ${milteropendkim_enable="NO"}
X: ${milteropendkim_uid="mailnull"}
X: ${milteropendkim_profiles=""}
X: ${milteropendkim_cfgfile="%%PREFIX%%/etc/mail/opendkim.conf"}
X
X: ${milteropendkim_socket=""}
X: ${milteropendkim_domain=""}
X: ${milteropendkim_key=""}
X: ${milteropendkim_selector=""}
X: ${milteropendkim_alg=""}
X# Options other than above can be set with $milteropendkim_flags.
X# see dkim-milter documentation for detail.
X
Xif [ -n "$2" ]; then
X    profile="$2"
X    if [ "x${milteropendkim_profiles}" != "x" ]; then
X	pidfile="${_piddir}/${profile}.pid"
X	eval milteropendkim_enable="\${milteropendkim_${profile}_enable:-${milteropendkim_enable}}"
X	eval milteropendkim_socket="\${milteropendkim_${profile}_socket:-}"
X	if [ "x${milteropendkim_socket}" = "x" ];then
X	    echo "You must define a socket (milteropendkim_${profile}_socket)"
X	    exit 1
X	fi
X	eval milteropendkim_cfgfile="\${milteropendkim_${profile}_cfgfile:-${milteropendkim_cfgfile}}"
X	eval milteropendkim_domain="\${milteropendkim_${profile}_domain:-${milteropendkim_domain}}"
X	eval milteropendkim_key="\${milteropendkim_${profile}_key:-${milteropendkim_key}}"
X	eval milteropendkim_selector="\${milteropendkim_${profile}_selector:-${milteropendkim_selector}}"
X	eval milteropendkim_alg="\${milteropendkim_${profile}_alg:-${milteropendkim_alg}}"
X	eval milteropendkim_flags="\${milteropendkim_${profile}_flags:-${milteropendkim_flags}}"
X	if [ -f "${milteropendkim_cfgfile}" ];then
X	    milteropendkim_cfgfile="-x ${milteropendkim_cfgfile}"
X	else
X	    milteropendkim_cfgfile=""
X	fi
X	if [ "x${milteropendkim_socket}" != "x" ];then
X	    _socket_prefix="-p"
X	fi
X	if [ "x${milteropendkim_uid}" != "x" ];then
X	    _uid_prefix="-u"
X	fi
X	if [ "x${milteropendkim_domain}" != "x" ];then
X	    milteropendkim_domain="-d ${milteropendkim_domain}"
X	fi
X	if [ "x${milteropendkim_key}" != "x" ];then
X	    milteropendkim_key="-k ${milteropendkim_key}"
X	fi
X	if [ "x${milteropendkim_selector}" != "x" ];then
X	    milteropendkim_selector="-s ${milteropendkim_selector}"
X	fi
X	if [ "x${milteropendkim_alg}" != "x" ];then
X	    milteropendkim_alg="-S ${milteropendkim_alg}"
X	fi
X	command_args="-l ${_socket_prefix} ${milteropendkim_socket} ${_uid_prefix} ${milteropendkim_uid} -P ${pidfile} ${milteropendkim_cfgfile} ${milteropendkim_domain} ${milteropendkim_key} ${milteropendkim_selector} ${milteropendkim_alg}"
X    else
X	echo "$0: extra argument ignored"
X    fi
Xelse
X    if [ "x${milteropendkim_profiles}" != "x" -a "x$1" != "x" ]; then
X	if [ "x$1" != "xrestart" ]; then
X	    for profile in ${milteropendkim_profiles}; do
X		echo "===> milteropendkim profile: ${profile}"
X		%%PREFIX%%/etc/rc.d/milter-opendkim $1 ${profile}
X		retcode="$?"
X		if [ "0${retcode}" -ne 0 ]; then
X		    failed="${profile} (${retcode}) ${failed:-}"
X		else
X		    success="${profile} ${success:-}"
X		fi
X	    done
X	    exit 0
X	else
X	    restart_precmd=""
X	fi
X    else
X	if [ -f "${milteropendkim_cfgfile}" ];then
X	    milteropendkim_cfgfile="-x ${milteropendkim_cfgfile}"
X	else
X	    milteropendkim_cfgfile=""
X	fi
X	if [ "x${milteropendkim_socket}" != "x" ];then
X	    _socket_prefix="-p"
X	fi
X	if [ "x${milteropendkim_uid}" != "x" ];then
X	    _uid_prefix="-u"
X	fi
X	if [ "x${milteropendkim_domain}" != "x" ];then
X	    milteropendkim_domain="-d ${milteropendkim_domain}"
X	fi
X	if [ "x${milteropendkim_key}" != "x" ];then
X	    milteropendkim_key="-k ${milteropendkim_key}"
X	fi
X	if [ "x${milteropendkim_selector}" != "x" ];then
X	    milteropendkim_selector="-s ${milteropendkim_selector}"
X	fi
X	if [ "x${milteropendkim_alg}" != "x" ];then
X	    milteropendkim_alg="-S ${milteropendkim_alg}"
X	fi
X	command_args="-l ${_socket_prefix} ${milteropendkim_socket} ${_uid_prefix} ${milteropendkim_uid} -P ${pidfile} ${milteropendkim_cfgfile} ${milteropendkim_domain} ${milteropendkim_key} ${milteropendkim_selector} ${milteropendkim_alg}"
X    fi
Xfi
X
Xdkim_prepcmd ()
X{
X    if [ -S ${milteropendkim_socket##local:} ] ; then
X        rm -f ${milteropendkim_socket##local:}
X    elif [ -S ${milteropendkim_socket##unix:} ] ; then
X        rm -f ${milteropendkim_socket##unix:}
X    fi
X    if [ ! -d ${_piddir} ] ; then
X	mkdir -p ${_piddir}
X    fi
X    if [ -n "${milteropendkim_uid}" ] ; then
X	chown ${milteropendkim_uid} ${_piddir}
X    fi
X}
X
Xdkim_postcmd()
X{
X    if [ -S ${milteropendkim_socket##local:} ] ; then
X        rm -f ${milteropendkim_socket##local:}
X    elif [ -S ${milteropendkim_socket##unix:} ] ; then
X        rm -f ${milteropendkim_socket##unix:}
X    fi
X    # just if the directory is empty
X    rmdir ${_piddir} > /dev/null 2>&1
X}
X
Xrun_rc_command "$1"
63e14f08bbb5e898579a585d4595fae7
echo x - mail/opendkim/files/patch-opendkim__Makefile.in
sed 's/^X//' >mail/opendkim/files/patch-opendkim__Makefile.in << 'd43c215b99c8232eae64e303c9b11f69'
X--- ./opendkim/Makefile.in.orig	2009-08-15 01:44:49.000000000 +0900
X+++ ./opendkim/Makefile.in	2009-08-27 20:36:49.000000000 +0900
X@@ -327,7 +327,7 @@
X AM_LDFLAGS = -pthread
X sbin_SCRIPTS = opendkim-genkey.sh
X exampledir = $(datarootdir)/doc/@PACKAGE@
X-example_DATA = opendkim.conf.sample
X+example_DATA = 
X @BUILD_FILTER_TRUE@opendkim_SOURCES = opendkim.c opendkim.h opendkim-ar.c opendkim-ar.h opendkim-arf.c opendkim-arf.h opendkim-config.h opendkim-crypto.c opendkim-crypto.h opendkim-db.c opendkim-db.h config.c config.h stats.c stats.h test.c test.h util.c util.h
X @BUILD_FILTER_TRUE@opendkim_CFLAGS = $(am__append_2) $(am__append_6) \
X @BUILD_FILTER_TRUE@	$(am__append_7) $(am__append_8) \
d43c215b99c8232eae64e303c9b11f69
echo x - mail/opendkim/pkg-message
sed 's/^X//' >mail/opendkim/pkg-message << '360d54e03c0c5a0702e2e79b8e723f83'
X************************************************************************
X
XIn order to run this port, write your opendkim.conf and:
X
Xif you use sendmail, add the milter socket `socketspec' in
X/etc/mail/<your_configuration>.mc:
X
XINPUT_MAIL_FILTER(`dkim-filter', `S=_YOUR_SOCKET_SPEC_, F=T, T=R:2m')
X
Xor if you use postfix write your milter socket `socketspec' in
X${PREFIX}/etc/mail/main.cf:
X
Xsmtpd_milters = _YOUR_SOCKET_SPEC_
X
X
XAnd to run the milter from startup, add milteropendkim_enable="YES" in
Xyour /etc/rc.conf.
XExtra options can be found in startup script.
X
XNote: milter sockets must be accessible from postfix/smtpd;
X  using inet sockets might be preferred.
X
X************************************************************************
360d54e03c0c5a0702e2e79b8e723f83
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hbvt1ngw.wl%umq>