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.

48 lines
1.4 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.3.1
  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:=8cfec389c66fe9935800da5361dc065668250679
  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:=shadowsocks-libev
  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. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libev
  28. TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libev -L$(STAGING_DIR)/usr/lib -lm
  29. define Package/shadowsocks-libev/install
  30. $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-local $(1)/usr/bin/ss-local
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ss-redir $(1)/usr/bin/ss-redir
  33. $(INSTALL_BIN) ./files/shadowsocks.init $(1)/etc/init.d/shadowsocks
  34. $(INSTALL_CONF) ./files/shadowsocks.json $(1)/etc/config/shadowsocks.json
  35. endef
  36. $(eval $(call BuildPackage,shadowsocks-libev))