Shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
-rust >=1.70 from extra/ is required to build this package.
-
This SlackBuild downloads nessessary crates to build the binaries,
so internet connection is required. Then again, if you're going to
use Shadowsocks, it shouldn't be a problem.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=shadowsocks-rust
-VERSION=${VERSION:-1.17.1}
+VERSION=${VERSION:-1.18.2}
BUILD=${BUILD:-1}
TAG=${TAG:-fsleg}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Use rust16 instead of system rust
+export PATH="/opt/rust16/bin:$PATH"
+if [ -z "$LD_LIBRARY_PATH" ]; then
+ export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX"
+else
+ export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
+fi
+
# Compile the binaries; internet access is required
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
PRGNAM="shadowsocks-rust"
-VERSION="1.17.1"
+VERSION="1.18.2"
HOMEPAGE="https://github.com/shadowsocks/shadowsocks-rust"
-DOWNLOAD="https://github.com/shadowsocks/shadowsocks-rust/archive/refs/tags/v1.17.1.tar.gz"
-MD5SUM="c7530785e031a5a4da052a049eb108e8"
+DOWNLOAD="https://github.com/shadowsocks/shadowsocks-rust/archive/refs/tags/v1.18.2.tar.gz"
+MD5SUM="dadb97cd3157dcbef9b25beabdd549e2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="rust16"
MAINTAINER="Vladislav Borisov"
EMAIL="fsleg@t-rg.ws"