mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
Move {dev-util → dev-debug}/gef
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
DIST gef-2023.08.tar.gz 230347 BLAKE2B b9b8fed1bdf81fa870583921c4bdd6df2d98112748c939da48acae7e636ec6e22dc751d8ed75e52e72ff0aa04835720293f0e82e99ff614c447f2a614c76e48a SHA512 d3a26826b991db7e8d475da945b16933ce046dd64381f5df60ea0fe310d0325f39b05142de5f75abbbd5693c93ad70ff25e982d0ff3526a6fe66fd7526a359c5
|
||||
DIST gef-2024.01.tar.gz 235145 BLAKE2B f5409e592c50dbbe65761e7727f28aa7a96b130449f187e392cc0170707b7cfb2d1bf9e75581dce7dce8ff6d004ffc624d34a46b7ba35ab434a5671662860bdb SHA512 d8dbc308f864e434ea79eaf44e329e11f2cea9836a5dcdc019bd621bbec6792f70e58edd9fd8b3c434dc61a17fbac08394e281530423081beb1cc1192aece79c
|
||||
@@ -0,0 +1,82 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
DOCS_BUILDER="mkdocs"
|
||||
DOCS_DEPEND="
|
||||
dev-python/mkdocs-material
|
||||
"
|
||||
|
||||
inherit python-single-r1 docs wrapper
|
||||
|
||||
DESCRIPTION="GDB Enhanced Features for exploit devs & reversers"
|
||||
HOMEPAGE="https://github.com/hugsy/gef"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hugsy/gef"
|
||||
else
|
||||
SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
# Seem to hang right now?
|
||||
RESTRICT="!test? ( test ) test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
|
||||
dev-util/ropper[${PYTHON_SINGLE_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
dev-libs/keystone[python,${PYTHON_USEDEP}]
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
dev-util/unicorn[python,${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e '/pylint/d' tests/requirements.txt || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tries to compile tests
|
||||
:
|
||||
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *.py
|
||||
|
||||
python_optimize "${ED}/usr/share/${PN}"
|
||||
|
||||
make_wrapper "gdb-gef" \
|
||||
"gdb -x \"/usr/share/${PN}/gef.py\"" || die
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "\nUsage:"
|
||||
einfo " ~$ gdb-gef <program>\n"
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
DOCS_BUILDER="mkdocs"
|
||||
DOCS_DEPEND="
|
||||
dev-python/mkdocs-material
|
||||
"
|
||||
|
||||
inherit python-single-r1 docs wrapper
|
||||
|
||||
DESCRIPTION="GDB Enhanced Features for exploit devs & reversers"
|
||||
HOMEPAGE="https://github.com/hugsy/gef"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hugsy/gef"
|
||||
else
|
||||
SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
# Seem to hang right now?
|
||||
RESTRICT="!test? ( test ) test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-util/ropper[${PYTHON_SINGLE_USEDEP}]
|
||||
dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
dev-libs/keystone[python,${PYTHON_USEDEP}]
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
dev-python/rpyc[${PYTHON_USEDEP}]
|
||||
dev-util/unicorn[python,${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e '/pylint/d' tests/requirements.txt || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tries to compile tests
|
||||
:
|
||||
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *.py
|
||||
|
||||
python_optimize "${ED}/usr/share/${PN}"
|
||||
|
||||
make_wrapper "gdb-gef" \
|
||||
"gdb -x \"/usr/share/${PN}/gef.py\"" || die
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "\nUsage:"
|
||||
einfo " ~$ gdb-gef <program>\n"
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
DOCS_BUILDER="mkdocs"
|
||||
DOCS_DEPEND="
|
||||
dev-python/mkdocs-material
|
||||
"
|
||||
|
||||
inherit python-single-r1 docs wrapper
|
||||
|
||||
DESCRIPTION="GDB Enhanced Features for exploit devs & reversers"
|
||||
HOMEPAGE="https://github.com/hugsy/gef"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hugsy/gef"
|
||||
else
|
||||
SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
# Seem to hang right now?
|
||||
RESTRICT="!test? ( test ) test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
|
||||
dev-util/ropper[${PYTHON_SINGLE_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/capstone[python,${PYTHON_USEDEP}]
|
||||
dev-libs/keystone[python,${PYTHON_USEDEP}]
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
dev-python/rpyc[${PYTHON_USEDEP}]
|
||||
dev-util/unicorn[python,${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e '/pylint/d' tests/requirements.txt || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tries to compile tests
|
||||
:
|
||||
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *.py
|
||||
|
||||
python_optimize "${ED}/usr/share/${PN}"
|
||||
|
||||
make_wrapper "gdb-gef" \
|
||||
"gdb -x \"/usr/share/${PN}/gef.py\"" || die
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "\nUsage:"
|
||||
einfo " ~$ gdb-gef <program>\n"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>mario.haustein@hrz.tu-chemnitz.de</email>
|
||||
<name>Mario Haustein</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>sam@gentoo.org</email>
|
||||
<name>Sam James</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
GEF is a set of commands for x86/64, ARM, MIPS, PowerPC and SPARC to
|
||||
assist exploit developers and reverse-engineers when using old school
|
||||
GDB. It provides additional features to GDB using the Python API to
|
||||
assist during the process of dynamic analysis and exploit development.
|
||||
Application developers will also benefit from it, as GEF lifts a great
|
||||
part of regular GDB obscurity, avoiding repeating traditional commands,
|
||||
or bringing out the relevant information from the debugging runtime.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">hugsy/gef</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user