diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-04-28 07:29:13 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-04-28 07:29:49 +0000 |
commit | 3e393b9241545c0ce332618d8ad185007ba955ef (patch) | |
tree | ba47d49b418f798b33013eb47540babf3a8a84ac /testing/redsocks | |
parent | 92d3ed906a0598223db4e3fa4f14249b4d6a3e90 (diff) | |
download | aports-3e393b9241545c0ce332618d8ad185007ba955ef.tar.bz2 aports-3e393b9241545c0ce332618d8ad185007ba955ef.tar.xz |
testing/redsocks: new aport
Diffstat (limited to 'testing/redsocks')
-rw-r--r-- | testing/redsocks/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/redsocks/APKBUILD b/testing/redsocks/APKBUILD new file mode 100644 index 0000000000..625a26665a --- /dev/null +++ b/testing/redsocks/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=redsocks +pkgver=0.4 +pkgrel=0 +pkgdesc="Transparent redirector of any TCP connection to proxy using your firewall" +url="http://darkk.net.ru/redsocks" +arch="all" +license="Apache-2.0" +depends="" +depends_dev="libevent-dev iptables-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="https://github.com/darkk/$pkgname/archive/release-$pkgver.zip" +_builddir="$srcdir"/$pkgname-release-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + install -Dm755 redsocks "$pkgdir/usr/bin/redsocks" + install -Dm644 redsocks.conf.example "$pkgdir"/etc/$pkgname/redsocks.conf +} + +md5sums="eb84f51f76530842a5d734795f4a1b77 release-0.4.zip" +sha256sums="d0ea872bb42b86e6ad3a6bdb46a2c6b822713b41b00c9f6f2ad2b4ec81d5202f release-0.4.zip" +sha512sums="029d06fdee382052c727bfd6a2362f68f6156bdd2928de18b425207c524763d3dde56ccc49e0673889a67ef7b16f061a63f44d04895a99195aaf4bace731cc50 release-0.4.zip" |