summaryrefslogtreecommitdiff
path: root/dev-python/python-ethtool
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-ethtool')
-rw-r--r--dev-python/python-ethtool/Manifest5
-rw-r--r--dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch24
-rw-r--r--dev-python/python-ethtool/metadata.xml13
-rw-r--r--dev-python/python-ethtool/python-ethtool-0.11.ebuild27
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest
new file mode 100644
index 000000000000..66443109caca
--- /dev/null
+++ b/dev-python/python-ethtool/Manifest
@@ -0,0 +1,5 @@
+AUX python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch 622 SHA256 24dad02f99f20bce5c356772315631806c747858e4fb6640ce45e778792b34f8 SHA512 796beab89f476138fbe799fb296631d912155227b4d40118eef20ea69ca244d272756a63c1afbb42f2941243425994428d82699e1026c4c52a9bb4616fde5839 WHIRLPOOL f3fdfb8ff54f5ae2b52c5cf3b82dbb7922805f06a91e5a94785076b1b111335033576b44ad9810a1ee158ab560f564b8bdaa17e5d979b5226954924ab6b17024
+DIST python-ethtool-0.11.tar.bz2 34487 SHA256 686756e4b2b239319e8513025debcc0d97103815b0879f94d8234cbbca6ada24 SHA512 b260e608e1024c48eedb72327b704b01fb42396219ca3d942fe42f22d3e8018fc74bfeffd96e37abd4efd2ce49a73915e0e2af5841a537a02e247d4ba5548f20 WHIRLPOOL 1bb2dc8718fd418f81aa20960712f5c2bd131a1128c291df5e955fef83ea71035f429b0fb9e9d213488b0129631978e7fd48f41b199195c59efa30b91484005a
+EBUILD python-ethtool-0.11.ebuild 603 SHA256 0832aa730818239627466773fc01154703059032ffde7228f2df77d84e6c7e9b SHA512 9b43ada6a87e75d45da8982ca586b7a1876cda635aa805e616a207f451d5c56062711ba79a3f8b2df4da10747c4d30d397920655128c390784847888ab6716cf WHIRLPOOL 6faa42ecae997ecbff5b9f521742d6b4b27fdd3769f6e55d21676c0b9ed385e9a79b29b27e5903e6cedf1ca4ea039405712f9abd297b7a2d930195bdbdc04911
+MISC ChangeLog 406 SHA256 5166700127132c697207c0d5a5d530b571c99debdb943dab6c2ddf44b327518c SHA512 f3bd4a7a7a65552d756e529610fce6cf5583c272b1c69ec18f53230379bb4f4fba13c5ff8b1cce09807e44f282b303af0d6c5821de3bae8b8190565c6a3c7008 WHIRLPOOL dfb97b56581d0de75a3fada80e625cba7275b9aa5095a76bee94b3619da00e89bf231f5276c5715fac4248a35700f97201bb50069fde032ae6367b1bdc0abf76
+MISC metadata.xml 464 SHA256 8bfc17f959fe869a2eb72fac1a4360647da1a6f3f1578e143c02c80c172c2040 SHA512 26faaf69c1bcd592bfd2687b3e805ac9d5ecd155ad86a4d1d92875e96d24a2e21603d1a5a581fdb05bfb9883ddc9ce8bf86a5ca464d7521db65d271b5bc5485d WHIRLPOOL cb77ac4803e02bfe28e0e3b442ded1958df65183a3f434c7786863adc6a6af65a6da45cca72f2f12e2aa1db0104412a7c71359ca74dd6913afa8648ffc0f0c1d
diff --git a/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch b/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
new file mode 100644
index 000000000000..f5cb92984ef9
--- /dev/null
+++ b/dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch
@@ -0,0 +1,24 @@
+From a43f582918d3295b7cdef9e056bf5b1c4eb2ef80 Mon Sep 17 00:00:00 2001
+From: Yaakov Selkowitz <yselkowi@redhat.com>
+Date: Mon, 22 Jun 2015 05:18:44 -0500
+Subject: [PATCH] Include net/if.h for IFF_* macros
+
+---
+ python-ethtool/ethtool.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
+index 0f9cdbb..5415ec6 100644
+--- a/python-ethtool/ethtool.c
++++ b/python-ethtool/ethtool.c
+@@ -27,6 +27,7 @@
+ #include <sys/types.h>
+ #include <ifaddrs.h>
+ #include <netlink/route/addr.h>
++#include <net/if.h>
+
+ #include "etherinfo_struct.h"
+ #include "etherinfo_obj.h"
+--
+2.1.0
+
diff --git a/dev-python/python-ethtool/metadata.xml b/dev-python/python-ethtool/metadata.xml
new file mode 100644
index 000000000000..112c4c091ce3
--- /dev/null
+++ b/dev-python/python-ethtool/metadata.xml
@@ -0,0 +1,13 @@
+<?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 the ethtool kernel interface, that allows querying and
+ changing of Ethernet card settings, such as speed, port, auto-negotiation, and
+ PCI locations.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-python/python-ethtool/python-ethtool-0.11.ebuild b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
new file mode 100644
index 000000000000..8cb759512663
--- /dev/null
+++ b/dev-python/python-ethtool/python-ethtool-0.11.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+# TODO: install scripts and their man pages
+
+inherit eutils distutils-r1
+
+DESCRIPTION="Ethernet settings python bindings"
+HOMEPAGE="https://fedorahosted.org/python-ethtool/"
+SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libnl:3"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_include-net-if.h-for-IFF_-macros.patch"
+ distutils-r1_src_prepare
+}