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.

68 lines
1.9 KiB

10 years ago
10 years ago
11 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_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/shadowsocks-libev/Default
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=Lightweight Secured Socks5 Proxy
  20. URL:=https://github.com/madeye/shadowsocks-libev
  21. endef
  22. define Package/shadowsocks-libev
  23. $(call Package/shadowsocks-libev/Default)
  24. TITLE+= (OpenSSL)
  25. VARIANT:=openssl
  26. DEPENDS:=+libopenssl
  27. endef
  28. define Package/shadowsocks-libev-polarssl
  29. $(call Package/shadowsocks-libev/Default)
  30. TITLE+= (PolarSSL)
  31. VARIANT:=polarssl
  32. DEPENDS:=+libpolarssl
  33. endef
  34. define Package/shadowsocks-libev/description
  35. Shadowsocks-libev is a lightweight secured scoks5 proxy for embedded devices and low end boxes.
  36. endef
  37. Package/shadowsocks-libev-polarssl/description=$(Package/shadowsocks-libev/description)
  38. define Package/shadowsocks-libev/conffiles
  39. /etc/shadowsocks.json
  40. endef
  41. ifeq ($(BUILD_VARIANT),polarssl)
  42. CONFIGURE_ARGS += --with-crypto-library=polarssl
  43. endif
  44. define Package/shadowsocks-libev/install
  45. $(INSTALL_DIR) $(1)/etc/init.d
  46. $(INSTALL_CONF) ./files/shadowsocks.json $(1)/etc
  47. $(INSTALL_BIN) ./files/shadowsocks.init $(1)/etc/init.d/shadowsocks
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-{local,redir,tunnel} $(1)/usr/bin
  50. endef
  51. Package/shadowsocks-libev-polarssl/install=$(Package/shadowsocks-libev/install)
  52. $(eval $(call BuildPackage,shadowsocks-libev))
  53. $(eval $(call BuildPackage,shadowsocks-libev-polarssl))