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