frida-python-16.0.4.ebuild

This commit is contained in:
Anton Bolshakov 2022-11-27 15:45:58 +08:00
parent a81fe36ad6
commit 58c7ca3fb6
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
15 changed files with 209 additions and 59 deletions

View file

@ -0,0 +1 @@
DIST frida-core-devkit-16.0.4-linux-x86_64.tar.xz 37702436 BLAKE2B b8b0da872094e04fe48927a083110225e4e8287499ff128fbea49b4dc187b6ae4b781337aeaca9412b7eea4389f32bbb00512f03549de430e67055a7d3d63b65 SHA512 9200396ea1881822c46b14bdfd43d93b0ec2b339d616fce3ac887e0aca1edbc5477438edf7d094e7ef6f8d64b684803c433f1edb2db52c659c1447e93a830aa2

View file

@ -0,0 +1,37 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers"
HOMEPAGE="https://github.com/frida/frida"
SRC_URI="
amd64? (
https://github.com/frida/frida/releases/download/${PV}/${PN}-devkit-${PV}-linux-x86_64.tar.xz
)"
# x86? (
# https://files.pythonhosted.org/packages/3.8/f/frida/frida-${PV}-py3.8-linux-i686.egg
# )
# arm64? (
# https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-aarch64.egg
# )"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND=""
DEPEND=""
S="${WORKDIR}"
QA_FLAGS_IGNORED="usr/lib64/libfrida-core.a"
QA_PRESTRIPPED="usr/lib64/libfrida-core.a"
src_install() {
doheader frida-core.h
dolib.a libfrida-core.a
# /usr/share? frida-core.gir
# frida-core-example.c
}

View file

@ -0,0 +1,8 @@
DIST frida-15.2.0-py3.6-linux-aarch64.egg 13510575 BLAKE2B 3517595fbdd125c87e7b2725bbf529d45f3723b17edf4c93e197bd20f555918a921a44a165f79c911101ce69528faf9c6ccccfff3a96713dc7f1060371252fa1 SHA512 0150682c8f8ebc0befdceebe0234d7c7d0bd4e46c96c979c97a0762145198ed55094257dd24637f2230b5192cdc144fe987649a2cdd84b00b34cc7eeb70ad5e3
DIST frida-15.2.0-py3.8-linux-i686.egg 13935632 BLAKE2B 652265b46f73e5947b084ac1be80acd132f3aa1582c1caee6784b8576d6cd8e187f79b6d7730cd49be0552935389adb148455776c8e3b843f6d28db43517815e SHA512 5884a0230cdde61203df5c52f532de567fac749b05cc00693c8820a25e93b308ec0b0781b61afa5da1bfcce2fd48209e54639e8f7731942dcabcff6110bb2f46
DIST frida-15.2.0-py3.8-linux-x86_64.egg 24237596 BLAKE2B 0fb9e2102820e1b1195714a56a8f48644d92041e7dadbc8fa9e21ef816fb15dcd4fd7cd09fb787bf1200f9aa652c1887204ca23d078d9c6a010d3a3682765423 SHA512 f306de416e963ece6654a121538fff25b6ba18a0fdcdea0706e77fe51c23706a45c039bf73597fe4fc067de20118119ffce2ac1846634b1714bc47344048c7d3
DIST frida-15.2.0.tar.gz 11674 BLAKE2B 2c8ea52e6485bf12c2f37188bd6df29b923ee214fba82be557144b6917e1cf6f95d9aa2f087adb58995141a7f676076181a56fac843c124b5b133ebfe2dbb757 SHA512 9ebdd1cf0484720372f4f1f899a2fbc2696a3816c292c20c98584de1c398bfadb83d4d0e862c723f14fc900fbed028eb8523a7fd80d299197910423db17230c6
DIST frida-15.2.2-py3.6-linux-aarch64.egg 13510637 BLAKE2B b862a13c2a6e732b242a01d96cdd8288bd6482a943710079ff8483f589e4f67314f32ca09c9e253875affbd5d5a614cc467c1e44df17349699b5192425f13a61 SHA512 c1228b9bff8ef4a6c70d48982fd0dba9ad4e9b1738abe129ade1523b3ba7bb12a3271dcd47d27456e0e12c882996d380a2bc815bdfde7c2f5a8ec648064a717d
DIST frida-15.2.2-py3.8-linux-i686.egg 13935640 BLAKE2B 1bc255532008b107aef0f2413aa3f5b5a915e8d7fb1f73bc5381519f5864ff04508eefd06964e04fc22fa8432ae40cf7634c4c5eb2a3c06eb13471949d7149aa SHA512 d0c18a58ef51e67b5ac8d9a4f7e60971a4ae7940bcfbadd656541bdcdbf0d832fcc2768eee80ec1d05c261e46c603e9d6b6e30029ba1878ccac2e3df036fa9a4
DIST frida-15.2.2-py3.8-linux-x86_64.egg 24237639 BLAKE2B 5c8e45c6bdf80a48fc2c652dd725eadfedfed92dec9a7f3edfa090f8c56deba7dff246f9f180a97e5a2453ee2c38fac6e3448b442435d74e8de0c2f8cb80eb5a SHA512 b3e9f7a66589fc9f217ab728c840bf4d236639a0a9cea650b6c529810a4b1b7ff9d9de0fe21c8a37c63fa9c25b546d8383bfcb72642c0f884ffce894f7096e00
DIST frida-15.2.2.tar.gz 11656 BLAKE2B 2175df869ca741b19b42792a27dedd3422e20ae45f75d3b6b2c380b0b7fdf898e7141039eb9f74a66cdff34123e7624d1534f6e1612a66e94bd6816fbdb4348e SHA512 9abf88124e75d184be30be0647ea1b500b2fede01cc54cd6a64d4fb6eab44a5ede2d8cb0fc6de91a1c5d3f31316a38a9e9a89bfe8472937bf85f24801f805cde

View file

@ -0,0 +1,42 @@
--- a/setup.py.orig 2018-08-25 20:18:30.000000000 +0800
+++ b/setup.py 2018-09-15 10:45:39.666991896 +0800
@@ -79,38 +79,7 @@
network_error = None
- try:
- print("querying pypi for available prebuilds")
- client = xmlrpclib.ServerProxy("https://pypi.python.org/pypi", transport=UrllibTransport())
- urls = client.release_urls("frida", frida_version)
-
- urls = [url for url in urls if url['python_version'] != 'source']
-
- def parse_version(version):
- return tuple(map(int, version.split(".")))
-
- if python_major_version >= 3:
- urls = [url for url in urls if parse_version(url['python_version'])[0] == python_major_version]
- else:
- urls = [url for url in urls if parse_version(url['python_version']) == python_version]
-
- os_suffix = "-{}.egg".format(os_version)
- urls = [url for url in urls if url['filename'].endswith(os_suffix)]
-
- if len(urls) == 0:
- raise Exception("Could not find prebuilt Frida extension. "
- "Prebuilds only provided for Python 2.7 and 3.4+.")
-
- url = urls[0]
- egg_filename = url['filename']
- egg_url = url['url']
-
- print("downloading prebuilt extension from", egg_url)
- egg_data = urlopen(egg_url).read()
- except Exception as e:
- network_error = e
-
- if network_error is not None:
+ if network_error is None:
print("network query failed")
egg_path = os.path.expanduser("~/frida-{}-py{}.{}-{}.egg".format(frida_version, python_version[0], python_version[1], os_version))

View file

@ -0,0 +1,56 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
MY_PN="frida"
DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers"
HOMEPAGE="https://github.com/frida/frida"
# copy link from: https://pypi.org/pypi/frida/json
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
amd64? (
https://files.pythonhosted.org/packages/3.8/f/frida/frida-${PV}-py3.8-linux-x86_64.egg
)
x86? (
https://files.pythonhosted.org/packages/3.8/f/frida/frida-${PV}-py3.8-linux-i686.egg
)
arm64? (
https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-aarch64.egg
)"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND=""
DEPEND="${PYTHON_DEPS}"
S="${WORKDIR}/${MY_PN}-${PV}"
QA_FLAGS_IGNORED="usr/lib/python.*/site-packages/_frida.*\.so"
QA_PRESTRIPPED="usr/lib/python.*/site-packages/_frida.*\.so"
src_prepare(){
#copy symlinks to homedir for offline installation
if use amd64; then
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-x86_64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-x86_64.egg "${HOME}"/frida-${PV}-py3.9-linux-x86_64.egg
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-x86_64.egg "${HOME}"/frida-${PV}-py3.10-linux-x86_64.egg
elif use arm64; then
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-aarch64.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.9-linux-aarch64.egg
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.10-linux-aarch64.egg
elif use x86; then
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-i686.egg "${HOME}"
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-i686.egg "${HOME}"/frida-${PV}-py3.9-linux-i686.egg
cp -s "${DISTDIR}"/frida-${PV}-py3.8-linux-i686.egg "${HOME}"/frida-${PV}-py3.10-linux-i686.egg
fi
default
}

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>blshkv@pentoo.org</email>
</maintainer>
<upstream>
<remote-id type="github">frida/frida</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,8 +1 @@
DIST frida-15.2.0-py3.6-linux-aarch64.egg 13510575 BLAKE2B 3517595fbdd125c87e7b2725bbf529d45f3723b17edf4c93e197bd20f555918a921a44a165f79c911101ce69528faf9c6ccccfff3a96713dc7f1060371252fa1 SHA512 0150682c8f8ebc0befdceebe0234d7c7d0bd4e46c96c979c97a0762145198ed55094257dd24637f2230b5192cdc144fe987649a2cdd84b00b34cc7eeb70ad5e3
DIST frida-15.2.0-py3.8-linux-i686.egg 13935632 BLAKE2B 652265b46f73e5947b084ac1be80acd132f3aa1582c1caee6784b8576d6cd8e187f79b6d7730cd49be0552935389adb148455776c8e3b843f6d28db43517815e SHA512 5884a0230cdde61203df5c52f532de567fac749b05cc00693c8820a25e93b308ec0b0781b61afa5da1bfcce2fd48209e54639e8f7731942dcabcff6110bb2f46
DIST frida-15.2.0-py3.8-linux-x86_64.egg 24237596 BLAKE2B 0fb9e2102820e1b1195714a56a8f48644d92041e7dadbc8fa9e21ef816fb15dcd4fd7cd09fb787bf1200f9aa652c1887204ca23d078d9c6a010d3a3682765423 SHA512 f306de416e963ece6654a121538fff25b6ba18a0fdcdea0706e77fe51c23706a45c039bf73597fe4fc067de20118119ffce2ac1846634b1714bc47344048c7d3
DIST frida-15.2.0.tar.gz 11674 BLAKE2B 2c8ea52e6485bf12c2f37188bd6df29b923ee214fba82be557144b6917e1cf6f95d9aa2f087adb58995141a7f676076181a56fac843c124b5b133ebfe2dbb757 SHA512 9ebdd1cf0484720372f4f1f899a2fbc2696a3816c292c20c98584de1c398bfadb83d4d0e862c723f14fc900fbed028eb8523a7fd80d299197910423db17230c6
DIST frida-15.2.2-py3.6-linux-aarch64.egg 13510637 BLAKE2B b862a13c2a6e732b242a01d96cdd8288bd6482a943710079ff8483f589e4f67314f32ca09c9e253875affbd5d5a614cc467c1e44df17349699b5192425f13a61 SHA512 c1228b9bff8ef4a6c70d48982fd0dba9ad4e9b1738abe129ade1523b3ba7bb12a3271dcd47d27456e0e12c882996d380a2bc815bdfde7c2f5a8ec648064a717d
DIST frida-15.2.2-py3.8-linux-i686.egg 13935640 BLAKE2B 1bc255532008b107aef0f2413aa3f5b5a915e8d7fb1f73bc5381519f5864ff04508eefd06964e04fc22fa8432ae40cf7634c4c5eb2a3c06eb13471949d7149aa SHA512 d0c18a58ef51e67b5ac8d9a4f7e60971a4ae7940bcfbadd656541bdcdbf0d832fcc2768eee80ec1d05c261e46c603e9d6b6e30029ba1878ccac2e3df036fa9a4
DIST frida-15.2.2-py3.8-linux-x86_64.egg 24237639 BLAKE2B 5c8e45c6bdf80a48fc2c652dd725eadfedfed92dec9a7f3edfa090f8c56deba7dff246f9f180a97e5a2453ee2c38fac6e3448b442435d74e8de0c2f8cb80eb5a SHA512 b3e9f7a66589fc9f217ab728c840bf4d236639a0a9cea650b6c529810a4b1b7ff9d9de0fe21c8a37c63fa9c25b546d8383bfcb72642c0f884ffce894f7096e00
DIST frida-15.2.2.tar.gz 11656 BLAKE2B 2175df869ca741b19b42792a27dedd3422e20ae45f75d3b6b2c380b0b7fdf898e7141039eb9f74a66cdff34123e7624d1534f6e1612a66e94bd6816fbdb4348e SHA512 9abf88124e75d184be30be0647ea1b500b2fede01cc54cd6a64d4fb6eab44a5ede2d8cb0fc6de91a1c5d3f31316a38a9e9a89bfe8472937bf85f24801f805cde
DIST frida-16.0.4.tar.gz 38342 BLAKE2B e338c1a3ef52a6182287ca809c8ef33fcdeec5a9cea32d95736c601025e0b04201cbf6b2b1cd3fef5a8fa585fb7abe787d55d35943340ce1391c63ec45b8be73 SHA512 e7ebb883ebe1450be72c661f2edfcdb6c362ae8a989f7dbca45c00a509ec7812e25319c1e4196d6dc404b8063bbafcb9387d2dd69844cc3622f546f571e119b1

View file

@ -0,0 +1,51 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
MY_PN="frida"
DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers"
HOMEPAGE="https://github.com/frida/frida"
# copy link from: https://pypi.org/pypi/frida/json
SRC_URI="https://files.pythonhosted.org/packages/24/d0/b2c9bf9726a91a951d3f8acc71584444eff0e3eb39f1bc03c7b332eb5702/frida-16.0.4.tar.gz"
#mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz
# amd64? (
# https://files.pythonhosted.org/packages/3.8/f/frida/frida-${PV}-py3.8-linux-x86_64.egg
# )
# x86? (
# https://files.pythonhosted.org/packages/3.8/f/frida/frida-${PV}-py3.8-linux-i686.egg
# )
# arm64? (
# https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-aarch64.egg
# )"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND="dev-libs/frida-core"
DEPEND="${PYTHON_DEPS}"
S="${WORKDIR}/${MY_PN}-${PV}"
python_compile() {
export FRIDA_CORE_DEVKIT="/usr/lib64/"
distutils-r1_python_compile
}
#python_compile() {
# export TORCH_CUDA_ARCH_LIST="compute capability"
# breaks with parallel build
# need to avoid dropping .so plugins into
# build-lib, which breaks tests
# esetup.py build_ext --inplace
# --cpp_ext --cuda_ext build_ext --inplace -j1
# TORCH_CUDA_ARCH_LIST="compute capability" distutils-r1_python_compile -j1
# distutils-r1_python_compile -j1
#}

View file

@ -1,4 +1,2 @@
DIST frida-tools-10.5.4.tar.gz 44988 BLAKE2B 537dbb49ac10dda625cadfffdb103d312c19bd0294a665b461c05fb7f2841a889a53f0fbabd5fa2bd92be46515ba987c1f7fff0f967ebdc29f39420848044906 SHA512 9880dba6f2d4d5d7db820f308240e6a9e3c6065347f03c7b1bd0754f4d7acdcbe29737b04a2039273aee045b45161dc299395ee7f12536ffbec3a59cbfe7ce40
DIST frida-tools-10.6.0.tar.gz 47699 BLAKE2B 83e175e2d752f8cdb455c50199674ef5dc7a48922e087a662d6514972183ee9337e2708aa6e6a7b9f372077529a6827c3bf58bb6dc65e8dd12a03358f5d54c63 SHA512 f51bf8e136280f0a2f66d74771ec68850cf57a414e29b5726db10f818c1d01ac23bde6bcc9ac323c764cd711c9152b39935ae093571795e7653eef712e30707a
DIST frida-tools-10.6.2.tar.gz 47810 BLAKE2B 85e8f9e7c341079e8315607cfd43e95a263e0b1a9179e20165fa93d45e11cb576cb0fb6e4a62a72fba41e5b3d07bf8d5dbbd6faee42aa87e64f23a52c763786e SHA512 cfa92d1066d89c0fc48d1bdd2c8423e7c38db89e3309d9f4e33d6fa666a388f4cd108c364435346d4c5dd7639f586c75979be87e52d94c9618477a3642d7a0c8
DIST frida-tools-11.0.0.tar.gz 174662 BLAKE2B d27eb1f7ea2b10841ca7d12e5107790c5e3dbbdc2d79e85b348313e50de15e6b8fcaa2a933ad26f8fb2a1910da687ef5b5e0e2bf4a154839633e97173f43fdce SHA512 31ed33ea0a652f9f7c0055c1770663bbace60ef9e15446ddc71719878fee78b1907b63b7ca12527972a41f2021d770c77a4cc52ee8ed88c4c53a089f15298527
DIST frida-tools-12.0.2.tar.gz 177556 BLAKE2B 48d73824ea3f261ccc7311ca04a1081487338d66a8832c705cf8fdce964532c6c93c9770abf7fbfa7da153a5b9e410f6929a1d2a03ada90c1313e50bd7a1eed1 SHA512 6698a1d74ce14b761e76b6915e8deb54b14c182e329f11ebaa5401f01dfb097d5bba89aba72cc21fc6c6726ab23307d8645f817aec40d6ed7c4b0c30188540f8

View file

@ -1,23 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Frida CLI tools"
HOMEPAGE="https://github.com/frida/frida-tools"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${PV}.tar.gz"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
>=dev-python/colorama-0.2.7[${PYTHON_USEDEP}]
>=dev-python/frida-python-15.0.0[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0
>=dev-python/pygments-2.0.2[${PYTHON_USEDEP}]"

View file

@ -18,6 +18,6 @@ KEYWORDS="amd64 ~arm64 x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
>=dev-python/colorama-0.2.7[${PYTHON_USEDEP}]
>=dev-python/frida-python-15.0.0[${PYTHON_USEDEP}]
>=dev-python/frida-python[${PYTHON_USEDEP}] <dev-python/frida-python-16.0.0
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0
>=dev-python/pygments-2.0.2[${PYTHON_USEDEP}]"

View file

@ -1,23 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Frida CLI tools"
HOMEPAGE="https://github.com/frida/frida-tools"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${PV}.tar.gz"
LICENSE="wxWinLL-3.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
>=dev-python/colorama-0.2.7[${PYTHON_USEDEP}]
>=dev-python/frida-python-15.2.0[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0
>=dev-python/pygments-2.0.2[${PYTHON_USEDEP}]"

View file

@ -18,6 +18,6 @@ KEYWORDS="amd64 ~arm64 x86"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
>=dev-python/colorama-0.2.7[${PYTHON_USEDEP}]
>=dev-python/frida-python-15.0.0[${PYTHON_USEDEP}]
>=dev-python/frida-python-16.0.0[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] <dev-python/prompt_toolkit-4.0.0
>=dev-python/pygments-2.0.2[${PYTHON_USEDEP}]"