28 lines
816 B
Bash
28 lines
816 B
Bash
# Template file for 'sqlmap'
|
|
pkgname=sqlmap
|
|
version=1.3.11
|
|
revision=1
|
|
archs=noarch
|
|
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=b0f25a4ba27787ab55cc939969bcc7ddbe550558759859424be478e6363f8bc3
|
|
pycompile_version="$py3_ver"
|
|
|
|
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
|
|
}
|