Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/pypolicyd-spf/
Date: Sat, 03 Dec 2016 14:37:20
Message-Id: 1480775769.a647e6a9d096680b9f7aa80b8ef94bb411394e47.mjo@gentoo
1 commit: a647e6a9d096680b9f7aa80b8ef94bb411394e47
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 3 14:36:09 2016 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 3 14:36:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a647e6a9
7
8 mail-filter/pypolicyd-spf: new version 2.0.0.
9
10 Package-Manager: portage-2.3.0
11
12 mail-filter/pypolicyd-spf/Manifest | 1 +
13 .../pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild | 43 ++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/mail-filter/pypolicyd-spf/Manifest b/mail-filter/pypolicyd-spf/Manifest
17 index b5d8f01..ebba391 100644
18 --- a/mail-filter/pypolicyd-spf/Manifest
19 +++ b/mail-filter/pypolicyd-spf/Manifest
20 @@ -1 +1,2 @@
21 DIST pypolicyd-spf-1.3.2.tar.gz 32973 SHA256 7174c46a26c9c35b0d66ddba821b02b0dc2df9d1f6bf0c9da71dcd60795b2966 SHA512 e80b13a0cf9f8406592db5edcb9770051352b3f637d4d9d5bd96295710bf3728a8350c0697e5b430698b0d9d226c83c9decb67923ed5cdb3502ee15509715af4 WHIRLPOOL 91051b0702098b14d0e8281184219f7c96304b59b8a56b7088810af83383b18feb414b53eb259f9d13a37a108373633adeb4a7f866bbd54a480cb1ec287af6a6
22 +DIST pypolicyd-spf-2.0.0.tar.gz 37810 SHA256 a91e13f1d40d5ab0b63875967d5950440ab387efeea41dad46cac39b24158838 SHA512 76250192f07f06e223b99e6532ee62e35d656123400feab64e4dcec3219489cb85ef98328110b5892d55a78d016359016eac958f16bbbea7cff25e8d7f6f985c WHIRLPOOL 4592510e4da07418750a43d46c2c1c724c9311498daf81cb9ef16ca0ad1ed7b48b35fe0378676facd90e6736b320915402e73a30cf042f2e5aca17972ab4fe52
23
24 diff --git a/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild
25 new file mode 100644
26 index 00000000..fb74bcf
27 --- /dev/null
28 +++ b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild
29 @@ -0,0 +1,43 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_4 )
37 +
38 +# The built-in ipaddress module handles the parsing of IP addresses. If
39 +# python is built without ipv6 support, then ipaddress can't parse ipv6
40 +# addresses, and the daemon will crash if it sees an ipv6 SPF record. In
41 +# other words, it's completely broken.
42 +PYTHON_REQ_USE="ipv6"
43 +
44 +inherit distutils-r1
45 +
46 +DESCRIPTION="Python-based policy daemon for Postfix SPF verification"
47 +HOMEPAGE="https://launchpad.net/${PN}"
48 +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
49 +
50 +LICENSE="Apache-2.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE=""
54 +
55 +DEPEND=">=dev-python/pyspf-2.0.9[${PYTHON_USEDEP}]"
56 +
57 +RDEPEND="${DEPEND}
58 + dev-python/authres[${PYTHON_USEDEP}]"
59 +
60 +DOCS=( CHANGES policyd-spf.conf.commented README README.per_user_whitelisting )
61 +
62 +python_prepare_all() {
63 + # The "real" config file mentions the commented one, so we point
64 + # users in the right direction.
65 + local oldconf="policyd-spf.conf.commented"
66 + local newconf="/usr/share/doc/${PF}/${oldconf}"
67 +
68 + sed -i "1 s~ ${oldconf}~,\n# ${newconf}~" policyd-spf.conf \
69 + || die 'failed to update commented config file path'
70 +
71 + distutils-r1_python_prepare_all
72 +}