Signed-off-by: shirakun <nico@ni-co.moe>

This commit is contained in:
shirakun 2018-03-21 14:24:39 +09:00
parent 781123933e
commit 7e64118699

View File

@ -2,11 +2,23 @@
build_ss_libev(){ build_ss_libev(){
SS_DIR = $BUILD_DIR/shadowsocks-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 set -ex && \
git clone https://github.com/shadowsocks/shadowsocks-libev.git $SS_DIR apk add --no-cache --virtual .build-deps git autoconf automake libtool build-base libev-dev linux-headers libsodium-dev mbedtls-dev pcre-dev c-ares-dev
cd $SS_DIR git clone https://github.com/shadowsocks/shadowsocks-libev $SS_DIR
./autogen.sh && ./configure cd $SS_DIR
make && make install ./autogen.sh
./configure --prefix=/usr --disable-documentation
make install
runDeps="$( \
scanelf --needed --nobanner /usr/bin/ss-* \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \
| sort -u \
)"
apk add --no-cache --virtual .run-deps rng-tools $runDeps
apk del .build-deps
rm -rf $SS_DIR/*
} }
build_obfs(){ build_obfs(){