objection: compile agent.js properly

This commit is contained in:
blshkv 2019-06-29 08:46:27 +08:00
parent e9bc9d0271
commit 92903b552e
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 7 additions and 42 deletions

View file

@ -1,2 +1,2 @@
DIST objection-1.6.5.tar.gz 1656281 BLAKE2B e60ac5868c7ade3011c4f1479c6f96e62731f9fa62189a5c83a59fc1af5cd14fb4924da28ed68e629ddd704e8db97d7aa2bae0dac1b4f71af070eb016bad9c17 SHA512 222d4f5ca52ac4164a7c8b0a40cde6703805b15e79f7e5bacbe14c8d8b3e93b4a1a5d6be45cb7ef000fd3e5c3b649d94091d8b554d1d2acde92e3d222a7d4db0
DIST objection-1.6.6-node_modules.tar.gz 15204916 BLAKE2B 103642e3103aeb93d8a4af03d02d6f2f9ca66c9e5dfc99390b9b58032546ed885a2e93f2019caba39f08e50c35ee7c13a461a4ed83340c86c51614ffec1ba038 SHA512 65e6626f11ded5aea6e5cbdc2739f4ac5460ef94942d6fc99db9f18793885540dc75ca757a3287a781b5279f68be1abd70379e284c84cf48557852da5c6c7c5e
DIST objection-1.6.6.tar.gz 1655643 BLAKE2B 1235a430a53699f2a93a90cd316bc87079a00b5c20a31f701f62b650ff2566ca0aa9e28561d79da12b75c6eec9d6e5b8198e0673b9b9f37e16d5079ac827ee9f SHA512 60a4a3412e6406014f9c3909c67af11749a692ad0365241833f332035834cfa32df79d58cda67ba92d0fc16298b035f60e14f766ba51dd258663c4c29cdf1b45

View file

@ -1,34 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
DESCRIPTION="Runtime mobile exploration"
HOMEPAGE="https://github.com/sensepost/objection"
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-util/frida-tools[${PYTHON_USEDEP}]
dev-python/frida-python[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-2.0.8[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-3.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}]
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare(){
rm -r tests
eapply_user
}

View file

@ -8,7 +8,8 @@ inherit distutils-r1
DESCRIPTION="Runtime mobile exploration"
HOMEPAGE="https://github.com/sensepost/objection"
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz
https://dev.pentoo.ch/~blshkv/distfiles/objection-1.6.6-node_modules.tar.gz"
LICENSE="GPL-3"
SLOT="0"
@ -23,22 +24,20 @@ RDEPEND="dev-util/frida-tools[${PYTHON_USEDEP}]
dev-python/delegator[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
"
net-libs/nodejs[npm]"
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() {
einfo "FIXME: the agent must be compiled offline"
emake frida-agent
# cd agent
# npm install || die "npm install failed"
# npm run build || die "npm build failed"
# cd ..
# distutils-r1_python_compile
distutils-r1_python_compile
}