source: trunk/dports/www/nikto/Portfile

Last change on this file was 94336, checked in by jmr@…, 5 years ago

New port: nikto, Web server scanner (#31894)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 94336 2012-06-15 17:36:45Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    nikto
7version                 2.1.4
8categories              www security
9platforms               darwin
10supported_archs         noarch
11license                 GPL-2
12maintainers             strasweb.fr:rudloff \
13                        openmaintainer
14homepage                http://cirt.net/nikto2
15description             Web server scanner
16long_description        Nikto is an Open Source (GPL) web server scanner \
17                        which performs comprehensive tests against web \
18                        servers for multiple items, including over 6400 \
19                        potentially dangerous files/CGIs, checks for \
20                        outdated versions of over 1200 servers, and version \
21                        specific problems on over 270 servers. It also \
22                        checks for server configuration items such as the \
23                        presence of multiple index files, HTTP server \
24                        options, and will attempt to identify installed web \
25                        servers and software. Scan items and plugins are \
26                        frequently updated and can be automatically updated.
27master_sites            https://cirt.net/nikto/
28checksums               sha1    414e2923131bbe2091cf8107998b3519c2120fff \
29                        rmd160  d58b488f9a3c6fc37b5e745e29c1288a4db09e98
30depends_run             port:perl5
31
32patchfiles              patch-nikto.conf.diff
33
34use_configure           no
35
36build {
37    reinplace "s|/etc/nikto.conf|${prefix}/etc/nikto/nikto.conf|g" ${worksrcpath}/nikto.pl
38    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/nikto.pl
39    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/nikto.conf
40}
41
42destroot {
43    xinstall -d ${destroot}${prefix}/etc/nikto
44    xinstall -d ${destroot}${prefix}/share/nikto
45    copy ${worksrcpath}/plugins ${destroot}${prefix}/share/${name}/plugins
46    copy ${worksrcpath}/templates ${destroot}${prefix}/share/${name}/templates
47    copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/docs
48    xinstall ${worksrcpath}/nikto.pl ${destroot}${prefix}/bin/nikto
49    xinstall -m 644 ${worksrcpath}/nikto.conf ${destroot}${prefix}/etc/nikto/nikto.conf.sample
50}
51
52post-activate {
53    if {![file exists ${prefix}/etc/nikto/nikto.conf]} {
54        copy ${prefix}/etc/nikto/nikto.conf.sample ${prefix}/etc/nikto/nikto.conf
55    }
56}
Note: See TracBrowser for help on using the repository browser.