@ -1,5 +1,6 @@
#
# Copyright (C) 2015 OpenWrt.org
# Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -8,22 +9,17 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := shadowsocks-libev
PKG_VERSION := 2.6.1
PKG_VERSION := 3.0.6
PKG_RELEASE := 1
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/shadowsocks/shadowsocks-libev.git
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION) -$( PKG_RELEASE)
PKG_SOURCE_VERSION := a3bf80cf11e0a88589abdd87266b5351f270197c
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) -$( PKG_SOURCE_VERSION) .tar.xz
PKG_MAINTAINER := Jian Chang <aa65535@live.com>
PKG_MIRROR_MD5SUM := fc60936d8b990fdecd69b908bc6b770b1c1e54598da6622cc9669750c76fa2d1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$( PKG_VERSION)
PKG_HASH := 7d9b43b0235a57c115bfe160efd54abef96bffcbfff61c5496e7c2800f0734ca
PKG_MAINTAINER := Jian Chang <aa65535@live.com>
PKG_LICENSE := GPLv2
PKG_LICENSE_FILES := LICENSE
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION) -$( PKG_RELEASE)
PKG_INSTALL := 1
PKG_FIXUP := autoreconf
PKG_USE_MIPS16 := 0
@ -31,33 +27,23 @@ PKG_BUILD_PARALLEL:=1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v / D e f a u l t
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v
SECTION:= net
CATEGORY:= Network
TITLE:= Lightweight Secured Socks5 Proxy $( 2)
TITLE:= Lightweight Secured Socks5 Proxy
URL:= https://github.com/shadowsocks/shadowsocks-libev
VARIANT:= $( 1)
DEPENDS:= $( 3) +libpthread +ipset +ip +iptables-mod-tproxy +libpcre +zlib
DEPENDS:= +libev +libmbedtls +libpthread +libsodium +libudns \
+ipset +ip +iptables-mod-tproxy +libpcre +zlib
e n d e f
CONFIGURE_ARGS += \
--disable-documentation \
P a c k a g e / shadowsocks-libev = $( call Package/shadowsocks-libev/Default,openssl,( OpenSSL) ,+libopenssl)
P a c k a g e / shadowsocks-libev-mbedtls = $( call Package/shadowsocks-libev/Default,mbedtls,( mbed TLS) ,+libmbedtls)
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v / d e s c r i p t i o n
S h a d o w s o c k s - l i b e v i s a l i g h t w e i g h t s e c u r e d s o c k s 5 p r o x y f o r e m b e d d e d d e v i c e s a n d l o w e n d b o x e s .
e n d e f
P a c k a g e / s h a d o w s o c k s - l i b e v - m b e d t l s / description = $( Package/shadowsocks-libev/description)
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v / c o n f f i l e s
/ e t c / c o n f i g / s h a d o w s o c k s - l i b e v
e n d e f
P a c k a g e / s h a d o w s o c k s - l i b e v - m b e d t l s / conffiles = $( Package/shadowsocks-libev/conffiles)
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v / p o s t i n s t
#!/bin/sh
u c i - q b a t c h < < - E O F > / d e v / n u l l
@ -71,12 +57,6 @@ EOF
e x i t 0
e n d e f
P a c k a g e / s h a d o w s o c k s - l i b e v - m b e d t l s / postinst = $( Package/shadowsocks-libev/postinst)
i f e q ( $( BUILD_VARIANT ) , m b e d t l s )
CONFIGURE_ARGS += --with-crypto-library= mbedtls
e n d i f
d e f i n e P a c k a g e / s h a d o w s o c k s - l i b e v / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/ss-{ redir,tunnel} $( 1) /usr/bin
@ -89,7 +69,6 @@ define Package/shadowsocks-libev/install
$( INSTALL_DATA) ./files/firewall.include $( 1) /usr/share/shadowsocks-libev/firewall.include
e n d e f
P a c k a g e / s h a d o w s o c k s - l i b e v - m b e d t l s / install = $( Package/shadowsocks-libev/install)
CONFIGURE_ARGS += --disable-documentation
$( eval $ ( call BuildPackage ,shadowsocks -libev ) )
$( eval $ ( call BuildPackage ,shadowsocks -libev -mbedtls ) )