void-packages/srcpkgs/sqlmap/template
2021-10-09 08:01:17 -04:00

26 lines
801 B
Bash

# Template file for 'sqlmap'
pkgname=sqlmap
version=1.5.10
revision=2
pycompile_dirs="usr/libexec/sqlmap"
depends="python3"
short_desc="Automatic SQL injection and database takeover tool"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://sqlmap.org"
distfiles="https://github.com/sqlmapproject/sqlmap/archive/${version}.tar.gz"
checksum=7147ba8c9ac98fe55daa4928c34f7b6e314bfa7fa60a4f073689f70533128bcb
python_version=3
do_install() {
vmkdir usr/libexec/${pkgname}
for dir in data extra lib plugins tamper thirdparty sqlmap.py sqlmapapi.py; do
vcopy $dir usr/libexec/${pkgname}
done
vmkdir usr/bin
ln -sf /usr/libexec/${pkgname}/sqlmap.py ${DESTDIR}/usr/bin/
ln -sf /usr/libexec/${pkgname}/sqlmapapi.py ${DESTDIR}/usr/bin/
vsconf sqlmap.conf
}