summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2012-10-24 11:02:33 +0000
committerEray Aslan <eras@gentoo.org>2012-10-24 11:02:33 +0000
commit2aa430bc6fa1cbe1c408e5e08e774366a303463f (patch)
treeb599dbbe6b95796db0aff28739f88bd1754449eb /mail-filter/opendkim
parentAdd ~amd64, wrt bug #439330 (diff)
downloadhistorical-2aa430bc6fa1cbe1c408e5e08e774366a303463f.tar.gz
historical-2aa430bc6fa1cbe1c408e5e08e774366a303463f.tar.bz2
historical-2aa430bc6fa1cbe1c408e5e08e774366a303463f.zip
Add sys-process/psmisc to RDEPEND - bug #439428
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-filter/opendkim')
-rw-r--r--mail-filter/opendkim/ChangeLog8
-rw-r--r--mail-filter/opendkim/Manifest31
-rw-r--r--mail-filter/opendkim/opendkim-2.6.7-r2.ebuild204
3 files changed, 226 insertions, 17 deletions
diff --git a/mail-filter/opendkim/ChangeLog b/mail-filter/opendkim/ChangeLog
index 4e91c9ae0f7e..b3b8ba26f521 100644
--- a/mail-filter/opendkim/ChangeLog
+++ b/mail-filter/opendkim/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/opendkim
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.44 2012/07/31 14:59:15 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/ChangeLog,v 1.45 2012/10/24 11:02:23 eras Exp $
+
+*opendkim-2.6.7-r2 (24 Oct 2012)
+
+ 24 Oct 2012; Eray Aslan <eras@gentoo.org> +opendkim-2.6.7-r2.ebuild:
+ Add sys-process/psmisc to RDEPEND - bug #439428
*opendkim-2.6.7-r1 (31 Jul 2012)
@@ -235,4 +240,3 @@
+files/opendkim-1.1.0-vbr-booliscpp.patch, +files/opendkim.init,
+metadata.xml:
initial ebuild by me. Eray Aslan also requested this in bug #282488
-
diff --git a/mail-filter/opendkim/Manifest b/mail-filter/opendkim/Manifest
index a196af6c25cf..4ea89dfdf8a3 100644
--- a/mail-filter/opendkim/Manifest
+++ b/mail-filter/opendkim/Manifest
@@ -4,7 +4,7 @@ Hash: SHA256
AUX opendkim-2.4.0-ipv6.patch 765 SHA256 ab04590e0ca8543e0bff17f243134e265f36095a4a23d044521c9a07701b897d SHA512 92fa7ebd2a33a80da0f35f30b2a032a9910c245db987ac4391e6e3876359ffaa85e386bebc2ae6ab7e315d008ee5969cc7a48a640e35a42fb9b5b0e40d332f06 WHIRLPOOL dfa19d812048d58372842c417a2b32a5b29a699a1f6affe5d47b0c61d0e4a6c5ea701179316489920c1abb2f12a2bd972cd199226de72fd31cf3e0131adab7db
AUX opendkim.init.r2 1533 SHA256 0e8fab90020c109f602d8367a6501bfb3b397a50f020b6fade5024e2facf593c SHA512 8c7aef32c67e1ec4bf3afb0df48d861b6f1399c8a825161d00ca1400d87b084ad16de68401f9cece4cc9c07b06377641cc664d7e79750a0fc106f1088fb2dff7 WHIRLPOOL 00783d779d904118eb172f859c289d8b2b1832f1de1f17ab30a5a9f0af6ffa324395f2777b82fbde2e46d26f064d4ffec368b6734ce9cfe09173f24a7053de50
DIST opendkim-2.4.3.tar.gz 1381956 SHA256 c3ef73c5aa2bf8a6626b822cea08b72c954376ae892d596346973d11003c0906
-DIST opendkim-2.5.2.tar.gz 1475225 SHA256 fb6994ea4bbd7e93772517cd3ee0b4ec338ed502a920fa2fa98b34869db167a9
+DIST opendkim-2.5.2.tar.gz 1475225 SHA256 fb6994ea4bbd7e93772517cd3ee0b4ec338ed502a920fa2fa98b34869db167a9 SHA512 cb82163f36ad2a8de35174214729f4dd13c408cfded82e3d1b20d1a05ea3c55ffaba34908d81801b0fc13f59f3a71fce984ecdf3f1fe654fb80b5b3536830b49 WHIRLPOOL c52d5afbfb8708c2e1af7f6e709ef1db3b0a7d753f8c96dcd4530d2210b654e2bc1be2a254e4ddf77c5cc0f80d5bffe637e727a1dd230d5999765dccdaa68a40
DIST opendkim-2.6.3.tar.gz 1127456 SHA256 6208d1bdf3e754cd26e3c9dd95ed68f00f9236e471242c176f2a6a61ede37216 SHA512 a9cbbac94cf23b613adb19e2fb38bda406d1874dd53be7ab0bae44860c284403ee33a1ca8b5aebe7964d0ea832169efa4c41c3ae93c37b8586904a0ecb431e19 WHIRLPOOL c12be4edbd42347d2e5e54d8073d948dbcbf84a15a3869ded14299baef08cd321487f2ea17f8d8e995e63fd0954a195c887046aca4e164f0a438417dabdc56ba
DIST opendkim-2.6.4.tar.gz 1127508 SHA256 ff0c53eb93f21bca88f803668d32e127d884c83f850c159eb291898656dc622f SHA512 3706a75b259c96b9bd9efa7a79cb470bb5d3276d9080378ffe7dce771ae9e90797e5c6f5a24b89a1a23ff15cd379d6203938b2145ac0fc6a090e3a3fa708524f WHIRLPOOL 8a8ba93acfb82c676a528af35f2b70c05edb1a8f508ed9e5e855e8ab78941e8e757425610a3536a78c740a964893a79862252a83536989ff720b402e25c81318
DIST opendkim-2.6.7.tar.gz 1129124 SHA256 45da209ccddfb6f6888ac2366b6e38a6460b36ff0da527aed910217cead6fc84 SHA512 f47f4c4805b96a2c57774dd69a7770751649397866b29392aa756c4b143579d93951166c817342fde12b8994251a8b44d2de61e6059fd04686e04aa6e668cdd3 WHIRLPOOL df662ca97ac937720038b16fb8b5e8f3f1d6a9d5b73102082a889abddaa003ca8ddf8fcba670fb16f7d00e4fd8b07fc0ddaff97f070e795822350751b0cb0608
@@ -13,23 +13,24 @@ EBUILD opendkim-2.5.2-r1.ebuild 6381 SHA256 fb66509fcc160db3cb5add3386e5d0ff40ed
EBUILD opendkim-2.6.3.ebuild 6332 SHA256 ec74fb29947fed50cf835bf848d184f6f902ef81741c00891ed598338523b837 SHA512 278a57502a8343948bd4a118fbe8092ab8cf703b7b28f0989105d2125273c3e1747301ace318de54e96a9ce1026085c7945fc760bde3f631e141bbf7a698faf6 WHIRLPOOL 6f9156e644207a540340e51fa72235eb20c5603b070c946c2d785393fe46aaffc1bb1498278a8f01fd5c6cebc2ae8fe9f9f2afcba862c3a6ce4dc879a0c373c7
EBUILD opendkim-2.6.4.ebuild 6332 SHA256 6a789a58b78532698c1ac6351e9bd0404e000049a19ca330225dcd3aa79a5732 SHA512 7adb77946102c310aeb48f3a592b57ae165ee36c4793e3f0757e230160cba17569548bc39601ddc4273e8a86ae1919ae2f22230e105770f075ce33f7eee2d299 WHIRLPOOL ece4f43bc716d8768da704c19b293e8530a74111af9641ade1e6c1202b711ec76711a8b57396a60a0885203b312a7331d8f8ef8b623cf8285cc1c8e297068c2f
EBUILD opendkim-2.6.7-r1.ebuild 6363 SHA256 5b96304b2804c0b9f25d7978e79da81e156e1155c6c7bdb7fdb1b23c7db87dbb SHA512 d21c7634904227478b21d2e5864f62f340a074370c3cf4fb9932aead44bb455d1e32400fcc11f231512298b0b3da8b2fe28886f70f8991702d456315fa177181 WHIRLPOOL 577210b217425b9542d838d358a8707d9a053e3dd3a366340d0544ab2ef3819c53d04c617efc113ba3ae675da27cba61dcbaede41b1a84f1645d0a75d61ca05b
+EBUILD opendkim-2.6.7-r2.ebuild 6383 SHA256 0f43426ed954cf61c3ee5da3bc54bff97904afb659c7340584814a27def493af SHA512 0a01126a0a92defa1d740e56b5c84decdcfba76f6f964e03e35a150fb759d592af90bd9db7aa537ffe269ff0fa0090754bdbce8f9ca7f63133b4bb206426b176 WHIRLPOOL 604db2a8da84f83bbc19b83ccf131a10499a8c82c0965ed40cb9b1cd7699ebbe18ed9a5b382e2dfc72fe227946ae47583028d8868ae8ab714b0e71ccdbf1e4ee
EBUILD opendkim-2.6.7.ebuild 6332 SHA256 67455b4fca44a560cf226ef3a2814967e14cc210d2d15a378b48e842bf6172e0 SHA512 6134a4837b4b963425dc93403680e2022555fc158aac368b3de3753a367b299774b08c78ec373194d7fa86d5de5bde1c6d294f3735fc784df63038310a96b3dc WHIRLPOOL faa605f7bed9d139c78fed158c6e246a7450c9c7eba07d93929cabe4009ac6334adc42d4c6d93e7abc1c6300a04f037569416849543df5c2d0a4b656e5f49cfd
-MISC ChangeLog 8076 SHA256 92ad812a0490d7d6ff7ef9ee2d3bf08681a4c6c22127465336ec9bfc7b699624 SHA512 850c2615a12de27577ffea2407adce80aedce2cb6c1197661c63bce67d84eb3549158dd3b41b5989dbc4841a028e54083a06fab43cc63057c0cf8da6c2555fa6 WHIRLPOOL c0c5ad98f7c2339bddaa9559c7717d8e6c9361711da712bf6bb63d170779a9a259d16591f42eeff54d09b8f747c144ad451e71b715fa6f79e13e120bdd5f5ca7
+MISC ChangeLog 8231 SHA256 b2cc8373a532b1ed4f318ca420ff7e4b32e10cd94694b9157003e57d56197226 SHA512 4fa8fdc7cc8581de28babba54e378d858f759ba11991d466ab76a49e47b1171c64e6f1a51a61dca80139238c40bfa1bc7c9e2280836aa76a61c4cd79f69dff5c WHIRLPOOL 008a0df493a59c5d130da738697e2c2aaa81b6e6e597f5b5d56f5d7a99e8bc77dc727d57ef30596ffce511a54da4cff8509254fea53149c00224354293cedce5
MISC metadata.xml 1325 SHA256 5c79e487583ffa41f2823235e61232f84c1ac18ef41b1b71150f8d32f76b82eb SHA512 ae25f27a0c0cc5c3460b150f3eb6369e34b3051984b58da6a81847b5e90edc62e91fdd8f0d428576ef73614db095dc3a415237cccc1cc3cc806f9d99ff588df5 WHIRLPOOL d8b1221d484e12c31d76a20e8a7e6e0d033e16884e7dd14f657d4383f24f8f9294bc51dea4f512896a4183f9299c2faef31e7540d95c418000245090a3a0cdfe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJQF/LJAAoJEHfx8XVYajsfNe0P+wTpf65lWGlUFcv8VuVLSchr
-V/VHizkm/SwFBHgj+jci8yivTf7R+srJbnXK5CSZr+vAqhsfPI3qq3VrqKtYb+vX
-18g2/7daRxptK8UQPzIVdpfp/RhARV1GZ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z33JoggyBf7lwHq/Swb2U1Y125QqEMECDWoLH67qFjZ2U49OvF
+l48HKME8Kq4EhOiPwJxCOM82FAK+q5+kM9/f8DI3TUhBKdeWxX4C9BHcTKg6XFVL
+w7YOIrHzW7T69dXPZwqjiaPflL9yL62uJsg9nxUTKIKFJ64jz+GGvdjHv5l0thZ9
+ThAtlxyDI2rEJsL2S8xQsUZQCn+DZbgqLjpCHqImhPD/coMkDZTyU71Z0U28u7o6
+lhDWunOFYM30fAMKrEEB
+=t2VH
-----END PGP SIGNATURE-----
diff --git a/mail-filter/opendkim/opendkim-2.6.7-r2.ebuild b/mail-filter/opendkim/opendkim-2.6.7-r2.ebuild
new file mode 100644
index 000000000000..fd359449cd25
--- /dev/null
+++ b/mail-filter/opendkim/opendkim-2.6.7-r2.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.6.7-r2.ebuild,v 1.1 2012/10/24 11:02:23 eras Exp $
+
+EAPI=4
+inherit eutils db-use autotools user
+
+# for betas
+#MY_P=${P/_b/.B}
+#S=${WORKDIR}/${PN}-2.0.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="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
+
+# FUTURE: diffheaders (libtre error) - bug #296813
+
+DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
+ 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 )
+ sasl? ( dev-libs/cyrus-sasl )
+ unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
+ #diffheaders? ( dev-libs/tre )
+ #gnutls? ( >=net-libs/gnutls-2.11.7 )
+
+RDEPEND="${DEPEND}
+ sys-process/psmisc"
+
+REQUIRED_USE="sasl? ( ldap )"
+ #lua? ( berkdb )"
+
+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 || 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 asyncdns ; then
+ if use unbound; then
+ myconf+=" --with-unbound"
+ else
+ myconf+=" --enable-arlib"
+ fi
+ else
+ myconf+=" $(use_with unbound) --disable-arlib"
+ 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) \
+ ${myconf} \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --enable-filter \
+ --enable-oversign \
+ --enable-adsp_lists \
+ --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
+ #$(use_enable diffheaders)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ # file collision
+ rm -f "${D}"/usr/share/man/man3/ar.3
+
+ dosbin stats/opendkim-reportstats
+ newinitd "${FILESDIR}/opendkim.init.r2" 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 TrustedAnchorFile /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() {
+ 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."
+}
+
+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
+ 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
+ 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"
+}