26 lines
738 B
Bash
26 lines
738 B
Bash
#!/bin/bash
|
|
|
|
build_ss_libev(){
|
|
SS_DIR = $BUILD_DIR/shadowsocks-libev
|
|
apk add build-deps git autoconf automake libtool build-base libev-dev linux-headers libsodium-dev mbedtls-dev pcre-dev c-ares-dev
|
|
git clone https://github.com/shadowsocks/shadowsocks-libev.git $SS_DIR
|
|
cd $SS_DIR
|
|
./autogen.sh && ./configure
|
|
make && make install
|
|
}
|
|
|
|
build_obfs(){
|
|
OBFS_DIR = $BUILD_DIR/simple-obfs
|
|
apk add gcc autoconf make libtool automake zlib-devel openssl asciidoc xmlto libpcre32 libev-dev g++ linux-headers
|
|
git clone https://github.com/shadowsocks/simple-obfs.git $OBFS_DIR
|
|
cd $OBFS_DIR
|
|
git submodule update --init --recursive
|
|
./autogen.sh && ./configure
|
|
make && make install
|
|
}
|
|
|
|
apk update
|
|
build_ss_libev
|
|
build_obfs
|
|
rm -rf $BUILD_DIR/*
|