1 # Contributor: alphazo <alphazo@gmail.com>
5 pkgdesc="mitmproxy is an SSL-capable, intercepting HTTP proxy. It provides a console interface that allows traffic flows to be inspected and edited on the fly. mitmdump is the command-line version of mitmproxy, with the same functionality but without the frills. Think tcpdump for HTTP."
7 url="https://github.com/cortesi/mitmproxy"
10 depends=('openssl' 'python-urwid')
21 _gitroot="git://github.com/cortesi/mitmproxy.git"
26 msg "Connecting to GIT server...."
27 if [ -d $_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
31 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
39 python2 setup.py install --root=${pkgdir} || return 1