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.

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