From b58c23615a01646e9577e09a04badda18be0bc65 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 16 Jun 2019 15:00:26 +0300 Subject: [PATCH] new package: obfs4proxy --- packages/obfs4proxy/build.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/obfs4proxy/build.sh diff --git a/packages/obfs4proxy/build.sh b/packages/obfs4proxy/build.sh new file mode 100644 index 000000000..3cc986742 --- /dev/null +++ b/packages/obfs4proxy/build.sh @@ -0,0 +1,25 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/Yawning/obfs4 +TERMUX_PKG_DESCRIPTION="A pluggable transport plugin for Tor" +TERMUX_PKG_LICENSE="BSD 2-Clause, BSD 3-Clause, GPL-3.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +TERMUX_PKG_VERSION=0.0.10 +TERMUX_PKG_REVISION=3 +TERMUX_PKG_SRCURL=https://github.com/Yawning/obfs4/archive/obfs4proxy-$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=b400b088e759f15e8d5a3662b7e0e368dba687b12a0714a818709d74652505d7 +TERMUX_PKG_BUILD_IN_SRC=true + +## obfs4proxy is a pluggable transport plugin for Tor, so +## marking "tor" package as dependency. +TERMUX_PKG_DEPENDS="tor" + +termux_step_make() { + termux_setup_golang + cd "$TERMUX_PKG_SRCDIR"/obfs4proxy + go get -d ./... + go build . +} + +termux_step_post_make_install() { + cd "$TERMUX_PKG_SRCDIR"/obfs4proxy + install -Dm700 obfs4proxy "${TERMUX_PREFIX}"/bin/ +}