diff --git a/dev-util/ropper/Manifest b/dev-util/ropper/Manifest new file mode 100644 index 0000000000000..1e30c7f56dee0 --- /dev/null +++ b/dev-util/ropper/Manifest @@ -0,0 +1 @@ +DIST ropper-1.13.6.tar.gz 1491005 BLAKE2B aa82c9791eec2362c79f3cd96995cb505b73c8131b0b6fe6a7d0932e3551dd15ea401383e12ab79901ea05e749cb2ca8244fa3c909e0e8955910d321c8436ea9 SHA512 c3e20bc7182a94984f50c42334a7af1e64bd564615a3aaaa08f432b0641a9557d27fd19bdb6c33a276d66c4b512534c625751e20531c324bde96a58d9c89b6d4 diff --git a/dev-util/ropper/metadata.xml b/dev-util/ropper/metadata.xml new file mode 100644 index 0000000000000..55a2e0eba0c73 --- /dev/null +++ b/dev-util/ropper/metadata.xml @@ -0,0 +1,23 @@ + + + + + mario.haustein@hrz.tu-chemnitz.de + Mario Haustein + + + sam@gentoo.org + Sam James + + + You can use ropper to display information about binary files in + different file formats and you can search for gadgets to build rop + chains for different architectures. + + + Enable Z3 contraint solver support + + + sashs/Ropper + + diff --git a/dev-util/ropper/ropper-1.13.6.ebuild b/dev-util/ropper/ropper-1.13.6.ebuild new file mode 100644 index 0000000000000..edf020a8ceb0b --- /dev/null +++ b/dev-util/ropper/ropper-1.13.6.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 + +DESCRIPTION="Use to display information about binary files in different file formats" +HOMEPAGE="https://scoding.de/ropper https://github.com/sashs/Ropper" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/sashs/Ropper" +else + SRC_URI="https://github.com/sashs/Ropper/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/Ropper-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="z3" +RESTRICT="test" + +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/capstone[python,${PYTHON_USEDEP}] + dev-libs/keystone[python,${PYTHON_USEDEP}] + dev-python/filebytes[${PYTHON_USEDEP}] + ') + z3? ( sci-mathematics/z3[python,${PYTHON_SINGLE_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +distutils_enable_tests setup.py diff --git a/dev-util/ropper/ropper-9999.ebuild b/dev-util/ropper/ropper-9999.ebuild new file mode 100644 index 0000000000000..edf020a8ceb0b --- /dev/null +++ b/dev-util/ropper/ropper-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 + +DESCRIPTION="Use to display information about binary files in different file formats" +HOMEPAGE="https://scoding.de/ropper https://github.com/sashs/Ropper" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/sashs/Ropper" +else + SRC_URI="https://github.com/sashs/Ropper/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/Ropper-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="z3" +RESTRICT="test" + +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/capstone[python,${PYTHON_USEDEP}] + dev-libs/keystone[python,${PYTHON_USEDEP}] + dev-python/filebytes[${PYTHON_USEDEP}] + ') + z3? ( sci-mathematics/z3[python,${PYTHON_SINGLE_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +distutils_enable_tests setup.py