diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2014-03-03 20:09:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-11 07:33:00 +0000 |
commit | 885a022b22a3d0a422a429ce3b71909421c79e04 (patch) | |
tree | a3dc900b3f0d3d6f5b54b21d5cce76f5b1997fe6 /testing/mitmproxy | |
parent | 0201a751b11887173b48c551683d77c85057100a (diff) | |
download | aports-885a022b22a3d0a422a429ce3b71909421c79e04.tar.bz2 aports-885a022b22a3d0a422a429ce3b71909421c79e04.tar.xz |
testing/mitmproxy: new aport
An interactive SSL-capable intercepting HTTP proxy
http://www.mitmproxy.org/
Diffstat (limited to 'testing/mitmproxy')
-rw-r--r-- | testing/mitmproxy/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/mitmproxy/APKBUILD b/testing/mitmproxy/APKBUILD new file mode 100644 index 0000000000..692cc3da72 --- /dev/null +++ b/testing/mitmproxy/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=mitmproxy +pkgver=0.10.1 +pkgrel=0 +pkgdesc="An interactive SSL-capable intercepting HTTP proxy" +url="http://www.mitmproxy.org/" +arch="noarch" +license="MIT" +depends="python py-netlib py-flask py-urwid py-$pkgname py-itsdangerous" +depends_dev="" +makedepends="python-dev py-setuptools " +install="" +subpackages="py-$pkgname:py" +source="http://mitmproxy.org/download/mitmproxy-0.10.1.tar.gz" + +_builddir="$srcdir"/$pkgname-$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" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +py() { + cd "$_builddir" + pkgdesc="$pkgname python bindings" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +md5sums="e166a2767e391c323b2d0b32013f0826 mitmproxy-0.10.1.tar.gz" +sha256sums="527cbff76e0d49d7db62561252d399e1c747730676515c4ed89250c223e2fe56 mitmproxy-0.10.1.tar.gz" +sha512sums="2bef02f07942177044afa24749c4e8e2ba1aae5ee33e2cbffbecc557a09351865b70dc92b9acfd285716a82c84026a3eb93f889176fd288c1e8d67a415a5c79a mitmproxy-0.10.1.tar.gz" |