diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-10-16 19:35:35 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-10-16 19:35:35 +0000 |
commit | 80a62150d9e58ea263d5fe4c3dc59289e2c40a81 (patch) | |
tree | de98c83b1e15e7f3a6796073ada6c9213dadafb2 /mail-filter | |
parent | version bump for bug 239927 (diff) | |
download | gentoo-2-80a62150d9e58ea263d5fe4c3dc59289e2c40a81.tar.gz gentoo-2-80a62150d9e58ea263d5fe4c3dc59289e2c40a81.tar.bz2 gentoo-2-80a62150d9e58ea263d5fe4c3dc59289e2c40a81.zip |
Version bump (#242164).
(Portage version: 2.1.4.4)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/dkim-milter/ChangeLog | 11 | ||||
-rw-r--r-- | mail-filter/dkim-milter/dkim-milter-2.6.0.ebuild | 145 | ||||
-rw-r--r-- | mail-filter/dkim-milter/dkim-milter-2.7.2.ebuild (renamed from mail-filter/dkim-milter/dkim-milter-2.5.5.ebuild) | 2 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.5.5-gentoo.patch | 163 | ||||
-rw-r--r-- | mail-filter/dkim-milter/files/dkim-milter-2.7.2-gentoo.patch (renamed from mail-filter/dkim-milter/files/dkim-milter-2.6.0-gentoo.patch) | 27 |
5 files changed, 24 insertions, 324 deletions
diff --git a/mail-filter/dkim-milter/ChangeLog b/mail-filter/dkim-milter/ChangeLog index a7dc84119ae0..c8d425a19aee 100644 --- a/mail-filter/dkim-milter/ChangeLog +++ b/mail-filter/dkim-milter/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for mail-filter/dkim-milter # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/ChangeLog,v 1.24 2008/08/23 05:47:51 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/ChangeLog,v 1.25 2008/10/16 19:35:35 mrness Exp $ + +*dkim-milter-2.7.2 (16 Oct 2008) + + 16 Oct 2008; Alin Năstac <mrness@gentoo.org> + -files/dkim-milter-2.5.5-gentoo.patch, + -files/dkim-milter-2.6.0-gentoo.patch, + +files/dkim-milter-2.7.2-gentoo.patch, -dkim-milter-2.5.5.ebuild, + -dkim-milter-2.6.0.ebuild, +dkim-milter-2.7.2.ebuild: + Version bump (#242164). 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/mail-filter/dkim-milter/dkim-milter-2.6.0.ebuild b/mail-filter/dkim-milter/dkim-milter-2.6.0.ebuild deleted file mode 100644 index 6bcb5e59daad..000000000000 --- a/mail-filter/dkim-milter/dkim-milter-2.6.0.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2008 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.6.0.ebuild,v 1.1 2008/06/13 12:15:11 dragonheart Exp $ - -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 - enewuser milter -1 -1 -1 milter -} - -src_unpack() { - unpack ${A} - - cd "${S}" || die "source dir not found" - - 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}:" \ - devtools/Site/site.config.m4 - echo "APPENDDEF(\`confNO_MAN_BUILD', \` ')">>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} - - # some people like docs - dodoc RELEASE_NOTES *.txt -} - -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.5.5.ebuild b/mail-filter/dkim-milter/dkim-milter-2.7.2.ebuild index 0a0051c95aa2..7925ac17ef28 100644 --- a/mail-filter/dkim-milter/dkim-milter-2.5.5.ebuild +++ b/mail-filter/dkim-milter/dkim-milter-2.7.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 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.5.5.ebuild,v 1.2 2008/06/08 09:52:59 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/dkim-milter-2.7.2.ebuild,v 1.1 2008/10/16 19:35:35 mrness Exp $ inherit eutils toolchain-funcs diff --git a/mail-filter/dkim-milter/files/dkim-milter-2.5.5-gentoo.patch b/mail-filter/dkim-milter/files/dkim-milter-2.5.5-gentoo.patch deleted file mode 100644 index 285ebc2ed313..000000000000 --- a/mail-filter/dkim-milter/files/dkim-milter-2.5.5-gentoo.patch +++ /dev/null @@ -1,163 +0,0 @@ ---- dkim-milter-2.5.5.orig/devtools/Site/site.config.m4 2008-06-08 12:47:04.000000000 +0300 -+++ dkim-milter-2.5.5/devtools/Site/site.config.m4 2008-06-08 12:47:37.000000000 +0300 -@@ -11,7 +11,10 @@ - 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@@') -+dnl man build is broken -+define(`confNO_MAN_BUILD',`') - - dnl Shared library for libdkim - dnl -@@ -40,7 +43,7 @@ - dnl - dnl If you want to use the 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 -@@ -65,7 +68,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 -@@ -78,7 +81,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 -@@ -116,7 +119,7 @@ - dnl APPENDDEF(`confENVDEF', `-D_FFR_REQUIRED_HEADERS ') - 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 ') - ---- dkim-milter-2.5.5.orig/dkim-filter/dkim-filter.conf.sample 2008-03-05 00:50:22.000000000 +0200 -+++ dkim-milter-2.5.5/dkim-filter/dkim-filter.conf.sample 2008-06-08 12:47:37.000000000 +0300 -@@ -37,13 +37,6 @@ - - # AutoRestartRate n/tu - --## Background { yes | no } --## default "yes" --## --## Indicate whether or not the filter should run in the background. -- --# Background Yes -- - ## BodyLengths { yes | no } - ## default "no" - ## -@@ -91,7 +84,7 @@ - ## Specify for which domain(s) signing should be done. No default; must - ## be specified for signing. - --Domain example.com -+Domain my-domain.com - - ## ExternalIgnoreList filename - ## -@@ -113,7 +106,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 - ## -@@ -130,7 +123,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 - - ## InternalHosts filename - ## -@@ -138,7 +131,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 - - ## MacroList macro[=value][,...] - ## -@@ -228,22 +221,6 @@ - - # 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" - ## -@@ -318,7 +295,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 - - ## SubDomains { yes | no } - ## default "no" -@@ -359,7 +336,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 - - ## UseASPDiscard { yes | no } - ## default "no" -@@ -376,7 +353,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" -@@ -385,3 +362,10 @@ - ## 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.6.0-gentoo.patch b/mail-filter/dkim-milter/files/dkim-milter-2.7.2-gentoo.patch index 9faa5e8cda96..8dd5d890eb93 100644 --- a/mail-filter/dkim-milter/files/dkim-milter-2.6.0-gentoo.patch +++ b/mail-filter/dkim-milter/files/dkim-milter-2.7.2-gentoo.patch @@ -1,6 +1,6 @@ -diff -ru dkim-milter-2.6.0.orig/devtools/Site/site.config.m4 dkim-milter-2.6.0/devtools/Site/site.config.m4 ---- dkim-milter-2.6.0.orig/devtools/Site/site.config.m4 2008-06-13 22:14:24.000000000 +1000 -+++ dkim-milter-2.6.0/devtools/Site/site.config.m4 2008-06-13 22:13:09.000000000 +1000 +diff -Nru dkim-milter-2.7.2.orig/devtools/Site/site.config.m4 dkim-milter-2.7.2/devtools/Site/site.config.m4 +--- dkim-milter-2.7.2.orig/devtools/Site/site.config.m4 2008-10-16 19:27:01.000000000 +0000 ++++ dkim-milter-2.7.2/devtools/Site/site.config.m4 2008-10-16 19:27:42.000000000 +0000 @@ -11,7 +11,10 @@ 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" @@ -49,9 +49,9 @@ diff -ru dkim-milter-2.6.0.orig/devtools/Site/site.config.m4 dkim-milter-2.6.0/d dnl APPENDDEF(`confENVDEF', `-D_FFR_VBR ') dnl APPENDDEF(`confENVDEF', `-D_FFR_ZTAGS ') -diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter-2.6.0/dkim-filter/dkim-filter.conf.sample ---- dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample 2008-05-31 17:46:45.000000000 +1000 -+++ dkim-milter-2.6.0/dkim-filter/dkim-filter.conf.sample 2008-06-13 22:13:53.000000000 +1000 +diff -Nru dkim-milter-2.7.2.orig/dkim-filter/dkim-filter.conf.sample dkim-milter-2.7.2/dkim-filter/dkim-filter.conf.sample +--- dkim-milter-2.7.2.orig/dkim-filter/dkim-filter.conf.sample 2008-09-02 20:43:04.000000000 +0000 ++++ dkim-milter-2.7.2/dkim-filter/dkim-filter.conf.sample 2008-10-16 19:27:42.000000000 +0000 @@ -74,13 +74,6 @@ # AutoRestartRate n/tu @@ -99,9 +99,9 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- -# KeyList /var/db/dkim/keylist +# KeyList /etc/mail/dkim-filter/keylist - ## LogWhy { yes | no } - ## default "no" -@@ -295,22 +288,6 @@ + ## LocalADSP filename + ## +@@ -309,22 +302,6 @@ # PeerList filename @@ -124,7 +124,7 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- ## Quarantine { yes | no } ## default "no" ## -@@ -423,7 +400,7 @@ +@@ -437,7 +414,7 @@ ## inet:port to listen on all interfaces ## local:/path/to/socket to listen on a UNIX domain socket @@ -133,7 +133,7 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- ## StrictTestMode { yes | no } ## default "no" -@@ -482,7 +459,7 @@ +@@ -496,7 +473,7 @@ ## The system has its own default which will be used (usually 022). ## See the umask(2) man page for more information. @@ -142,7 +142,7 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- ## Userid userid ## default (none) -@@ -490,7 +467,7 @@ +@@ -504,7 +481,7 @@ ## Change to user "userid" before starting normal operation? May include ## a group ID as well, separated from the userid by a colon. @@ -151,7 +151,7 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- ## X-Header { yes | no } ## default "no" -@@ -499,3 +476,10 @@ +@@ -513,3 +490,10 @@ ## messages it has processed. # X-Header No @@ -162,4 +162,3 @@ diff -ru dkim-milter-2.6.0.orig/dkim-filter/dkim-filter.conf.sample dkim-milter- +## See man dkim-stats page + +Statistics /var/run/dkim-filter/dkim-filter.stats -Only in dkim-milter-2.6.0/dkim-filter: dkim-filter.conf.sample.orig |