Adding pyspf

This commit is contained in:
root
2020-01-01 17:56:36 +00:00
parent 31334171d5
commit 2f1f6082ed
7 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST py3dns-3.2.1.tar.gz 30691 BLAKE2B 336ed91a3bf8b33db258667ac96eba6df361bb2a8f24c433dbc6754ea32a7284ce0463c392c1392538eed9d8bf9ea3f09400bc08f1970a7c96c52bf072606718 SHA512 22f16c571f9fad02a70a8e0bbbfd802f4f9af23946edb78e15f69f23e57411369274945a1dea5603acae1fc1eb404e5445207c541afb7864a60b92dc4d5477b3
EBUILD pydns-3.2.1.ebuild 858 BLAKE2B 7a0191676e5d0af6b963d3217abb13813a552a8437d75058c1be2da8e686aca79ff5ab174c47f9aeed9419cffdcffe1f5e7c9f7bcf0410a07a96b5a992093ae6 SHA512 675177b9ec1e5fe7085028097de34eebd68e6401fa5e88b207d8d661c23b592960658ea230f1531eb721a4306bf6353c1838957342b3947b574735bcc1dd2622

View File

@ -0,0 +1,38 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6,7} pypy3 )
inherit distutils-r1
MY_PN="${PN/py/py3}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python DNS (Domain Name System) library"
HOMEPAGE="https://launchpad.net/py3dns"
SRC_URI="https://launchpad.net/${MY_PN}/trunk/${PV}/+download/${MY_P}.tar.gz"
LICENSE="CNRI"
SLOT="3"
KEYWORDS="amd64 hppa ~ia64 ~ppc ~sparc x86"
IUSE="examples"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
# Tests require network access
RESTRICT="test"
S="${WORKDIR}/${MY_P}"
python_test() {
"${EPYTHON}" -m unittest || die "tests failed with ${EPYTHON}"
}
python_install_all() {
if use examples; then
docinto examples
dodoc -r tests/. tools/.
docompress -x /usr/share/doc/${PF}/examples
fi
distutils-r1_python_install_all
}

View File

@ -0,0 +1,2 @@
DIST pyspf-2.0.12t.tar.gz 67189 BLAKE2B 40ddecf6e9717da9e496c5852866259f28af11c5e9ef581ef1188b07896bce7abc3ba901063bfea2ec9f89d70e17275b0e2619f23f9dc334628ebb0af084b79c SHA512 1ad23b5dea4aa8edd03b3fd9fc675685bcb0e216474534563c55988df040abd4e2bbc8488bba80d26466877e8b2ec88cbadc2f67eb8c4bf6f26f975d8af81d8d
EBUILD pyspf-2.0.12.ebuild 781 BLAKE2B d52dc11342eab545f9b2b30c2d6c8b5e74777932cd0124aeaed3a351799a62939cf88622aaae1b5df0ede836c53bf0b67cbeee053abb7b55883dbb4bf84af800 SHA512 afa18c7ed08050e5e98de3966a5233e881ee190342406e47a6f7796c3b93992cb1fbbb4a9a28230bae6b880a1778f137a70ecf1ebfd628a920fb550db9d52024

View File

@ -0,0 +1,35 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
PYTHON_REQ_USE="ipv6?"
inherit distutils-r1
DESCRIPTION="Python implementation of the Sender Policy Framework (SPF) protocol"
HOMEPAGE="https://pypi.org/project/pyspf/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}t.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ipv6 test"
RESTRICT="!test? ( test )"
# >=python-3.3 comes with the built-in ipaddress module
RDEPEND="dev-python/authres
>=dev-python/ipaddr-2.1.10
dev-python/pydns:3"
DEPEND="test? ( ${RDEPEND}
dev-python/pyyaml )"
REQUIRED_USE="test? ( ipv6 )"
python_test() {
pushd test &> /dev/null
"${PYTHON}" testspf.py || die
popd &> /dev/null
}