fix(mitmproxy): Add build-base for zstandard compilation
zstandard requires gcc to compile. Added build-base and dev packages for compilation, then remove them after pip install to save space. Bump release to r4. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8b784ea99e
commit
84a6a01fc8
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=secubox-app-mitmproxy
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=0.4.0
|
||||
PKG_ARCH:=all
|
||||
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
|
||||
|
||||
@ -305,8 +305,6 @@ set -e
|
||||
sed -i 's|#\(.*community\)|\1|' /etc/apk/repositories
|
||||
|
||||
# Update and install Python dependencies
|
||||
# Note: mitmproxy 10.2+ requires Rust 1.80+ but Alpine 3.19 only has 1.76
|
||||
# Using mitmproxy 10.1.6 which is the last pure-Python version
|
||||
apk update
|
||||
apk add --no-cache \
|
||||
python3 \
|
||||
@ -323,12 +321,19 @@ apk add --no-cache \
|
||||
py3-sortedcontainers \
|
||||
libffi \
|
||||
openssl \
|
||||
ca-certificates
|
||||
ca-certificates \
|
||||
build-base \
|
||||
python3-dev \
|
||||
libffi-dev \
|
||||
openssl-dev
|
||||
|
||||
# Install mitmproxy 8.1.1 (last pure-Python version without any Rust dependencies)
|
||||
# 9.x requires mitmproxy-wireguard (Rust), 10.x requires mitmproxy_rs (Rust)
|
||||
pip3 install --break-system-packages 'mitmproxy==8.1.1'
|
||||
|
||||
# Clean up build dependencies to save space
|
||||
apk del build-base python3-dev libffi-dev openssl-dev
|
||||
|
||||
# Create directories
|
||||
mkdir -p /data /var/log/mitmproxy /etc/mitmproxy/addons
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user