mobsf-3.2.9.ebuild

This commit is contained in:
blshkv 2021-01-20 19:51:27 +08:00
parent 9b81597e83
commit ef7c7d5ef6
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 82 additions and 1 deletions

View file

@ -1 +1,2 @@
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

@ -15,7 +15,7 @@ SRC_URI="https://github.com/MobSF/Mobile-Security-Framework-MobSF/archive/v${PV}
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64"
#Dynamic Analysis or genymotion
IUSE="genymotion pdf"

View file

@ -0,0 +1,80 @@
# 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 '/waitress/d' \
-e '/pyOpenSSL/d' -e '/cryptography/d' \
-e '/bs4/d' -i requirements.txt || die "sed failed"
sed -e 's|==|>=|' -i requirements.txt || die "sed failed"
./manage.py makemigrations
./manage.py makemigrations StaticAnalyzer
./manage.py migrate
eapply_user
}