void-packages/srcpkgs/sqlmap/template
2020-12-17 18:06:29 -06:00

26 lines
791 B
Bash

# Template file for 'sqlmap'
pkgname=sqlmap
version=1.4.12
revision=1
pycompile_dirs="usr/share/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=d149722cb33202678fb64642ea315d0dea3fcb2d54403efb78b9819464dbd3e5
python_version=3
do_install() {
vmkdir usr/share/${pkgname}
for dir in data extra lib plugins tamper thirdparty sqlmap.py sqlmapapi.py; do
vcopy $dir usr/share/${pkgname}
done
vmkdir usr/bin
ln -sf /usr/share/${pkgname}/sqlmap.py ${DESTDIR}/usr/bin/
ln -sf /usr/share/${pkgname}/sqlmapapi.py ${DESTDIR}/usr/bin/
vsconf sqlmap.conf
}