forked from m2nx/ubnt-mips-shadowsocks-libev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
executable file
·37 lines (35 loc) · 1.15 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
cd /usr/local/ss
git clone https://github.com/shadowsocks/shadowsocks-libev
cd shadowsocks-libev
git submodule update --init --recursive && ./autogen.sh
LIBS="-lpthread -lm" \
LDFLAGS="-Wl,-static -static -static-libgcc -L/usr/local/libev/lib" \
CFLAGS="-I/usr/local/libev/include" \
./configure --host=mipsel-linux-gnu --prefix=/usr/local/ss/erx \
--disable-ssp \
--disable-documentation \
--with-mbedtls=/usr/local/mbedtls \
--with-pcre=/usr/local/pcre \
--with-cares=/usr/local/libcares \
--with-sodium=/usr/local/libsodium \
&& make \
&& make install \
&& rm -rf ../shadowsocks-libev
cd /usr/local/ss
git clone https://github.com/shadowsocks/simple-obfs
cd simple-obfs
git submodule update --init --recursive && ./autogen.sh
LIBS="-lpthread -lm" \
LDFLAGS="-Wl,-static -static -static-libgcc -L/usr/local/libev/lib" \
CFLAGS="-I/usr/local/libev/include" \
./configure --host=mipsel-linux-gnu --prefix=/usr/local/ss/erx \
--disable-ssp \
--disable-documentation \
--with-mbedtls=/usr/local/mbedtls \
--with-pcre=/usr/local/pcre \
--with-cares=/usr/local/libcares \
--with-sodium=/usr/local/libsodium \
&& make \
&& make install \
&& rm -rf ../simple-obfs