You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-dpkt
  9. PKG_VERSION:=1.9.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=dpkt-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/dpkt
  13. PKG_HASH:=52a92ecd5ca04d5bd852bb11cb2eac4bbe38b42a7c472e0d950eeb9f82a81e54
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/dpkt-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=LICENSE
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. define Package/python-dpkt
  21. SECTION:=language-python
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=python-dpkt
  25. URL:=https://dpkt.readthedocs.io/en/latest/
  26. DEPENDS:=+python
  27. endef
  28. define Package/python-dpkt/description
  29. dpkt is a python module for fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
  30. https://pypi.python.org/pypi/dpkt
  31. https://github.com/kbandla/dpkt
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,,\
  35. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  36. )
  37. endef
  38. $(eval $(call PyPackage,python-dpkt))
  39. $(eval $(call BuildPackage,python-dpkt))