Gentoo Archives: gentoo-commits

From: "Michael Orlitzky (mjo)" <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/pypolicyd-spf: pypolicyd-spf-1.3.1.ebuild ChangeLog pypolicyd-spf-1.3.ebuild
Date: Thu, 05 Jun 2014 13:08:44
Message-Id: 20140605130839.AF3DA2004E@flycatcher.gentoo.org
1 mjo 14/06/05 13:08:39
2
3 Modified: ChangeLog
4 Added: pypolicyd-spf-1.3.1.ebuild
5 Removed: pypolicyd-spf-1.3.ebuild
6 Log:
7 Version bump; remove v1.3 due to upstream bug #1325579.
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!)
10
11 Revision Changes Path
12 1.35 mail-filter/pypolicyd-spf/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog?rev=1.35&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog?rev=1.35&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog?r1=1.34&r2=1.35
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog,v
21 retrieving revision 1.34
22 retrieving revision 1.35
23 diff -u -r1.34 -r1.35
24 --- ChangeLog 11 May 2014 02:11:13 -0000 1.34
25 +++ ChangeLog 5 Jun 2014 13:08:39 -0000 1.35
26 @@ -1,6 +1,12 @@
27 # ChangeLog for mail-filter/pypolicyd-spf
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog,v 1.34 2014/05/11 02:11:13 mjo Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog,v 1.35 2014/06/05 13:08:39 mjo Exp $
31 +
32 +*pypolicyd-spf-1.3.1 (05 Jun 2014)
33 +
34 + 05 Jun 2014; Michael Orlitzky <mjo@g.o> +pypolicyd-spf-1.3.1.ebuild,
35 + -pypolicyd-spf-1.3.ebuild:
36 + Version bump; remove v1.3 due to upstream bug #1325579.
37
38 *pypolicyd-spf-1.3 (11 May 2014)
39
40
41
42
43 1.1 mail-filter/pypolicyd-spf/pypolicyd-spf-1.3.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-1.3.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-1.3.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pypolicyd-spf-1.3.1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-1.3.1.ebuild,v 1.1 2014/06/05 13:08:39 mjo Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
57
58 # With >=python-3.3, the built-in ipaddress module handles the parsing
59 # of IP addresses. If python is built without ipv6 support, then
60 # ipaddress can't parse ipv6 addresses, and the daemon will crash if it
61 # sees an ipv6 SPF record. In other words, it's completely broken.
62 #
63 # Ideally this would remain optional for python-2.x, but until there's
64 # an easy way to do that, "maybe annoying" seems a better option than
65 # "maybe broken."
66 PYTHON_REQ_USE="ipv6"
67
68 inherit distutils-r1 versionator
69
70 DESCRIPTION="Python-based policy daemon for Postfix SPF verification"
71 HOMEPAGE="https://launchpad.net/pypolicyd-spf"
72 SRC_URI="http://launchpad.net/pypolicyd-spf/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
73
74 LICENSE="Apache-2.0"
75 SLOT="0"
76 KEYWORDS="~amd64 ~x86"
77 IUSE=""
78
79 # ipaddr is only needed with <python-3.3.
80 #
81 # The lower version bound is reported at,
82 #
83 # https://bugs.launchpad.net/pypolicyd-spf/+bug/1229862
84 #
85 # The lower bound on pyspf is not strictly necessary, but some features
86 # are silently disabled with older versions of pyspf.
87 #
88 DEPEND="$(python_gen_cond_dep \
89 '>=dev-python/ipaddr-2.1.10[${PYTHON_USEDEP}]' \
90 'python2*')
91 >=dev-python/pyspf-2.0.9[${PYTHON_USEDEP}]"
92
93 RDEPEND="${DEPEND}
94 dev-python/authres[${PYTHON_USEDEP}]"
95
96 DOCS=( CHANGES policyd-spf.conf.commented README README.per_user_whitelisting )
97
98 python_prepare_all() {
99 # The "real" config file mentions the commented one, so we point
100 # users in the right direction.
101 local oldconf="policyd-spf.conf.commented"
102 local newconf="/usr/share/doc/${PF}/${oldconf}"
103
104 sed -i "1 s~ ${oldconf}~,\n# ${newconf}~" policyd-spf.conf \
105 || die 'failed to update commented config file path'
106
107 distutils-r1_python_prepare_all
108 }