Date: Tuesday, April 9, 2019 @ 18:23:50 Author: anthraxx Revision: 450664
archrelease: copy trunk to community-any Added: sqlmap/repos/community-any/PKGBUILD (from rev 450663, sqlmap/trunk/PKGBUILD) Deleted: sqlmap/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-04-09 18:23:43 UTC (rev 450663) +++ PKGBUILD 2019-04-09 18:23:50 UTC (rev 450664) @@ -1,52 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: Evan Teitelman <teitelmanevan at gmail dot com> -# Contributor: fxbru <frxbru[at]gmail> - -pkgname=sqlmap -pkgver=1.3.3 -pkgrel=1 -pkgdesc='Automatic SQL injection and database takeover tool' -url='http://sqlmap.org' -arch=('any') -license=('GPL2') -depends=('python2' 'sh') -backup=('etc/sqlmap.conf') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sqlmapproject/sqlmap/archive/${pkgver}.tar.gz) -sha256sums=('78ff33df51d1deb726458b310e303df5105121ed733d7ee7cf865c6c835dbb18') -sha512sums=('eeeec17b1615f52f45c58c240ea9000033270b4c1515ac61637f913c48b611f210370ab08e585a714d8abaa93e5a9f9f4555b2a16b74250b5937ccff79cfa7d1') - -build() { - cd ${pkgname}-${pkgver} - python2 -m compileall . - python2 -O -m compileall . -} - -package() { - cd ${pkgname}-${pkgver} - - install -d "${pkgdir}/etc" - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/opt/${pkgname}" - install -d "${pkgdir}/usr/share/doc" - - mv doc "${pkgdir}/usr/share/doc/${pkgname}" - mv sqlmap.conf "${pkgdir}/etc/sqlmap.conf" - ln -sf /etc/sqlmap.conf "${pkgdir}/opt/${pkgname}/sqlmap.conf" - cp -a --no-preserve=ownership * "${pkgdir}/opt/${pkgname}" - - cat > "${pkgdir}/usr/bin/sqlmap" << EOF -#!/bin/sh -cd /opt/${pkgname} -python2 sqlmap.py "\$@" -EOF - cat > "${pkgdir}/usr/bin/sqlmapapi" << EOF -#!/bin/sh -cd /opt/${pkgname} -python2 sqlmapapi.py "\$@" -EOF - - chmod 755 "${pkgdir}/usr/bin/sqlmap" - chmod 755 "${pkgdir}/usr/bin/sqlmapapi" -} - -# vim: ts=2 sw=2 et: Copied: sqlmap/repos/community-any/PKGBUILD (from rev 450663, sqlmap/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-04-09 18:23:50 UTC (rev 450664) @@ -0,0 +1,52 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Evan Teitelman <teitelmanevan at gmail dot com> +# Contributor: fxbru <frxbru[at]gmail> + +pkgname=sqlmap +pkgver=1.3.4 +pkgrel=1 +pkgdesc='Automatic SQL injection and database takeover tool' +url='http://sqlmap.org' +arch=('any') +license=('GPL2') +depends=('python2' 'sh') +backup=('etc/sqlmap.conf') +source=(https://github.com/sqlmapproject/sqlmap/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('7174148df741c7bf30bd090b71781b0f77d5d349c7bbb3c6cdf8e964111c0a0b') +sha512sums=('0a0206bd69100c913747eb64e351fe9db739bbe2a08d6a3008c8e1ee7efb28cf610b3b880315e8e58f813332138d2083bebc6447814d6f40bde29f35ce293cc4') + +build() { + cd ${pkgname}-${pkgver} + python2 -m compileall . + python2 -O -m compileall . +} + +package() { + cd ${pkgname}-${pkgver} + + install -d "${pkgdir}/etc" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/opt/${pkgname}" + install -d "${pkgdir}/usr/share/doc" + + mv doc "${pkgdir}/usr/share/doc/${pkgname}" + mv sqlmap.conf "${pkgdir}/etc/sqlmap.conf" + ln -sf /etc/sqlmap.conf "${pkgdir}/opt/${pkgname}/sqlmap.conf" + cp -a --no-preserve=ownership * "${pkgdir}/opt/${pkgname}" + + cat > "${pkgdir}/usr/bin/sqlmap" << EOF +#!/bin/sh +cd /opt/${pkgname} +python2 sqlmap.py "\$@" +EOF + cat > "${pkgdir}/usr/bin/sqlmapapi" << EOF +#!/bin/sh +cd /opt/${pkgname} +python2 sqlmapapi.py "\$@" +EOF + + chmod 755 "${pkgdir}/usr/bin/sqlmap" + chmod 755 "${pkgdir}/usr/bin/sqlmapapi" +} + +# vim: ts=2 sw=2 et: