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.

52 lines
1.2 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2021 Marcel Vital
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=irtt
  6. PKG_VERSION:=0.9.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://github.com/heistp/irtt.git
  10. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  11. PKG_MIRROR_HASH:=5ec1c97542f826431977168c024d547d7eb45c5c17e1d01d79736547a5a43199
  12. PKG_LICENSE:=GPL-2.0-only
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_MAINTAINER:=Marcel Vital <ralmina@tuta.io>
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/irtt-$(PKG_VERSION)
  16. PKG_BUILD_DEPENDS:=golang/host
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_USE_MIPS16:=0
  19. GO_PKG:=github.com/heistp/irtt
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../../lang/golang/golang-package.mk
  22. define Package/irtt
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=irtt
  26. URL:=https://github.com/heistp/irtt
  27. DEPENDS:=$(GO_ARCH_DEPENDS)
  28. endef
  29. define Package/irtt/description
  30. Isochronous round trip time tool.
  31. Useful for measuring one-way send or recv delay between hosts,
  32. among other things.
  33. endef
  34. define Package/irtt/install
  35. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  36. $(INSTALL_DIR) $(1)/usr/bin/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/bin/irtt $(1)/usr/bin/
  38. endef
  39. $(eval $(call GoBinPackage,irtt))
  40. $(eval $(call BuildPackage,irtt))