diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/python-iptables | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/python-iptables')
| -rw-r--r-- | dev-python/python-iptables/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/python-iptables/metadata.xml | 26 | ||||
| -rw-r--r-- | dev-python/python-iptables/python-iptables-0.13.0.ebuild | 37 |
3 files changed, 64 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + 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. + </longdescription> + <upstream> + <remote-id type="pypi">python-iptables</remote-id> + <remote-id type="github">ldx/python-iptables</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> 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 +} |
