commit:     a647e6a9d096680b9f7aa80b8ef94bb411394e47
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  3 14:36:09 2016 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Dec  3 14:36:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a647e6a9

mail-filter/pypolicyd-spf: new version 2.0.0.

Package-Manager: portage-2.3.0

 mail-filter/pypolicyd-spf/Manifest                 |  1 +
 .../pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild       | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/mail-filter/pypolicyd-spf/Manifest 
b/mail-filter/pypolicyd-spf/Manifest
index b5d8f01..ebba391 100644
--- a/mail-filter/pypolicyd-spf/Manifest
+++ b/mail-filter/pypolicyd-spf/Manifest
@@ -1 +1,2 @@
 DIST pypolicyd-spf-1.3.2.tar.gz 32973 SHA256 
7174c46a26c9c35b0d66ddba821b02b0dc2df9d1f6bf0c9da71dcd60795b2966 SHA512 
e80b13a0cf9f8406592db5edcb9770051352b3f637d4d9d5bd96295710bf3728a8350c0697e5b430698b0d9d226c83c9decb67923ed5cdb3502ee15509715af4
 WHIRLPOOL 
91051b0702098b14d0e8281184219f7c96304b59b8a56b7088810af83383b18feb414b53eb259f9d13a37a108373633adeb4a7f866bbd54a480cb1ec287af6a6
+DIST pypolicyd-spf-2.0.0.tar.gz 37810 SHA256 
a91e13f1d40d5ab0b63875967d5950440ab387efeea41dad46cac39b24158838 SHA512 
76250192f07f06e223b99e6532ee62e35d656123400feab64e4dcec3219489cb85ef98328110b5892d55a78d016359016eac958f16bbbea7cff25e8d7f6f985c
 WHIRLPOOL 
4592510e4da07418750a43d46c2c1c724c9311498daf81cb9ef16ca0ad1ed7b48b35fe0378676facd90e6736b320915402e73a30cf042f2e5aca17972ab4fe52

diff --git a/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild 
b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild
new file mode 100644
index 00000000..fb74bcf
--- /dev/null
+++ b/mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_4 )
+
+# The built-in ipaddress module handles the parsing of IP addresses. If
+# python is built without ipv6 support, then ipaddress can't parse ipv6
+# addresses, and the daemon will crash if it sees an ipv6 SPF record. In
+# other words, it's completely broken.
+PYTHON_REQ_USE="ipv6"
+
+inherit distutils-r1
+
+DESCRIPTION="Python-based policy daemon for Postfix SPF verification"
+HOMEPAGE="https://launchpad.net/${PN}";
+SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-python/pyspf-2.0.9[${PYTHON_USEDEP}]"
+
+RDEPEND="${DEPEND}
+       dev-python/authres[${PYTHON_USEDEP}]"
+
+DOCS=( CHANGES policyd-spf.conf.commented README README.per_user_whitelisting )
+
+python_prepare_all() {
+       # The "real" config file mentions the commented one, so we point
+       # users in the right direction.
+       local oldconf="policyd-spf.conf.commented"
+       local newconf="/usr/share/doc/${PF}/${oldconf}"
+
+       sed -i "1 s~ ${oldconf}~,\n#  ${newconf}~" policyd-spf.conf \
+               || die 'failed to update commented config file path'
+
+       distutils-r1_python_prepare_all
+}

Reply via email to