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.

50 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. PKG_BUILD_DEPENDS:=python python-setuptools
  20. include $(INCLUDE_DIR)/package.mk
  21. $(call include_mk, python-package.mk)
  22. define Package/python-dpkt
  23. SECTION:=language-python
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=python-dpkt
  27. URL:=https://dpkt.readthedocs.io/en/latest/
  28. DEPENDS:=+python
  29. endef
  30. define Package/python-dpkt/description
  31. dpkt is a python module for fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
  32. https://pypi.python.org/pypi/dpkt
  33. https://github.com/kbandla/dpkt
  34. endef
  35. define Build/Compile
  36. $(call Build/Compile/PyMod,,\
  37. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  38. )
  39. endef
  40. $(eval $(call PyPackage,python-dpkt))
  41. $(eval $(call BuildPackage,python-dpkt))