summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2014-12-09 08:30:23 +0000
committerEray Aslan <eras@gentoo.org>2014-12-09 08:30:23 +0000
commit47d7969d165f169f7aabd8d7d2d1d4f2ef125212 (patch)
tree1495977651f88a444b53637fb55a3315a7053769 /mail-filter/opendkim
parentStable for HPPA (bug #530650). (diff)
downloadhistorical-47d7969d165f169f7aabd8d7d2d1d4f2ef125212.tar.gz
historical-47d7969d165f169f7aabd8d7d2d1d4f2ef125212.tar.bz2
historical-47d7969d165f169f7aabd8d7d2d1d4f2ef125212.zip
Remove old
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-filter/opendkim')
-rw-r--r--mail-filter/opendkim/ChangeLog7
-rw-r--r--mail-filter/opendkim/Manifest38
-rw-r--r--mail-filter/opendkim/files/opendkim-2.8.0-unbreak_upgrade.patch23
-rw-r--r--mail-filter/opendkim/opendkim-2.8.4.ebuild194
-rw-r--r--mail-filter/opendkim/opendkim-2.9.0.ebuild190
-rw-r--r--mail-filter/opendkim/opendkim-2.9.1.ebuild198
-rw-r--r--mail-filter/opendkim/opendkim-2.9.2.ebuild195
7 files changed, 21 insertions, 824 deletions
diff --git a/mail-filter/opendkim/ChangeLog b/mail-filter/opendkim/ChangeLog
index 0f09f2653715..24ced59a12ad 100644
--- a/mail-filter/opendkim/ChangeLog
+++ b/mail-filter/opendkim/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/opendkim
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.83 2014/11/02 08:36:29 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.84 2014/12/09 08:30:13 eras Exp $
+
+ 09 Dec 2014; Eray Aslan <eras@gentoo.org>
+ -files/opendkim-2.8.0-unbreak_upgrade.patch, -opendkim-2.8.4.ebuild,
+ -opendkim-2.9.0.ebuild, -opendkim-2.9.1.ebuild, -opendkim-2.9.2.ebuild:
+ Remove old
02 Nov 2014; Sven Vermeulen <swift@gentoo.org> opendkim-2.9.2-r1.ebuild:
Remove sec-policy/selinux-* dependency from DEPEND but keep in RDEPEND (bug
diff --git a/mail-filter/opendkim/Manifest b/mail-filter/opendkim/Manifest
index 9f0216c5cd0f..c6d6b05510ba 100644
--- a/mail-filter/opendkim/Manifest
+++ b/mail-filter/opendkim/Manifest
@@ -1,34 +1,26 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX opendkim-2.8.0-unbreak_upgrade.patch 1042 SHA256 5c115fa185bc9a64fe847599e2c0fa8d4d2925f4b2dbdef1e88769195c79046d SHA512 b415fe2f05dd16489ac59038ab15b22c77da23fe1bc3b5fc82883186b4e2b44855f546fbc1128109e84b1c19ed868cffed66c72fd4600c66c27ce4f9363b44a2 WHIRLPOOL 6304af7e66862da3c215455273d486aa4f67ae0777209e92e1c81b9537722850699fdd8c167e95412abfb2143eefcb88ff3c58c4cfc380994e27e9c41deee8e8
AUX opendkim.init.r3 1545 SHA256 63f316ef776ad1a9fe87cff7748fac4574c2355b6205e3ef21285ddb84c8cb33 SHA512 c28b93f230b65ba483302dbb0f6cba0d8b2cf29cce0309521e67f6aa0e4c041b0dd69eaca8152d6b0b1b02dbe1ff9634fef0840856c8e192f17a1c24ffac7166 WHIRLPOOL f42cb79de47d2fdac26ef4a45132e996640da824aadaf0c3e66182160e941322ff78a37c18a32ca50efb0bb4fbf11b622a1ce5931146c47a06156c256d568b81
AUX opendkim.service 439 SHA256 8636aee39d924067d1f1673291d1501cec3e6fdee0de16533a1e3616471b35ed SHA512 308edc70fdb0bd57b424e739412217fd8017b017e9b27bc0954dec55294d10d8b7713f6f191836b94aa49bf578bfb391dca748af0c8d9b72e14ebe1eae21e834 WHIRLPOOL 4b7c42b130a31120efba7aa04f90cacd8c6b760204577e2914901eddc6cb425b1c06253d60f43673d28f9992e4b078010f444a390569544573601b3fdbf66e76
-DIST opendkim-2.8.4.tar.gz 1177118 SHA256 d6ea32f60e750530359841da1e1bd644e6ccb0d228ad5e0633be6dfb8434b30a SHA512 a65e2cbe46878707072aceb5fa60d70d527fda9679aac5c9083b24f1697ba6fe566d9bd7bfca6a23443f639fc27b843e098b5a6b1750347c045f028dd76dc21d WHIRLPOOL b93310e27bfa38326f431ae44ab88d1c6ffddec2d81be1acfce5e3f275ea0e9f8b67eb25715ffb8d5b2c5311766a8ec0236e1e7ee4dc2ee3d0910946654cb550
-DIST opendkim-2.9.0.tar.gz 1134646 SHA256 dc1559d6302bf0f3963b93c399d18728431b5c6fb2f0a1bbebd8651a1998e497 SHA512 102224bf232197974b86c251e7463843032d87610c6c35c1ee494fa4648a0cca5b1eda684b56784b70ad6cbd6f8de6e8163b0513c6487a3fdb79639b05535735 WHIRLPOOL 40c15435e5da994b55b5197f79d7fae15df0c9d5bb6eaf29d6c627ffbaf5f5f21da9a4f08a519a036d8219094cbadab08deaccb816ff6c787f2dcc6c9c8a6723
-DIST opendkim-2.9.1.tar.gz 1227972 SHA256 da746a804e4e88b4046d30a496bc8fefaa097bc25df937145372b06e11fd8323 SHA512 c33e67f3c4fafb1aa1d8a5f2befd044f94bd8f842326f2d52ac3b01cf5c653425a76fafdfe1fb5def966ff25823fb605a6250396a5056dc911dd3b7dd8825619 WHIRLPOOL 83d6ee4325d6a7f166f41c15ff6ee6f35ab281267d2df54e8966e437b6e863bbd42c44080d4b9bfec84680baa7b8ce9e4687a3933e2b28c3e0384432111c0a6f
DIST opendkim-2.9.2.tar.gz 1229383 SHA256 1f0c66afbe48f6223d2ab985b2c27594ae45035e3e81eba887d8ec6e5e1282c0 SHA512 f6fe77897927a93c9f57d09e5e9f43b1e73e2b21a586461b5665fb430eee1362b33d9601c8643d50d5a53c8e01b03c7af331f28cd992c9163f959723f21ebf63 WHIRLPOOL b61212d272d07c367c7d9ecb951466b66759b6d449047c10947681ea6889a1f2b2c12986e6c11a59620fb8ace3c0a177235f65f58c54c993909f61dee5cf3c3a
-EBUILD opendkim-2.8.4.ebuild 6162 SHA256 b0d0bdb46cd8f3cd4489587538e355b2e16ce438a44f0c18f61daac7359a4233 SHA512 3ce2d608ff6a4e44d9025a3e6bc6504c8cd5714a6098e6a35011c7d0323d41957e4aeea0abcadb99e06906d041dc8b401a0dc2599b0d75fa7194c443a547b493 WHIRLPOOL c3b79d90a15296f588244d82e9d7ebcc249a9066e66fc5463a7ccbd35f5da27780be63fe8cba2f131e3b462115ed5c864782e4508866f6bf390e88daa4cffc84
-EBUILD opendkim-2.9.0.ebuild 6038 SHA256 0b73613b9fe124c1fb3d5c7b0d314e29ac82ee7333181a7a256405baae277bef SHA512 97778ad70932eefe34157fa5e23ed46cb135dd6094e48c6d7649937d7cc31e9f6b715df499fc4614eecc29cef7de42c4d2758a84c2e9c9d5166a49dce5e6c1eb WHIRLPOOL 50cc335da37de2e331d5935bc79b4f05d318a9c8e45e17a05b1d8331e505e7c21e14de72d1b5bbdc32c70fa079c16175a84bb6ef564c644039c68344139d2b25
-EBUILD opendkim-2.9.1.ebuild 6398 SHA256 abe29e30c4f18eea892933e81286cd904a3f4b6f077e6974adb04323d5ee42ca SHA512 8cb6a02ca8f8ea4121834f513886cb84338389fe9019b9105d5782fda89f8e595b4bd00e2b108729709dfa5db55782badd564285bc91fcbf2ecdba21ccdd32e2 WHIRLPOOL bf0c647508859914348c470181ffbc19e6110e90f8bae8692c16449b814c8f9bafc20aa4224c0e3ff5ad3ed9ce35a9574952234d1904faa2d8422bb0df8f2ce9
EBUILD opendkim-2.9.2-r1.ebuild 6237 SHA256 e6ea67d53781c8b4f35cfd983fb779395420097bf558a4dabbcaf21db540b55d SHA512 38465631a7e619973209b6aec1afffc0dbbd07eb8218a5ba811b1596da64a92d96c3cd43bfb6fcd89f3b8d29d39f387f7124788e91ad0162b218380cb3002a20 WHIRLPOOL 0088c2c4bd969b202cc809fb42c1880be37e1236fbdcb0d588a2ee100dc75d7866df754cefaa5874ddf8d851b48db88dbf2cba6623d428db07d026ce4cc5825f
-EBUILD opendkim-2.9.2.ebuild 6245 SHA256 60b69e7a90568cc7c406339d2a0d391d3b20f64abdbabf30907241fb0031bf25 SHA512 e1aea5a6b995cb25990b4f5162ac04083d16c1d869e18832d97d6748ab602c84a0a00b7267a18f50a5e60df612e0d7bd8ec1c5c88db2d689e6a83b543cc9759b WHIRLPOOL 796521805e64bb82f56bf0e3d439ef2e5ed62b750d866d9ecb50f37ee66c626046af2f22783fa1480328c640773857bca9d2640d48d46717d91c8983f7089077
-MISC ChangeLog 14264 SHA256 66f6a87dc000547eeb1e9359f13f5590cc0fce63224b06f229ebdc4d2bfcd620 SHA512 ad76998d5b9a415d18924fe7e6e01ed21f63e38f1e0de52ed892c434bd2a7d79b13eb5bb5d2af3675f85d1b370172dee9cdffdf22cacbb99a8ac4e96714f3057 WHIRLPOOL 546bdd7edc05ade8c7ebce1ace98e8a6faf67dd5bfeeb6e9932231cb31d43726daf9c2ce449b1805857edca1304c83a844344c7c33c537b2b2c55660edf8d78e
+MISC ChangeLog 14466 SHA256 d552de9c02457a19ea4175018be9382780e3792047ef834c785f1d86f58d0439 SHA512 1496fd00b695b28176b802b81ddb94db250011b0a95a0d507938b15117adbbbb4db3584ac085f38ddb0f652c8c0d229411c39a69a03627eeafff00d1f24be5e0 WHIRLPOOL c16088d6acb86a4e895d0abf6ad25c701d96204196c1516662507c6c5295e9169cba2204f770167b26c020f8ce6480919a0d8af10c65534487087a7dafd8f068
MISC metadata.xml 1403 SHA256 85ffb9c9df1fd60d7f22db45e8d4b1edb2b882dd0fb2004a646651e4f7e675a8 SHA512 b7529c54897e04109deeeb30414ab175de5989baeeb398042995fa193ec0302bbc74a43037550c4a2dc60e490443eeaa4bcb038229b1ea179f70e32e27bdf37a WHIRLPOOL 862f684ef7c3d6f40d5b95eca699e003f0085c62cef406c54a307d4be3d8a847582c2bc3c68eb0208e072b506162a27bde6115fcfad548b1865bee7f033ae371
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0
+Version: GnuPG v2
-iQIcBAEBCAAGBQJUVeyFAAoJEC7dUkA7aK9HcOIP/iq0kup6dkPCEp9UV69hwzmt
-n9lTcew11N/KlkpxKlmd7NHxTL37gxZZHrIKQeHwxbhVcAIxdhlYSg58NjT425ie
-WyUpviqltWiikVv/RIjZrSNJaDt9EdFB8jjfDjt2t6ILPYRe2m/rQAzYr68VHfoA
-0x7qUeJ66xUzdk0+46QCsgcSnpb8A01MrVv3jEiQ7ZTIbEIq3iq8FEB3LtWYyvEh
-IiOTi0zByFJ0scCt2uHHAjcdWdwXtXZtaTwonkFuqREW9asGHZ7MPCa3aeyBi4RW
-e423vzOIrwUTToNdLOdc3JULJEdiHNNM/P7nMxcaABzeYexGEUv88EAsjwIg+K3k
-jFe4T52CBCjkh0GMox8XtY1e/KIfqQwW3UcH10He3U1+ERE5MWMRnb/fLn5zK/wt
-dpID7yx9L0M/dxStaDoKETxuFJKEbvanAk869t0spdZPGg/cMd0Reg5STqUhSt1K
-3AitOFBaX/d56HkGa52mGwssriS7REx9UMRhDqmByk4ljVY2CxZJrjHJC8J3Lhf9
-zcnP4FsNf/YsjYO4DIskHCv01r7hfCltZlIQN0Vp4JI8JdVX0fksq4YUYzzGCHlF
-dwnL35XWMIAbdX3nF+vw8kj0SQQFCRrv8LAb4A6hUZFcE87FNkts8CCipIWwAwUz
-N1ZCJ0qxye3eFlkqbeP0
-=KuPJ
+iQIcBAEBCAAGBQJUhrMeAAoJEHfx8XVYajsfJt8P/02PLWNw9aBVXz1yau8yRdL/
+25ihOSNoah6kBBvrjSlaA/SIC8h8hMWjPxOlXVox8bDmDMCEPwLRdHhQILCMrJA7
+iB4Wy4grxrd90g00bHfbGPam5ZX3x1trtKQB4iBsXLCMbTQing9FAkF4n4M63kkK
+naQI4v/c3mvYFUl2gF9Ln5TkU8RbNEdtUf1/svPBJcocqfBFTgTTS3GqWI9l+l8n
+/heTkczysM61FpDj7yKuW+CvWmU1qRL/wntFTu8HeSM8AE2kUM7ewOo8Aj/hfNXH
+Gz0C7RBS/Z26+hHMuJ/BIMGu6bFbtDnSkvRvfn8fKrx8HeT6NS1kUhR7kmNQdYsN
+B32Xdgvrf7Ulo/gcfwDALvq1wutKSq6YaX3ak1eSxXx/6L0dkWufr/Ib6lsZrC9Z
+2FjpH2fueWPskT7zs7dRPbAGTO8H8uegpgaDn/geQJUVZH7oxLAsWHGp00bbMHb7
+Op4E7k4q6KZF422VxMvCpqPArb8aX3NsrGxMBqqhjpcbhRkWWJRJypviraXbQ3oe
+3k83hWvDN2CIxAjAXE6VLFgoyQe/THesCnN/Z9jAMoW8ypC+BtXuI7gc2UCTol5q
+JeJi11xb0OqlOdpU0S3ul8hKe9KIenzfcj4LLrQIuz7ojLwzS9/G2hKsByAC5LKl
+M/gFtFN9kXvjnTPkLhnX
+=3EtI
-----END PGP SIGNATURE-----
diff --git a/mail-filter/opendkim/files/opendkim-2.8.0-unbreak_upgrade.patch b/mail-filter/opendkim/files/opendkim-2.8.0-unbreak_upgrade.patch
deleted file mode 100644
index 433d5995f4bd..000000000000
--- a/mail-filter/opendkim/files/opendkim-2.8.0-unbreak_upgrade.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- configure.ac 2013-02-12 23:29:44.000000000 +0200
-+++ configure.ac 2013-02-18 13:58:28.499097605 +0200
-@@ -240,11 +240,15 @@
- # we need to include <strl.h> if:
- # (a) strlcat and strlcpy weren't found, since we'll be rolling our own; OR
- # (b) an installed strl.h was found and no bsd/string.h was found
--if test x"$strl_h_found" = x"yes" -o \( x"$strl_found" = x"no" -a x"$libstrl_found" = x"no" \) -a x"$bsdstrl_h_found" = x"no"
--then
-- AC_DEFINE([USE_STRL_H], 1,
-- [Define to 1 if you need to include <strl.h> to get the `strlcat()' and `strlcpy()' functions.])
--fi
-+
-+# Gentoo specific: Don't include strl.h - breaks upgrading from
-+# <=mail-filter/opendkim-2.7.2. We link against libbsd always.
-+
-+#if test x"$strl_h_found" = x"yes" -o \( x"$strl_found" = x"no" -a x"$libstrl_found" = x"no" \) -a x"$bsdstrl_h_found" = x"no"
-+#then
-+# AC_DEFINE([USE_STRL_H], 1,
-+# [Define to 1 if you need to include <strl.h> to get the `strlcat()' and `strlcpy()' functions.])
-+#fi
-
- if test x"$bsdstrl_h_found" = x"yes"
- then
diff --git a/mail-filter/opendkim/opendkim-2.8.4.ebuild b/mail-filter/opendkim/opendkim-2.8.4.ebuild
deleted file mode 100644
index b0666d2d9492..000000000000
--- a/mail-filter/opendkim/opendkim-2.8.4.ebuild
+++ /dev/null
@@ -1,194 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.8.4.ebuild,v 1.4 2014/04/15 06:40:04 eras Exp $
-
-EAPI=5
-inherit autotools db-use eutils user
-
-# for betas
-#MY_P=${P/_b/.B}
-#S=${WORKDIR}/${PN}-2.8.0
-#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
-
-DESCRIPTION="A milter-based application to provide DKIM signing and verification"
-HOMEPAGE="http://opendkim.org"
-SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source BSD"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="+berkdb gnutls ldap lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
-
-DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
- dev-libs/libbsd
- ssl? ( >=dev-libs/openssl-0.9.8 )
- berkdb? ( >=sys-libs/db-3.2 )
- opendbx? ( >=dev-db/opendbx-1.4.0 )
- lua? ( dev-lang/lua )
- ldap? ( net-nds/openldap )
- memcached? ( dev-libs/libmemcached )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( sec-policy/selinux-dkim )
- unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )
- !unbound? ( net-libs/ldns )
- gnutls? ( >=net-libs/gnutls-2.11.7 )"
-
-RDEPEND="${DEPEND}
- sys-process/psmisc"
-
-REQUIRED_USE="sasl? ( ldap )"
-
-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() {
- sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
- -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
- -e 's:/etc/mail:/etc/opendkim:g' \
- -e 's:mailnull:milter:g' \
- -e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
- opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
- stats/opendkim-reportstats{,.in} || die
-
- sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
- || die
-
- epatch "${FILESDIR}/${PN}-2.8.0-unbreak_upgrade.patch"
- eautoreconf
-}
-
-src_configure() {
- local myconf
- if use berkdb ; then
- myconf=$(db_includedir)
- myconf="--with-db-incdir=${myconf#-I}"
- myconf+=" --enable-popauth"
- myconf+=" --enable-query_cache"
- myconf+=" --enable-stats"
- fi
- if use unbound; then
- myconf+=" --with-unbound"
- else
- myconf+=" --with-ldns"
- fi
- if use ldap; then
- myconf+=" $(use_with sasl)"
- fi
- econf \
- $(use_with berkdb db) \
- $(use_with opendbx odbx) \
- $(use_with lua) \
- $(use_enable lua rbl) \
- $(use_with ldap openldap) \
- $(use_enable poll) \
- $(use_enable static-libs static) \
- $(use_with gnutls) \
- $(use_with memcached libmemcached) \
- ${myconf} \
- --docdir=/usr/share/doc/${PF} \
- --htmldir=/usr/share/doc/${PF}/html \
- --enable-filter \
- --enable-adsp_lists \
- --enable-atps \
- --enable-dkim_reputation \
- --enable-identity_header \
- --enable-rate_limit \
- --enable-redirect \
- --enable-resign \
- --enable-replace_rules \
- --enable-default_sender \
- --enable-sender_macro \
- --enable-vbr \
- --disable-rpath \
- --disable-live-testing \
- --with-libxml2 \
- --with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dosbin stats/opendkim-reportstats
- newinitd "${FILESDIR}/opendkim.init.r3" opendkim
- dodir /etc/opendkim /var/lib/opendkim
- fowners milter:milter /var/lib/opendkim
-
- # default configuration
- if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
- grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
- > "${D}"/etc/opendkim/opendkim.conf
- if use unbound; then
- echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
- fi
- echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
- if use berkdb; then
- echo Statistics /var/lib/opendkim/stats.dat >> \
- "${D}"/etc/opendkim/opendkim.conf
- fi
- fi
-
- use static-libs || find "${D}" -name "*.la" -delete
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSION} ]]; then
- elog "If you want to sign your mail messages and need some help"
- elog "please 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."
- fi
-}
-
-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/opendkim/${selector}.private ]]; then
- ewarn "The private key for this selector already exists."
- else
- keysize=1024
- # generate the private and public keys
- opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
- -s ${selector} -d '(your domain)' && \
- chown milter:milter \
- "${ROOT}"etc/opendkim/"${selector}".private || \
- { eerror "Failed to create private and public keys." ; return 1; }
- chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
- fi
-
- # opendkim selector configuration
- echo
- einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
- einfo " Keyfile /etc/opendkim/${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/opendkim/opendkim.sock"
- einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
- einfo " and read http://www.postfix.org/MILTER_README.html"
-
- # DNS configuration
- einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
- cat "${ROOT}"etc/opendkim/${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 ADSP http://tools.ietf.org/html/rfc5617"
-}
diff --git a/mail-filter/opendkim/opendkim-2.9.0.ebuild b/mail-filter/opendkim/opendkim-2.9.0.ebuild
deleted file mode 100644
index 257401507a00..000000000000
--- a/mail-filter/opendkim/opendkim-2.9.0.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.9.0.ebuild,v 1.2 2014/04/15 06:40:04 eras Exp $
-
-EAPI=5
-inherit autotools db-use eutils user
-
-# for betas
-#MY_P=${P/_b/.B}
-#S=${WORKDIR}/${PN}-2.8.0
-#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
-
-DESCRIPTION="A milter-based application to provide DKIM signing and verification"
-HOMEPAGE="http://opendkim.org"
-SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+berkdb gnutls ldap lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
-
-DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
- dev-libs/libbsd
- ssl? ( >=dev-libs/openssl-0.9.8 )
- berkdb? ( >=sys-libs/db-3.2 )
- opendbx? ( >=dev-db/opendbx-1.4.0 )
- lua? ( dev-lang/lua )
- ldap? ( net-nds/openldap )
- memcached? ( dev-libs/libmemcached )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( sec-policy/selinux-dkim )
- unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )
- !unbound? ( net-libs/ldns )
- gnutls? ( >=net-libs/gnutls-2.11.7 )"
-
-RDEPEND="${DEPEND}
- sys-process/psmisc"
-
-REQUIRED_USE="sasl? ( ldap )"
-
-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() {
- sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
- -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
- -e 's:/etc/mail:/etc/opendkim:g' \
- -e 's:mailnull:milter:g' \
- -e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
- opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
- stats/opendkim-reportstats{,.in} || die
-
- sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
- || die
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- if use berkdb ; then
- myconf=$(db_includedir)
- myconf="--with-db-incdir=${myconf#-I}"
- myconf+=" --enable-popauth"
- myconf+=" --enable-query_cache"
- myconf+=" --enable-stats"
- fi
- if use unbound; then
- myconf+=" --with-unbound"
- else
- myconf+=" --with-ldns"
- fi
- if use ldap; then
- myconf+=" $(use_with sasl)"
- fi
- econf \
- $(use_with berkdb db) \
- $(use_with opendbx odbx) \
- $(use_with lua) \
- $(use_enable lua rbl) \
- $(use_with ldap openldap) \
- $(use_enable poll) \
- $(use_enable static-libs static) \
- $(use_with gnutls) \
- $(use_with memcached libmemcached) \
- ${myconf} \
- --docdir=/usr/share/doc/${PF} \
- --htmldir=/usr/share/doc/${PF}/html \
- --enable-filter \
- --enable-adsp_lists \
- --enable-atps \
- --enable-identity_header \
- --enable-rate_limit \
- --enable-resign \
- --enable-replace_rules \
- --enable-default_sender \
- --enable-sender_macro \
- --enable-vbr \
- --disable-rpath \
- --disable-live-testing \
- --with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dosbin stats/opendkim-reportstats
- newinitd "${FILESDIR}/opendkim.init.r3" opendkim
- dodir /etc/opendkim /var/lib/opendkim
- fowners milter:milter /var/lib/opendkim
-
- # default configuration
- if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
- grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
- > "${D}"/etc/opendkim/opendkim.conf
- if use unbound; then
- echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
- fi
- echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
- if use berkdb; then
- echo Statistics /var/lib/opendkim/stats.dat >> \
- "${D}"/etc/opendkim/opendkim.conf
- fi
- fi
-
- use static-libs || find "${D}" -name "*.la" -delete
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSION} ]]; then
- elog "If you want to sign your mail messages and need some help"
- elog "please 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."
- fi
-}
-
-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/opendkim/${selector}.private ]]; then
- ewarn "The private key for this selector already exists."
- else
- keysize=1024
- # generate the private and public keys
- opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
- -s ${selector} -d '(your domain)' && \
- chown milter:milter \
- "${ROOT}"etc/opendkim/"${selector}".private || \
- { eerror "Failed to create private and public keys." ; return 1; }
- chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
- fi
-
- # opendkim selector configuration
- echo
- einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
- einfo " Keyfile /etc/opendkim/${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/opendkim/opendkim.sock"
- einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
- einfo " and read http://www.postfix.org/MILTER_README.html"
-
- # DNS configuration
- einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
- cat "${ROOT}"etc/opendkim/${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 ADSP http://tools.ietf.org/html/rfc5617"
-}
diff --git a/mail-filter/opendkim/opendkim-2.9.1.ebuild b/mail-filter/opendkim/opendkim-2.9.1.ebuild
deleted file mode 100644
index afeb7367e092..000000000000
--- a/mail-filter/opendkim/opendkim-2.9.1.ebuild
+++ /dev/null
@@ -1,198 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.9.1.ebuild,v 1.2 2014/04/15 06:40:04 eras Exp $
-
-EAPI=5
-inherit autotools db-use eutils user
-
-# for betas
-#MY_P=${P/_b/.B}
-#S=${WORKDIR}/${PN}-2.8.0
-#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
-
-DESCRIPTION="A milter-based application to provide DKIM signing and verification"
-HOMEPAGE="http://opendkim.org"
-SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+berkdb gnutls ldap lmdb lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
-
-DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
- dev-libs/libbsd
- ssl? ( >=dev-libs/openssl-0.9.8 )
- berkdb? ( >=sys-libs/db-3.2 )
- opendbx? ( >=dev-db/opendbx-1.4.0 )
- lua? ( dev-lang/lua )
- ldap? ( net-nds/openldap )
- lmdb? ( dev-db/lmdb )
- memcached? ( dev-libs/libmemcached )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( sec-policy/selinux-dkim )
- unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )
- !unbound? ( net-libs/ldns )
- gnutls? ( >=net-libs/gnutls-2.11.7 )"
-
-RDEPEND="${DEPEND}
- sys-process/psmisc"
-
-REQUIRED_USE="sasl? ( ldap )"
-
-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() {
- sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
- -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
- -e 's:/etc/mail:/etc/opendkim:g' \
- -e 's:mailnull:milter:g' \
- -e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
- opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
- stats/opendkim-reportstats{,.in} || die
-
- sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
- || die
-
- #sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/tmp":' opendkim/tests/*.lua
- sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/proc/self/cwd":' opendkim/tests/*.lua
- sed -i -e 's/t-verify-ss.sock/t-verify-ss-ar-bad.sock/' \
- -e 's/t-verify-ss.conf/t-verify-ss-ar-bad.conf/' \
- opendkim/tests/t-verify-ss-ar-bad.lua
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- if use berkdb ; then
- myconf=$(db_includedir)
- myconf="--with-db-incdir=${myconf#-I}"
- myconf+=" --enable-popauth"
- myconf+=" --enable-query_cache"
- myconf+=" --enable-stats"
- fi
- if use unbound; then
- myconf+=" --with-unbound"
- else
- myconf+=" --with-ldns"
- fi
- if use ldap; then
- myconf+=" $(use_with sasl)"
- fi
- econf \
- $(use_with berkdb db) \
- $(use_with opendbx odbx) \
- $(use_with lua) \
- $(use_enable lua rbl) \
- $(use_with ldap openldap) \
- $(use_with lmdb) \
- $(use_enable poll) \
- $(use_enable static-libs static) \
- $(use_with gnutls) \
- $(use_with memcached libmemcached) \
- ${myconf} \
- --docdir=/usr/share/doc/${PF} \
- --htmldir=/usr/share/doc/${PF}/html \
- --enable-filter \
- --enable-adsp_lists \
- --enable-atps \
- --enable-identity_header \
- --enable-rate_limit \
- --enable-resign \
- --enable-replace_rules \
- --enable-default_sender \
- --enable-sender_macro \
- --enable-vbr \
- --disable-live-testing
- #--disable-rpath \
- #--with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dosbin stats/opendkim-reportstats
- newinitd "${FILESDIR}/opendkim.init.r3" opendkim
- dodir /etc/opendkim /var/lib/opendkim
- fowners milter:milter /var/lib/opendkim
-
- # default configuration
- if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
- grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
- > "${D}"/etc/opendkim/opendkim.conf
- if use unbound; then
- echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
- fi
- echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
- if use berkdb; then
- echo Statistics /var/lib/opendkim/stats.dat >> \
- "${D}"/etc/opendkim/opendkim.conf
- fi
- fi
-
- use static-libs || find "${D}" -name "*.la" -delete
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSION} ]]; then
- elog "If you want to sign your mail messages and need some help"
- elog "please 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."
- fi
-}
-
-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/opendkim/${selector}.private ]]; then
- ewarn "The private key for this selector already exists."
- else
- keysize=1024
- # generate the private and public keys
- opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
- -s ${selector} -d '(your domain)' && \
- chown milter:milter \
- "${ROOT}"etc/opendkim/"${selector}".private || \
- { eerror "Failed to create private and public keys." ; return 1; }
- chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
- fi
-
- # opendkim selector configuration
- echo
- einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
- einfo " Keyfile /etc/opendkim/${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/opendkim/opendkim.sock"
- einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
- einfo " and read http://www.postfix.org/MILTER_README.html"
-
- # DNS configuration
- einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
- cat "${ROOT}"etc/opendkim/${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 ADSP http://tools.ietf.org/html/rfc5617"
-}
diff --git a/mail-filter/opendkim/opendkim-2.9.2.ebuild b/mail-filter/opendkim/opendkim-2.9.2.ebuild
deleted file mode 100644
index 3654f1c6c7c5..000000000000
--- a/mail-filter/opendkim/opendkim-2.9.2.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.9.2.ebuild,v 1.1 2014/04/15 06:41:38 eras Exp $
-
-EAPI=5
-inherit autotools db-use eutils user
-
-# for betas
-#MY_P=${P/_b/.B}
-#S=${WORKDIR}/${PN}-2.8.0
-#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
-
-DESCRIPTION="A milter-based application to provide DKIM signing and verification"
-HOMEPAGE="http://opendkim.org"
-SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
-
-LICENSE="Sendmail-Open-Source BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+berkdb gnutls ldap lmdb lua memcached opendbx poll sasl selinux +ssl static-libs unbound"
-
-DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
- dev-libs/libbsd
- ssl? ( >=dev-libs/openssl-0.9.8 )
- berkdb? ( >=sys-libs/db-3.2 )
- opendbx? ( >=dev-db/opendbx-1.4.0 )
- lua? ( dev-lang/lua )
- ldap? ( net-nds/openldap )
- lmdb? ( dev-db/lmdb )
- memcached? ( dev-libs/libmemcached )
- sasl? ( dev-libs/cyrus-sasl )
- selinux? ( sec-policy/selinux-dkim )
- unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )
- !unbound? ( net-libs/ldns )
- gnutls? ( >=net-libs/gnutls-2.11.7 )"
-
-RDEPEND="${DEPEND}
- sys-process/psmisc"
-
-REQUIRED_USE="sasl? ( ldap )"
-
-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() {
- sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
- -e 's:/var/db/opendkim:/var/lib/opendkim:g' \
- -e 's:/etc/mail:/etc/opendkim:g' \
- -e 's:mailnull:milter:g' \
- -e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
- opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
- stats/opendkim-reportstats{,.in} || die
-
- sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
- || die
-
- #sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/tmp":' opendkim/tests/*.lua
- sed -i -e '/sock.*mt.getcwd/s:mt.getcwd():"/proc/self/cwd":' opendkim/tests/*.lua
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- if use berkdb ; then
- myconf=$(db_includedir)
- myconf="--with-db-incdir=${myconf#-I}"
- myconf+=" --enable-popauth"
- myconf+=" --enable-query_cache"
- myconf+=" --enable-stats"
- fi
- if use unbound; then
- myconf+=" --with-unbound"
- else
- myconf+=" --with-ldns"
- fi
- if use ldap; then
- myconf+=" $(use_with sasl)"
- fi
- econf \
- $(use_with berkdb db) \
- $(use_with opendbx odbx) \
- $(use_with lua) \
- $(use_enable lua rbl) \
- $(use_with ldap openldap) \
- $(use_with lmdb) \
- $(use_enable poll) \
- $(use_enable static-libs static) \
- $(use_with gnutls) \
- $(use_with memcached libmemcached) \
- ${myconf} \
- --docdir=/usr/share/doc/${PF} \
- --htmldir=/usr/share/doc/${PF}/html \
- --enable-filter \
- --enable-adsp_lists \
- --enable-atps \
- --enable-identity_header \
- --enable-rate_limit \
- --enable-resign \
- --enable-replace_rules \
- --enable-default_sender \
- --enable-sender_macro \
- --enable-vbr \
- --disable-live-testing
- #--disable-rpath \
- #--with-test-socket=/tmp/opendkim-$(echo ${RANDOM})-S
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dosbin stats/opendkim-reportstats
- newinitd "${FILESDIR}/opendkim.init.r3" opendkim
- dodir /etc/opendkim /var/lib/opendkim
- fowners milter:milter /var/lib/opendkim
-
- # default configuration
- if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
- grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
- > "${D}"/etc/opendkim/opendkim.conf
- if use unbound; then
- echo TrustAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
- fi
- echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
- if use berkdb; then
- echo Statistics /var/lib/opendkim/stats.dat >> \
- "${D}"/etc/opendkim/opendkim.conf
- fi
- fi
-
- use static-libs || find "${D}" -name "*.la" -delete
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSION} ]]; then
- elog "If you want to sign your mail messages and need some help"
- elog "please 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."
- fi
-}
-
-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/opendkim/${selector}.private ]]; then
- ewarn "The private key for this selector already exists."
- else
- keysize=1024
- # generate the private and public keys
- opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
- -s ${selector} -d '(your domain)' && \
- chown milter:milter \
- "${ROOT}"etc/opendkim/"${selector}".private || \
- { eerror "Failed to create private and public keys." ; return 1; }
- chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
- fi
-
- # opendkim selector configuration
- echo
- einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
- einfo " Keyfile /etc/opendkim/${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/opendkim/opendkim.sock"
- einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
- einfo " and read http://www.postfix.org/MILTER_README.html"
-
- # DNS configuration
- einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
- cat "${ROOT}"etc/opendkim/${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 ADSP http://tools.ietf.org/html/rfc5617"
-}