APKBUILD 1.1 KB
Newer Older
Fabio Aires's avatar
Fabio Aires committed
1 2 3
# Contributor: Fabio Aires <fabioaires.web@gmail.com>
# Maintainer: Fabio Aires <fabioaires.web@gmail.com>
pkgname=nikto
4
pkgver=2.1.6
5
pkgrel=1
Fabio Aires's avatar
Fabio Aires committed
6 7 8
pkgdesc="A web application security scanner"
url="https://www.cirt.net/Nikto2"
arch="noarch"
9
license="GPL-2.0"
10
options="!check" # No test suite
11
depends="perl nmap openssl"
12
source="$pkgname-$pkgver.tar.gz::https://github.com/sullo/nikto/archive/$pkgver.tar.gz
Fabio Aires's avatar
Fabio Aires committed
13
	nikto.conf.base"
14
builddir="$srcdir/$pkgname-$pkgver/program"
Fabio Aires's avatar
Fabio Aires committed
15 16

build() {
17
	cd "$builddir"
18
	return 0
Fabio Aires's avatar
Fabio Aires committed
19 20 21
}

package() {
22
	cd "$builddir"
Fabio Aires's avatar
Fabio Aires committed
23 24 25 26 27 28
	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
29
	install -m 755 nikto.pl  "$pkgdir"/usr/bin
Fabio Aires's avatar
Fabio Aires committed
30 31
}

32
sha512sums="13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69  nikto-2.1.6.tar.gz
Fabio Aires's avatar
Fabio Aires committed
33
d6e349bd20428e45d6ef49db91630e1c6d65d4cf2107a1f4c58e697d8fceeb428fb90c247fbbf8a8ad6f9d27672790d07040079b94c2480dd77dc445fccd6f69  nikto.conf.base"