pypcap: new package
authorMatt Weber <mlweber1@rockwellcollins.com>
Fri, 11 Apr 2014 03:39:54 +0000 (22:39 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 11 Apr 2014 20:01:23 +0000 (22:01 +0200)
Signed-off-by: Matt Weber <mlweber1@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/python-pypcap/Config.in [new file with mode: 0644]
package/python-pypcap/python-pypcap.mk [new file with mode: 0644]

index 6abc7b3c1236a35da1d565a7ecdfc8b9863b9942..98d94e37df55fa0336111a85564cf9597b080287 100644 (file)
@@ -459,6 +459,7 @@ source "package/python-pyasn/Config.in"
 source "package/python-pycrypto/Config.in"
 source "package/python-pygame/Config.in"
 source "package/python-pyparsing/Config.in"
+source "package/python-pypcap/Config.in"
 source "package/python-pyro/Config.in"
 source "package/python-pysnmp/Config.in"
 source "package/python-pysnmp-apps/Config.in"
diff --git a/package/python-pypcap/Config.in b/package/python-pypcap/Config.in
new file mode 100644 (file)
index 0000000..ed336ca
--- /dev/null
@@ -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 (file)
index 0000000..89f2dc1
--- /dev/null
@@ -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))