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.

38 lines
1.1 KiB

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