From 4515677cf11d1e1c5800cd1652f8974d69c2e688 Mon Sep 17 00:00:00 2001 From: eleksir Date: Sun, 24 Mar 2024 02:30:20 +0300 Subject: [PATCH] obfs4: add 0.0.14 --- obfs4/obfs4.SlackBuild | 75 ++++++++++++++++++++++++++++++++++++++++++ obfs4/obfs4.info | 10 ++++++ obfs4/slack-desc | 19 +++++++++++ 3 files changed, 104 insertions(+) create mode 100644 obfs4/obfs4.SlackBuild create mode 100644 obfs4/obfs4.info create mode 100644 obfs4/slack-desc diff --git a/obfs4/obfs4.SlackBuild b/obfs4/obfs4.SlackBuild new file mode 100644 index 0000000..e2ae788 --- /dev/null +++ b/obfs4/obfs4.SlackBuild @@ -0,0 +1,75 @@ +#!/bin/bash + +# Slackware build script for obfs4 + +# Copyright 2024 Sergei Fedosoff +# +# 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 diff --git a/obfs4/obfs4.info b/obfs4/obfs4.info new file mode 100644 index 0000000..3d92f39 --- /dev/null +++ b/obfs4/obfs4.info @@ -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" diff --git a/obfs4/slack-desc b/obfs4/slack-desc new file mode 100644 index 0000000..057b533 --- /dev/null +++ b/obfs4/slack-desc @@ -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: