From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8B4EB13832E for ; Sat, 6 Aug 2016 20:56:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AADF1E0B39; Sat, 6 Aug 2016 20:56:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38C44E0B39 for ; Sat, 6 Aug 2016 20:56:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFAA2340B23 for ; Sat, 6 Aug 2016 20:56:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB9457CE for ; Sat, 6 Aug 2016 20:56:53 +0000 (UTC) From: "Rafael Martins" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rafael Martins" Message-ID: <1470516909.6009c41728f7afe3072ebfe70b0fac4e43d22a96.rafaelmartins@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-ethtool/Manifest dev-python/python-ethtool/files/python-ethtool-0.11_include-net-if.h-for-IFF_-macros.patch dev-python/python-ethtool/metadata.xml dev-python/python-ethtool/python-ethtool-0.11.ebuild X-VCS-Directories: dev-python/python-ethtool/files/ dev-python/python-ethtool/ X-VCS-Committer: rafaelmartins X-VCS-Committer-Name: Rafael Martins X-VCS-Revision: 6009c41728f7afe3072ebfe70b0fac4e43d22a96 X-VCS-Branch: master Date: Sat, 6 Aug 2016 20:56:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 67cec82d-1ba9-4b06-bcf4-b918ad7f6628 X-Archives-Hash: 530f6c137f3f0389007fbff4fb43567e commit: 6009c41728f7afe3072ebfe70b0fac4e43d22a96 Author: Rafael Martins gentoo org> AuthorDate: Sat Aug 6 20:55:09 2016 +0000 Commit: Rafael Martins gentoo org> CommitDate: Sat Aug 6 20:55:09 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6009c417 Initial import Package-Manager: portage-2.2.26 dev-python/python-ethtool/Manifest | 1 + ...ool-0.11_include-net-if.h-for-IFF_-macros.patch | 24 +++++++++++++++++++ dev-python/python-ethtool/metadata.xml | 13 ++++++++++ .../python-ethtool/python-ethtool-0.11.ebuild | 28 ++++++++++++++++++++++ 4 files changed, 66 insertions(+) diff --git a/dev-python/python-ethtool/Manifest b/dev-python/python-ethtool/Manifest new file mode 100644 index 0000000..0da9e9a --- /dev/null +++ b/dev-python/python-ethtool/Manifest @@ -0,0 +1 @@ +DIST python-ethtool-0.11.tar.bz2 34487 SHA256 686756e4b2b239319e8513025debcc0d97103815b0879f94d8234cbbca6ada24 SHA512 b260e608e1024c48eedb72327b704b01fb42396219ca3d942fe42f22d3e8018fc74bfeffd96e37abd4efd2ce49a73915e0e2af5841a537a02e247d4ba5548f20 WHIRLPOOL 1bb2dc8718fd418f81aa20960712f5c2bd131a1128c291df5e955fef83ea71035f429b0fb9e9d213488b0129631978e7fd48f41b199195c59efa30b91484005a 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 0000000..f5cb929 --- /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 +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 + #include + #include ++#include + + #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 0000000..112c4c0 --- /dev/null +++ b/dev-python/python-ethtool/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + 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. + + 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 0000000..810f7fb --- /dev/null +++ b/dev-python/python-ethtool/python-ethtool-0.11.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +}