diff options
Diffstat (limited to 'dev-util/pwntools')
-rw-r--r-- | dev-util/pwntools/Manifest | 8 | ||||
-rw-r--r-- | dev-util/pwntools/files/pwntools-4.0.0_do_not_mess_with_docs.patch | 25 | ||||
-rw-r--r-- | dev-util/pwntools/files/pwntools-4.1.0_update_deps.patch | 10 | ||||
-rw-r--r-- | dev-util/pwntools/metadata.xml | 16 | ||||
-rw-r--r-- | dev-util/pwntools/pwntools-4.10.0_beta0.ebuild | 56 | ||||
-rw-r--r-- | dev-util/pwntools/pwntools-4.9.0.ebuild | 56 | ||||
-rw-r--r-- | dev-util/pwntools/pwntools-9999.ebuild | 56 |
7 files changed, 227 insertions, 0 deletions
diff --git a/dev-util/pwntools/Manifest b/dev-util/pwntools/Manifest new file mode 100644 index 000000000000..0f8794a745b9 --- /dev/null +++ b/dev-util/pwntools/Manifest @@ -0,0 +1,8 @@ +AUX pwntools-4.0.0_do_not_mess_with_docs.patch 1047 BLAKE2B 5a70f8743e0ff11db1f18a949be897d095ae988ca168298b820c1f1e3c3b5aa6db8141074fee0d496d56203df6fa1f63c91e74623793e37d1381adc6ba69e046 SHA512 58fb14c98ff001522cec3a06d8fb3f4baac090fedea169c68c5914bacd002ec8d98fdbc1f8bf1e6ca6947cc3da950de6994521c2d4d718e499c748f86cdc62ad +AUX pwntools-4.1.0_update_deps.patch 413 BLAKE2B ead75c25972bc604baf20da71f6b9f229ca3d34b24a6af63f6ead03424cbb242a65e31a575d08f78a6b00df44831a3a9f4e16f6151049f7639711e761ec0cb28 SHA512 537b456640837728abad2d7d2ba0c0509b876b1de3e45b36470b5e16af7b84ccd1e6a4d68f2429533f81d5a2c9649d494fea712d3e224ebf2e27d0cd63d8d850 +DIST pwntools-4.10.0_beta0.tar.gz 4234355 BLAKE2B d214233b286422de0ba37bc6c4bb506c0f9aec37a3f740785636e7e5c556ba71fa150625cd50fb306a68a00f7896f32d8c84108ac57651417f984adf8fa7fa89 SHA512 7b0c0f7cea09ce85965be655aa6d776144b6d5940260a4bbb402c9f1b28aa7734faf215e1a44be4364dcded24bd9db0a4ef1923be2e74b5ee436a067256d2652 +DIST pwntools-4.9.0.tar.gz 4224412 BLAKE2B b4efd94c04b5c0b224fdcd97ebb6811f9cefe1ff9c433136bbcd4ea139c1c6e1c0900480f40d31de632c25982217aac8410afa801ff6ab4edfec60618f8903e1 SHA512 759be3889f71bde4e7276f67c2bee1b0b305216a7320c1ba056a3f440156e102eacd69e9397f7bf4b49a36a8e327cbfbe2abc4e430dc41b4c6bd83546c8047f5 +EBUILD pwntools-4.10.0_beta0.ebuild 1664 BLAKE2B 7cce27d47928a27f31a66b457efbfe16dff6d333da1ba8ad1a5e46caaa6717fe3f14b2f8eeba4de78a501c639048814032520d4181359da5e0517833360d3051 SHA512 b354d6ec4aa3cf75cc8bc89ffd122d9e7376e70c45e5d30b80b5d7ce4855d8367343646c6df50b9310976b8f01626b1e73725ba3cbdb3c74a994cfe5acc2cc25 +EBUILD pwntools-4.9.0.ebuild 1664 BLAKE2B 7cce27d47928a27f31a66b457efbfe16dff6d333da1ba8ad1a5e46caaa6717fe3f14b2f8eeba4de78a501c639048814032520d4181359da5e0517833360d3051 SHA512 b354d6ec4aa3cf75cc8bc89ffd122d9e7376e70c45e5d30b80b5d7ce4855d8367343646c6df50b9310976b8f01626b1e73725ba3cbdb3c74a994cfe5acc2cc25 +EBUILD pwntools-9999.ebuild 1664 BLAKE2B 7cce27d47928a27f31a66b457efbfe16dff6d333da1ba8ad1a5e46caaa6717fe3f14b2f8eeba4de78a501c639048814032520d4181359da5e0517833360d3051 SHA512 b354d6ec4aa3cf75cc8bc89ffd122d9e7376e70c45e5d30b80b5d7ce4855d8367343646c6df50b9310976b8f01626b1e73725ba3cbdb3c74a994cfe5acc2cc25 +MISC metadata.xml 541 BLAKE2B 31c34e39b19efa02a71fa2916d584f78893a864bd06559cffd475b9ff9837989164ab1e7fb8fa5ec345b63bacad314c4218772efed0b5201a964b225ba8e84d4 SHA512 e213766d68840db16fe46c9f3ba7094ebc63955f763963b44606636dfab95f0ed48a368901ad3b464e991205bcacd1de7cfe470dee63268eedf3a74fa901773e diff --git a/dev-util/pwntools/files/pwntools-4.0.0_do_not_mess_with_docs.patch b/dev-util/pwntools/files/pwntools-4.0.0_do_not_mess_with_docs.patch new file mode 100644 index 000000000000..9256a2772245 --- /dev/null +++ b/dev-util/pwntools/files/pwntools-4.0.0_do_not_mess_with_docs.patch @@ -0,0 +1,25 @@ +--- a/setup.py.orig 2020-01-10 12:01:28.688051015 +0800 ++++ b/setup.py 2020-01-10 12:02:10.370053813 +0800 +@@ -70,14 +70,6 @@ + print("$ apt-get install python-dev", file=sys.stderr) + sys.exit(-1) + +-# Convert README.md to reStructuredText for PyPI +-long_description = '' +-try: +- long_description = subprocess.check_output(['pandoc', 'README.md', '--to=rst'], universal_newlines=True) +-except Exception as e: +- print("Failed to convert README.md through pandoc, proceeding anyway", file=sys.stderr) +- traceback.print_exc() +- + setup( + name = 'pwntools', + python_requires = '>=2.7', +@@ -99,7 +91,6 @@ + entry_points = {'console_scripts': console_scripts}, + scripts = glob.glob("bin/*"), + description = "Pwntools CTF framework and exploit development library.", +- long_description = long_description, + author = "Gallopsled et al.", + author_email = "pwntools-users@googlegroups.com", + url = 'https://pwntools.com', diff --git a/dev-util/pwntools/files/pwntools-4.1.0_update_deps.patch b/dev-util/pwntools/files/pwntools-4.1.0_update_deps.patch new file mode 100644 index 000000000000..fd103c13e497 --- /dev/null +++ b/dev-util/pwntools/files/pwntools-4.1.0_update_deps.patch @@ -0,0 +1,10 @@ +--- a/setup.py.orig 2020-05-09 10:43:06.946464282 +0800 ++++ b/setup.py 2020-05-09 10:44:20.572463455 +0800 +@@ -52,7 +52,6 @@ + 'ropgadget>=5.3', + 'pyserial>=2.7', + 'requests>=2.0', +- 'pip>=6.0.8', + 'pygments>=2.0', + 'pysocks', + 'python-dateutil', diff --git a/dev-util/pwntools/metadata.xml b/dev-util/pwntools/metadata.xml new file mode 100644 index 000000000000..bd1ce602dab7 --- /dev/null +++ b/dev-util/pwntools/metadata.xml @@ -0,0 +1,16 @@ +<?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="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">Gallopsled/pwntools</remote-id> + <remote-id type="pypi">pwntools</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/pwntools/pwntools-4.10.0_beta0.ebuild b/dev-util/pwntools/pwntools-4.10.0_beta0.ebuild new file mode 100644 index 000000000000..765bf018a914 --- /dev/null +++ b/dev-util/pwntools/pwntools-4.10.0_beta0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="CTF framework and exploit development library" +HOMEPAGE="https://github.com/Gallopsled/pwntools" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Gallopsled/pwntools.git" +else + SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV/_beta/beta}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${PV/_beta/beta}" +fi + +LICENSE="MIT GPL-2+ BSD-2" +SLOT="0" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/capstone-3.0.5[python,${PYTHON_USEDEP}] + >=dev-util/ROPgadget-5.3[${PYTHON_USEDEP}] + >=dev-util/unicorn-1.0.2[python,${PYTHON_USEDEP}] + dev-python/colored-traceback[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0[${PYTHON_USEDEP}] + >=dev-python/mako-1.0.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}] + >=dev-python/psutil-3.3.0[${PYTHON_USEDEP}] + >=dev-python/pyelftools-0.2.4[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pyserial-2.7[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/requests-2.0[${PYTHON_USEDEP}] + dev-python/rpyc[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch" + "${FILESDIR}/${PN}-4.1.0_update_deps.patch" +) + +src_install() { + distutils-r1_src_install + + rm -r "${ED}/usr/pwntools-doc" || die +} diff --git a/dev-util/pwntools/pwntools-4.9.0.ebuild b/dev-util/pwntools/pwntools-4.9.0.ebuild new file mode 100644 index 000000000000..765bf018a914 --- /dev/null +++ b/dev-util/pwntools/pwntools-4.9.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="CTF framework and exploit development library" +HOMEPAGE="https://github.com/Gallopsled/pwntools" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Gallopsled/pwntools.git" +else + SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV/_beta/beta}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${PV/_beta/beta}" +fi + +LICENSE="MIT GPL-2+ BSD-2" +SLOT="0" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/capstone-3.0.5[python,${PYTHON_USEDEP}] + >=dev-util/ROPgadget-5.3[${PYTHON_USEDEP}] + >=dev-util/unicorn-1.0.2[python,${PYTHON_USEDEP}] + dev-python/colored-traceback[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0[${PYTHON_USEDEP}] + >=dev-python/mako-1.0.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}] + >=dev-python/psutil-3.3.0[${PYTHON_USEDEP}] + >=dev-python/pyelftools-0.2.4[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pyserial-2.7[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/requests-2.0[${PYTHON_USEDEP}] + dev-python/rpyc[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch" + "${FILESDIR}/${PN}-4.1.0_update_deps.patch" +) + +src_install() { + distutils-r1_src_install + + rm -r "${ED}/usr/pwntools-doc" || die +} diff --git a/dev-util/pwntools/pwntools-9999.ebuild b/dev-util/pwntools/pwntools-9999.ebuild new file mode 100644 index 000000000000..765bf018a914 --- /dev/null +++ b/dev-util/pwntools/pwntools-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="CTF framework and exploit development library" +HOMEPAGE="https://github.com/Gallopsled/pwntools" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Gallopsled/pwntools.git" +else + SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV/_beta/beta}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${PV/_beta/beta}" +fi + +LICENSE="MIT GPL-2+ BSD-2" +SLOT="0" + +RDEPEND=" + ${PYTHON_DEPS} + >=dev-libs/capstone-3.0.5[python,${PYTHON_USEDEP}] + >=dev-util/ROPgadget-5.3[${PYTHON_USEDEP}] + >=dev-util/unicorn-1.0.2[python,${PYTHON_USEDEP}] + dev-python/colored-traceback[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0[${PYTHON_USEDEP}] + >=dev-python/mako-1.0.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}] + >=dev-python/psutil-3.3.0[${PYTHON_USEDEP}] + >=dev-python/pyelftools-0.2.4[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pyserial-2.7[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/requests-2.0[${PYTHON_USEDEP}] + dev-python/rpyc[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}] + dev-python/sortedcontainers[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0_do_not_mess_with_docs.patch" + "${FILESDIR}/${PN}-4.1.0_update_deps.patch" +) + +src_install() { + distutils-r1_src_install + + rm -r "${ED}/usr/pwntools-doc" || die +} |