blob: f9f2018474df922bab55fd808ed6a285039edf62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
# Copyright (C) 2017 Andrew McConachie
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-dpkt
PKG_VERSION:=1.9.2
PKG_RELEASE:=1
PKG_SOURCE:=dpkt-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/dpkt
PKG_HASH:=52a92ecd5ca04d5bd852bb11cb2eac4bbe38b42a7c472e0d950eeb9f82a81e54
PKG_BUILD_DIR:=$(BUILD_DIR)/dpkt-$(PKG_VERSION)
PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
define Package/python-dpkt
SECTION:=language-python
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=python-dpkt
URL:=https://dpkt.readthedocs.io/en/latest/
DEPENDS:=+python
endef
define Package/python-dpkt/description
dpkt is a python module for fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
https://pypi.python.org/pypi/dpkt
https://github.com/kbandla/dpkt
endef
define Build/Compile
$(call Build/Compile/PyMod,,\
install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
)
endef
$(eval $(call PyPackage,python-dpkt))
$(eval $(call BuildPackage,python-dpkt))
|