dev-python/pcapy: Initial commit. Ebuild by Barzog on GitHub, minor modifications...
authorTony Vroon <chainsaw@gentoo.org>
Mon, 8 May 2017 08:38:34 +0000 (09:38 +0100)
committerTony Vroon <chainsaw@gentoo.org>
Mon, 8 May 2017 08:38:52 +0000 (09:38 +0100)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-python/pcapy/Manifest [new file with mode: 0644]
dev-python/pcapy/metadata.xml [new file with mode: 0644]
dev-python/pcapy/pcapy-0.11.1.ebuild [new file with mode: 0644]

diff --git a/dev-python/pcapy/Manifest b/dev-python/pcapy/Manifest
new file mode 100644 (file)
index 0000000..dcd3339
--- /dev/null
@@ -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 (file)
index 0000000..36420f3
--- /dev/null
@@ -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 (file)
index 0000000..daa2e92
--- /dev/null
@@ -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}"
+}