python-dpkt: Add package python-dpkt
[feed/packages.git] / lang / python / python-dpkt / Makefile
1 #
2 # Copyright (C) 2017 Andrew McConachie
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-dpkt
11 PKG_VERSION:=1.91
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
14 PKG_LICENSE:=BSD-3-Clause
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_PROTO:=git
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)
22
23 PKG_BUILD_DEPENDS:=python python-setuptools
24
25 include $(INCLUDE_DIR)/package.mk
26 $(call include_mk, python-package.mk)
27
28 define Package/python-dpkt
29 SECTION:=language-python
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 TITLE:=python-dpkt
33 URL:=https://dpkt.readthedocs.io/en/latest/
34 DEPENDS:=+python
35 endef
36
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
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/PyMod,,\
45 install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
46 )
47 endef
48
49 $(eval $(call PyPackage,python-dpkt))
50 $(eval $(call BuildPackage,python-dpkt))