mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-16 06:02:45 +01:00
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
# Contributor: Maxim Karasev <mxkrsv@disroot.org>
|
|
# Maintainer: Maxim Karasev <mxkrsv@disroot.org>
|
|
pkgname=sqlmap
|
|
pkgver=1.7.6
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
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="
|
|
17d3ce8c34d32b5ddfba8ae7ecfec7529c409b2917dbc00f0dc304ebf15b04a9e481da3d69b3b2cd3094666930de894affdf94259d28f421fbf12251ffe2203f sqlmap-1.7.6.tar.gz
|
|
95e72a54f98b0906d95c9f4d9022782bf32c04ed099afc4fd449ba7d1b717954c658511883e5d8b62b38498ca9b5a81927758e8d21a81aac82619ef4f62ee053 reduce-amount-of-third-party-dependencies.patch
|
|
"
|