mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
peda: new tool
This commit is contained in:
parent
f2af67ba4a
commit
d7b582e019
4 changed files with 69 additions and 0 deletions
1
sys-devel/peda/Manifest
Normal file
1
sys-devel/peda/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST peda-1.1_p20190210.tar.gz 65362 BLAKE2B 299fb86f2ac3c0f573668b6cf9d6723f819794d47a248ce20081489ede94918486ee4a019c3a18ed5640d4b6dcdb10bbf564ada6a983bef3e334b882c991f88f SHA512 7bd05329f8632d2637b6e385a6d97db11b9d480f68115e4f706df8e928559d79ab2c2e223f871bbf0fd37ad0a888bd5331dad7cef280a27758f9804d6bf6e65b
|
||||
8
sys-devel/peda/metadata.xml
Normal file
8
sys-devel/peda/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
sys-devel/peda/peda-1.1_p20190210.ebuild
Symbolic link
1
sys-devel/peda/peda-1.1_p20190210.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
./peda-9999.ebuild
|
||||
59
sys-devel/peda/peda-9999.ebuild
Normal file
59
sys-devel/peda/peda-9999.ebuild
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Python Exploit Development Assistance for GDB"
|
||||
HOMEPAGE="https://github.com/longld/peda"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/longld/peda"
|
||||
else
|
||||
HASH_COMMIT="f76c34d5e0c1f8e5603d5f03a794d096507c402e"
|
||||
|
||||
SRC_URI="https://github.com/longld/peda/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="CC-BY-NC-SA-3.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
sys-devel/gdb"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r lib/ *.py
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
cat > "${D}/usr/share/${PN}/gdb_peda" <<-_EOF_ || die
|
||||
# Use this commad for installing:
|
||||
# gdb -x /usr/share/${PN}/gdb_peda <program>
|
||||
|
||||
source /usr/share/${PN}/peda.py
|
||||
_EOF_
|
||||
|
||||
make_wrapper "gdb-peda" \
|
||||
"gdb -x /usr/share/${PN}/gdb_peda"
|
||||
|
||||
dodoc README{,.md}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "\nFor using put the command:"
|
||||
einfo " gdb -x /usr/share/${PN}/gdb_peda <program>"
|
||||
einfo "or"
|
||||
einfo " gdb-peda <program>\n"
|
||||
}
|
||||
Loading…
Reference in a new issue