summaryrefslogtreecommitdiff
path: root/dev-python/python-ethtool
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-02-10 15:40:27 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-02-10 15:40:27 +0000
commit6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (patch)
treecee0a97398040001220ece3cd48c3d568bcddb4a /dev-python/python-ethtool
parent1db00cc6e94b90c08090bb5b8c406622946c4ae5 (diff)
gentoo resync : 10.02.2019
Diffstat (limited to 'dev-python/python-ethtool')
-rw-r--r--dev-python/python-ethtool/Manifest7
-rw-r--r--dev-python/python-ethtool/files/test-skip-wg-dev.patch29
-rw-r--r--dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild27
-rw-r--r--dev-python/python-ethtool/python-ethtool-0.11.ebuild4
-rw-r--r--dev-python/python-ethtool/python-ethtool-0.14.ebuild29
5 files changed, 93 insertions, 3 deletions
diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest
index fa882c7be5c5..3468245fd4dd 100644
--- a/dev-python/python-ethtool/Manifest
+++ b/dev-python/python-ethtool/Manifest
@@ -1,4 +1,9 @@
AUX python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch 622 BLAKE2B 94c1de49912575ba542824a800ab9c4095c0eba768678f203f1cef2548f665675ff0e34b9802bf7aa983ed01fa6f46bacf1e1b565a2d5605a47ce11f46d66d48 SHA512 796beab89f476138fbe799fb296631d912155227b4d40118eef20ea69ca244d272756a63c1afbb42f2941243425994428d82699e1026c4c52a9bb4616fde5839
+AUX test-skip-wg-dev.patch 1023 BLAKE2B 564aa0fc9250041b181aea79d14af9f10c2d298f34f15ddb33b25e00e138c3e8a21729cbd0fc4b3c724c89349bb700563c568f27fd0e3d47da2736c2e91d2664 SHA512 fea83748b18b646d4acfe6fdbf204c0aa5f7abedb122241e54dd29f01e0e7862c5166f1199e20606c991305bfd9aad9ee1022c05e9cab800f2c9e980e034d4c6
DIST python-ethtool-0.11.tar.bz2 34487 BLAKE2B bdb5eced32c508a593bbbc80fc287ece547c34504bbdf36877f4b62dea1239a33c5ea23dcecdd8b0f8104eea3ec7d5418a3ee5a1697930ea24a51da42f3ddc24 SHA512 b260e608e1024c48eedb72327b704b01fb42396219ca3d942fe42f22d3e8018fc74bfeffd96e37abd4efd2ce49a73915e0e2af5841a537a02e247d4ba5548f20
-EBUILD python-ethtool-0.11.ebuild 603 BLAKE2B 5796c4f5b6828ef27998e161104604b1abebebe5bdafd180e2e617ef68071989f2936efa769cfec8223a8635214bc121723c6a847e3530c51313e93df4bf9396 SHA512 9b43ada6a87e75d45da8982ca586b7a1876cda635aa805e616a207f451d5c56062711ba79a3f8b2df4da10747c4d30d397920655128c390784847888ab6716cf
+DIST python-ethtool-0.11.tar.gz 37326 BLAKE2B b2345f5aece60c3b418d9fcd61220ab77fb49b9995a23b0ed6d97135dee61e4ffa177059869a8702430703b9f6518ffdcb8d690c868d0f8338ab16fdc36c58ea SHA512 227a9248dfdd36a9018a441d3ef4680691c23dac52972fe1ecc67ff30991f3de4cd71af0e48669ca382d6f177d1b3ebc97596e5a5ae4b4c80371456effe637b5
+DIST python-ethtool-0.14.tar.gz 41945 BLAKE2B d83e40e79481ee5f91f7e097dc4f6f0eb541f88ba83e13c13b3129ece2196ee999f9110310339ebbc2343b814a3b2c80405a3b4ce6931110509a54281b370cd8 SHA512 57a3f2d60dd8309192fc858614645d4e7533c90c03113ffc1eeeb810b86eb71b0a80b4eb209d3452c7624c5318a853de50d9d716d41334bf079e6e3e2490fd4b
+EBUILD python-ethtool-0.11-r1.ebuild 659 BLAKE2B 06540784fb06c039affead64ed7e298a6a064ded756fb9d5bdb8fa7275a3aba1e0f4cadd3537991c8f0bd599dc78dda2a5f0324cbe23848426537b82729a0c69 SHA512 f1e89637bf687d42025910326a5111bcc057606d693d2cfe87a6704d1366e38cdcf71895b8fb284c36fb3f4defbe74af5f1ef0c13e5111f5d8efb636ffc0f207
+EBUILD python-ethtool-0.11.ebuild 593 BLAKE2B 638119c63aeb9778562572e9da397a054a7f73d4155ed187a093135d813d6bc1f4f521801663ef524da412708603f3b0035d390e09b15543afe0c52d8bb36151 SHA512 23549771aaf54681276ef107417de835b13d5326818a3f45c94a1cde391930ebbce15fd033571ad63ae5cc6aa0344ffacf7aa5268ae5e2a90f47782e8f36e271
+EBUILD python-ethtool-0.14.ebuild 726 BLAKE2B 6e16d3c432f65763263eff1f95d9dce9c3bd1dfe8a75ff7b28bd5f33e5e74dc9356035b4427c175ee272ec6283308745da70af198c57508a7a510cb27092ec50 SHA512 fa6d487c3e392e3125aa814fc4eaedaeea50cb67fea967b7a2cfb9219a43498f18d7e45255d13122cec8754764a13031a9f03d971f56dddbfe743e611cbc08f8
MISC metadata.xml 464 BLAKE2B e4a3eeee039ad5e3d1236e0067f72df7e73638bb550185f21de32977396c5457a3bb8d9358b65f3dad4696ffc1d818dcbd4ee6ca7f1a9692b3da0b7e56708b36 SHA512 26faaf69c1bcd592bfd2687b3e805ac9d5ecd155ad86a4d1d92875e96d24a2e21603d1a5a581fdb05bfb9883ddc9ce8bf86a5ca464d7521db65d271b5bc5485d
diff --git a/dev-python/python-ethtool/files/test-skip-wg-dev.patch b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
new file mode 100644
index 000000000000..435a81ae494d
--- /dev/null
+++ b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
@@ -0,0 +1,29 @@
+From aa18c4a046ed2b508a87161f886e07c6d3716dd3 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Sat, 2 Feb 2019 14:00:52 -0800
+Subject: [PATCH] tests/test_ethtool.py: skip test_get_active_devices for wg
+
+wg is a wireguard interface and this test fails with
+OSError: [Errno 95] Operation not supported
+---
+ tests/test_ethtool.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_ethtool.py b/tests/test_ethtool.py
+index 6162cd3..0ff78b1 100755
+--- a/tests/test_ethtool.py
++++ b/tests/test_ethtool.py
+@@ -254,8 +254,8 @@ class EthtoolTests(unittest.TestCase):
+
+ def test_get_active_devices(self):
+ for devname in ethtool.get_active_devices():
+- # Skip these test on tun devices
+- if devname.startswith('tun'):
++ # Skip these test on tun and wg devices
++ if devname.startswith('tun') or devname.startswith('wg'):
+ continue
+ self._functions_accepting_devnames(devname)
+
+--
+2.20.1
+
diff --git a/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild b/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild
new file mode 100644
index 000000000000..487265206570
--- /dev/null
+++ b/dev-python/python-ethtool/python-ethtool-0.11-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+# TODO: install scripts and their man pages
+
+inherit distutils-r1
+
+DESCRIPTION="Ethernet settings python bindings"
+HOMEPAGE="https://pypi.org/project/ethtool/
+ https://github.com/fedora-python/python-ethtool"
+SRC_URI="https://github.com/fedora-python/python-ethtool/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/libnl:3"
+RDEPEND="${DEPEND}"
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}_include-net-if.h-for-IFF_-macros.patch"
+)
diff --git a/dev-python/python-ethtool/python-ethtool-0.11.ebuild b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
index 8cb759512663..54f2ce406b6c 100644
--- a/dev-python/python-ethtool/python-ethtool-0.11.ebuild
+++ b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -15,7 +15,7 @@ SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~amd64"
+KEYWORDS="~amd64"
IUSE=""
DEPEND="dev-libs/libnl:3"
diff --git a/dev-python/python-ethtool/python-ethtool-0.14.ebuild b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
new file mode 100644
index 000000000000..508b2ec1fed8
--- /dev/null
+++ b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+# TODO: install scripts and their man pages
+
+inherit distutils-r1
+
+DESCRIPTION="Ethernet settings python bindings"
+HOMEPAGE="https://pypi.org/project/ethtool/
+ https://github.com/fedora-python/python-ethtool"
+SRC_URI="https://github.com/fedora-python/python-ethtool/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/libnl:3"
+RDEPEND="${DEPEND}"
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/test-skip-wg-dev.patch )
+
+python_test() {
+ esetup.py test || die "Tests failed with ${EPYTHON}"
+}