summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 18:49:35 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-29 18:52:22 -0300
commit7869b727d6a1d4715bbcf9781fb9aa98a855dfac (patch)
treea0ec3c1985633acc7072ae9e79804c535f23f44a
parent291bd1463247ac5a8e60960629071d1421d26ab9 (diff)
downloadabslibre-7869b727d6a1d4715bbcf9781fb9aa98a855dfac.tar.gz
abslibre-7869b727d6a1d4715bbcf9781fb9aa98a855dfac.tar.bz2
abslibre-7869b727d6a1d4715bbcf9781fb9aa98a855dfac.zip
nikto: add new package to [libre] - Freedom issue #1053 -> https://labs.parabola.nu/issues/1053
-rw-r--r--libre/nikto/PKGBUILD49
-rw-r--r--libre/nikto/nikto.sh3
2 files changed, 52 insertions, 0 deletions
diff --git a/libre/nikto/PKGBUILD b/libre/nikto/PKGBUILD
new file mode 100644
index 000000000..ed29b5273
--- /dev/null
+++ b/libre/nikto/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor (Arch): grimsock <lord.grimsock at gmail dot com>
+# Contributor (Arch): Alessandro Sagratini <ale_sagra at hotmail dot com>
+# Contributor (Arch): Arkham <arkham at archlinux dot us>
+# Contributor (Arch): LeCrayonVert < greenarrow at archlinux dot us>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=nikto
+pkgver=2.1.6
+pkgrel=1.parabola1
+pkgdesc='A web server scanner which performs comprehensive tests against web servers for multiple items, without nonfree databases'
+url='https://github.com/sullo/nikto'
+arch=('any')
+license=('GPL')
+depends=('sh' 'openssl' 'perl-net-ssleay' 'perl-json')
+backup=('etc/nikto.conf')
+mksource=(${pkgname}-${pkgver}.tar.gz::https://github.com/sullo/${pkgname}/archive/${pkgver}.tar.gz)
+source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.xz
+ nikto.sh)
+mksha512sums=('13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69')
+sha512sums=('93dbf03a74b40f6ec0cedacf798b73129cadeec35f34cd6d70fbdc14973175a1638f4333a234806c1ef27855f4d44526eebb56f27e524f1f17548b6148669d7d'
+ '75b9be1f1cacbca09a5e72f8125aadc24938a3ac36b2337bf68916231af52e2af846a0dedb36782f45716d2c6d590a3606cb5879339528e7a744f1d2d880120d')
+
+mksource(){
+ cd "${pkgname}-${pkgver}"
+
+ # Remove nonfree databases
+ rm -rv $(grep -rlI 'not be used with any software product')
+}
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ find . -type f ! -name nikto.pl -exec chmod 644 {} +
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ install -d "${pkgdir}/usr/share/nikto"
+ cp -a program/* "${pkgdir}/usr/share/nikto"
+
+ install -Dm 755 "${srcdir}/nikto.sh" "${pkgdir}/usr/bin/nikto"
+ install -Dm 644 program/nikto.conf "${pkgdir}/etc/nikto.conf"
+ install -Dm 644 documentation/nikto.1 "${pkgdir}/usr/share/man/man1/nikto.1"
+ install -Dm 644 program/docs/nikto_manual.html "${pkgdir}/usr/share/doc/${pkgname}/manual.html"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/libre/nikto/nikto.sh b/libre/nikto/nikto.sh
new file mode 100644
index 000000000..c3ea9bf24
--- /dev/null
+++ b/libre/nikto/nikto.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/nikto
+exec /usr/bin/perl nikto.pl "$@"