diff --git a/srcpkgs/nikto/template b/srcpkgs/nikto/template new file mode 100644 index 00000000000..cb27bcfbc1f --- /dev/null +++ b/srcpkgs/nikto/template @@ -0,0 +1,33 @@ +# Template file for 'nikto' +pkgname=nikto +version=2.5.0 +revision=1 +depends="perl perl-Net-SSLeay perl-JSON openssl" +short_desc="Comprehensive web server vulnerability scanner" +maintainer="Emil Miler " +license="GPL-2.0-only" +homepage="https://cirt.net/Nikto2" +changelog="https://github.com/sullo/nikto/releases" +distfiles="https://github.com/sullo/nikto/archive/refs/tags/${version}.tar.gz" +checksum=fb0dc4b2bc92cb31f8069f64ea4d47295bcd11067a7184da955743de7d97709d + +do_install() { + vmkdir usr/bin + vmkdir etc + vmkdir usr/share/nikto + vmkdir usr/share/doc/nikto + vcopy program/nikto.pl usr/bin/nikto + vcopy program/replay.pl usr/bin/replay + vcopy program/plugins usr/share/nikto + vcopy program/templates usr/share/nikto + vcopy program/databases usr/share/nikto + vman program/docs/nikto.1 + vsed -i \ + -e "s|^# EXECDIR=.*|EXECDIR=/usr/bin/nikto|" \ + -e "s|^# PLUGINDIR=.*|PLUGINDIR=/usr/share/nikto/plugins|" \ + -e "s|^# DBDIR=.*|DBDIR=/usr/share/nikto/databases|" \ + -e "s|^# TEMPLATEDIR=.*|TEMPLATEDIR=/usr/share/nikto/templates|" \ + -e "s|^# DOCDIR=.*|TDOCDIR=/usr/share/doc/nikto|" \ + program/nikto.conf.default + vconf program/nikto.conf.default etc/nikto.conf +}