obfs4: add 0.0.14
This commit is contained in:
75
obfs4/obfs4.SlackBuild
Normal file
75
obfs4/obfs4.SlackBuild
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script for obfs4
|
||||||
|
|
||||||
|
# Copyright 2024 Sergei Fedosoff <eleksir@gmail.com>
|
||||||
|
#
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
# permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of this script must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||||
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||||
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=obfs4
|
||||||
|
VERSION=${VERSION:-0.0.14}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_EXs}
|
||||||
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/EXs}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
cd $TMP
|
||||||
|
rm -rf $PRGNAM-obfs4proxy-$VERSION
|
||||||
|
tar xf $CWD/obfs4proxy-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-obfs4proxy-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \+ -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \+
|
||||||
|
|
||||||
|
go mod tidy
|
||||||
|
go mod vendor
|
||||||
|
go build -ldflags="-s -w" -a -gcflags=all=-l -trimpath -o obfs4 obfs4proxy/*
|
||||||
|
|
||||||
|
install -Dpm 0755 obfs4 $PKG/usr/libexec/obfs4proxy
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a ChangeLog LICENSE LICENSE-GPL3.txt README.md doc/obfs4-spec.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
|
cd $PKG
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
10
obfs4/obfs4.info
Normal file
10
obfs4/obfs4.info
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
PRGNAM="obfs4"
|
||||||
|
VERSION="0.0.14"
|
||||||
|
HOMEPAGE="https://github.com/Yawning/obfs4"
|
||||||
|
DOWNLOAD="https://github.com/Yawning/obfs4/archive/refs/tags/obfs4proxy-0.0.14.tar.gz"
|
||||||
|
MD5SUM="9576a46fbac3dcee18f656d31c386f8c"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
|
REQUIRES=""
|
||||||
|
MAINTAINER="Sergei Fedosoff"
|
||||||
|
EMAIL="eleksir@gmail.com"
|
||||||
19
obfs4/slack-desc
Normal file
19
obfs4/slack-desc
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description.
|
||||||
|
# Line up the first '|' above the ':' following the base package name, and
|
||||||
|
# the '|' on the right side marks the last column you can put a character in.
|
||||||
|
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||||
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
obfs4: obfs4 (The obfourscator)
|
||||||
|
obfs4:
|
||||||
|
obfs4: This is a look-like nothing obfuscation protocol that incorporates
|
||||||
|
obfs4: ideas and concepts from Philipp Winter's ScrambleSuit protocol. The
|
||||||
|
obfs4: obfs naming was chosen primarily because it was shorter, in terms of
|
||||||
|
obfs4: protocol ancestery obfs4 is much closer to ScrambleSuit than
|
||||||
|
obfs4: obfs2/obfs3.
|
||||||
|
obfs4:
|
||||||
|
obfs4: Homepage: https://github.com/Yawning/obfs4
|
||||||
|
obfs4:
|
||||||
|
obfs4:
|
||||||
Reference in New Issue
Block a user