diff options
author | Fusl <root@hallowe.lt> | 2018-02-22 10:59:57 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-04 20:08:13 +0000 |
commit | 2fac56ca82fab285ce638218b2889663cbe33687 (patch) | |
tree | 4058da3a01d2d233d7b705f713bb1775e2dd5ad9 /testing/obfs4proxy | |
parent | 6a8218b17e7efe7e0d8be297f7a85cbe4da6e84b (diff) | |
download | aports-2fac56ca82fab285ce638218b2889663cbe33687.tar.bz2 aports-2fac56ca82fab285ce638218b2889663cbe33687.tar.xz |
testing/obfs4proxy: new aport
Diffstat (limited to 'testing/obfs4proxy')
-rw-r--r-- | testing/obfs4proxy/APKBUILD | 50 | ||||
-rw-r--r-- | testing/obfs4proxy/glide.lock | 25 | ||||
-rw-r--r-- | testing/obfs4proxy/glide.yaml | 15 |
3 files changed, 90 insertions, 0 deletions
diff --git a/testing/obfs4proxy/APKBUILD b/testing/obfs4proxy/APKBUILD new file mode 100644 index 0000000000..0559bd5f3c --- /dev/null +++ b/testing/obfs4proxy/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Katie Holly <holly@fuslvz.ws> +# Maintainer: Katie Holly <holly@fuslvz.ws> +pkgname=obfs4proxy +pkgver=0.0.7 +pkgrel=0 +pkgdesc="pluggable transport proxy for Tor, implementing obfs4" +url="https://gitweb.torproject.org/pluggable-transports/obfs4.git/" +arch="x86_64 x86" +license="BSD-3-Clause" +makedepends="go glide" +options="!strip !net" +install="" +source="$pkgname-$pkgver.tar.gz::https://github.com/Yawning/obfs4/archive/$pkgname-$pkgver.tar.gz + glide.yaml + glide.lock + " +builddir="$srcdir"/obfs4-$pkgname-$pkgver +_godir="$srcdir"/go +_vendordir="$_godir"/src/git.torproject.org/pluggable-transports/obfs4.git + +unpack() { + default_unpack + mkdir -p "$_godir"/bin "$_vendordir" "$builddir/.glide" "$builddir/.glidetmp" + rmdir "$_vendordir" + ln -sf "$builddir" "$_vendordir" + cp "$srcdir"/glide.yaml "$srcdir"/glide.lock "$_vendordir" +} + +build() { + cd "$_vendordir" + export GOPATH="$_godir" + export PATH="$PATH:$GOPATH" + GLIDE_HOME="$builddir/.glide" GLIDE_TMP="$builddir/.glidetmp" glide install + go build -v -o ./$pkgname-executable ./$pkgname +} + +check() { + cd "$_vendordir" + go test -short ./... +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/bin + install -Dm755 $pkgname-executable "$pkgdir"/usr/bin/$pkgname +} + +sha512sums="57b71138a139b1821cf58c8e1965f207a6164a046bbfc8d6da828351d4f5bf4ecfb63ca5c69dba834c4e3a72362089d2a7fd296278115c0cae1c53c51d1b124d obfs4proxy-0.0.7.tar.gz +5531b275dc7954b46382f3e01a5d014cc9e06df001c08d80861c6a65e3110d1152219c76231f4ab0f81d95cff3bebcf4b6c687fd65ec8b0980364a716b9a08c2 glide.yaml +e1a8de9a26d3ae49cf7feb53d16b75c19827a4a04e84a0f44412da25f49152205da17c5be832bd94c0688d7e078679350bd8c0ff9c9fbe3eb9cefed42bedfe2f glide.lock" diff --git a/testing/obfs4proxy/glide.lock b/testing/obfs4proxy/glide.lock new file mode 100644 index 0000000000..159b228616 --- /dev/null +++ b/testing/obfs4proxy/glide.lock @@ -0,0 +1,25 @@ +hash: 784b5b8f5e754ef8f63a01e552ceb75767be4ecdc1735996e68c46114bcff6bf +updated: 2018-02-22T10:55:09.464159938Z +imports: +- name: git.torproject.org/pluggable-transports/goptlib.git + version: a3ad5df6c9e7dc8117f55958b4ce99bf1e0fe291 +- name: github.com/agl/ed25519 + version: 5312a61534124124185d41f09206b9fef1d88403 + subpackages: + - edwards25519 + - extra25519 +- name: github.com/dchest/siphash + version: 4ebf1de738443ea7f45f02dc394c4df1942a126d +- name: golang.org/x/crypto + version: dc137beb6cce2043eb6b5f223ab8bf51c32459f4 + subpackages: + - curve25519 + - hkdf + - nacl/secretbox + - poly1305 + - salsa20/salsa +- name: golang.org/x/net + version: f2499483f923065a842d38eb4c7f1927e6fc6e6d + subpackages: + - proxy +testImports: [] diff --git a/testing/obfs4proxy/glide.yaml b/testing/obfs4proxy/glide.yaml new file mode 100644 index 0000000000..6772cc244d --- /dev/null +++ b/testing/obfs4proxy/glide.yaml @@ -0,0 +1,15 @@ +package: git.torproject.org/pluggable-transports/obfs4.git +import: +- package: git.torproject.org/pluggable-transports/goptlib.git +- package: github.com/agl/ed25519 + subpackages: + - extra25519 +- package: github.com/dchest/siphash +- package: golang.org/x/crypto + subpackages: + - curve25519 + - hkdf + - nacl/secretbox +- package: golang.org/x/net + subpackages: + - proxy |