diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | nikto.install | 11 |
3 files changed, 25 insertions, 21 deletions
@@ -1,9 +1,8 @@ pkgbase = nikto-git pkgdesc = A web server scanner which performs comprehensive tests against web servers for multiple items - pkgver = 2.1.6 + pkgver = 2.1.6.601.7ac0457 pkgrel = 1 url = https://github.com/sullo/nikto - install = nikto.install arch = any license = GPL makedepends = git @@ -11,10 +10,12 @@ pkgbase = nikto-git depends = openssl depends = perl-net-ssleay depends = perl-json + provides = nikto + conflicts = nikto backup = etc/nikto.conf - source = nikto-git::git+https://github.com/sullo/nikto-git + source = nikto-git::git+https://github.com/sullo/nikto source = nikto.sh - sha512sums = 13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69 + sha512sums = SKIP sha512sums = 75b9be1f1cacbca09a5e72f8125aadc24938a3ac36b2337bf68916231af52e2af846a0dedb36782f45716d2c6d590a3606cb5879339528e7a744f1d2d880120d pkgname = nikto-git @@ -1,7 +1,8 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> pkgname=nikto-git -pkgver=2.1.6 +_gitname=nikto +pkgver=2.1.6.601.7ac0457 pkgrel=1 pkgdesc='A web server scanner which performs comprehensive tests against web servers for multiple items' url='https://github.com/sullo/nikto' @@ -10,22 +11,35 @@ license=('GPL') depends=('sh' 'openssl' 'perl-net-ssleay' 'perl-json') makedepends=('git') backup=('etc/nikto.conf') -install=nikto.install -source=(${pkgname}::git+https://github.com/sullo/${pkgname} +provides=('nikto') +conflicts=('nikto') +source=(${pkgname}::git+https://github.com/sullo/${_gitname} nikto.sh) -sha512sums=('13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69' +sha512sums=('SKIP' '75b9be1f1cacbca09a5e72f8125aadc24938a3ac36b2337bf68916231af52e2af846a0dedb36782f45716d2c6d590a3606cb5879339528e7a744f1d2d880120d') +pkgver() { + cd ${pkgname} + printf "%s.%s.%s" "$(git describe --tags --abbrev=0)" \ + "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${pkgname} + find . -type f ! -name nikto.pl -exec chmod 644 {} + +} + package() { cd ${pkgname} + install -d "${pkgdir}/usr/share/nikto" cp -a program/* "${pkgdir}/usr/share/nikto" - #find $pkgdir/usr/share/nikto -type f -exec chmod 644 {} + + 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" - ln -s /usr/share/nikto/nikto.conf "${pkgdir}/etc/nikto.conf" } # vim: ts=2 sw=2 et: diff --git a/nikto.install b/nikto.install deleted file mode 100644 index c9efd7c7d3c9..000000000000 --- a/nikto.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - echo "> Don't forget to update your plugins running as root:" - echo "> nikto -update" - echo "" -} - -post_upgrade() { - post_install $1 -} - -# vim: ts=2 sw=2 et: |