Ticket #31894: Portfile

File Portfile, 1.9 KB (added by rudloff@…, 12 years ago)
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$
3
4PortSystem                      1.0
5
6name                    nikto
7version                                 2.1.4
8categories                      www
9platforms                       darwin
10license                                 GPL
11maintainers             strasweb.fr:rudloff \
12                                                        openmaintainer
13homepage                        http://cirt.net/nikto2
14description                     Web server scanner which performs comprehensive tests against web servers for multiple items
15long_description        Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6400 potentially dangerous files/CGIs, checks for outdated versions of over 1200 servers, and version specific problems on over 270 servers. It also checks for server configuration items such as the presence of multiple index files, HTTP server options, and will attempt to identify installed web servers and software. Scan items and plugins are frequently updated and can be automatically updated.
16master_sites                    https://cirt.net/nikto/
17checksums           sha1    414e2923131bbe2091cf8107998b3519c2120fff \
18                                    rmd160  d58b488f9a3c6fc37b5e745e29c1288a4db09e98
19depends_lib                     port:perl5
20use_configure           no
21patchfiles                              patch-nikto.conf.diff
22build {
23        reinplace "s|/etc/nikto.conf|${prefix}/etc/nikto/nikto.conf|g" ${worksrcpath}/nikto.pl
24        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/nikto.conf
25}
26destroot {
27        xinstall -d ${destroot}${prefix}/etc/nikto/
28        xinstall -d ${destroot}${prefix}/share/nikto/
29        copy ${worksrcpath}/plugins ${destroot}${prefix}/share/${name}/plugins
30        copy ${worksrcpath}/templates ${destroot}${prefix}/share/${name}/templates
31        copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/docs
32        xinstall ${worksrcpath}/nikto.pl ${destroot}${prefix}/bin/nikto
33        xinstall ${worksrcpath}/nikto.conf ${destroot}${prefix}/etc/nikto/nikto.conf
34}