[arch-commits] Commit in mitmproxy/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Jun 27 18:42:25 UTC 2022
Date: Monday, June 27, 2022 @ 18:42:24
Author: felixonmars
Revision: 1239726
upgpkg: mitmproxy 8.1.0-2: remove certifi hack
Modified:
mitmproxy/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-27 18:39:11 UTC (rev 1239725)
+++ PKGBUILD 2022-06-27 18:42:24 UTC (rev 1239726)
@@ -6,12 +6,12 @@
pkgname=mitmproxy
pkgver=8.1.0
-pkgrel=1
+pkgrel=2
pkgdesc='SSL-capable man-in-the-middle HTTP proxy'
arch=('any')
url='https://mitmproxy.org'
license=('MIT')
-depends=('python-asgiref' 'python-blinker' 'python-brotli' 'python-cryptography'
+depends=('python-asgiref' 'python-blinker' 'python-brotli' 'python-certifi' 'python-cryptography'
'python-flask' 'python-h11' 'python-h2' 'python-hyperframe' 'python-kaitaistruct'
'python-ldap3' 'python-msgpack' 'python-passlib' 'python-protobuf' 'python-pyopenssl'
'python-pyparsing' 'python-pyperclip' 'python-ruamel-yaml' 'python-setuptools'
@@ -28,15 +28,9 @@
prepare() {
cd $pkgname-$pkgver
- # Let's remove all the upper bounds and use system ca-certificatescate store
- # We have an old protobuf, but this should not be an issue
- sed -e '/certifi/d' \
- -e 's/, *<[0-9=.]*//' \
- -e 's/protobuf>=3.14/protobuf>=3/' \
+ # Let's remove all the upper bounds
+ sed -e 's/, *<[0-9=.]*//' \
-i setup.py
- sed -e '/import certifi/d' \
- -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \
- -i mitmproxy/net/tls.py
}
build() {
@@ -53,5 +47,5 @@
cd $pkgname-$pkgver
python setup.py install --root="$pkgdir" -O1
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list