Adding pyspf
This commit is contained in:
3
mail-filter/pypolicyd-spf/Manifest
Normal file
3
mail-filter/pypolicyd-spf/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST pypolicyd-spf-2.0.2.tar.gz 38546 BLAKE2B 691cd5db37592be0ef0cda41223280e764e83802e37563f4e6c08505731118199c03d27b0bf51cec0556aa946fc6c7465fe09d3c9100c8e2582a4d85ad828495 SHA512 adcc7b30c6922894f9407edd0637b02a138623f4480ec37635475396826b457c835b3ffb599d1985e306770fe5f72404552ed705bd957e63b5c54ca3d8991673
|
||||
EBUILD pypolicyd-spf-2.0.2.ebuild 1182 BLAKE2B fbb2d35adf16fb34305e17becd6525429c28761234d6341b2290fff5eafdf22d32098d173b6037dba500852fea75c85aa52d9bf7fa7440513c1829fc743d8cb4 SHA512 aa358d5e7f26c8747309d416ba72b48f3db1ee5350b5abf99e3327a321bdb5782278cfb6de67b779dc2191eeb323092498e64bbd209c8ec21e5ee733d0ef3746
|
||||
MISC metadata.xml 356 BLAKE2B e28aba8830da5e0c372cc7090736a5a90c208af79c6fe338e8bf96ef79e17afa05cdabdb48ca172d57fd34203c66ff7e3be4ce4c043b14c0e9694639512a82f3 SHA512 67a8fd46090c3e558e7bf963277e99e11be4d2df97f4a4491a7fbc64a42f89e19af2131d13efec7370df1f27b2eb7385f59e732fae57b6ec67c47f18af8cfc72
|
11
mail-filter/pypolicyd-spf/metadata.xml
Normal file
11
mail-filter/pypolicyd-spf/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mjo@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="launchpad">pypolicyd-spf</remote-id>
|
||||
<remote-id type="pypi">pypolicyd-spf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
42
mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2.ebuild
Normal file
42
mail-filter/pypolicyd-spf/pypolicyd-spf-2.0.2.ebuild
Normal file
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||
|
||||
# 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"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
dev-python/authres"
|
||||
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user