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.

67 lines
1.9 KiB

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