Date: Monday, September 30, 2019 @ 18:53:39 Author: jelle Revision: 512276
archrelease: copy trunk to community-any Added: sqlmap/repos/community-any/PKGBUILD (from rev 512275, sqlmap/trunk/PKGBUILD) Deleted: sqlmap/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-09-30 18:53:29 UTC (rev 512275) +++ PKGBUILD 2019-09-30 18:53:39 UTC (rev 512276) @@ -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.8 -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=('3b3fb0f213139efb76e7a95ebcd6e3790c70a23fca8f3c753ef14f72ea7fdf01') -sha512sums=('9b117aced75070b23a92c8c349692dbf6112c23da1e50b2b5f3f48e95b3eaee2d24abf3c928e6248c58b74ae6725b2e588c2a2cb00153aea59111f5b3777b7d4') - -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 512275, sqlmap/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-09-30 18:53:39 UTC (rev 512276) @@ -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.8 +pkgrel=2 +pkgdesc='Automatic SQL injection and database takeover tool' +url='http://sqlmap.org' +arch=('any') +license=('GPL2') +depends=('python' 'sh') +backup=('etc/sqlmap.conf') +source=(https://github.com/sqlmapproject/sqlmap/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('3b3fb0f213139efb76e7a95ebcd6e3790c70a23fca8f3c753ef14f72ea7fdf01') +sha512sums=('9b117aced75070b23a92c8c349692dbf6112c23da1e50b2b5f3f48e95b3eaee2d24abf3c928e6248c58b74ae6725b2e588c2a2cb00153aea59111f5b3777b7d4') + +build() { + cd ${pkgname}-${pkgver} + python3 -m compileall . + python3 -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} +python3 sqlmap.py "\$@" +EOF + cat > "${pkgdir}/usr/bin/sqlmapapi" << EOF +#!/bin/sh +cd /opt/${pkgname} +python3 sqlmapapi.py "\$@" +EOF + + chmod 755 "${pkgdir}/usr/bin/sqlmap" + chmod 755 "${pkgdir}/usr/bin/sqlmapapi" +} + +# vim: ts=2 sw=2 et: