New package: python-dpkt

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Yegor Yefremov 2012-01-04 12:30:02 +01:00 committed by Peter Korsgaard
parent 649915fb75
commit bdd274110a
3 changed files with 34 additions and 0 deletions

View File

@ -239,6 +239,7 @@ source "package/php/Config.in"
source "package/python/Config.in" source "package/python/Config.in"
if BR2_PACKAGE_PYTHON if BR2_PACKAGE_PYTHON
menu "external python modules" menu "external python modules"
source "package/python-dpkt/Config.in"
source "package/python-mad/Config.in" source "package/python-mad/Config.in"
source "package/python-serial/Config.in" source "package/python-serial/Config.in"
endmenu endmenu

View File

@ -0,0 +1,11 @@
config BR2_PACKAGE_PYTHON_DPKT
bool "python-dpkt"
depends on BR2_PACKAGE_PYTHON
select BR2_PACKAGE_PYTHON_ZLIB
help
Fast, simple packet creation / parsing, with definitions
for the basic TCP/IP protocols.
http://code.google.com/p/dpkt/

View File

@ -0,0 +1,22 @@
#############################################################
#
# python-dpkt
#
#############################################################
PYTHON_DPKT_VERSION = 1.7
PYTHON_DPKT_SOURCE = dpkt-$(PYTHON_DPKT_VERSION).tar.gz
PYTHON_DPKT_SITE = http://dpkt.googlecode.com/files
PYTHON_DPKT_DEPENDENCIES = python
define PYTHON_DPKT_BUILD_CMDS
(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
endef
define PYTHON_DPKT_INSTALL_TARGET_CMDS
(cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
endef
$(eval $(call GENTARGETS))