Date: Monday, August 24, 2020 @ 19:28:06 Author: anthraxx Revision: 687763
archrelease: copy trunk to community-any Added: sqlmap/repos/community-any/PKGBUILD (from rev 687762, sqlmap/trunk/PKGBUILD) Deleted: sqlmap/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-08-24 19:28:03 UTC (rev 687762) +++ PKGBUILD 2020-08-24 19:28:06 UTC (rev 687763) @@ -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.4.4 -pkgrel=1 -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=('3c3e89163c7506b4c09e8c0ee9227db007a4708f3a69a838e8a6b751379ffc49') -sha512sums=('308090aa1c25f1df99074269955beb18430dfa67a11f03910e9cec34788cb664a773e12f5006193f289f7c3397b963be20f332e8ea98a25243e0b43718d10ef3') - -build() { - cd ${pkgname}-${pkgver} - python -m compileall . - python -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} -python sqlmap.py "\$@" -EOF - cat > "${pkgdir}/usr/bin/sqlmapapi" << EOF -#!/bin/sh -cd /opt/${pkgname} -python 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 687762, sqlmap/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-08-24 19:28:06 UTC (rev 687763) @@ -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.4.8 +pkgrel=1 +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) +sha512sums=('43e52c1331857d63df469892b24b1e47158951bf0a7a0b9c9b0917571abeac6e56ea09e9c2fd52f98397ff5b68481e3ffa8a8aa53f0d82187065639f2cccacd2') +b2sums=('e60c4656a7a18af979bd4b10cb534448265ac096a953faa26441a55a2181b48a2c8c9564b36fdb86cc60abadbbf75169d69a918d1b1b668d43cb45dd49ba7977') + +build() { + cd ${pkgname}-${pkgver} + python -m compileall . + python -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} +python sqlmap.py "\$@" +EOF + cat > "${pkgdir}/usr/bin/sqlmapapi" << EOF +#!/bin/sh +cd /opt/${pkgname} +python sqlmapapi.py "\$@" +EOF + + chmod 755 "${pkgdir}/usr/bin/sqlmap" + chmod 755 "${pkgdir}/usr/bin/sqlmapapi" +} + +# vim: ts=2 sw=2 et: