[arch-commits] Commit in sqlmap/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 17:01:56 UTC 2020
Date: Thursday, November 12, 2020 @ 17:01:55
Author: foutrelis
Revision: 752188
archrelease: copy trunk to community-staging-any
Added:
sqlmap/repos/community-staging-any/
sqlmap/repos/community-staging-any/PKGBUILD
(from rev 752187, sqlmap/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: sqlmap/repos/community-staging-any/PKGBUILD (from rev 752187, sqlmap/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:01:55 UTC (rev 752188)
@@ -0,0 +1,53 @@
+# 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.9
+pkgrel=2
+pkgdesc='Automatic SQL injection and database takeover tool'
+url='http://sqlmap.org'
+arch=('any')
+license=('GPL2')
+depends=('python' 'sh')
+optdepends=('perl: icmpsh extra tool')
+backup=('etc/sqlmap.conf')
+source=(https://github.com/sqlmapproject/sqlmap/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('e40e06cd4065a8f5f57336c0bc0226674a9be136efb6cbc19f2c1bcc386e87ce2583ebcf3a718dcfaf88a8448a7add9eca37a3bc4c5d2699b58af8d33bca9bee')
+b2sums=('1cd7beb116c7c2720935aad42695e41658d9cea203e12eae85771dd2b6a1c81e7013e0b59908203715e17af73c5101f6d5c02eb92c22349bf1b94f78350ed5ae')
+
+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:
More information about the arch-commits
mailing list