# Tanım: Web sunucu zafiyet tarayıcı aracı
# URL: https://cirt.net/Nikto2
# Paketçi: yakar
# Gerekler: 
# Grup: güvenlik

isim=nikto
surum=2.1.6
devir=1
kaynak=(https://github.com/sullo/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
	cd $SRC/$isim-$surum/program/

	install -d "$PKG/usr/share/nikto"
	cp -a * "$PKG/usr/share/nikto"

	mkdir -p $PKG/usr/bin
	cat > $PKG/usr/bin/nikto << EOF
#!/bin/sh
cd /usr/share/nikto
exec /usr/bin/perl nikto.pl "$@"
EOF
	chmod +x $PKG/usr/bin/nikto
	
  	# desktop
	mkdir -p "$PKG/usr/share/applications/"
	cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Nikto
Exec=sh -c "nikto;${SHELL:-bash}"
Terminal=true
Icon=nikto
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}
