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.

45 lines
1.3 KiB

11 years ago
11 years ago
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.3.2
  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:=e0f332415a88233cce0f0ae1ba446e0bfd5f396b
  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
  16. SECTION:=net
  17. CATEGORY:=Network
  18. DEPENDS:=+libopenssl
  19. TITLE:=Lightweight Secured Socks5 Proxy
  20. endef
  21. define Package/shadowsocks-libev/description
  22. Shadowsocks-libev is a lightweight secured scoks5 proxy for embedded devices and low end boxes.
  23. endef
  24. define Package/shadowsocks-libev/conffiles
  25. /etc/config/shadowsocks.json
  26. endef
  27. define Package/shadowsocks-libev/install
  28. $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-local $(1)/usr/bin/ss-local
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-redir $(1)/usr/bin/ss-redir
  31. $(INSTALL_BIN) ./files/shadowsocks.init $(1)/etc/init.d/shadowsocks
  32. $(INSTALL_CONF) ./files/shadowsocks.json $(1)/etc/config/shadowsocks.json
  33. endef
  34. $(eval $(call BuildPackage,shadowsocks-libev))