diff options
-rw-r--r-- | mail-filter/dkim-milter/ChangeLog | 13 | ||||
-rw-r--r-- | mail-filter/dkim-milter/Manifest | 18 | ||||
-rw-r--r-- | mail-filter/dkim-milter/dkim-milter-2.8.2.ebuild | 153 | ||||
-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.patch | 44 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.8.2-gentoo.patch | 172 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.8.2-mkdir.patch | 96 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.8.2-test115.patch | 21 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.8.3-gentoo.patch | 22 |
9 files changed, 40 insertions, 517 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/Manifest b/mail-filter/dkim-milter/Manifest index 92204a502e28..046e349bf2d4 100644 --- a/mail-filter/dkim-milter/Manifest +++ b/mail-filter/dkim-milter/Manifest @@ -2,23 +2,17 @@ Hash: SHA1 AUX dkim-filter.init 1437 RMD160 96b90dc6d2d08231d2b09ca86429231a468a2b2a SHA1 1ff377494b79cb3b0c531c8a0ba60d2736e08884 SHA256 f55aa7ad32db175987fd4adc1e7a86426ccb8eec3d7b5d4adebd71a445a3d9f0 -AUX dkim-milter-2.8.2-exit-on-error.patch 1129 RMD160 40f0e50ca148cea1dcd7889fc6c16c34beccce9e SHA1 95bbb8696f4246697ede44ba303fdf60dbff459f SHA256 8257260603b0caac1102bd3026dceba61542a9df04ce0cd6b10b8b24b2f083db -AUX dkim-milter-2.8.2-gentoo.patch 5569 RMD160 04f309912dfd18ddb0122e255f2832bb318202a4 SHA1 5dd96f365ce75957331a9ee57f41184358d651ef SHA256 1c7c38003322af30fbe5e99ac60c4ef57eeb6baf9504bcde89f256fbd6054574 -AUX dkim-milter-2.8.2-mkdir.patch 7550 RMD160 a6f6aa735ca89ed51759985ae9ec354b4144df43 SHA1 28e79ab203bdd87f2c801dcf8d9469cdc5e979a7 SHA256 9d88ea3ca387907bb1adb3224de8e3d670d169cad859f3f74b7afffb93e1d47a -AUX dkim-milter-2.8.2-test115.patch 932 RMD160 5347e9ababbb94c9bab20102941ec7b8b606bdda SHA1 51135fea8ba5dda2892383dfa8498913d7493205 SHA256 74112ed0b3c97b69f2dcfbe21a84661e357188ebb0fcb1dc58a3ea6a6b4f736b -AUX dkim-milter-2.8.3-gentoo.patch 5569 RMD160 15aaed529b131f583c364f46821af3a10f5e9012 SHA1 5e8503b7dfff0680f5860370b0f3b9889fd71bdf SHA256 2f876e90d8f50477a32c4fc02a13c23f12c06d358930d07cdf4c30fdc97fd7ca +AUX dkim-milter-2.8.3-gentoo.patch 5634 RMD160 97ef587212c735f42fa234d4031ecfa36c703b6e SHA1 904ddbc992b1180df0f9a13dd068b15eae709675 SHA256 ee2efd5512bfa39171efed29229e52af47fceb62049d3f4aad79d79b7ed53e1e AUX dkim-milter-build-system.patch 8767 RMD160 2efec563b3ee740c87a804bc00aa59b2b0e7a366 SHA1 137287ba0f9e612e8e836d465fce48581c60a49d SHA256 1e40dbb8a9e487c26de43f93ed3035937c147080dc26bc9107738a6e8ea7d40e AUX dkim-milter-diffheaders.patch 612 RMD160 20fa51c4229ed6f8ecb3311d542f02356036bc45 SHA1 54db370a5772dcd322def7828f9d228066bd9a5f SHA256 37456d614a83eebeba0c622e1a0a022d2d009d3763ac27f36dc31d476edab762 -DIST dkim-milter-2.8.2.tar.gz 740258 RMD160 f1f114f7cd1842404d58e2681f539015953b65c7 SHA1 d39840bbbc572e455fa617b1ab297694a1c23156 SHA256 456ccb4ffd34abcd61f2d0bc30c24681db5c08749758435741336dd3d7974f7b DIST dkim-milter-2.8.3.tar.gz 748415 RMD160 339886a8ec02615a785b5a5605b2b752e8e946bb SHA1 ee8f7aa1429f763f6a4012e902296733df0fa0e6 SHA256 222afc936b70b823289e8e327c06c2920a5f33df43f07024b5f931856406048f -EBUILD dkim-milter-2.8.2.ebuild 5146 RMD160 c05192753e7461f7ed4593c566e2e9fdd73c75b1 SHA1 cbe0eff665917771906ea5ac778fe40cc09fa793 SHA256 254280434756fd18c641b29e8779d035b49f09abab49d065be5acc877a9d24a6 -EBUILD dkim-milter-2.8.3.ebuild 5175 RMD160 41aa9ec06bbfcddd9dfe49233dca48de80e81892 SHA1 d1b4614708a8e909a64d4a4a3c82475adf0d50d5 SHA256 6542fe1fd582035a0cd7bd9190dd3475b364b72a9826238204e5eccb883b3ecb -MISC ChangeLog 7506 RMD160 e91c03572c2f6fd06c73eb35a628d31b6f1af82e SHA1 af323c1f9164021037ce9b693477e8685ff8afc1 SHA256 a1c89c220bc8c5e58122978644397524b0c5e6b952ed9cd13567e8592608c985 +EBUILD dkim-milter-2.8.3-r1.ebuild 5191 RMD160 9e6ed60f3ca6f4e5538ce2ed1c08d74326e666ce SHA1 8021f05f45d0929e5f9d20cae249906ec727bdec SHA256 ba8459b72a47c377cc6f4e9ce3da98b87c5401a822eb9a4df0718239cdf87ceb +MISC ChangeLog 7931 RMD160 ded12115d1ed3dd12c7f021c1c8a8dcf00324286 SHA1 c41a0694804cac192f227224065e50d5f81f1cb1 SHA256 5697142a5175610a362223bcc0f1987fa76ce1d14f7ac708d71aa585b3c5b386 MISC metadata.xml 618 RMD160 35c3e44ce2563eb02d64c3de613677eb94dabe7e SHA1 2524f4cd188243cd1cd7d5c3316fba491f6f7fa2 SHA256 904c88d75e4007d251475f5856505dd90e2bfbeca4d8babc8ee10a14f91f7d26 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAkqGrhwACgkQ9A5kJBGSrsso1ACfc3HqrWI+kpovA688RAnY+xs4 -9GYAnjUUgXdJH8LdtPVB1Bgor3omqSaR -=xplZ +iEYEARECAAYFAkqQebgACgkQ9A5kJBGSrsvBWgCeNqvvjwqs6GkJi1eEXYCm0wwx +a+AAnjcS3NgH+bB8OxBzh4a1EWVnERO3 +=RaTf -----END PGP SIGNATURE----- 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 |