summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2015-07-20 23:31:32 +0200
committeranthraxx2015-07-20 23:31:32 +0200
commitca6aea936e74dc9ded9d4870cee67e8ae8198059 (patch)
tree2b95a6e01e0f329b91c8daaefbc4eab2a9613aab
parent26ee832572eb08b07b6ea6cb54457efca0ee2de2 (diff)
downloadaur-ca6aea936e74dc9ded9d4870cee67e8ae8198059.tar.gz
upgpkg: peda-git 68.69068b0-1
upstream release - adding missing dependencies - create pyc and pyo files
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD54
-rw-r--r--peda.install13
3 files changed, 41 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4cd96911050..a56c14b70bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,20 @@
pkgbase = peda-git
pkgdesc = PEDA - Python Exploit Development Assistance for GDB
- pkgver = 45.d0bd978
- pkgrel = 2
+ pkgver = 68.69068b0
+ pkgrel = 1
url = https://github.com/longld/peda
install = peda.install
arch = any
- license = Creative Commons
+ license = custom:Creative Commons
makedepends = git
depends = gdb
depends = python2
- source = git+http://github.com/longld/peda
- md5sums = SKIP
+ depends = binutils
+ depends = nasm
+ provides = peda
+ conflicts = peda
+ source = peda-git::git+https://github.com/longld/peda
+ sha512sums = SKIP
pkgname = peda-git
diff --git a/PKGBUILD b/PKGBUILD
index 0755f27c744..3f1c4fb720a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>
pkgname=peda-git
-pkgver=45.d0bd978
-pkgrel=2
+pkgver=68.69068b0
+pkgrel=1
pkgdesc="PEDA - Python Exploit Development Assistance for GDB"
+url='https://github.com/longld/peda'
arch=('any')
-url="https://github.com/longld/peda"
-license=('Creative Commons')
-depends=( 'gdb' 'python2')
+license=('custom:Creative Commons')
+depends=( 'gdb' 'python2' 'binutils' 'nasm')
makedepends=('git')
-source=('git+http://github.com/longld/peda')
-md5sums=('SKIP')
-install="peda.install"
+provides=('peda')
+conflicts=('peda')
+install='peda.install'
+source=(${pkgname}::git+https://github.com/longld/peda)
+sha512sums=('SKIP')
pkgver() {
- cd peda
+ cd ${pkgname}
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+build() {
+ cd ${pkgname}
+ python2 -m compileall .
+ python2 -O -m compileall .
+}
package() {
- install -D -m755 "${srcdir}/peda/peda.py" \
- "${pkgdir}/usr/share/peda/peda.py"
- install -D -m644 "${srcdir}/peda/LICENSE" \
- "${pkgdir}/usr/share/peda/LICENSE"
- install -D -m644 "${srcdir}/peda/README" \
- "${pkgdir}/usr/share/peda/README"
- install -D -m755 "${srcdir}/peda/lib/config.py" \
- "${pkgdir}/usr/share/peda/lib/config.py"
- install -D -m755 "${srcdir}/peda/lib/nasm.py" \
- "${pkgdir}/usr/share/peda/lib/nasm.py"
- install -D -m755 "${srcdir}/peda/lib/shellcode.py" \
- "${pkgdir}/usr/share/peda/lib/shellcode.py"
- install -D -m755 "${srcdir}/peda/lib/skeleton.py" \
- "${pkgdir}/usr/share/peda/lib/skeleton.py"
- install -D -m755 "${srcdir}/peda/lib/utils.py" \
- "${pkgdir}/usr/share/peda/lib/utils.py"
-
-
-
-
+ cd ${pkgname}
+ install -Dm 644 peda.py* -t "${pkgdir}/usr/share/peda"
+ install -Dm 644 lib/* -t "${pkgdir}/usr/share/peda/lib"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
-
-# vim:set ts=2 sts=2 sw=2 et
+# vim: ts=2 sw=2 et:
diff --git a/peda.install b/peda.install
index db928ac654c..05aceab2b8c 100644
--- a/peda.install
+++ b/peda.install
@@ -1,7 +1,12 @@
-#!/bin/bash
+post_install() {
+ echo "
+ >>> enable PEDA per user via:
+ >>> echo 'source /usr/share/peda/peda.py' > ~/.gdbinit
+ "
+}
-post_install(){
- echo "[+] Please enable PEDA with: echo 'source /usr/share/peda/peda.py' >> .gdbinit"
- echo "[+] To execute PEDA just execute GDB and enjoy :)"
+post_upgrade() {
+ post_install
}
+# vim: ts=2 sw=2 et: