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.

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