Commit c8b28135 authored by Matt Weber's avatar Matt Weber Committed by Peter Korsgaard
Browse files

pypcap: new package

parent d2648276
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"
+8 −0
Original line number Diff line number Diff line
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/
+22 −0
Original line number Diff line number Diff line
################################################################################
#
# 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))