dev-util/pwntools: new package, add 4.9.0, 4.10.0_beta0, 9999

Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Mario Haustein
2023-01-30 23:11:52 +01:00
committed by Sam James
parent 8724b209e3
commit 003cd078f0
7 changed files with 221 additions and 0 deletions

View File

@@ -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

View File

@@ -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',

View File

@@ -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',

View File

@@ -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>

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}