mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 06:12:14 +01:00
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
# Contributor: Maxim Karasev <mxkrsv@disroot.org>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=sqlmap
|
|
pkgver=1.7.11
|
|
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="
|
|
57405fad176ed254b2a7a992ddb0d938ed15e24a1503187382acd592545eab058089aae5e04e04bbcfecdb554697861c47dd6227c9fa1ee10ea74d47d43e8a81 sqlmap-1.7.11.tar.gz
|
|
ee1d03843a6011c20da52f4dce329c8da412e08b4dcdf66a8d7685bf3816df0835d77c0ad52005ee63af6fdc8787e086db5837bdfb19c6e5122455df22ac0f11 reduce-amount-of-third-party-dependencies.patch
|
|
"
|