27 lines
798 B
Bash
27 lines
798 B
Bash
# Template file for 'sqlmap'
|
|
pkgname=sqlmap
|
|
version=1.5.3
|
|
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=5cdd29b4a86913962ab1eecc1f59bd32a038d1573f70edb1760bf88f01347526
|
|
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
|
|
}
|