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/Manifest4
-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, 68 insertions, 0 deletions
diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest
new file mode 100644
index 000000000000..fa882c7be5c5
--- /dev/null
+++ b/dev-python/python-ethtool/Manifest
@@ -0,0 +1,4 @@
+AUX python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch 622 BLAKE2B 94c1de49912575ba542824a800ab9c4095c0eba768678f203f1cef2548f665675ff0e34b9802bf7aa983ed01fa6f46bacf1e1b565a2d5605a47ce11f46d66d48 SHA512 796beab89f476138fbe799fb296631d912155227b4d40118eef20ea69ca244d272756a63c1afbb42f2941243425994428d82699e1026c4c52a9bb4616fde5839
+DIST python-ethtool-0.11.tar.bz2 34487 BLAKE2B bdb5eced32c508a593bbbc80fc287ece547c34504bbdf36877f4b62dea1239a33c5ea23dcecdd8b0f8104eea3ec7d5418a3ee5a1697930ea24a51da42f3ddc24 SHA512 b260e608e1024c48eedb72327b704b01fb42396219ca3d942fe42f22d3e8018fc74bfeffd96e37abd4efd2ce49a73915e0e2af5841a537a02e247d4ba5548f20
+EBUILD python-ethtool-0.11.ebuild 603 BLAKE2B 5796c4f5b6828ef27998e161104604b1abebebe5bdafd180e2e617ef68071989f2936efa769cfec8223a8635214bc121723c6a847e3530c51313e93df4bf9396 SHA512 9b43ada6a87e75d45da8982ca586b7a1876cda635aa805e616a207f451d5c56062711ba79a3f8b2df4da10747c4d30d397920655128c390784847888ab6716cf
+MISC metadata.xml 464 BLAKE2B e4a3eeee039ad5e3d1236e0067f72df7e73638bb550185f21de32977396c5457a3bb8d9358b65f3dad4696ffc1d818dcbd4ee6ca7f1a9692b3da0b7e56708b36 SHA512 26faaf69c1bcd592bfd2687b3e805ac9d5ecd155ad86a4d1d92875e96d24a2e21603d1a5a581fdb05bfb9883ddc9ce8bf86a5ca464d7521db65d271b5bc5485d
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
+}