[arch-commits] Commit in ropgadget/repos (community-any community-any/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Tue May 15 20:34:55 UTC 2018
Date: Tuesday, May 15, 2018 @ 20:34:54
Author: anthraxx
Revision: 322477
archrelease: copy trunk to community-any
Added:
ropgadget/repos/community-any/
ropgadget/repos/community-any/PKGBUILD
(from rev 322476, ropgadget/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: ropgadget/repos/community-any/PKGBUILD (from rev 322476, ropgadget/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-05-15 20:34:54 UTC (rev 322477)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
+# Contributor: s1gma <s1gma at mindslicer.com>
+
+pkgname=ropgadget
+_pkgname=ROPgadget
+pkgver=5.4
+pkgrel=1
+pkgdesc='Search gadgets in binaries to facilitate ROP exploitation for several file formats and architectures'
+url='http://www.shell-storm.org/project/ROPgadget'
+arch=('any')
+license=('GPL2')
+depends=('python-capstone')
+makedepends=('python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/JonathanSalwan/${_pkgname}/archive/v${pkgver}.tar.gz)
+sha512sums=('7b3777ccce10000e1cf1fadedd4010f05ae21d5794c45994d380eebecb8876c203899cc30716a677e3c31b575898d7fad763d66c502432f3a4dc4493ad4ae0da')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ sed 's|python2|python|g' -i ropgadget/**/*.py ropgadget/*/*/*.py
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ ./ROPgadget.py --binary ./test-suite-binaries/elf-Linux-x86 --string "main"||:
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list