Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Copyright (C) 2014 OpenWrt-dist
  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:=redsocks2
  9. PKG_VERSION:=0.67
  10. PKG_RELEASE:=4
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=d94c245ea47859cda5b4b7373308589206b97bdc
  15. PKG_MIRROR_HASH:=938f859d1b55a91aa5cbcda3ddff1d04ccab292f784b0434060c73acab12c457
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_MAINTAINER:=semigodking <[email protected]>
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/redsocks2
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Web Servers/Proxies
  24. TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
  25. URL:=https://github.com/semigodking/redsocks
  26. DEPENDS:=+libevent2 +libopenssl
  27. endef
  28. define Package/redsocks2/description
  29. This is a modified version of original redsocks. \
  30. The name is changed to be REDSOCKS2 since this release to distinguish with original redsocks. \
  31. This variant is useful for anti-GFW (Great Fire Wall).
  32. endef
  33. define Package/redsocks2/conffiles
  34. /etc/config/redsocks2
  35. endef
  36. define Build/Compile
  37. $(call Build/Compile/Default,DISABLE_SHADOWSOCKS=true)
  38. endef
  39. define Package/redsocks2/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
  42. endef
  43. $(eval $(call BuildPackage,redsocks2))