mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-03 04:00:54 +02:00
pwntools-4.3.0.ebuild
This commit is contained in:
parent
a2b2e98814
commit
2a6ebb65ab
5 changed files with 46 additions and 58 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST pwntools-4.1.0.tar.gz 3994416 BLAKE2B 2ebb14383a0777002c8d6c1874a25f40fed3fbe81820ee49e9a7730573f42e5a02c2b18e602cc7c7de93744bf9247a880797b995b2bf3def395953d2887cb46d SHA512 48a78376aa3d669bcb5a310cae572e714fee8da69bb043685fe3c822386c3677aa4323b25e582460784e19e26d452c46e3bdd87c25bacb01eba3267291107d54
|
||||
DIST pwntools-4.1.1.tar.gz 3993262 BLAKE2B e30782b4872c42113e3307dfd493364322681c7cfdc9ba1345207598420a25fdb00be5448e4adfc648798c712b0721b060c0d6fdffa991061d43d5024a81dc1b SHA512 9d73107fcdb8762b279c454067f9a7520851b7e421e19e460e21af7259a2980177a4adfc46fe2cd71f52bfeb09ecb0d077347b5be58c8cbb98b4a36a1971f795
|
||||
DIST pwntools-4.2.1.tar.gz 4014338 BLAKE2B 03859b6cf470698160c14b812cffc47ae4b5256c2c2f8082ffd60d4b91de6c83473063d6daa0ff512a4165faec15e28d2252ec64a459e9e164ad7c4a875189e2 SHA512 f440b491d5ccf36033119a44d27cf06ed567c1e42d1ee8ad548709c6dab5fe31fbf21f0cbd9f54c9b415e2f15d3406cd2019dd61ab49c21df1e571ff9195c66b
|
||||
DIST pwntools-4.3.0.tar.gz 4025386 BLAKE2B 512793b32a8f0f8e43c48f32b38d82727854283dcf99719320b0e74282d373ae769002dacc85196ac1a56ec2432c032265963933198e94673af00b928dfe265f SHA512 aee5e4902a3fc94e29b0f6b5a6a63e87d6ed588e7fe3c8b3ce1dd1532fadf12b7bad6f22b4de3dd9fbe6f987caad97c78bbaf4654518427573a9cdb2aee11281
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="CTF framework and exploit development library"
|
||||
HOMEPAGE="https://github.com/Gallopsled/pwntools"
|
||||
SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
#Most is under an MIT license, but a few pieces are under GPL or a BSD 2-clause licence
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
app-exploits/ROPgadget[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
|
||||
dev-python/sortedcontainers[${PYTHON_USEDEP}]
|
||||
dev-util/unicorn[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch"
|
||||
"${FILESDIR}/${PN}-4.1.0_update_deps.patch"
|
||||
)
|
||||
|
|
@ -14,10 +14,11 @@ SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV}.tar.gz -> ${P}.tar
|
|||
#Most is under an MIT license, but a few pieces are under GPL or a BSD 2-clause licence
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
#wait for capstone (ROPgadget dep) to become stable
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
>=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
|
|
@ -31,7 +32,9 @@ RDEPEND="${PYTHON_DEPS}
|
|||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
|
||||
dev-python/sortedcontainers[${PYTHON_USEDEP}]
|
||||
dev-util/unicorn[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]"
|
||||
dev-util/unicorn[python,unicorn_targets_x86(+),${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
DIST unicorn-1.0.2_rc2.tar.gz 3746757 BLAKE2B fa5e4f998de7836c4ed2bb704f9c9a898b0baaa4e55f2734bed7797667b75050e3267bc2f85f5899265e5beecf0d400c9b5432fe973c68fe2a6974dd61db06ba SHA512 170021813c665f6489a8f158148dcc1f08bb1dbe51640b1f53c1530d44921b9761f177cd30e6fc6dac0102f60c8787cb37fb13cc0afc1085fc2d5599d1cf13c3
|
||||
DIST unicorn-1.0.2.tar.gz 3735111 BLAKE2B 0768fbeea9e8d97eb6ba956cff804e21f7b00a41fb2bc454d713fd660985d3bf38bbc86a236d94a74acc99c7c4305029fe3311e22d0195d37e66a7a10da3c954 SHA512 e459c849407ce3e42e40035953f6236f69518d0626ba5233ca4a36e0c70f50f7bac56ecfe4432a9741ac178d982192f588c6cc9795eb2a38c95a04de741fa33c
|
||||
DIST unicorn-1.0.2_rc3.tar.gz 3747400 BLAKE2B 863dbead1cb08467298082fe8845741485ed6c1549ef846d30cde6b225fcd1cd955c5b2773ff78df8271304595f9559118ce41b3f993bd9cd1e5e47abaeb8a51 SHA512 6d27fa74504fe2c3d9292b4f67634042ac87015c203dfa0085d17d0efb82c12d0084bb5bd3f96200fb0c861820d499f09fa2e9e2a27addb68e1ba3bf2c7fea37
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=7
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
inherit multilib distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture CPU emulator framework"
|
||||
|
|
@ -14,23 +15,42 @@ SRC_URI="https://github.com/unicorn-engine/unicorn/archive/${MY_PV}.tar.gz -> ${
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~mips ~sparc ~x86"
|
||||
IUSE="python static-libs"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
IUSE_UNICORN_TARGETS="x86 m68k arm aarch64 mips sparc"
|
||||
use_unicorn_targets=$(printf ' unicorn_targets_%s' ${IUSE_UNICORN_TARGETS})
|
||||
IUSE+=" ${use_unicorn_targets}"
|
||||
IUSE="python ${use_unicorn_targets} static-libs"
|
||||
|
||||
REQUIRED_USE="|| ( ${use_unicorn_targets} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="dev-libs/glib:2
|
||||
virtual/pkgconfig
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND=""
|
||||
PDEPEND="dev-libs/unicorn-bindings[python?]"
|
||||
|
||||
REQUIRED_USE="|| ( ${use_unicorn_targets} )"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
#src_prepare
|
||||
#do not compile C extensions
|
||||
export LIBUNICORN_PATH=1
|
||||
|
||||
pushd bindings/python >/dev/null || die
|
||||
distutils-r1_${1} "$@"
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#build from sources
|
||||
rm -r bindings/python/prebuilt || die "failed to remove prebuild"
|
||||
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
local target
|
||||
unicorn_softmmu_targets=""
|
||||
|
|
@ -44,18 +64,24 @@ src_configure(){
|
|||
#the following variable is getting recreated using UNICORN_ARCHS below
|
||||
UNICORN_TARGETS=""
|
||||
default
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS
|
||||
UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" \
|
||||
UNICORN_ARCHS="${unicorn_targets}" \
|
||||
UNICORN_ARCHS="${unicorn_targets}" \
|
||||
UNICORN_STATIC="$(use static-libs && echo yes || echo no)" \
|
||||
emake
|
||||
# echo $PWD
|
||||
# UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" UNICORN_ARCHS="${unicorn_targets}" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" ./make.sh --python=/usr/bin/python2
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" UNICORN_STATIC="$(use static-libs && echo yes || echo no)" install
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Loading…
Reference in a new issue