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.

69 lines
1.9 KiB

10 years ago
10 years ago
11 years ago
10 years ago
11 years ago
11 years ago
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=shadowsocks-libev
  3. PKG_VERSION:=1.4.3
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/madeye/shadowsocks-libev.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=69f8bd61c096337abb34a9e64534865d08022957
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_MAINTAINER:=Max Lv <max.c.lv@gmail.com>
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_INSTALL:=1
  13. PKG_FIXUP:=autoreconf
  14. PKG_USE_MIPS16:=0
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/shadowsocks-libev/Default
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Lightweight Secured Socks5 Proxy
  21. URL:=https://github.com/madeye/shadowsocks-libev
  22. endef
  23. define Package/shadowsocks-libev
  24. $(call Package/shadowsocks-libev/Default)
  25. TITLE+= (OpenSSL)
  26. VARIANT:=openssl
  27. DEPENDS:=+libopenssl
  28. endef
  29. define Package/shadowsocks-libev-polarssl
  30. $(call Package/shadowsocks-libev/Default)
  31. TITLE+= (PolarSSL)
  32. VARIANT:=polarssl
  33. DEPENDS:=+libpolarssl
  34. endef
  35. define Package/shadowsocks-libev/description
  36. Shadowsocks-libev is a lightweight secured scoks5 proxy for embedded devices and low end boxes.
  37. endef
  38. Package/shadowsocks-libev-polarssl/description=$(Package/shadowsocks-libev/description)
  39. define Package/shadowsocks-libev/conffiles
  40. /etc/shadowsocks.json
  41. endef
  42. ifeq ($(BUILD_VARIANT),polarssl)
  43. CONFIGURE_ARGS += --with-crypto-library=polarssl
  44. endif
  45. define Package/shadowsocks-libev/install
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_CONF) ./files/shadowsocks.json $(1)/etc
  48. $(INSTALL_BIN) ./files/shadowsocks.init $(1)/etc/init.d/shadowsocks
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-{local,redir,tunnel} $(1)/usr/bin
  51. endef
  52. Package/shadowsocks-libev-polarssl/install=$(Package/shadowsocks-libev/install)
  53. $(eval $(call BuildPackage,shadowsocks-libev))
  54. $(eval $(call BuildPackage,shadowsocks-libev-polarssl))