mobsf: remove python 3.7, due to mitmproxy

This commit is contained in:
Anton Bolshakov 2021-03-04 17:09:50 +08:00
parent d1c602c3ac
commit 0467dad87d
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 6 additions and 111 deletions

View file

@ -1,2 +1 @@
DIST http-tools-1.1.0.tar.gz 536582 BLAKE2B a479cd0eda61641ace5e8f7fa5986608ab548e6537951bf759d49e7e335a3ef23e4f05b8cbb7d5ea787d74e46d183e9d81e90256c0309a98546b4b4d7f725108 SHA512 d032f627bb14154bc0a6a1a6cbc8bca9e4c1d80972e74bf7183f2f6e554149e6606113034c2e8676f7b354f6a6b1209bde2ebf54d8e4e3d0cec6821b88d15469
DIST http-tools-2.0.0.tar.gz 538024 BLAKE2B f5f358fde80c02a7b2c8d2dd4015c25b08a03d2e85ead3c22b26f033e9054a5f6f7f63d7f74ba2d95700a7833a0542c15e24d53e0b8d3991b05f5e503af2a97d SHA512 0e0858713cbef5f87dde4172647c3cc42afd299496700c01607cec9e055746b48a54481bba96aa068b4e2807829464139ad9203165a19be3aa77d57b32d98965
DIST http-tools-2.1.0.tar.gz 540850 BLAKE2B a2d15f4150797734d9012a0cf85f9a4e68cd8dfd9a0c0f0bbc7f400d661b3bae22d83d7ef56896a8b571b7a7b2fe6e69399edcb1f66689a13c09df81ba7d8f74 SHA512 ddfc2456526c5f710a025e05bca471f88adf7aaf0af43445c896bfa0e8b40a2c67f0f10ed100785164b4212bcfecea502c06d60ef841a82a108bfbc7b0fcc37e

View file

@ -1,25 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="Capture, repeat and live intercept HTTP requests"
HOMEPAGE="https://github.com/MobSF/httptools"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="net-proxy/mitmproxy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
src_prepare(){
sed -i "s|mitmproxy==5.0.1|mitmproxy|g" setup.py
eapply_user
}

View file

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_COMPAT=( python3_{8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
@ -13,13 +13,14 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="test"
RDEPEND="net-proxy/mitmproxy[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare(){
sed -i "s|mitmproxy==5.0.1|mitmproxy|g" setup.py
sed -i "s|'mitmproxy.*'|'mitmproxy'|g" setup.py
eapply_user
}

View file

@ -1,2 +1 @@
DIST mobsf-3.2.6.tar.gz 157511441 BLAKE2B 31fb1e8bbb2350643f3ff3dbf2355bb41f5847f3fc6ae71b8d769562f9ca33b7ce756ff0be3159590231e20b07245ef60beea3ed1388099afafbe9b0b4c4d24f SHA512 769c392afe04958316b095da2835b62ea90f3cddb1ed9815bde6e0da2b5ae30a1b6c3208c85e443d5e9916ecf6fc03e8c7ea0729bdfa4fd905aff380266a592e
DIST mobsf-3.2.9.tar.gz 75095094 BLAKE2B 9a1fa6dac35a982dcefb5426acb3b5d61309afe92483bb1455a001774b74af9b3cf9c3e4be5d5caf364a17c0228d98be5313f22efd21f1aea4fbbec8075487ac SHA512 d40c3003936e588ee6a2edac00ee1f5df4304ec4bd98c97fe7ab9cbc1bc4a57e821905da93c2d702f89120e6ce10dc715a9ab4c8847bc53c62e1cd8735cb8cc8

View file

@ -1,79 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..8} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
MY_PN="Mobile-Security-Framework-MobSF"
DESCRIPTION="Automated, all-in-one mobile application (Android/iOS/Windows) pen-testing"
HOMEPAGE="https://github.com/MobSF/Mobile-Security-Framework-MobSF"
SRC_URI="https://github.com/MobSF/Mobile-Security-Framework-MobSF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
#Dynamic Analysis or genymotion
IUSE="genymotion pdf"
QA_FLAGS_IGNORED="usr/lib/python.*/site-packages/mobsf/DynamicAnalyzer.*
usr/lib/python.*/site-packages/mobsf/StaticAnalyzer.*"
QA_PRESTRIPPED="usr/lib/python.*/site-packages/mobsf/DynamicAnalyzer.*
usr/lib/python.*/site-packages/mobsf/StaticAnalyzer.*"
RDEPEND="
dev-python/django[${PYTHON_USEDEP}]
dev-util/androguard[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/rsa[${PYTHON_USEDEP}]
dev-python/biplist[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/colorlog[${PYTHON_USEDEP}]
dev-python/macholib[${PYTHON_USEDEP}]
dev-python/google-play-scraper[${PYTHON_USEDEP}]
dev-python/whitenoise[${PYTHON_USEDEP}]
dev-python/waitress[${PYTHON_USEDEP}]
dev-python/frida-python[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/shelljob[${PYTHON_USEDEP}]
dev-python/asn1crypto[${PYTHON_USEDEP}]
dev-python/oscrypto[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-python/IP2Location[${PYTHON_USEDEP}]
dev-util/lief[${PYTHON_USEDEP}]
>=dev-python/http-tools-2.0.0[${PYTHON_USEDEP}]
>=dev-python/libsast-1.3.7[${PYTHON_USEDEP}]
dev-python/apkid[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/yara-python[${PYTHON_USEDEP}]
pdf? ( $(python_gen_cond_dep 'dev-python/pdfkit[${PYTHON_USEDEP}]') )
www-servers/gunicorn
genymotion? ( app-emulation/genymotion-bin )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
#regular user support
sed -e 's|USE_HOME = False|USE_HOME = True|' -i ./mobsf/MobSF/settings.py || die "sed settings failed"
# sed -e 's|==|>=|' -i requirements.txt || die "sed failed"
sed -e 's|==.*||' -i requirements.txt || die "sed failed"
sed -e '/pyOpenSSL/d' -e '/cryptography/d' -e '/bs4/d' -e '/pdfkit/d' -i requirements.txt || die "sed failed"
./manage.py makemigrations
./manage.py makemigrations StaticAnalyzer
./manage.py migrate
eapply_user
}

View file

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_COMPAT=( python3_{8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1