# Contributor: Fabio Aires <fabioaires.web@gmail.com>
# Maintainer: Fabio Aires <fabioaires.web@gmail.com>
pkgname=nikto
pkgver=2.1.5
pkgrel=2
pkgdesc="A web application security scanner"
url="https://www.cirt.net/Nikto2"
arch="noarch"
license="GPL-2.0"
depends="perl nmap libressl"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="https://www.cirt.net/$pkgname/$pkgname-$pkgver.tar.gz
	nikto.conf.base"

builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$builddir"
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/etc/nikto "$pkgdir"/usr/bin
	cp "$srcdir"/nikto.conf.base "$pkgdir"/etc/nikto.conf
	cp -r databases "$pkgdir"/etc/nikto
	cp -r templates "$pkgdir"/etc/nikto
	cp -r plugins "$pkgdir"/etc/nikto
	cp -r docs "$pkgdir"/etc/nikto
	install -m 755 nikto.pl  "$pkgdir"/usr/bin
}

md5sums="efcc98a918becb77471ee9a5df0a7b1e  nikto-2.1.5.tar.gz
39d5e2e923344a3624e94d2b17408988  nikto.conf.base"
sha256sums="0e672a6a46bf2abde419a0e8ea846696d7f32e99ad18a6b405736ee6af07509f  nikto-2.1.5.tar.gz
f24b1e9007156a1700b32daa763f104423b4dde3a42bd74bc2deef6244953374  nikto.conf.base"
sha512sums="b6a1e7277a501055a4693d2e7179801bda0566350f3718cd169c3baf61003a936b14e9a4ba59f3597a83be8ef509953fdae546ec57e487a33b2b3efbabe84b67  nikto-2.1.5.tar.gz
d6e349bd20428e45d6ef49db91630e1c6d65d4cf2107a1f4c58e697d8fceeb428fb90c247fbbf8a8ad6f9d27672790d07040079b94c2480dd77dc445fccd6f69  nikto.conf.base"
