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.

59 lines
1.6 KiB

  1. #
  2. # Copyright (c) 2017 Yu Wang <wangyucn@gmail.com>
  3. # Copyright (c) 2020 Nishant Sharma <nishant@hopbox.in>
  4. #
  5. # This is free software, licensed under MIT
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=UDPspeeder
  9. PKG_VERSION:=20210116.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/wangyu-/$(PKG_NAME)/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=657ae24dfd592a1f6f114342231b24d09baec712957969f425477b9f9fd5994a
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Nishant Sharma <nishant@hopbox.in>
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/UDPspeeder
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=UDP Network Speed-Up Tool
  23. URL:=https://github.com/wangyu-/UDPspeeder
  24. DEPENDS:= +libstdcpp +librt +libatomic
  25. endef
  26. define Package/UDPspeeder/description
  27. A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction,for All Traffics(TCP/UDP/ICMP)
  28. endef
  29. MAKE_FLAGS += cross
  30. define Build/Prepare
  31. $(PKG_UNPACK)
  32. sed -i 's/cc_cross=.*/cc_cross=$(TARGET_CXX)/g' $(PKG_BUILD_DIR)/makefile
  33. sed -i '/\gitversion/d' $(PKG_BUILD_DIR)/makefile
  34. echo 'const char * const gitversion = "$(PKG_VERSION)";' > $(PKG_BUILD_DIR)/git_version.h
  35. $(Build/Patch)
  36. endef
  37. define Package/UDPspeeder/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/speederv2_cross $(1)/usr/bin/udpspeeder
  40. $(INSTALL_DIR) $(1)/etc/config
  41. $(INSTALL_CONF) ./files/udpspeeder-config $(1)/etc/config/udpspeeder
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/udpspeeder-init $(1)/etc/init.d/udpspeeder
  44. endef
  45. $(eval $(call BuildPackage,UDPspeeder))