* [gentoo-commits] repo/gentoo:master commit in: dev-util/pwntools/files/, dev-util/pwntools/
@ 2023-01-31 2:01 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-01-31 2:01 UTC (permalink / raw
To: gentoo-commits
commit: 003cd078f05b7ffd11fe4d2c30e4502aee81455b
Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Mon Jan 30 22:11:52 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 31 02:00:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=003cd078
dev-util/pwntools: new package, add 4.9.0, 4.10.0_beta0, 9999
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/pwntools/Manifest | 2 +
.../pwntools-4.0.0_do_not_mess_with_docs.patch | 25 ++++++++++
.../files/pwntools-4.1.0_update_deps.patch | 10 ++++
dev-util/pwntools/metadata.xml | 16 +++++++
dev-util/pwntools/pwntools-4.10.0_beta0.ebuild | 56 ++++++++++++++++++++++
dev-util/pwntools/pwntools-4.9.0.ebuild | 56 ++++++++++++++++++++++
dev-util/pwntools/pwntools-9999.ebuild | 56 ++++++++++++++++++++++
7 files changed, 221 insertions(+)
diff --git a/dev-util/pwntools/Manifest b/dev-util/pwntools/Manifest
new file mode 100644
index 000000000000..1a7e7f40853c
--- /dev/null
+++ b/dev-util/pwntools/Manifest
@@ -0,0 +1,2 @@
+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
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
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/pwntools/files/, dev-util/pwntools/
@ 2023-05-27 7:49 Joonas Niilola
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2023-05-27 7:49 UTC (permalink / raw
To: gentoo-commits
commit: adc38150f7b46d9521a048512a63906ef8c60c91
Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Sun May 21 18:15:22 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat May 27 07:49:20 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adc38150
dev-util/pwntools: add 4.11.0_beta0
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-util/pwntools/Manifest | 1 +
.../files/pwntools-4.11.0_update_deps.patch | 10 ++++
dev-util/pwntools/pwntools-4.11.0_beta0.ebuild | 61 ++++++++++++++++++++++
3 files changed, 72 insertions(+)
diff --git a/dev-util/pwntools/Manifest b/dev-util/pwntools/Manifest
index 28623369b602..54daa90e4621 100644
--- a/dev-util/pwntools/Manifest
+++ b/dev-util/pwntools/Manifest
@@ -1,2 +1,3 @@
DIST pwntools-4.10.0.gh.tar.gz 4228469 BLAKE2B a452d1efb23430a27630b402ad49967088bf8f9bcfa1e9fda1a87c58384c750531724ad24efa89caaa205097617529f9e0b8489251b7d5f098540efd8e4459c3 SHA512 6d96b71da08661ca225cc21bb06d66333c8ccdb79852bbd679ff7d69b091fe3cc6811f7317e1011e7c6867c5b70aaeb5f02de2fb03882914005fbbde583570d0
+DIST pwntools-4.11.0_beta0.gh.tar.gz 4234690 BLAKE2B 8e87cd9eddf1fe7e4ee716a8e5ad82150b0f9c8c3bd44e4c071b551643be032111b97d7024844cd0107ef259287e29920d3fa672a7f458331baba7a97ec7acac SHA512 f3377b2c2b2cd25f3c36930245117fbbdb30fb8ff7f0c0c8633745cbb9b5192822087d8621da5ad325bf349efe616c538435fb490a35b12f57d04b79788d07f3
DIST pwntools-4.9.0.gh.tar.gz 4218616 BLAKE2B d811a96943fbe80a4082bdff412aee5df02250846189e6300e99a6630bc02906053e728ca9904b27ddc546ad2c3612818a046b4d6418d8ebf682df600b99bc99 SHA512 8ed404dc556383712ad4de799fbff09f51735065cac07ca909f1430b22e6e9574d870aaaa4a7ce0e22d5f6edb18b956847a7aaf4dd6cf0b44fbfcf58e32497fb
diff --git a/dev-util/pwntools/files/pwntools-4.11.0_update_deps.patch b/dev-util/pwntools/files/pwntools-4.11.0_update_deps.patch
new file mode 100644
index 000000000000..653c41f665b8
--- /dev/null
+++ b/dev-util/pwntools/files/pwntools-4.11.0_update_deps.patch
@@ -0,0 +1,10 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -41,7 +41,6 @@ dependencies = [
+ "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/pwntools-4.11.0_beta0.ebuild b/dev-util/pwntools/pwntools-4.11.0_beta0.ebuild
new file mode 100644
index 000000000000..627a76a38d69
--- /dev/null
+++ b/dev-util/pwntools/pwntools-4.11.0_beta0.ebuild
@@ -0,0 +1,61 @@
+# 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}.gh.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~riscv ~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.11.0_update_deps.patch"
+)
+
+python_configure_all() {
+ DISTUTILS_ARGS=(
+ --only-use-pwn-command
+ )
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ rm -r "${ED}/usr/pwntools-doc" || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-27 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-27 7:49 [gentoo-commits] repo/gentoo:master commit in: dev-util/pwntools/files/, dev-util/pwntools/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2023-01-31 2:01 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox