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.

39 lines
1.1 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_MAINTAINER:=Gang Zhao <gang.zhao.42@gmail.com>
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/shadowsocks-client
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Web Servers/Proxies
  19. TITLE:=shadowsocks client for router
  20. URL:=https://github.com/zhao-gang/shadowsocks-tiny
  21. DEPENDS:=+libopenssl
  22. endef
  23. define Package/shadowsocks-client/install
  24. $(INSTALL_DIR) $(1)/usr/bin
  25. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslocal $(1)/usr/bin/
  26. $(INSTALL_DIR) $(1)/etc/config
  27. $(INSTALL_DATA) ./files/sslocal.config $(1)/etc/config/sslocal
  28. $(INSTALL_DIR) $(1)/etc/init.d
  29. $(INSTALL_BIN) ./files/sslocal.init $(1)/etc/init.d/sslocal
  30. endef
  31. $(eval $(call BuildPackage,shadowsocks-client))