[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/files/, dev-python/python-iptables/
commit: 139158d87cbdf903094e55178ebbf03348e1a27b Author: Patrick McLean sony com> AuthorDate: Tue Nov 10 00:11:16 2020 + Commit: Patrick McLean gentoo org> CommitDate: Tue Nov 10 00:12:28 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=139158d8 dev-python/python-iptables-1.0.0-r1: revbump, add patch for new glibc Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Patrick McLean gentoo.org> .../files/python-iptables-1.0.0-ldconfig-fix.patch | 21 + ...1.0.0.ebuild => python-iptables-1.0.0-r1.ebuild} | 4 2 files changed, 25 insertions(+) diff --git a/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch b/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch new file mode 100644 index 000..14fe9eae38d --- /dev/null +++ b/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch @@ -0,0 +1,21 @@ +diff --git a/iptc/xtables.py b/iptc/xtables.py +index cf21029..8f62164 100644 +--- a/iptc/xtables.py b/iptc/xtables.py +@@ -4,6 +4,7 @@ import ctypes as ct + import os + import sys + import weakref ++import pathlib + + from . import version + from .util import find_library, find_libc +@@ -805,7 +806,7 @@ _lib_xtables, xtables_version = find_library(_searchlib) + _xtables_libdir = os.getenv("XTABLES_LIBDIR") + if _xtables_libdir is None: + import re +-ldconfig_path_regex = re.compile('^(/.*):$') ++ldconfig_path_regex = re.compile(r'^(/.*): \(.*$') + import subprocess + ldconfig = subprocess.Popen( + ('/sbin/ldconfig', '-N', '-v'), diff --git a/dev-python/python-iptables/python-iptables-1.0.0.ebuild b/dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild similarity index 91% rename from dev-python/python-iptables/python-iptables-1.0.0.ebuild rename to dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild index 53037c8775b..b69547d73fe 100644 --- a/dev-python/python-iptables/python-iptables-1.0.0.ebuild +++ b/dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild @@ -18,6 +18,10 @@ RDEPEND="net-firewall/iptables" # tests manipulate live iptables rules, so disable them by default RESTRICT="test" +PATCHES=( + "${FILESDIR}/python-iptables-1.0.0-ldconfig-fix.patch" +) + distutils_enable_sphinx doc distutils_enable_tests setup.py
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 94db3c08d7880d4a2cfd91e0e2a233cdef156092 Author: Michał Górny gentoo org> AuthorDate: Fri Sep 18 15:36:34 2020 + Commit: Michał Górny gentoo org> CommitDate: Fri Sep 18 15:36:34 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94db3c08 dev-python/python-iptables: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/python-iptables/Manifest| 1 - .../python-iptables/python-iptables-0.13.0.ebuild | 37 -- 2 files changed, 38 deletions(-) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index c94ad37ec5f..1648c75731f 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,2 +1 @@ -DIST python-iptables-0.13.0.tar.gz 83456 BLAKE2B 9c8da40437d408c6bb49e700b8d1663e7fdb0a1001b15409cf4c8b9edf612f75eb546207bc86d0535f8fb3744e42244f3e067dff80037c5a3eadc028ec8024f3 SHA512 1693924b8ee79b3b0929b57e86908282d53d28044b063d7bd169a6e9c1b45b5b6b4a79e54d024beedbfd6e42f88417eb2d0312bf90895702a3b8bfe2c2eb22b2 DIST python-iptables-1.0.0.tar.gz 52245 BLAKE2B f61cf655440a40c96e49452caa1070046e539313ce709c629cb93c11ac66d51dad5fb11c183a8babbba5766b8bea27d0ab604d7aec104775371791cedc2262f6 SHA512 417ebec4391c6967f3b1cfa56d79dc1c6d053570d71bb29713ed327ee1fd52e0be9c3b9a62a1ae44bbb472e5174402584cd5ddfb0b24c11e1d30773bcea5 diff --git a/dev-python/python-iptables/python-iptables-0.13.0.ebuild b/dev-python/python-iptables/python-iptables-0.13.0.ebuild deleted file mode 100644 index cbc03c5b190..000 --- a/dev-python/python-iptables/python-iptables-0.13.0.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# 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 -}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 3d4c3851e028d344cd33c868c65e59382ec8002b Author: Patrick McLean sony com> AuthorDate: Tue Sep 15 00:53:53 2020 + Commit: Patrick McLean gentoo org> CommitDate: Tue Sep 15 00:54:20 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d4c3851 dev-python/python-iptables-1.0.0: Version bump Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Patrick McLean gentoo.org> dev-python/python-iptables/Manifest| 1 + .../python-iptables/python-iptables-1.0.0.ebuild | 28 ++ 2 files changed, 29 insertions(+) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index c8bfab36f5b..c94ad37ec5f 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1 +1,2 @@ DIST python-iptables-0.13.0.tar.gz 83456 BLAKE2B 9c8da40437d408c6bb49e700b8d1663e7fdb0a1001b15409cf4c8b9edf612f75eb546207bc86d0535f8fb3744e42244f3e067dff80037c5a3eadc028ec8024f3 SHA512 1693924b8ee79b3b0929b57e86908282d53d28044b063d7bd169a6e9c1b45b5b6b4a79e54d024beedbfd6e42f88417eb2d0312bf90895702a3b8bfe2c2eb22b2 +DIST python-iptables-1.0.0.tar.gz 52245 BLAKE2B f61cf655440a40c96e49452caa1070046e539313ce709c629cb93c11ac66d51dad5fb11c183a8babbba5766b8bea27d0ab604d7aec104775371791cedc2262f6 SHA512 417ebec4391c6967f3b1cfa56d79dc1c6d053570d71bb29713ed327ee1fd52e0be9c3b9a62a1ae44bbb472e5174402584cd5ddfb0b24c11e1d30773bcea5 diff --git a/dev-python/python-iptables/python-iptables-1.0.0.ebuild b/dev-python/python-iptables/python-iptables-1.0.0.ebuild new file mode 100644 index 000..53037c8775b --- /dev/null +++ b/dev-python/python-iptables/python-iptables-1.0.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6..9} ) +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" + +RDEPEND="net-firewall/iptables" + +# tests manipulate live iptables rules, so disable them by default +RESTRICT="test" + +distutils_enable_sphinx doc +distutils_enable_tests setup.py + +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 +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: ccfaa26350f145ab4b760bb1a47e8ee43cb2bbc7 Author: Michał Górny gentoo org> AuthorDate: Sat Mar 28 21:01:56 2020 + Commit: Michał Górny gentoo org> CommitDate: Sat Mar 28 21:11:11 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccfaa263 dev-python/python-iptables: Remove redundant versions Signed-off-by: Michał Górny gentoo.org> dev-python/python-iptables/Manifest| 1 - .../python-iptables/python-iptables-0.12.0.ebuild | 37 -- 2 files changed, 38 deletions(-) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index df948f9ac8e..c8bfab36f5b 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,2 +1 @@ -DIST python-iptables-0.12.0.tar.gz 40831 BLAKE2B ea53605a5dd581cad7e05059c1534376a53b3b3da89b8c172cbb38ae7482ca3972fdf786badf3328960847c12c96ce32278657c32c857a1682650621a3add47a SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 DIST python-iptables-0.13.0.tar.gz 83456 BLAKE2B 9c8da40437d408c6bb49e700b8d1663e7fdb0a1001b15409cf4c8b9edf612f75eb546207bc86d0535f8fb3744e42244f3e067dff80037c5a3eadc028ec8024f3 SHA512 1693924b8ee79b3b0929b57e86908282d53d28044b063d7bd169a6e9c1b45b5b6b4a79e54d024beedbfd6e42f88417eb2d0312bf90895702a3b8bfe2c2eb22b2 diff --git a/dev-python/python-iptables/python-iptables-0.12.0.ebuild b/dev-python/python-iptables/python-iptables-0.12.0.ebuild deleted file mode 100644 index a8fed303429..000 --- a/dev-python/python-iptables/python-iptables-0.12.0.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python3_6 ) -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 -}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 400a12cee48d2546488df0dba14204502820b82d Author: Patrick McLean sony com> AuthorDate: Wed Dec 5 22:46:48 2018 + Commit: Patrick McLean gentoo org> CommitDate: Wed Dec 5 22:47:19 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400a12ce dev-python/python-iptables: Version bump to 0.13.0 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Patrick McLean gentoo.org> dev-python/python-iptables/Manifest| 1 + .../python-iptables/python-iptables-0.13.0.ebuild | 37 ++ 2 files changed, 38 insertions(+) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 987cad3422f..df948f9ac8e 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1 +1,2 @@ DIST python-iptables-0.12.0.tar.gz 40831 BLAKE2B ea53605a5dd581cad7e05059c1534376a53b3b3da89b8c172cbb38ae7482ca3972fdf786badf3328960847c12c96ce32278657c32c857a1682650621a3add47a SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 +DIST python-iptables-0.13.0.tar.gz 83456 BLAKE2B 9c8da40437d408c6bb49e700b8d1663e7fdb0a1001b15409cf4c8b9edf612f75eb546207bc86d0535f8fb3744e42244f3e067dff80037c5a3eadc028ec8024f3 SHA512 1693924b8ee79b3b0929b57e86908282d53d28044b063d7bd169a6e9c1b45b5b6b4a79e54d024beedbfd6e42f88417eb2d0312bf90895702a3b8bfe2c2eb22b2 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 000..bfdad554d96 --- /dev/null +++ b/dev-python/python-iptables/python-iptables-0.13.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,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 +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 6a2f2f00b671894418563a8c9bff4e37b79ae41a Author: Mike Gilbert gentoo org> AuthorDate: Sun Dec 3 07:34:11 2017 + Commit: Mike Gilbert gentoo org> CommitDate: Sun Dec 3 07:34:11 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a2f2f00 dev-python/python-iptables: remove old Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7 dev-python/python-iptables/Manifest| 1 - .../python-iptables/python-iptables-0.11.0.ebuild | 36 -- 2 files changed, 37 deletions(-) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 2cccb9ec400..987cad3422f 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,2 +1 @@ -DIST python-iptables-0.11.0.tar.gz 73582 BLAKE2B 44fb0268d8b94bc2a56c897bfd87c4eb8926f577754878782faa9b37f4174cb0147fbb54c953ee207f9e9921bdbea026f8bf15467565e7a4ca0a54477ad24b58 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 DIST python-iptables-0.12.0.tar.gz 40831 BLAKE2B ea53605a5dd581cad7e05059c1534376a53b3b3da89b8c172cbb38ae7482ca3972fdf786badf3328960847c12c96ce32278657c32c857a1682650621a3add47a SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 diff --git a/dev-python/python-iptables/python-iptables-0.11.0.ebuild b/dev-python/python-iptables/python-iptables-0.11.0.ebuild deleted file mode 100644 index e294f95ec8f..000 --- a/dev-python/python-iptables/python-iptables-0.11.0.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) -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" - -DEPEND="net-firewall/iptables - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND="${DEPEND}" - -# 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 -}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: decd229ae8b6b6501f05d6e527a81ec0e225a4a6 Author: Mike Gilbert gentoo org> AuthorDate: Sun Dec 3 07:33:50 2017 + Commit: Mike Gilbert gentoo org> CommitDate: Sun Dec 3 07:33:50 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=decd229a dev-python/python-iptables: depend on setuptools Closes: https://bugs.gentoo.org/639556 Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7 dev-python/python-iptables/Manifest | 4 ++-- dev-python/python-iptables/python-iptables-0.12.0.ebuild | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 55380564eaf..2cccb9ec400 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,2 +1,2 @@ -DIST python-iptables-0.11.0.tar.gz 73582 SHA256 55bdd0d8e3d0b4c27e4d61bf6f21ada1e19146c0adf65e5093e254a126abcce9 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 WHIRLPOOL 5ecc28a1f65389e63c962408f058ac0795a5ebd846320f4d9de4ad35e6bb7a8ee7dff4555af0c4c9c42d303b7b0f6de372c042d4219141446680ba45b8216ac4 -DIST python-iptables-0.12.0.tar.gz 40831 SHA256 9815fd5ba780fd14b5f8cf8a93e007c0e603019738813a806e37553cd72e4c33 SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 WHIRLPOOL 360c3dec7c1122ba53cf7f158ff463937a119fbc818ac879403ac943c0f0d04043c89559468274332e3050e4fd84a8d95f8a30b7a783aaa0c023420278c3422c +DIST python-iptables-0.11.0.tar.gz 73582 BLAKE2B 44fb0268d8b94bc2a56c897bfd87c4eb8926f577754878782faa9b37f4174cb0147fbb54c953ee207f9e9921bdbea026f8bf15467565e7a4ca0a54477ad24b58 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 +DIST python-iptables-0.12.0.tar.gz 40831 BLAKE2B ea53605a5dd581cad7e05059c1534376a53b3b3da89b8c172cbb38ae7482ca3972fdf786badf3328960847c12c96ce32278657c32c857a1682650621a3add47a SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 diff --git a/dev-python/python-iptables/python-iptables-0.12.0.ebuild b/dev-python/python-iptables/python-iptables-0.12.0.ebuild index e294f95ec8f..360518b2f5c 100644 --- a/dev-python/python-iptables/python-iptables-0.12.0.ebuild +++ b/dev-python/python-iptables/python-iptables-0.12.0.ebuild @@ -14,9 +14,10 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" -DEPEND="net-firewall/iptables +RDEPEND="net-firewall/iptables" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND="${DEPEND}" # tests manipulate live iptables rules, so disable them by default
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 269373bba471e5d178660dd198463f88a965b4c2 Author: Patrick McLean gentoo org> AuthorDate: Thu Sep 28 00:04:18 2017 + Commit: Patrick McLean gentoo org> CommitDate: Thu Sep 28 00:04:50 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=269373bb dev-python/python-iptables: Version bump to 0.12.0 Package-Manager: Portage-2.3.10, Repoman-2.3.3 dev-python/python-iptables/Manifest| 1 + .../python-iptables/python-iptables-0.12.0.ebuild | 36 ++ 2 files changed, 37 insertions(+) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 421530d645e..55380564eaf 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1 +1,2 @@ DIST python-iptables-0.11.0.tar.gz 73582 SHA256 55bdd0d8e3d0b4c27e4d61bf6f21ada1e19146c0adf65e5093e254a126abcce9 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 WHIRLPOOL 5ecc28a1f65389e63c962408f058ac0795a5ebd846320f4d9de4ad35e6bb7a8ee7dff4555af0c4c9c42d303b7b0f6de372c042d4219141446680ba45b8216ac4 +DIST python-iptables-0.12.0.tar.gz 40831 SHA256 9815fd5ba780fd14b5f8cf8a93e007c0e603019738813a806e37553cd72e4c33 SHA512 bf79288fac53542e523c8ed0e4e0711792cf524100e39f57f10d3581d1b958712875a765f690b3d5ec6e28af9de48d2f3dd0a787c7037ebfc6f8bf87b5e321b2 WHIRLPOOL 360c3dec7c1122ba53cf7f158ff463937a119fbc818ac879403ac943c0f0d04043c89559468274332e3050e4fd84a8d95f8a30b7a783aaa0c023420278c3422c diff --git a/dev-python/python-iptables/python-iptables-0.12.0.ebuild b/dev-python/python-iptables/python-iptables-0.12.0.ebuild new file mode 100644 index 000..e294f95ec8f --- /dev/null +++ b/dev-python/python-iptables/python-iptables-0.12.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) +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" + +DEPEND="net-firewall/iptables + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +# 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 +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: c984ab33c2da4846280f80357b596300ffc71a4b Author: Michał Górny gentoo org> AuthorDate: Tue May 2 14:43:40 2017 + Commit: Michał Górny gentoo org> CommitDate: Tue May 2 15:14:49 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c984ab33 dev-python/python-iptables: Clean old versions up dev-python/python-iptables/Manifest| 3 -- .../python-iptables/python-iptables-0.10.0.ebuild | 36 --- .../python-iptables/python-iptables-0.8.0.ebuild | 41 -- .../python-iptables/python-iptables-0.9.0.ebuild | 36 --- 4 files changed, 116 deletions(-) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 1dfde284df6..421530d645e 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,4 +1 @@ -DIST python-iptables-0.10.0.tar.gz 72897 SHA256 9118ce089b2732bae8647575c1c15d6e9af4f367c0f47ea27b404e2e02dcb5ca SHA512 3e6a77149b60bf0d408739827c9c73c759542b28d746c2d6636e7c60aa0d9f5ec6deba62a40b938629747788849eaf539c9950c84a022278e64fba24acc1171f WHIRLPOOL c481603b415ba5567567b886288c415d66d4a85c0622e4df08ab1534f273ae7ea2b1f564ec3320ca748baa54b0ed7a3e1e2f4d357fc4e046990d7cfd722582ec DIST python-iptables-0.11.0.tar.gz 73582 SHA256 55bdd0d8e3d0b4c27e4d61bf6f21ada1e19146c0adf65e5093e254a126abcce9 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 WHIRLPOOL 5ecc28a1f65389e63c962408f058ac0795a5ebd846320f4d9de4ad35e6bb7a8ee7dff4555af0c4c9c42d303b7b0f6de372c042d4219141446680ba45b8216ac4 -DIST python-iptables-0.8.0.tar.gz 38815 SHA256 7a80507fafdfe0448f604678e127b7dc6236dc7fe61771b3b56fd8199464ac46 SHA512 8cc3a88f1f101614597ad6e7712dd229e08b9d5fb1fc0383142746faad7f9e265ccdb6d036948bbdbf39c9021250ab98e7de36c7dc78e231f581d783431f5510 WHIRLPOOL 36ab036e4a30be4006c00bc605855c29382545ab19098af49abeb2eca0f91de5cd5608596e4d89b6efd013df58b740d886e2e362e6d0cc4aa7905afe7a7d0e50 -DIST python-iptables-0.9.0.tar.gz 72999 SHA256 80eee356beb3cfbe378a214719c5756bb665f9edfa04cd75e3a32e6e18a1f484 SHA512 5cffc83f496876346faa5b33a45be565fab2da41d25f9793db0788a80cb6835b33f474008febee8002d7af6fb052262881326adf6d69592aa96d750b2f921bd4 WHIRLPOOL 18872e6b7a3016cb2449bb1195fce874dee1d62df2aaa2bbea605f3055bf18e6c298d1dd14da9b1cb34196477470be1cdf60255df5521b734b052a3a88247ea0 diff --git a/dev-python/python-iptables/python-iptables-0.10.0.ebuild b/dev-python/python-iptables/python-iptables-0.10.0.ebuild deleted file mode 100644 index b484361eb4e..000 --- a/dev-python/python-iptables/python-iptables-0.10.0.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python{2_7,3_4} ) -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" - -DEPEND="net-firewall/iptables - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND="${DEPEND}" - -# 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 -} diff --git a/dev-python/python-iptables/python-iptables-0.8.0.ebuild b/dev-python/python-iptables/python-iptables-0.8.0.ebuild deleted file mode 100644 index 87896223d29..000 --- a/dev-python/python-iptables/python-iptables-0.8.0.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python{2_7,3_4} ) -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" - -DEPEND="net-firewall/iptables - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND="${DEPEND}" - -# tests manipulate live iptables rules, so disable them by default -RESTRICT=test - -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_test() { - ${PYTHON} test.py || die "tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && local HTML_DOCS=(
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 39b2ac72dc9df88a4277d5c39880c62720ea197f Author: Patrick McLean gentoo org> AuthorDate: Tue May 2 00:37:04 2017 + Commit: Patrick McLean gentoo org> CommitDate: Tue May 2 00:37:30 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b2ac72 dev-python/python-iptables: Add python3_6 to PYTHON_COMPAT, move to EAPI=6 Package-Manager: Portage-2.3.5, Repoman-2.3.2 dev-python/python-iptables/python-iptables-0.11.0.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-python/python-iptables/python-iptables-0.11.0.ebuild b/dev-python/python-iptables/python-iptables-0.11.0.ebuild index 087611828e8..e294f95ec8f 100644 --- a/dev-python/python-iptables/python-iptables-0.11.0.ebuild +++ b/dev-python/python-iptables/python-iptables-0.11.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) inherit distutils-r1 DESCRIPTION="Python bindings for iptables"
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 1501d86c631c5c5aa1274e19ea7ac535cd8d3d18 Author: Patrick Lauer gentoo org> AuthorDate: Fri Oct 28 21:02:58 2016 + Commit: Patrick Lauer gentoo org> CommitDate: Fri Oct 28 21:26:58 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1501d86c dev-python/python-iptables: Bump Package-Manager: portage-2.3.2 dev-python/python-iptables/Manifest| 1 + .../python-iptables/python-iptables-0.11.0.ebuild | 37 ++ 2 files changed, 38 insertions(+) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index 76a78ce..1dfde28 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,3 +1,4 @@ DIST python-iptables-0.10.0.tar.gz 72897 SHA256 9118ce089b2732bae8647575c1c15d6e9af4f367c0f47ea27b404e2e02dcb5ca SHA512 3e6a77149b60bf0d408739827c9c73c759542b28d746c2d6636e7c60aa0d9f5ec6deba62a40b938629747788849eaf539c9950c84a022278e64fba24acc1171f WHIRLPOOL c481603b415ba5567567b886288c415d66d4a85c0622e4df08ab1534f273ae7ea2b1f564ec3320ca748baa54b0ed7a3e1e2f4d357fc4e046990d7cfd722582ec +DIST python-iptables-0.11.0.tar.gz 73582 SHA256 55bdd0d8e3d0b4c27e4d61bf6f21ada1e19146c0adf65e5093e254a126abcce9 SHA512 5bbaeb09dc256738e3a168fa5941f39e50074eb1ac3ce18545a48c55eb06ef70fd974ad3153dc07ca67b1ef88a2a2c537a9f8d3ac85add990f6d15e9d37aa0a4 WHIRLPOOL 5ecc28a1f65389e63c962408f058ac0795a5ebd846320f4d9de4ad35e6bb7a8ee7dff4555af0c4c9c42d303b7b0f6de372c042d4219141446680ba45b8216ac4 DIST python-iptables-0.8.0.tar.gz 38815 SHA256 7a80507fafdfe0448f604678e127b7dc6236dc7fe61771b3b56fd8199464ac46 SHA512 8cc3a88f1f101614597ad6e7712dd229e08b9d5fb1fc0383142746faad7f9e265ccdb6d036948bbdbf39c9021250ab98e7de36c7dc78e231f581d783431f5510 WHIRLPOOL 36ab036e4a30be4006c00bc605855c29382545ab19098af49abeb2eca0f91de5cd5608596e4d89b6efd013df58b740d886e2e362e6d0cc4aa7905afe7a7d0e50 DIST python-iptables-0.9.0.tar.gz 72999 SHA256 80eee356beb3cfbe378a214719c5756bb665f9edfa04cd75e3a32e6e18a1f484 SHA512 5cffc83f496876346faa5b33a45be565fab2da41d25f9793db0788a80cb6835b33f474008febee8002d7af6fb052262881326adf6d69592aa96d750b2f921bd4 WHIRLPOOL 18872e6b7a3016cb2449bb1195fce874dee1d62df2aaa2bbea605f3055bf18e6c298d1dd14da9b1cb34196477470be1cdf60255df5521b734b052a3a88247ea0 diff --git a/dev-python/python-iptables/python-iptables-0.11.0.ebuild b/dev-python/python-iptables/python-iptables-0.11.0.ebuild new file mode 100644 index ..0fd3d31 --- /dev/null +++ b/dev-python/python-iptables/python-iptables-0.11.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +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" + +DEPEND="net-firewall/iptables + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +# 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 +}
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/files/
commit: 994e779e56631ae76e1efd62f0a92b52b34dd816 Author: Michael Mair-Keimberger (asterix) gmail com> AuthorDate: Mon Sep 19 17:39:31 2016 + Commit: David Seifert gentoo org> CommitDate: Sat Oct 8 17:59:36 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=994e779e dev-python/python-iptables: remove unused patches Closes: https://github.com/gentoo/gentoo/pull/2363 Signed-off-by: David Seifert gentoo.org> .../files/python-iptables-0.2.0-tests.patch| 21 --- .../python-iptables-0.3.0-conntrack-fixes.patch| 182 - .../files/python-iptables-fix-ctypes.patch | 70 3 files changed, 273 deletions(-) diff --git a/dev-python/python-iptables/files/python-iptables-0.2.0-tests.patch b/dev-python/python-iptables/files/python-iptables-0.2.0-tests.patch deleted file mode 100644 index fb9d601.. --- a/dev-python/python-iptables/files/python-iptables-0.2.0-tests.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/test.py b/test.py -index f426612..f598585 100755 a/test.py -+++ b/test.py -@@ -3,16 +3,6 @@ - - import sys - --print "WARNING: this test will manipulate iptables rules." --print "Don't do this on a production machine." --while True: --print "Would you like to continue? y/n", --answer = raw_input() --if answer in "yYnN" and len(answer) == 1: --break --if answer in "nN": --sys.exit(0) -- - from iptc.test import test_iptc, test_matches, test_targets - - results = [rv for rv in [test_iptc.run_tests(), test_matches.run_tests(), diff --git a/dev-python/python-iptables/files/python-iptables-0.3.0-conntrack-fixes.patch b/dev-python/python-iptables/files/python-iptables-0.3.0-conntrack-fixes.patch deleted file mode 100644 index 469fe5d.. --- a/dev-python/python-iptables/files/python-iptables-0.3.0-conntrack-fixes.patch +++ /dev/null @@ -1,182 +0,0 @@ -diff --git a/iptc/ip4tc.py b/iptc/ip4tc.py -index 1efeabe..a953f41 100644 a/iptc/ip4tc.py -+++ b/iptc/ip4tc.py -@@ -460,8 +460,6 @@ class Match(IPTCModule): - if self._module.next is not None: - self._store_buffer(module) - --self._check_alias(module[0], match) -- - self._match_buf = (ct.c_ubyte * self.size)() - if match: - ct.memmove(ct.byref(self._match_buf), ct.byref(match), self.size) -@@ -503,7 +501,11 @@ class Match(IPTCModule): - self._buffer.buffer = ct.cast(module, ct.POINTER(ct.c_ubyte)) - - def _final_check(self): --self._xt.final_check_match(self._module) -+if self._alias is not None: -+module = self._alias -+else: -+module = self._module -+self._xt.final_check_match(module) - - def _parse(self, argv, inv, entry): - if self._alias is not None: -@@ -530,6 +532,7 @@ class Match(IPTCModule): - self._ptrptr = ct.cast(ct.pointer(self._ptr), -ct.POINTER(ct.POINTER(xt_entry_match))) - self._module.m = self._ptr -+self._check_alias(self._module, self._module.m) - if self._alias is not None: - self._alias.m = self._ptr - self._update_name() -@@ -613,8 +616,6 @@ class Target(IPTCModule): - else: - self._revision = self._module.revision - --self._check_alias(module[0], target) -- - self._create_buffer(target) - - if self._is_standard_target(): -@@ -673,7 +674,11 @@ class Target(IPTCModule): - return False - - def _final_check(self): --self._xt.final_check_target(self._module) -+if self._alias is not None: -+module = self._alias -+else: -+module = self._module -+self._xt.final_check_target(module) - - def _parse(self, argv, inv, entry): - if self._alias is not None: -@@ -715,6 +720,7 @@ class Target(IPTCModule): - self._ptrptr = ct.cast(ct.pointer(self._ptr), -ct.POINTER(ct.POINTER(xt_entry_target))) - self._module.t = self._ptr -+self._check_alias(self._module, self._module.t) - if self._alias is not None: - self._alias.t = self._ptr - self._update_name() -diff --git a/iptc/test/test_matches.py b/iptc/test/test_matches.py -index 69b0b01..67c37ff 100755 a/iptc/test/test_matches.py -+++ b/iptc/test/test_matches.py -@@ -298,6 +298,40 @@ class TestXTStateMatch(unittest.TestCase): - self.assertEquals(m.state, "RELATED,ESTABLISHED") - - -+class TestXTConntrackMatch(unittest.TestCase): -+def setUp(self): -+self.rule = iptc.Rule() -+self.rule.src = "127.0.0.1" -+self.rule.protocol = "tcp" -+self.rule.target = iptc.Target(self.rule, "ACCEPT") -+ -+self.match = iptc.Match(self.rule, "conntrack") -+ -+self.chain = iptc.Chain(iptc.Table(iptc.Table.FILTER), -+"iptc_test_conntrack") -+self.table =
[gentoo-commits] repo/gentoo:master commit in: dev-python/python-iptables/
commit: 67939163ee760b619195d04699a5ec9d6c5d0c86 Author: Patrick McLean gentoo org> AuthorDate: Wed Nov 11 03:10:45 2015 + Commit: Patrick McLean gentoo org> CommitDate: Wed Nov 11 03:10:45 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67939163 dev-python/python-iptables: Version bump Package-Manager: portage-2.2.24 dev-python/python-iptables/Manifest| 1 + .../python-iptables/python-iptables-0.10.0.ebuild | 37 ++ 2 files changed, 38 insertions(+) diff --git a/dev-python/python-iptables/Manifest b/dev-python/python-iptables/Manifest index b1bf9aa..76a78ce 100644 --- a/dev-python/python-iptables/Manifest +++ b/dev-python/python-iptables/Manifest @@ -1,2 +1,3 @@ +DIST python-iptables-0.10.0.tar.gz 72897 SHA256 9118ce089b2732bae8647575c1c15d6e9af4f367c0f47ea27b404e2e02dcb5ca SHA512 3e6a77149b60bf0d408739827c9c73c759542b28d746c2d6636e7c60aa0d9f5ec6deba62a40b938629747788849eaf539c9950c84a022278e64fba24acc1171f WHIRLPOOL c481603b415ba5567567b886288c415d66d4a85c0622e4df08ab1534f273ae7ea2b1f564ec3320ca748baa54b0ed7a3e1e2f4d357fc4e046990d7cfd722582ec DIST python-iptables-0.8.0.tar.gz 38815 SHA256 7a80507fafdfe0448f604678e127b7dc6236dc7fe61771b3b56fd8199464ac46 SHA512 8cc3a88f1f101614597ad6e7712dd229e08b9d5fb1fc0383142746faad7f9e265ccdb6d036948bbdbf39c9021250ab98e7de36c7dc78e231f581d783431f5510 WHIRLPOOL 36ab036e4a30be4006c00bc605855c29382545ab19098af49abeb2eca0f91de5cd5608596e4d89b6efd013df58b740d886e2e362e6d0cc4aa7905afe7a7d0e50 DIST python-iptables-0.9.0.tar.gz 72999 SHA256 80eee356beb3cfbe378a214719c5756bb665f9edfa04cd75e3a32e6e18a1f484 SHA512 5cffc83f496876346faa5b33a45be565fab2da41d25f9793db0788a80cb6835b33f474008febee8002d7af6fb052262881326adf6d69592aa96d750b2f921bd4 WHIRLPOOL 18872e6b7a3016cb2449bb1195fce874dee1d62df2aaa2bbea605f3055bf18e6c298d1dd14da9b1cb34196477470be1cdf60255df5521b734b052a3a88247ea0 diff --git a/dev-python/python-iptables/python-iptables-0.10.0.ebuild b/dev-python/python-iptables/python-iptables-0.10.0.ebuild new file mode 100644 index 000..3c30722 --- /dev/null +++ b/dev-python/python-iptables/python-iptables-0.10.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +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" + +DEPEND="net-firewall/iptables + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +# 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 +}