summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2017-05-08 09:38:34 +0100
committerTony Vroon <chainsaw@gentoo.org>2017-05-08 09:38:52 +0100
commita05e0ba49f1f767a966603b315624eba6240631a (patch)
tree02fee3bd10be788efd17104e04183100f258126b /dev-python/pcapy
parentapp-misc/jq: Mask USE=test for bug 583422 (diff)
downloadgentoo-a05e0ba49f1f767a966603b315624eba6240631a.tar.gz
gentoo-a05e0ba49f1f767a966603b315624eba6240631a.tar.bz2
gentoo-a05e0ba49f1f767a966603b315624eba6240631a.zip
dev-python/pcapy: Initial commit. Ebuild by Barzog on GitHub, minor modifications based on ebuild review by David "Soap" Seifert & Manuel "mrueg" RĂ¼ger.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-python/pcapy')
-rw-r--r--dev-python/pcapy/Manifest1
-rw-r--r--dev-python/pcapy/metadata.xml12
-rw-r--r--dev-python/pcapy/pcapy-0.11.1.ebuild24
3 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/pcapy/Manifest b/dev-python/pcapy/Manifest
new file mode 100644
index 00000000000..dcd333984ad
--- /dev/null
+++ b/dev-python/pcapy/Manifest
@@ -0,0 +1 @@
+DIST pcapy-0.11.1.tar.gz 31439 SHA256 92420a5807805fbb38119eb9ac383099317216efeddd3030333d2de430731c65 SHA512 60eebbeae84da33d7bd2eb2398687007a305e8986fcc183d8061fa50bbc0cdf9a66c17461a32a652ca39952dd0935b164bd98a200f82ffef00ffaa55409522a3 WHIRLPOOL b9dad4c5a6dfd67d98323eed849f10d7e627c4cc4c3ca04729a962de264d07822ae8612b3d80d90664a7112a547fe3123a25029a77282b355cc1c1fb8554b3ed
diff --git a/dev-python/pcapy/metadata.xml b/dev-python/pcapy/metadata.xml
new file mode 100644
index 00000000000..36420f308fa
--- /dev/null
+++ b/dev-python/pcapy/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pcapy/pcapy-0.11.1.ebuild b/dev-python/pcapy/pcapy-0.11.1.ebuild
new file mode 100644
index 00000000000..daa2e92b27f
--- /dev/null
+++ b/dev-python/pcapy/pcapy-0.11.1.ebuild
@@ -0,0 +1,24 @@
+# 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,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python pcap extension"
+HOMEPAGE="https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy"
+SRC_URI="https://github.com/CoreSecurity/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="${DEPEND}
+ net-libs/libpcap"
+
+python_test() {
+ cd "${S}/tests" || die "Unable to activate test suite"
+ "${EPYTHON}" pcapytests.py || die "Tests failed with ${EPYTHON}"
+}