Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=redsocks2
  6. PKG_VERSION:=0.71
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
  10. PKG_SOURCE_DATE:=2024-12-05
  11. PKG_SOURCE_VERSION:=5d2db3e15543854da30e88af40748dfe63af2c28
  12. PKG_MIRROR_HASH:=5c06c3646434c498fe22379cb2085269d1e384e1a2db2941ca844a0a5da1f0dc
  13. PKG_MAINTAINER:=semigodking <[email protected]>
  14. PKG_LICENSE:=Apache-2.0
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/redsocks2
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Web Servers/Proxies
  22. TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
  23. URL:=https://github.com/semigodking/redsocks
  24. DEPENDS:=+libevent2 +libopenssl
  25. endef
  26. define Package/redsocks2/description
  27. This is a modified version of original redsocks. \
  28. The name is changed to be REDSOCKS2 since this release to distinguish with original redsocks. \
  29. This variant is useful for anti-GFW (Great Fire Wall).
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/Default,DISABLE_SHADOWSOCKS=true)
  33. endef
  34. define Package/redsocks2/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
  37. endef
  38. $(eval $(call BuildPackage,redsocks2))