[arch-commits] Commit in mitmproxy/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Apr 11 03:06:51 UTC 2016
Date: Monday, April 11, 2016 @ 05:06:50
Author: fyan
Revision: 170303
upgpkg: mitmproxy 0.17-1
Modified:
mitmproxy/trunk/PKGBUILD
----------+
PKGBUILD | 48 +++++++++++++++++++++++++++++-------------------
1 file changed, 29 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-11 03:05:13 UTC (rev 170302)
+++ PKGBUILD 2016-04-11 03:06:50 UTC (rev 170303)
@@ -4,40 +4,50 @@
# Contributor: Olivier Biesmans <olivier at biesmans dot fr>
pkgname=mitmproxy
-pkgver=0.16
-pkgrel=4
+pkgver=0.17
+pkgrel=1
pkgdesc="SSL-capable man-in-the-middle HTTP proxy"
arch=('any')
url="http://mitmproxy.org/"
license=('GPL')
-depends=('python2-netlib' 'python2-h2' 'python2-tornado' 'python2-configargparse'
- 'python2-pyperclip' 'python2-blinker' 'python2-pyparsing' 'python2-html2text'
- 'python2-construct' 'python2-six' 'python2-pillow' 'python2-watchdog'
- 'python2-click' 'python2-urwid' 'python2-lxml' 'python2-setuptools')
-optdepends=('python2-pyamf: Contentviews - Decodes AMF files'
+depends=('python2-blinker' 'python2-click' 'python2-configargparse' 'python2-construct'
+ 'python2-cryptography' 'python2-flask' 'python2-h2' 'python2-hpack'
+ 'python2-html2text' 'python2-hyperframe' 'python2-lxml' 'python2-pillow'
+ 'python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 'python2-pyparsing'
+ 'python2-pyperclip' 'python2-requests' 'python2-six' 'python2-tornado'
+ 'python2-urwid' 'python2-watchdog' 'python2-enum34' 'python2-ipaddress')
+optdepends=('python2-cssutils: Contentviews - Beautifies CSS files'
'python2-protobuf: Contentviews - Extended content decoding'
- 'python2-cssutils: Contentviews - Beautifies CSS files')
+ 'python2-pyamf: Contentviews - Decodes AMF files')
makedepends=('git')
-checkdepends=('python2-pytest-runner' 'pathod' 'python2-mock')
-provides=('python2-libmproxy')
+checkdepends=('python2-beautifulsoup4' 'python2-harparser' 'python2-mock'
+ 'python2-pytest-runner' 'python2-pytest-timeout')
+provides=('python2-libmproxy' 'python2-netlib' 'pathod')
+conflicts=('python2-libmproxy' 'python2-netlib' 'pathod')
+replaces=('python2-libmproxy' 'python2-netlib' 'pathod')
source=("git+https://github.com/mitmproxy/mitmproxy.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
- # Let's remove all the upper bounds
- sed -e 's/, <[0-9=.]*//' \
- -e '/netlib/s/.*/"netlib>={}".format(version.MINORVERSION),/' \
- -i mitmproxy/setup.py
+ cd mitmproxy
+
+ # Let's remove all the upper bounds, use system certificate store and ssl.match_hostname
+ sed -e '/certifi/d' \
+ -e '/backports.ssl_match_hostname/d' \
+ -e 's/, <[0-9=.]*//' \
+ -i setup.py
+ sed -e '/import certifi/d' \
+ -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
+ -e 's/from backports import ssl_match_hostname/import ssl as ssl_match_hostname/' \
+ -i netlib/tcp.py
}
check() {
- cd "$srcdir/$pkgname"
- # http2 tests currently fail
- # https://github.com/mitmproxy/mitmproxy/issues/936
- python2 setup.py ptr || warning "Tests failed"
+ cd mitmproxy
+ python2 setup.py ptr
}
package() {
- cd "$srcdir/$pkgname"
+ cd mitmproxy
python2 setup.py install --root="$pkgdir" -O1
}
More information about the arch-commits
mailing list