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.

40 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=shadowsocks-client
  3. PKG_VERSION:=0.6
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/zhao-gang/shadowsocks-tiny.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=b59d754f838213d60b908aed0b7d4d5a81f273e2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MIRROR_HASH:=55da440f514507359ccc86aa07ee97cecfa3ad2c65db92e031b1dc7a27eac494
  11. PKG_MAINTAINER:=Gang Zhao <gang.zhao.42@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/shadowsocks-client
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Web Servers/Proxies
  20. TITLE:=shadowsocks client for router
  21. URL:=https://github.com/zhao-gang/shadowsocks-tiny
  22. DEPENDS:=+libopenssl
  23. endef
  24. define Package/shadowsocks-client/install
  25. $(INSTALL_DIR) $(1)/usr/bin
  26. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslocal $(1)/usr/bin/
  27. $(INSTALL_DIR) $(1)/etc/config
  28. $(INSTALL_DATA) ./files/sslocal.config $(1)/etc/config/sslocal
  29. $(INSTALL_DIR) $(1)/etc/init.d
  30. $(INSTALL_BIN) ./files/sslocal.init $(1)/etc/init.d/sslocal
  31. endef
  32. $(eval $(call BuildPackage,shadowsocks-client))