From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/python-iptables/Manifest | 1 + dev-python/python-iptables/metadata.xml | 26 +++++++++++++++ .../python-iptables/python-iptables-0.13.0.ebuild | 37 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 dev-python/python-iptables/Manifest create mode 100644 dev-python/python-iptables/metadata.xml create mode 100644 dev-python/python-iptables/python-iptables-0.13.0.ebuild (limited to 'dev-python/python-iptables') diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest new file mode 100644 index 000000000000..c8bfab36f5bd --- /dev/null +++ b/dev-python/python-iptables/Manifest @@ -0,0 +1 @@ +DIST python-iptables-0.13.0.tar.gz 83456 BLAKE2B 9c8da40437d408c6bb49e700b8d1663e7fdb0a1001b15409cf4c8b9edf612f75eb546207bc86d0535f8fb3744e42244f3e067dff80037c5a3eadc028ec8024f3 SHA512 1693924b8ee79b3b0929b57e86908282d53d28044b063d7bd169a6e9c1b45b5b6b4a79e54d024beedbfd6e42f88417eb2d0312bf90895702a3b8bfe2c2eb22b2 diff --git a/dev-python/python-iptables/metadata.xml b/dev-python/python-iptables/metadata.xml new file mode 100644 index 000000000000..a2af05fe328b --- /dev/null +++ b/dev-python/python-iptables/metadata.xml @@ -0,0 +1,26 @@ + + + + + python@gentoo.org + Python + + + Python Bindings for IPtables: Iptables is the tool that is used to manage netfilter, + the standard packet filtering and manipulation framework under Linux. As the iptables + manpage puts it: Iptables is used to set up, maintain, and inspect the tables of IPv4 + packet filter rules in the Linux kernel. Several different tables may be defined. + Each table contains a number of built-in chains and may also contain user-defined + chains. Each chain is a list of rules which can match a set of packets. Each rule + specifies what to do with a packet that matches. This is called a target, which may be + a jump to a user-defined chain in the same table. Python-iptables provides python + bindings to iptables under Linux. Interoperability with iptables is achieved via + using the iptables C libraries (libiptc, libxtables, and the iptables extensions), not + calling the iptables binary and parsing its output. + + + python-iptables + ldx/python-iptables + + gentoo-staging + diff --git a/dev-python/python-iptables/python-iptables-0.13.0.ebuild b/dev-python/python-iptables/python-iptables-0.13.0.ebuild new file mode 100644 index 000000000000..cbc03c5b190e --- /dev/null +++ b/dev-python/python-iptables/python-iptables-0.13.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{6,7} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for iptables" +HOMEPAGE="https://github.com/ldx/python-iptables" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="net-firewall/iptables" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +# tests manipulate live iptables rules, so disable them by default + +python_prepare_all() { + # Prevent un-needed d'loading during doc build + sed -e "s/, 'sphinx.ext.intersphinx'//" -i doc/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + distutils-r1_python_install_all +} -- cgit v1.3.1