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.

53 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  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:=python3-pyroute2
  9. PKG_VERSION:=0.5.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pyroute2-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyroute2
  13. PKG_HASH:=deae0e6191a04c3ee213c6fae6ed779602ef5da5ca5e2fa533f27bc04326bfbe
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/pyroute2-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz>
  16. PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
  17. PKG_LICENSE_FILES:=LICENSE.GPL.v2 LICENSE.Apache.v2
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. define Package/python3-pyroute2
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Python netlink library
  25. URL:=https://github.com/svinota/pyroute2
  26. DEPENDS:= \
  27. +python3-light \
  28. +python3-distutils \
  29. +python3-logging \
  30. +python3-multiprocessing \
  31. +python3-sqlite3 \
  32. +python3-ctypes
  33. VARIANT:=python3
  34. endef
  35. define Package/python3-pyroute2/description
  36. Pyroute2 is a pure Python netlink library.
  37. The library was started as an RTNL protocol implementation,
  38. but now it supports many netlink protocols.
  39. endef
  40. PYTHON3_PKG_SETUP_ARGS:=
  41. $(eval $(call Py3Package,$(PKG_NAME)))
  42. $(eval $(call BuildPackage,$(PKG_NAME)))
  43. $(eval $(call BuildPackage,$(PKG_NAME)-src))