mobsf-3.4.0.ebuild

This commit is contained in:
Anton Bolshakov 2021-03-29 09:39:04 +08:00
parent 247c20146f
commit 8de94c38eb
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 3 additions and 84 deletions

View file

@ -1,3 +1,2 @@
DIST mobsf-3.2.9.tar.gz 75095094 BLAKE2B 9a1fa6dac35a982dcefb5426acb3b5d61309afe92483bb1455a001774b74af9b3cf9c3e4be5d5caf364a17c0228d98be5313f22efd21f1aea4fbbec8075487ac SHA512 d40c3003936e588ee6a2edac00ee1f5df4304ec4bd98c97fe7ab9cbc1bc4a57e821905da93c2d702f89120e6ce10dc715a9ab4c8847bc53c62e1cd8735cb8cc8
DIST mobsf-3.3.3.tar.gz 72501045 BLAKE2B 151b60f5bf30ff04ee308b5a8e83e063032ff27ec8b26cc39ef7509852566fcf50ac64ab937e195d8e57122c1f7ec431525e83704de824fc9faf9dfae3a3b1d4 SHA512 d5c1c19be21cebae923dcdb8822c787857dae1aa5655660f96d6aefb20d19c74e144010b7632d8a2d8650736057e66801a8a2396e9807e7fea5b5cb2a4c5028a
DIST mobsf-3.3.5.tar.gz 72540455 BLAKE2B 0145f50fb012ae8f6a0f170fe9d181f65e5cb83d3b4558253395794bb75f9e7ba4df233a1fe3764c811e44508571833b1c6812220aab0380f780ec0f7224ad09 SHA512 1d64f4ac4a0f2acfed12df7fa18293eb2552408eed90bc66a3d0a1e03f89f4a857b3b05d7025bdb9c484d922fd93d463c7196feb5b2f74c681d08f87dcec72c8
DIST mobsf-3.4.0.tar.gz 72554415 BLAKE2B 383872760674d31f816e691c32f9d776e9557cb142b785f6e0876681db19f2f57cc8f1f21bca015e4d4255417b10e5668b5087731d4e2585086a416faeef1228 SHA512 464e64401c43556f0bf58c96c4e34f5fffc88d6ace51d71edcc41b0a25b23d357b0fc7ef3332f698434577baccffd64ea001c2f2a328b36053d344dbffb8581b

View file

@ -1,80 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8,9} )
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
}

View file

@ -27,7 +27,6 @@ QA_PRESTRIPPED="usr/lib/python.*/site-packages/mobsf/DynamicAnalyzer.*
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}]
@ -38,7 +37,6 @@ RDEPEND="
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-5.8.0[${PYTHON_USEDEP}]
dev-python/shelljob[${PYTHON_USEDEP}]
dev-python/asn1crypto[${PYTHON_USEDEP}]
@ -48,7 +46,9 @@ RDEPEND="
dev-util/lief[${PYTHON_USEDEP}]
>=dev-python/http-tools-2.0.0[${PYTHON_USEDEP}]
>=dev-python/libsast-1.3.9[${PYTHON_USEDEP}]
dev-util/androguard[${PYTHON_USEDEP}]
dev-python/apkid[${PYTHON_USEDEP}]
dev-python/frida-python[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]