summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-08-22 23:05:15 +0000
committerAlin Năstac <mrness@gentoo.org>2009-08-22 23:05:15 +0000
commit6fa5a111a7424f6ec3c0d14c7c9a5769457f9b2f (patch)
treeb96196f575030962215e995248ef8c14c2c1c695
parentupdated dependencies for bug 231870. (diff)
downloadgentoo-2-6fa5a111a7424f6ec3c0d14c7c9a5769457f9b2f.tar.gz
gentoo-2-6fa5a111a7424f6ec3c0d14c7c9a5769457f9b2f.tar.bz2
gentoo-2-6fa5a111a7424f6ec3c0d14c7c9a5769457f9b2f.zip
Use shared libmilter library (#245950).
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force)
-rw-r--r--mail-filter/dkim-milter/ChangeLog13
-rw-r--r--mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild153
-rw-r--r--mail-filter/dkim-milter/dkim-milter-2.8.3-r1.ebuild (renamed from mail-filter/dkim-milter/dkim-milter-2.8.3.ebuild)18
-rw-r--r--mail-filter/dkim-milter/files/dkim-milter-2.8.2-exit-on-error.patch44
-rw-r--r--mail-filter/dkim-milter/files/dkim-milter-2.8.2-gentoo.patch172
-rw-r--r--mail-filter/dkim-milter/files/dkim-milter-2.8.2-mkdir.patch96
-rw-r--r--mail-filter/dkim-milter/files/dkim-milter-2.8.2-test115.patch21
-rw-r--r--mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch22
8 files changed, 34 insertions, 505 deletions
diff --git a/mail-filter/dkim-milter/ChangeLog b/mail-filter/dkim-milter/ChangeLog
index a59988eec24b..59818552b982 100644
--- a/mail-filter/dkim-milter/ChangeLog
+++ b/mail-filter/dkim-milter/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for mail-filter/dkim-milter
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/ChangeLog,v 1.32 2009/08/15 12:46:13 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/ChangeLog,v 1.33 2009/08/22 23:05:15 mrness Exp $
+
+*dkim-milter-2.8.3-r1 (22 Aug 2009)
+
+ 22 Aug 2009; Alin Năstac <mrness@gentoo.org>
+ -files/dkim-milter-2.8.2-exit-on-error.patch,
+ -files/dkim-milter-2.8.2-gentoo.patch,
+ -files/dkim-milter-2.8.2-mkdir.patch,
+ -files/dkim-milter-2.8.2-test115.patch,
+ files/dkim-milter-2.8.3-gentoo.patch, -dkim-milter-2.8.2.ebuild,
+ -dkim-milter-2.8.3.ebuild, +dkim-milter-2.8.3-r1.ebuild:
+ Use shared libmilter library (#245950).
15 Aug 2009; Alin Năstac <mrness@gentoo.org> dkim-milter-2.8.2.ebuild,
dkim-milter-2.8.3.ebuild:
diff --git a/mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild b/mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild
deleted file mode 100644
index 7de18959bcd1..000000000000
--- a/mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild
+++ /dev/null
@@ -1,153 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild,v 1.4 2009/08/15 12:46:13 mrness Exp $
-
-EAPI="2"
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="A milter-based application to provide DomainKeys Identified Mail (DKIM) service"
-HOMEPAGE="http://sourceforge.net/projects/dkim-milter/"
-SRC_URI="mirror://sourceforge/dkim-milter/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source"
-SLOT="0"
-KEYWORDS="~amd64 x86"
-IUSE="ipv6 diffheaders"
-
-RDEPEND="dev-libs/openssl
- >=sys-libs/db-3.2
- diffheaders? ( dev-libs/tre )"
-DEPEND="${RDEPEND}
- || ( mail-filter/libmilter mail-mta/sendmail )" # libmilter is a static library
-
-pkg_setup() {
- enewgroup milter
- # mail-milter/spamass-milter creates milter user with this home directory
- # For consistency reasons, milter user must be created here with this home directory
- # even though this package doesn't need a home directory for this user (#280571)
- enewuser milter -1 -1 /var/lib/milter milter
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-exit-on-error.patch
- epatch "${FILESDIR}"/${P}-test115.patch
- epatch "${FILESDIR}"/${P}-mkdir.patch
-
- cp site.config.m4.dist devtools/Site/site.config.m4 || \
- die "failed to copy site.config.m4"
- epatch "${FILESDIR}"/${P}-gentoo.patch
-
- local ENVDEF=""
- use ipv6 && ENVDEF="${ENVDEF} -DNETINET6"
- sed -i -e "s:@@CFLAGS@@:${CFLAGS}:" \
- -e "s:@@ENVDEF@@:${ENVDEF}:" \
- -e "s:@@LIBDIR@@:/usr/$(get_libdir):" \
- devtools/Site/site.config.m4
-
- use diffheaders && epatch "${FILESDIR}/${PN}-diffheaders.patch"
-}
-
-src_compile() {
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_test() {
- emake -j1 CC="$(tc-getCC)" OPTIONS=check \
- || die "emake check failed"
-}
-
-src_install() {
- # no other program need to read from here
- dodir /etc/mail/dkim-filter
- fowners milter:milter /etc/mail/dkim-filter
- fperms 700 /etc/mail/dkim-filter
-
- insinto /etc/mail/dkim-filter
- newins dkim-filter/dkim-filter.conf.sample dkim-filter.conf
-
- newinitd "${FILESDIR}/dkim-filter.init" dkim-filter \
- || die "newinitd failed"
- sed -i -e s:bin/dkim-filter:sbin/dkim-filter: "${D}/etc/init.d/dkim-filter" \
- || die 'failed to correct dkim-filter path'
-
- # prepare directory for .pid, .sock and .stats files
- dodir /var/run/dkim-filter
- fowners milter:milter /var/run/dkim-filter
-
- dodir /usr/bin /usr/sbin
- emake -j1 DESTDIR="${D}" \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- install || die "make install failed"
-
- # man build is broken; do man page installation by hand
- doman */*.{3,5,8} || die "failed to install man pages"
-
- # some people like docs
- dodoc README RELEASE_NOTES *.txt &&
- dohtml -r libdkim/docs/* ||
- die "failed to install docs"
-}
-
-pkg_postinst() {
- elog "If you want to sign your mail messages, you will have to run"
- elog " emerge --config ${CATEGORY}/${PN}"
- elog "It will help you create your key and give you hints on how"
- elog "to configure your DNS and MTA."
-
- ewarn "Make sure your MTA has r/w access to the socket file."
- ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
- ewarn "to milter group or you can simply set UMask to 000."
-}
-
-pkg_config() {
- local selector keysize pubkey
-
- read -p "Enter the selector name (default ${HOSTNAME}): " selector
- [[ -n "${selector}" ]] || selector=${HOSTNAME}
- if [[ -z "${selector}" ]]; then
- eerror "Oddly enough, you don't have a HOSTNAME."
- return 1
- fi
- if [[ -f "${ROOT}"etc/mail/dkim-filter/${selector}.private ]]; then
- ewarn "The private key for this selector already exists."
- else
- einfo "Select the size of private key:"
- einfo " [1] 512 bits"
- einfo " [2] 1024 bits"
- while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
- [[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
- done
- case ${keysize} in
- 1) keysize=512 ;;
- *) keysize=1024 ;;
- esac
-
- # generate the private and public keys
- dkim-genkey -b ${keysize} -D "${ROOT}"etc/mail/dkim-filter/ \
- -s ${selector} && \
- chown milter:milter \
- "${ROOT}"etc/mail/dkim-filter/"${selector}".private || \
- { eerror "Failed to create private and public keys." ; return 1; }
- fi
-
- # dkim-filter selector configuration
- echo
- einfo "Make sure you have the following settings in your dkim-filter.conf:"
- einfo " Keyfile /etc/mail/dkim-filter/${selector}.private"
- einfo " Selector ${selector}"
-
- # MTA configuration
- echo
- einfo "If you are using Postfix, add following lines to your main.cf:"
- einfo " smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock"
- einfo " non_smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock"
-
- # DNS configuration
- einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
- cat "${ROOT}"etc/mail/dkim-filter/${selector}.txt
- einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
- einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
- einfo
- einfo "Also look at the draft ASP http://www.dkim.org/specs/draft-ietf-dkim-ssp-03.html"
-}
diff --git a/mail-filter/dkim-milter/dkim-milter-2.8.3.ebuild b/mail-filter/dkim-milter/dkim-milter-2.8.3-r1.ebuild
index 1ce5b2241b89..d7d189d6681c 100644
--- a/mail-filter/dkim-milter/dkim-milter-2.8.3.ebuild
+++ b/mail-filter/dkim-milter/dkim-milter-2.8.3-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/dkim-milter-2.8.3.ebuild,v 1.3 2009/08/15 12:46:13 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/dkim-milter-2.8.3-r1.ebuild,v 1.1 2009/08/22 23:05:15 mrness Exp $
EAPI="2"
@@ -15,11 +15,11 @@ SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="ipv6 diffheaders"
-RDEPEND="dev-libs/openssl
+DEPEND="dev-libs/openssl
>=sys-libs/db-3.2
+ || ( mail-filter/libmilter mail-mta/sendmail )
diffheaders? ( dev-libs/tre )"
-DEPEND="${RDEPEND}
- || ( mail-filter/libmilter mail-mta/sendmail )" # libmilter is a static library
+RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup milter
@@ -36,9 +36,12 @@ src_prepare() {
die "failed to copy site.config.m4"
epatch "${FILESDIR}"/${P}-gentoo.patch
+ local CC="$(tc-getCC)"
local ENVDEF=""
use ipv6 && ENVDEF="${ENVDEF} -DNETINET6"
- sed -i -e "s:@@CFLAGS@@:${CFLAGS}:" \
+ sed -i -e "s:@@CC@@:${CC}:" \
+ -e "s:@@CFLAGS@@:${CFLAGS}:" \
+ -e "s:@@LDFLAGS@@:${LDFLAGS}:" \
-e "s:@@ENVDEF@@:${ENVDEF}:" \
-e "s:@@LIBDIR@@:/usr/$(get_libdir):" \
devtools/Site/site.config.m4
@@ -52,12 +55,11 @@ src_prepare() {
}
src_compile() {
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
+ emake -j1 || die "emake failed"
}
src_test() {
- emake -j1 CC="$(tc-getCC)" OPTIONS=check \
- || die "emake check failed"
+ emake -j1 OPTIONS=check || die "emake check failed"
}
src_install() {
diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-exit-on-error.patch b/mail-filter/dkim-milter/files/dkim-milter-2.8.2-exit-on-error.patch
deleted file mode 100644
index 41100303106b..000000000000
--- a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-exit-on-error.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -Nru dkim-milter-2.8.2.orig/Makefile dkim-milter-2.8.2/Makefile
---- dkim-milter-2.8.2.orig/Makefile 2005-05-20 21:58:50.000000000 +0000
-+++ dkim-milter-2.8.2/Makefile 2009-02-28 10:28:31.000000000 +0000
-@@ -9,35 +9,35 @@
- @for x in $(SUBDIRS); \
- do \
- (cd $$x; echo Making $@ in:; pwd; \
-- $(SHELL) $(BUILD) $(OPTIONS)); \
-+ $(SHELL) $(BUILD) $(OPTIONS)) || exit; \
- done
-
- clean: FRC
- @for x in $(SUBDIRS); \
- do \
- (cd $$x; echo Making $@ in:; pwd; \
-- $(SHELL) $(BUILD) $(OPTIONS) $@); \
-+ $(SHELL) $(BUILD) $(OPTIONS) $@) || exit; \
- done
-
- install: FRC
- @for x in $(SUBDIRS); \
- do \
- (cd $$x; echo Making $@ in:; pwd; \
-- $(SHELL) $(BUILD) $(OPTIONS) $@); \
-+ $(SHELL) $(BUILD) $(OPTIONS) $@) || exit; \
- done
-
- install-docs: FRC
- @for x in $(SUBDIRS); \
- do \
- (cd $$x; echo Making $@ in:; pwd; \
-- $(SHELL) $(BUILD) $(OPTIONS) $@); \
-+ $(SHELL) $(BUILD) $(OPTIONS) $@) || exit; \
- done
-
- fresh: FRC
- @for x in $(SUBDIRS); \
- do \
- (cd $$x; echo Making $@ in:; pwd; \
-- $(SHELL) $(BUILD) $(OPTIONS) -c); \
-+ $(SHELL) $(BUILD) $(OPTIONS) -c) || exit; \
- done
-
- $(SUBDIRS): FRC
diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-gentoo.patch b/mail-filter/dkim-milter/files/dkim-milter-2.8.2-gentoo.patch
deleted file mode 100644
index f949b84c54ac..000000000000
--- a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-gentoo.patch
+++ /dev/null
@@ -1,172 +0,0 @@
-diff -Nru dkim-milter-2.8.2.orig/devtools/Site/site.config.m4 dkim-milter-2.8.2/devtools/Site/site.config.m4
---- dkim-milter-2.8.2.orig/devtools/Site/site.config.m4 2009-02-28 13:58:13.000000000 +0000
-+++ dkim-milter-2.8.2/devtools/Site/site.config.m4 2009-02-28 14:00:02.000000000 +0000
-@@ -11,7 +11,13 @@
- dnl If you are encountering coredumps and want to be able to analyze them
- dnl using something like "gdb", enable this next line by deleting the "dnl"
- dnl at the front of it.
--dnl define(`confOPTIMIZE', `-g')
-+define(`confOPTIMIZE', `@@CFLAGS@@')
-+define(`confENVDEF', `@@ENVDEF@@')
-+define(`confMKDIR', `mkdir')
-+define(`confLIBDIR', `@@LIBDIR@@')
-+define(`confSHAREDLIBDIR', `@@LIBDIR@@')
-+dnl man build is broken
-+define(`confNO_MAN_BUILD',`')
-
- dnl Shared library for libdkim
- dnl
-@@ -26,7 +32,7 @@
- dnl the package, enable this next line by deleting the "dnl" at the front
- dnl of it. This is done automatically if you've requested the shared
- dnl library.
--dnl define(`bld_LIBDKIM_INSTALL', `true')
-+define(`bld_LIBDKIM_INSTALL', `true')
-
- dnl Use native strlcat()/strlcpy() functions
- dnl
-@@ -53,7 +59,7 @@
- dnl
- dnl If you want to use the provided asynchronous resolver library, enable this
- dnl next line by deleting the "dnl" at the front of it.
--dnl define(`bld_USE_ARLIB', `true')
-+define(`bld_USE_ARLIB', `true')
- dnl
- dnl libar normally uses res_init() or res_ninit() to load the contents
- dnl of resolv.conf for its use. If neither of these work on your system
-@@ -94,7 +100,7 @@
- dnl it has seen, rather than relying on the DNS server to provide caching,
- dnl enable this next line by deleting the "dnl" at the front of it. Also
- dnl see the section below called "BerkeleyDB".
--dnl APPENDDEF(`confENVDEF', `-DQUERY_CACHE ')
-+APPENDDEF(`confENVDEF', `-DQUERY_CACHE ')
-
- dnl BerkeleyDB -- Berkeley DB ("Sleepycat") database
- dnl
-@@ -107,7 +113,7 @@
- dnl by deleting "dnl" from the front of them:
- dnl APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB/include ')
- dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB/lib ')
--dnl APPENDDEF(`confLIBS', `-ldb ')
-+APPENDDEF(`confLIBS', `-ldb ')
-
- dnl OpenSSL -- cryptography library
- dnl
-@@ -146,7 +152,7 @@
- dnl APPENDDEF(`confENVDEF', `-D_FFR_REPORT_INTERVALS ')
- dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECT_CANONICALIZATION ')
- dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECTOR_HEADER ')
--dnl APPENDDEF(`confENVDEF', `-D_FFR_STATS ')
-+APPENDDEF(`confENVDEF', `-D_FFR_STATS ')
- dnl APPENDDEF(`confENVDEF', `-D_FFR_VBR ')
- dnl APPENDDEF(`confENVDEF', `-D_FFR_ZTAGS ')
-
-diff -Nru dkim-milter-2.8.2.orig/dkim-filter/dkim-filter.conf.sample dkim-milter-2.8.2/dkim-filter/dkim-filter.conf.sample
---- dkim-milter-2.8.2.orig/dkim-filter/dkim-filter.conf.sample 2008-12-27 05:21:56.000000000 +0000
-+++ dkim-milter-2.8.2/dkim-filter/dkim-filter.conf.sample 2009-02-28 13:59:15.000000000 +0000
-@@ -90,13 +90,6 @@
-
- # AutoRestartRate n/tu
-
--## Background { yes | no }
--## default "yes"
--##
--## Indicate whether or not the filter should run in the background.
--
--# Background Yes
--
- ## BaseDirectory path
- ## default (none)
- ##
-@@ -193,7 +186,7 @@
- ## hosts from which mail should be signed rather than verified.
- ## Automatically contains 127.0.0.1. See man page for file format.
-
--# InternalHosts filename
-+# InternalHosts /etc/mail/dkim-filter/internalhosts
-
- ## KeepTemporaryFiles { yes | no }
- ## default "no"
-@@ -209,7 +202,7 @@
- ## Specifies the path to the private key to use when signing. Ignored if
- ## Keylist is set. No default; must be specified for signing.
-
--KeyFile /var/db/dkim/example.private
-+KeyFile /etc/mail/dkim-filter/my-selector-name.private
-
- ## KeyList filename
- ##
-@@ -226,7 +219,7 @@
- ## as the beginning of a comment. See dkim-filter.conf(5) for more
- ## information.
-
--# KeyList /var/db/dkim/keylist
-+# KeyList /etc/mail/dkim-filter/keylist
-
- ## LocalADSP filename
- ##
-@@ -350,24 +343,6 @@
- ## page for file format.
-
- # PeerList filename
--
--## PidFile filename
--##
--## Name of the file where the filter should write its pid before beginning
--## normal operations.
--
--# PidFile filename
--
--## POPDBFile filename
--##
--## Names a database which should be checked for "POP before SMTP" records
--## as a form of authentication of users who may be sending mail through
--## the MTA for signing. Requires special compilation of the filter.
--## See dkim-filter.conf(5) for more information.
--
--# POPDBFile filename
--
--## Quarantine { yes | no }
- ## default "no"
- ##
- ## Indicates whether or not the filter should arrange to quarantine mail
-@@ -486,7 +461,7 @@
- ## inet:port to listen on all interfaces
- ## local:/path/to/socket to listen on a UNIX domain socket
-
--Socket inet:port@localhost
-+Socket local:/var/run/dkim-filter/dkim-filter.sock
-
- ## StrictTestMode { yes | no }
- ## default "no"
-@@ -553,7 +528,7 @@
- ## The system has its own default which will be used (usually 022).
- ## See the umask(2) man page for more information.
-
--# UMask 022
-+UMask 002
-
- ## Userid userid
- ## default (none)
-@@ -561,7 +536,7 @@
- ## Change to user "userid" before starting normal operation? May include
- ## a group ID as well, separated from the userid by a colon.
-
--# UserID userid
-+UserID milter
-
- ## X-Header { yes | no }
- ## default "no"
-@@ -570,3 +545,12 @@
- ## messages it has processed.
-
- # X-Header No
-+#
-+
-+## Statistics filename
-+##
-+## Names a file to which useful statistics will be saved.
-+## See man dkim-stats page
-+
-+Statistics /var/run/dkim-filter/dkim-filter.stats
-+
diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-mkdir.patch b/mail-filter/dkim-milter/files/dkim-milter-2.8.2-mkdir.patch
deleted file mode 100644
index b669a4ccad6b..000000000000
--- a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-mkdir.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff -Nru dkim-milter-2.8.2.orig/devtools/M4/UNIX/executable.m4 dkim-milter-2.8.2/devtools/M4/UNIX/executable.m4
---- dkim-milter-2.8.2.orig/devtools/M4/UNIX/executable.m4 2006-10-06 05:44:44.000000000 +0000
-+++ dkim-milter-2.8.2/devtools/M4/UNIX/executable.m4 2009-02-28 11:26:08.000000000 +0000
-@@ -30,12 +30,12 @@
-
- ifdef(`bldNO_INSTALL', ,
- `install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT ifdef(`bldTARGET_INST_DEP', `bldTARGET_INST_DEP')
-- ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'BINDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'BINDIR}; else :; fi ')
-- ${INSTALL} -c -o ${bldBIN_TYPE`'BINOWN} -g ${bldBIN_TYPE`'BINGRP} -m ${bldBIN_TYPE`'BINMODE} bldCURRENT_PRODUCT ${DESTDIR}${bldINSTALL_DIR`'BINDIR}
-+ ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${bldINSTALL_DIR`'BINDIR}" ]; then confMKDIR -p "${DESTDIR}${bldINSTALL_DIR`'BINDIR}"; else :; fi ')
-+ ${INSTALL} -c -o ${bldBIN_TYPE`'BINOWN} -g ${bldBIN_TYPE`'BINGRP} -m ${bldBIN_TYPE`'BINMODE} bldCURRENT_PRODUCT "${DESTDIR}${bldINSTALL_DIR`'BINDIR}"
- ifdef(`bldTARGET_LINKS', `bldMAKE_TARGET_LINKS(${bldINSTALL_DIR`'BINDIR}/bldCURRENT_PRODUCT, ${bldCURRENT_PRODUCT`'TARGET_LINKS})')')
-
- strip-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT
-- ${STRIP} ${STRIPOPTS} ${DESTDIR}${bldINSTALL_DIR`'BINDIR}`'/bldCURRENT_PRODUCT
-+ ${STRIP} ${STRIPOPTS} "${DESTDIR}${bldINSTALL_DIR`'BINDIR}`'/bldCURRENT_PRODUCT"
-
- bldCURRENT_PRODUCT-clean:
- rm -f ${OBJS} bldCURRENT_PRODUCT ${MANPAGES}
-diff -Nru dkim-milter-2.8.2.orig/devtools/M4/UNIX/library.m4 dkim-milter-2.8.2/devtools/M4/UNIX/library.m4
---- dkim-milter-2.8.2.orig/devtools/M4/UNIX/library.m4 2006-09-05 22:56:53.000000000 +0000
-+++ dkim-milter-2.8.2/devtools/M4/UNIX/library.m4 2009-02-28 11:26:38.000000000 +0000
-@@ -27,8 +27,8 @@
- ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
-
- install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a
--ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'LIBDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'LIBDIR}; else :; fi ')
-- ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a ${DESTDIR}${LIBDIR}')
-+ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${LIBDIR}" ]; then confMKDIR -p "${DESTDIR}${LIBDIR}"; else :; fi ')
-+ ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a "${DESTDIR}${LIBDIR}"')
-
- bldCURRENT_PRODUCT-clean:
- rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES}
-diff -Nru dkim-milter-2.8.2.orig/devtools/M4/UNIX/manpage.m4 dkim-milter-2.8.2/devtools/M4/UNIX/manpage.m4
---- dkim-milter-2.8.2.orig/devtools/M4/UNIX/manpage.m4 2006-09-07 22:13:07.000000000 +0000
-+++ dkim-milter-2.8.2/devtools/M4/UNIX/manpage.m4 2009-02-28 11:24:28.000000000 +0000
-@@ -68,11 +68,11 @@
- ifdef(`confNO_MAN_INSTALL', `divert(-1)', `dnl')
- define(`bldMAN_INSTALL_CMD',
- `ifdef(`confDONT_INSTALL_CATMAN', `dnl',
--` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC} ]; then confMKDIR -p ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}; else :; fi ')
-- ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'')
-+` ifdef(`confMKDIR', `if [ ! -d "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}" ]; then confMKDIR -p "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}"; else :; fi ')
-+ ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).`${MAN'bldGET_MAN_SOURCE_NUM($1)`SRC}' "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)}/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}''")
- ifdef(`confINSTALL_RAWMAN',
--` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN} ]; then confMKDIR -p ${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}; else :; fi ')
-- ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1) `${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}'', `dnl')'
-+` ifdef(`confMKDIR', `if [ ! -d "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'" ]; then confMKDIR -p "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'"; else :; fi ')
-+ ${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} bldGET_MAN_BASE_NAME($1).bldGET_MAN_SOURCE_NUM($1) "`${DESTDIR}${MAN'bldGET_MAN_SOURCE_NUM($1)`MAN}'/bldGET_MAN_BASE_NAME($1)`.${MAN'bldGET_MAN_SOURCE_NUM($1)`EXT}''", `dnl')'
- )dnl
- bldFOREACH(`bldMAN_INSTALL_CMD(', `bldMAN_PAGES')
- ifdef(`confNO_MAN_INSTALL', `divert(0)', `dnl')
-diff -Nru dkim-milter-2.8.2.orig/devtools/M4/UNIX/sharedlib.m4 dkim-milter-2.8.2/devtools/M4/UNIX/sharedlib.m4
---- dkim-milter-2.8.2.orig/devtools/M4/UNIX/sharedlib.m4 2009-01-22 02:18:32.000000000 +0000
-+++ dkim-milter-2.8.2/devtools/M4/UNIX/sharedlib.m4 2009-02-28 11:27:56.000000000 +0000
-@@ -53,10 +53,10 @@
- ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)')
-
- install-`'bldCURRENT_PRODUCT: ${SHAREDLIB}
-- ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${SHAREDLIBDIR} ]; then confMKDIR -p ${DESTDIR}${SHAREDLIBDIR}; else :; fi ')
-- ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${SHAREDLIB} ${DESTDIR}${SHAREDLIBDIR}
-- ifelse(bldOS, `AIX', `${AR} ${AROPTS} ${DESTDIR}${SHAREDLIBDIR}bldCURRENT_PRODUCT.a ${SHAREDLIB}', `rm -f ${DESTDIR}${SHAREDLIBDIR}${SHAREDLIB_LINK}
-- ${LN} ${LNOPTS} ${DESTDIR}${SHAREDLIBDIR}${SHAREDLIB} ${DESTDIR}${SHAREDLIBDIR}${SHAREDLIB_LINK}')
-+ ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${SHAREDLIBDIR}" ]; then confMKDIR -p "${DESTDIR}${SHAREDLIBDIR}"; else :; fi ')
-+ ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${SHAREDLIB} "${DESTDIR}${SHAREDLIBDIR}"
-+ ifelse(bldOS, `AIX', `${AR} ${AROPTS} "${DESTDIR}${SHAREDLIBDIR}bldCURRENT_PRODUCT.a ${SHAREDLIB}"', `rm -f "${DESTDIR}${SHAREDLIBDIR}${SHAREDLIB_LINK}"
-+ ${LN} ${LNOPTS} ${SHAREDLIB} "${DESTDIR}${SHAREDLIBDIR}${SHAREDLIB_LINK}"')
-
- bldCURRENT_PRODUCT-clean:
- rm -f ${OBJS} ${SHAREDLIB} bldCURRENT_PRODUCT.a ${MANPAGES} ifelse(bldOS, `AIX', `shr.o', `bldCURRENT_PRODUCT${SHAREDLIB_EXT}')
-diff -Nru dkim-milter-2.8.2.orig/dkim-filter/Makefile.m4 dkim-milter-2.8.2/dkim-filter/Makefile.m4
---- dkim-milter-2.8.2.orig/dkim-filter/Makefile.m4 2009-02-09 19:53:09.000000000 +0000
-+++ dkim-milter-2.8.2/dkim-filter/Makefile.m4 2009-02-28 11:28:16.000000000 +0000
-@@ -74,7 +74,8 @@
- divert(bldTARGETS_SECTION)
-
- install-genkey:
-- ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m 555 ${SRCDIR}/dkim-filter/dkim-genkey.sh ${DESTDIR}${UBINDIR}/dkim-genkey
-+ ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${UBINDIR}" ]; then confMKDIR -p "${DESTDIR}${UBINDIR}"; else :; fi ')
-+ ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m 555 ${SRCDIR}/dkim-filter/dkim-genkey.sh "${DESTDIR}${UBINDIR}/dkim-genkey"
-
- divert(0)
- bldPRODUCT_END
-diff -Nru dkim-milter-2.8.2.orig/libdkim/Makefile.m4 dkim-milter-2.8.2/libdkim/Makefile.m4
---- dkim-milter-2.8.2.orig/libdkim/Makefile.m4 2009-01-15 19:12:47.000000000 +0000
-+++ dkim-milter-2.8.2/libdkim/Makefile.m4 2009-02-28 11:28:30.000000000 +0000
-@@ -42,7 +42,8 @@
- divert(bldTARGETS_SECTION)
-
- install-dkim-includes:
-- ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m 555 ${SRCDIR}/libdkim/dkim.h ${DESTDIR}${INCLUDEDIR}/dkim.h
-+ ifdef(`confMKDIR', `if [ ! -d "${DESTDIR}${INCLUDEDIR}" ]; then confMKDIR -p "${DESTDIR}${INCLUDEDIR}"; else :; fi ')
-+ ${INSTALL} -c -o ${UBINOWN} -g ${UBINGRP} -m 444 ${SRCDIR}/libdkim/dkim.h "${DESTDIR}${INCLUDEDIR}/dkim.h"
- bldPRODUCT_END
-
- define(`confCHECK_LIBS', `libdkim.a')dnl
diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-test115.patch b/mail-filter/dkim-milter/files/dkim-milter-2.8.2-test115.patch
deleted file mode 100644
index 82f162ec5f3b..000000000000
--- a/mail-filter/dkim-milter/files/dkim-milter-2.8.2-test115.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -Nru dkim-milter-2.8.2.orig/libdkim/t-test115.c dkim-milter-2.8.2/libdkim/t-test115.c
---- dkim-milter-2.8.2.orig/libdkim/t-test115.c 2009-02-28 10:55:46.000000000 +0000
-+++ dkim-milter-2.8.2/libdkim/t-test115.c 2009-02-28 10:55:29.000000000 +0000
-@@ -144,7 +144,7 @@
- assert(status == DKIM_STAT_OK);
-
- status = dkim_eoh(dkim);
-- assert(status == DKIM_STAT_NORESOURCE); /* XXX -- fix this! */
-+ assert(status == DKIM_STAT_OK);
-
- status = dkim_getsiglist(dkim, &sigs, &nsigs);
- assert(status == DKIM_STAT_OK);
-@@ -161,7 +161,7 @@
- assert(dkim_sig_geterror(sigs[4]) == DKIM_SIGERROR_KEYTYPEUNKNOWN);
- assert(dkim_sig_geterror(sigs[5]) == DKIM_SIGERROR_DNSSYNTAX);
- assert(dkim_sig_geterror(sigs[6]) == DKIM_SIGERROR_KEYREVOKED);
-- assert(dkim_sig_geterror(sigs[7]) == DKIM_SIGERROR_UNKNOWN);
-+ assert(dkim_sig_geterror(sigs[7]) == DKIM_SIGERROR_KEYDECODE);
-
- status = dkim_free(dkim);
- assert(status == DKIM_STAT_OK);
diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch b/mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch
index aee1e10c0c05..3e67f051fd5f 100644
--- a/mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch
+++ b/mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch
@@ -1,12 +1,14 @@
diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/devtools/Site/site.config.m4
---- dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 2009-07-19 09:56:41.000000000 +0300
-+++ dkim-milter-2.8.3/devtools/Site/site.config.m4 2009-07-19 09:57:00.000000000 +0300
-@@ -11,7 +11,13 @@
+--- dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 2009-08-23 00:52:05.000000000 +0200
++++ dkim-milter-2.8.3/devtools/Site/site.config.m4 2009-08-23 00:56:05.000000000 +0200
+@@ -11,7 +11,15 @@
dnl If you are encountering coredumps and want to be able to analyze them
dnl using something like "gdb", enable this next line by deleting the "dnl"
dnl at the front of it.
-dnl define(`confOPTIMIZE', `-g')
++define(`confCC', `@@CC@@')
+define(`confOPTIMIZE', `@@CFLAGS@@')
++define(`confLDOPTS', `@@LDFLAGS@@')
+define(`confENVDEF', `@@ENVDEF@@')
+define(`confMKDIR', `mkdir')
+define(`confLIBDIR', `@@LIBDIR@@')
@@ -16,7 +18,7 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl Shared library for libdkim
dnl
-@@ -26,7 +32,7 @@
+@@ -26,7 +34,7 @@
dnl the package, enable this next line by deleting the "dnl" at the front
dnl of it. This is done automatically if you've requested the shared
dnl library.
@@ -25,7 +27,7 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl Use native strlcat()/strlcpy() functions
dnl
-@@ -53,7 +59,7 @@
+@@ -53,7 +61,7 @@
dnl
dnl If you want to use the provided asynchronous resolver library, enable this
dnl next line by deleting the "dnl" at the front of it.
@@ -34,7 +36,7 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl
dnl libar normally uses res_init() or res_ninit() to load the contents
dnl of resolv.conf for its use. If neither of these work on your system
-@@ -94,7 +100,7 @@
+@@ -94,7 +102,7 @@
dnl it has seen, rather than relying on the DNS server to provide caching,
dnl enable this next line by deleting the "dnl" at the front of it. Also
dnl see the section below called "BerkeleyDB".
@@ -43,7 +45,7 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl BerkeleyDB -- Berkeley DB ("Sleepycat") database
dnl
-@@ -107,7 +113,7 @@
+@@ -107,7 +115,7 @@
dnl by deleting "dnl" from the front of them:
dnl APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB/include ')
dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB/lib ')
@@ -52,7 +54,7 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl OpenSSL -- cryptography library
dnl
-@@ -146,7 +152,7 @@
+@@ -146,7 +154,7 @@
dnl APPENDDEF(`confENVDEF', `-D_FFR_REPORT_INTERVALS ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECT_CANONICALIZATION ')
dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECTOR_HEADER ')
@@ -62,8 +64,8 @@ diff -Nru dkim-milter-2.8.3.orig/devtools/Site/site.config.m4 dkim-milter-2.8.3/
dnl APPENDDEF(`confENVDEF', `-D_FFR_ZTAGS ')
diff -Nru dkim-milter-2.8.3.orig/dkim-filter/dkim-filter.conf.sample dkim-milter-2.8.3/dkim-filter/dkim-filter.conf.sample
---- dkim-milter-2.8.3.orig/dkim-filter/dkim-filter.conf.sample 2008-12-27 07:21:56.000000000 +0200
-+++ dkim-milter-2.8.3/dkim-filter/dkim-filter.conf.sample 2009-07-19 09:57:00.000000000 +0300
+--- dkim-milter-2.8.3.orig/dkim-filter/dkim-filter.conf.sample 2008-12-27 06:21:56.000000000 +0100
++++ dkim-milter-2.8.3/dkim-filter/dkim-filter.conf.sample 2009-08-23 00:52:30.000000000 +0200
@@ -90,13 +90,6 @@
# AutoRestartRate n/tu