objection-1.9.5.ebuild

This commit is contained in:
blshkv 2020-06-30 08:32:28 +08:00
parent f22bfe03fc
commit bd3c74c3d9
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 56 additions and 0 deletions

View file

@ -1,2 +1,4 @@
DIST objection-1.9.0-node_modules.tar.gz 16787156 BLAKE2B bbbb0f21c31d7473a793c6605b5fb24ab4cb4f2b6742befd9daaa731d6fb13b3d3f1fd11441979c49a853bfef79db0c0c91f06b71419717cbc7edc6a43578934 SHA512 11d4f84bc8747cf6c8084db2152e841e43ac3db24e3c9bcd9f952d78e38290c5c7a31d2f7d937abb06c8a3c25b06fc875cf3d9eb499b8fc86e446295f341479a
DIST objection-1.9.4.tar.gz 1675266 BLAKE2B f416b4fec1e000c9bc69970feabe5f3d1fc00465bc7b84acffd3c8ebfa89b5f8d73f824bb95ab5a2b359dde9770616c57d67d45889a74f745060d9d0ebf2c2a1 SHA512 20c0dc7d3499b3cb85da9eff5747559d0c5d74aa01a478a3ab2595764548a24bcc0ff386b00bcc4e24138de215358e4eeafd925f4cd578c585631110ff9ef5d2
DIST objection-1.9.5-node_modules.tar.gz 17429880 BLAKE2B 33496aefdfb8583fb8310bb97fd19fcf454ba49a13b5c3abd09c367c777331ff3efa45e208c9c9320e800ef943c557f77f000bc302b15feceeef61b0e15fe3ec SHA512 1a220de76e158bd33a97c148735d92be4e60878e8fec0990656c3176c00a5097dbeb0782893bb8484e3372f58074b230324bd82494f8ce2a314dcc255e625348
DIST objection-1.9.5.tar.gz 1675847 BLAKE2B b22401e58bcd8beb84f2522ea32db2f814afb6cab4ffd90fa26e647e6a8b6d22d1028b8e371eb9b9d4b576b388594b33f041c93832e610709ce9b72ec5c155a1 SHA512 d053841d89d717aefaea27fe5c9277defa99a913f8c0152283f98dc6ba29202f498cde668a9cea5dc2a949f0cd6dd364e0887700526129f2d725d5be752432a4

View file

@ -0,0 +1,54 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Runtime mobile exploration"
HOMEPAGE="https://github.com/sensepost/objection"
#to re-generate node_modules run "npm build agent/" in WORKDIR
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz
https://dev.pentoo.ch/~blshkv/distfiles/objection-1.9.5-node_modules.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="patchapk"
RDEPEND=">=dev-util/frida-tools-7.0.0[${PYTHON_USEDEP}]
dev-python/frida-python[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/tabulate[${PYTHON_USEDEP}]
dev-python/delegator[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
>=dev-python/litecli-1.3.0[${PYTHON_USEDEP}]
net-libs/nodejs[npm]
patchapk? (
dev-util/android-tools
virtual/jdk:*
dev-util/apktool
)"
#https://github.com/sensepost/objection/wiki/Patching-Android-Applications#patching---dependencies
#FIXME patchapk: missing aapt
#patchipa
#https://github.com/sensepost/objection/wiki/Patching-iOS-Applications#patching---dependencies
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare() {
rm -r tests
mv "${WORKDIR}/node_modules" "${S}/agent/" || die "unable to move node_modules"
eapply_user
}
python_compile() {
addpredict /etc/npm
emake frida-agent
distutils-r1_python_compile
}