diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
commit | fcc5224904648a8e6eb528d7603154160a20022f (patch) | |
tree | 3bfce096b38a9cea8eed13fc70c1526c456e9abd /dev-util/gef | |
parent | 2fd57282f0262ca084e05b0f2c63fbada395d02b (diff) |
gentoo resync : 02.02.2022
Diffstat (limited to 'dev-util/gef')
-rw-r--r-- | dev-util/gef/Manifest | 6 | ||||
-rw-r--r-- | dev-util/gef/gef-2021.10-r1.ebuild | 81 | ||||
-rw-r--r-- | dev-util/gef/gef-2022.01.ebuild | 81 | ||||
-rw-r--r-- | dev-util/gef/gef-9999.ebuild | 81 | ||||
-rw-r--r-- | dev-util/gef/metadata.xml | 24 |
5 files changed, 273 insertions, 0 deletions
diff --git a/dev-util/gef/Manifest b/dev-util/gef/Manifest new file mode 100644 index 000000000000..7014a1d3b411 --- /dev/null +++ b/dev-util/gef/Manifest @@ -0,0 +1,6 @@ +DIST gef-2021.10.tar.gz 170829 BLAKE2B 4d21fb68b2d9239dea912bb41790c7ffe83d9a7bb17cc6b3df67078b0147ff06676ff257c46567fb9a4fa76d5e12140f567f153337e83dbdd10cf0576cd08499 SHA512 30ccc728322651c3fc88f629165a96f593f079ddaa21d194e483804cdf4bcb235ed28cfaaa6fdd85c134b2314f32bd87e3dcf5decc45720f8e7b89ca9af2c379 +DIST gef-2022.01.tar.gz 211779 BLAKE2B 1cb501cc7e05b1f96bb1d3ea42c8970273aea717b927f90120dbc5d0b5d9d7e28a89d1b1eb8a969406dfcd4f06f23e703e3aaa27a5a294b0d454d41b82b7bd12 SHA512 4e89ab889933464711c7a990df7fe6a6c014b80e9f5ad5e77382c3938413d31d03838e2215225defae88008b2ca0e577edeb01189189ea5e37d07204375fb47b +EBUILD gef-2021.10-r1.ebuild 1661 BLAKE2B 78c76fca05678d67ebda6d6f66b049f9556e6cb12e103c51dc78fa0510ce107e1c7c045bf7a5dad059c2d7b1977508370fe17e1116c127bdb431c9d27b5f03a8 SHA512 e5fdb32b56781916bc5c2d2176d9dfc04adf292515c959b06bd5967c57b4fedbe0a3a5ca340f1b711bbe90811774c36f92aa9fffdb59b95432a51ba172e64a56 +EBUILD gef-2022.01.ebuild 1661 BLAKE2B 83010f4388cb5093d4e2c8bba19520ea1d6427f38f2a0f1c77d1c87e152c9358fa9e5c4f841a8cc77f8a3653ecd6ba5a06f3ea36a24b81ef9857382a972671a1 SHA512 6123c66afd5deb56c6059ac3e40919518ddcbc7b80f214210b70192da8a0ab912b431c451e28838e42d673d19c5fe853b22643d1b5c3a04136a8a3f2a5c4b3d2 +EBUILD gef-9999.ebuild 1661 BLAKE2B 83010f4388cb5093d4e2c8bba19520ea1d6427f38f2a0f1c77d1c87e152c9358fa9e5c4f841a8cc77f8a3653ecd6ba5a06f3ea36a24b81ef9857382a972671a1 SHA512 6123c66afd5deb56c6059ac3e40919518ddcbc7b80f214210b70192da8a0ab912b431c451e28838e42d673d19c5fe853b22643d1b5c3a04136a8a3f2a5c4b3d2 +MISC metadata.xml 995 BLAKE2B f4c30ac2ea932c90b74800c44389169199cdc189e69584a3873c91b36086eb30b5d463a12a5b08cc45196aa57e939d00806e3d1e96fbb647c997ab891a312ea0 SHA512 b4e09578a7f5656688dced42d1f924ba928b59abcb8345fe143be11ae30b553cda26663c6771a99e44ffc9f72c187b871ee2d1c096bf49d37b1e0fd460653ad4 diff --git a/dev-util/gef/gef-2021.10-r1.ebuild b/dev-util/gef/gef-2021.10-r1.ebuild new file mode 100644 index 000000000000..42103522b0c2 --- /dev/null +++ b/dev-util/gef/gef-2021.10-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit python-single-r1 wrapper + +DESCRIPTION="A 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 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +# Seem to hang right now? +RESTRICT="!test? ( test ) test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-util/ropper[${PYTHON_SINGLE_USEDEP}] + sys-devel/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-util/unicorn[python,${PYTHON_USEDEP}] + ')" + +BDEPEND="doc? ( dev-python/mkdocs ) + test? ( + $(python_gen_cond_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ') + )" + +src_prepare() { + default + + sed -i -e '/pylint/d' requirements.txt || die +} + +src_compile() { + # Tries to compile tests + : +} + +src_install() { + insinto /usr/share/${PN} + doins -r *.py + + python_optimize "${ED}"/usr/share/${PN} + + make_wrapper "gdb-gef" \ + "gdb -ex \"source ${EPREFIX}/usr/share/${PN}/gef.py\"" || die + + if use doc; then + # TODO: docs.eclass? + mkdocs build -d html || die + + rm "${WORKDIR}"/${P}/html/sitemap.xml.gz || die + dodoc -r html/ + fi + + dodoc README.md +} + +pkg_postinst() { + einfo "\nUsage:" + einfo " ~$ gdb-gef <program>\n" +} diff --git a/dev-util/gef/gef-2022.01.ebuild b/dev-util/gef/gef-2022.01.ebuild new file mode 100644 index 000000000000..e29ca85b5b66 --- /dev/null +++ b/dev-util/gef/gef-2022.01.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit python-single-r1 wrapper + +DESCRIPTION="A 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 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +# Seem to hang right now? +RESTRICT="!test? ( test ) test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-util/ropper[${PYTHON_SINGLE_USEDEP}] + sys-devel/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-util/unicorn[python,${PYTHON_USEDEP}] + ')" + +BDEPEND="doc? ( dev-python/mkdocs ) + test? ( + $(python_gen_cond_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ') + )" + +src_prepare() { + default + + sed -i -e '/pylint/d' requirements.txt || die +} + +src_compile() { + # Tries to compile tests + : +} + +src_install() { + insinto /usr/share/${PN} + doins -r *.py + + python_optimize "${ED}"/usr/share/${PN} + + make_wrapper "gdb-gef" \ + "gdb -ex \"source ${EPREFIX}/usr/share/${PN}/gef.py\"" || die + + if use doc; then + # TODO: docs.eclass? + mkdocs build -d html || die + + rm "${WORKDIR}"/${P}/html/sitemap.xml.gz || die + dodoc -r html/ + fi + + dodoc README.md +} + +pkg_postinst() { + einfo "\nUsage:" + einfo " ~$ gdb-gef <program>\n" +} diff --git a/dev-util/gef/gef-9999.ebuild b/dev-util/gef/gef-9999.ebuild new file mode 100644 index 000000000000..e29ca85b5b66 --- /dev/null +++ b/dev-util/gef/gef-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit python-single-r1 wrapper + +DESCRIPTION="A 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 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +# Seem to hang right now? +RESTRICT="!test? ( test ) test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-util/ropper[${PYTHON_SINGLE_USEDEP}] + sys-devel/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-util/unicorn[python,${PYTHON_USEDEP}] + ')" + +BDEPEND="doc? ( dev-python/mkdocs ) + test? ( + $(python_gen_cond_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ') + )" + +src_prepare() { + default + + sed -i -e '/pylint/d' requirements.txt || die +} + +src_compile() { + # Tries to compile tests + : +} + +src_install() { + insinto /usr/share/${PN} + doins -r *.py + + python_optimize "${ED}"/usr/share/${PN} + + make_wrapper "gdb-gef" \ + "gdb -ex \"source ${EPREFIX}/usr/share/${PN}/gef.py\"" || die + + if use doc; then + # TODO: docs.eclass? + mkdocs build -d html || die + + rm "${WORKDIR}"/${P}/html/sitemap.xml.gz || die + dodoc -r html/ + fi + + dodoc README.md +} + +pkg_postinst() { + einfo "\nUsage:" + einfo " ~$ gdb-gef <program>\n" +} diff --git a/dev-util/gef/metadata.xml b/dev-util/gef/metadata.xml new file mode 100644 index 000000000000..9ee6bdf0edc1 --- /dev/null +++ b/dev-util/gef/metadata.xml @@ -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> |