2 # Copyright (C) 2017 Andrew McConachie
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Andrew McConachie
<andrew@depht.com
>
14 PKG_LICENSE
:=BSD-3-Clause
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=https
://github.com
/kbandla
/dpkt.git
19 PKG_SOURCE_VERSION
:=6cd0909d613a66033ecdefaca6cc07cfa7d46d6b
20 PKG_MIRROR_HASH
:=fe8657552b1dbaf8b9eba50168730e200567dc88a06932aa1cf60dc93211d16b
21 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_BUILD_DEPENDS
:=python python-setuptools
25 include $(INCLUDE_DIR
)/package.mk
26 $(call include_mk
, python-package.mk
)
28 define Package
/python-dpkt
29 SECTION
:=language-python
33 URL
:=https
://dpkt.readthedocs.io
/en
/latest
/
37 define Package
/python-dpkt
/description
38 dpkt is a python module for fast
, simple packet creation
/ parsing
, with definitions for the basic TCP
/IP protocols
39 https
://pypi.python.org
/pypi
/dpkt
40 https
://github.com
/kbandla
/dpkt
44 $(call Build
/Compile
/PyMod
,,\
45 install --prefix=/usr
--root
="$(PKG_INSTALL_DIR)" \
49 $(eval
$(call PyPackage
,python-dpkt
))
50 $(eval
$(call BuildPackage
,python-dpkt
))