aboutsummaryrefslogtreecommitdiff
path: root/package/python-pypcap
diff options
context:
space:
mode:
authorGravatar Matt Weber <mlweber1@rockwellcollins.com>2014-04-10 22:39:54 -0500
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-04-11 22:01:23 +0200
commitc8b281354c934f2b03eb6e7d8dfb03284983c4ce (patch)
tree68c2e714581e2cd48e722e00738904b1412ac51b /package/python-pypcap
parentd26482762ca75f04cf4cde3f5e7195d810bac9f5 (diff)
downloadbuildroot-c8b281354c934f2b03eb6e7d8dfb03284983c4ce.tar.gz
buildroot-c8b281354c934f2b03eb6e7d8dfb03284983c4ce.tar.bz2
pypcap: new package
Signed-off-by: Matt Weber <mlweber1@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python-pypcap')
-rw-r--r--package/python-pypcap/Config.in8
-rw-r--r--package/python-pypcap/python-pypcap.mk22
2 files changed, 30 insertions, 0 deletions
diff --git a/package/python-pypcap/Config.in b/package/python-pypcap/Config.in
new file mode 100644
index 0000000000..ed336ca356
--- /dev/null
+++ b/package/python-pypcap/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_PYPCAP
+ bool "python-pypcap"
+ depends on BR2_PACKAGE_PYTHON
+ select BR2_PACKAGE_LIBPCAP
+ help
+ The pypcap module is an object-oriented wrapper of the C libpcap library.
+
+ https://code.google.com/p/pypcap/
diff --git a/package/python-pypcap/python-pypcap.mk b/package/python-pypcap/python-pypcap.mk
new file mode 100644
index 0000000000..89f2dc1589
--- /dev/null
+++ b/package/python-pypcap/python-pypcap.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# python-pypcap
+#
+################################################################################
+
+PYTHON_PYPCAP_VERSION = 102
+PYTHON_PYPCAP_SITE = https://pypcap.googlecode.com/svn/trunk
+PYTHON_PYPCAP_SITE_METHOD = svn
+PYTHON_PYPCAP_LICENSE = BSD-3c
+PYTHON_PYPCAP_LICENSE_FILES = LICENSE
+PYTHON_PYPCAP_SETUP_TYPE = distutils
+PYTHON_PYPCAP_DEPENDENCIES = host-python-pyrex libpcap
+
+define PYTHON_PYPCAP_CONFIGURE_CMDS
+ $(HOST_DIR)/usr/bin/pyrexc $(@D)/pcap.pyx
+ (cd $(@D); \
+ $(HOST_DIR)/usr/bin/python setup.py \
+ config --with-pcap=$(STAGING_DIR)/usr)
+endef
+
+$(eval $(python-package))