mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
# Contributor: Maxim Karasev <mxkrsv@disroot.org>
|
|
# Maintainer: Maxim Karasev <mxkrsv@disroot.org>
|
|
pkgname=sqlmap
|
|
pkgver=1.6.12
|
|
pkgrel=0
|
|
pkgdesc="Automatic SQL injection and database takeover tool"
|
|
url="https://sqlmap.org/"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
depends="python3 py3-six py3-beautifulsoup4 py3-keepalive py3-termcolor
|
|
py3-colorama py3-bottle py3-chardet py3-magic py3-pydes"
|
|
makedepends="py3-setuptools"
|
|
source="https://pypi.python.org/packages/source/s/sqlmap/sqlmap-$pkgver.tar.gz
|
|
reduce-amount-of-third-party-dependencies.patch"
|
|
options="!check" # fail with py311 for some reason
|
|
|
|
prepare() {
|
|
# remove unneeded thirdparty moduels (keep patch small)
|
|
cd sqlmap/thirdparty
|
|
rm -rf chardet bottle beautifulsoup colorama keepalive magic odict \
|
|
pydes six termcolor
|
|
|
|
# pip sources hierarchy is not exactly the same as git
|
|
local builddir="$builddir"/sqlmap
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install \
|
|
--prefix=/usr \
|
|
--root="$pkgdir" \
|
|
--single-version-externally-managed
|
|
}
|
|
|
|
sha512sums="
|
|
a11c598e9ec60fe71fdfaf39f542b2f36286878589defe7a5d3e5ff59c4d4690df0902aa75998bff128b0cd8236d0a79487340677063c7082ec1a75c91d87a54 sqlmap-1.6.12.tar.gz
|
|
d65cc87762a0393fe650c669756fca18928c4434354cf090628658d63df645ea865db763e34c909a8b8e8e3693285a5dc310e5e6cf3c298db9839c9faa0d804a reduce-amount-of-third-party-dependencies.patch
|
|
"
|