ports/149769: [PATCH] Nikto don't build depends properly - p5-Net-SSLeay and nmap options

Anderson Eduardo anderson at secover.com.br
Wed Aug 18 14:10:06 UTC 2010


>Number:         149769
>Category:       ports
>Synopsis:       [PATCH] Nikto don't build depends properly  - p5-Net-SSLeay and nmap options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 18 14:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anderson Eduardo
>Release:        8.1-STABLE
>Organization:
Secover
>Environment:
FreeBSD overlabs.secover.com.br 8.1-STABLE FreeBSD 8.1-STABLE #4: Tue Aug 10 08:14:23 BRT 2010     anderson at overlabs.secover.com.br:/usr/obj/usr/src/sys/KERNEL  amd64
>Description:
Nikto don't build properly when filled options up p5-Net-SSLeay and nmap, due to the incorrect word "depeneds" in the Makefile.

overlabs# cat Makefile | grep DEPENEDS
RUN_DEPENEDS+=  p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
RUN_DEPENEDS+=  nmap:${PORTSDIR}/security/nmap
overlabs#
>How-To-Repeat:
I filled up the options nmap and p5-Net-SSLeay in the copiling time.

overlabs# make install clean
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for nikto-2.1.2,1
===>  Extracting for nikto-2.1.2,1
=> MD5 Checksum OK for nikto-2.1.2.tar.bz2.
=> SHA256 Checksum OK for nikto-2.1.2.tar.bz2.
===>  Patching for nikto-2.1.2,1
===>  Configuring for nikto-2.1.2,1
===>  Installing for nikto-2.1.2,1
===>   nikto-2.1.2,1 depends on file: /usr/local/bin/perl5.10.1 - found
===>   Generating temporary packing list
===>  Checking if security/nikto already installed
install  -o root -g wheel -m 555 /usr/ports/security/nikto/work/nikto-2.1.2/nikto.pl /usr/local/bin/nikto
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/nikto.conf /usr/local/etc/nikto.conf.sample
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/docs/nikto.1 /usr/local/man/man1/
[ -f /usr/local/etc/nikto.conf ] ||  install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/nikto.conf /usr/local/etc/nikto.conf
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/plugins/LW2.pm /usr/local/share/nikto/plugins
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/plugins/db_* /usr/local/share/nikto/plugins
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/plugins/*.plugin /usr/local/share/nikto/plugins
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/templates/*.tmpl /usr/local/share/nikto/templates
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/docs/CHANGES.txt /usr/local/share/doc/nikto
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/docs/LICENSE.txt /usr/local/share/doc/nikto
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/docs/nikto.dtd /usr/local/share/doc/nikto
install  -o root -g wheel -m 444 /usr/ports/security/nikto/work/nikto-2.1.2/docs/nikto_manual.html /usr/local/share/doc/nikto
===>   Compressing manual pages for nikto-2.1.2,1
===>   Registering installation for nikto-2.1.2,1
===>  Cleaning for nikto-2.1.2,1
overlabs#

As you can se above, the nikto don't use neither the nmap nor p5-Net-SSLeay.
>Fix:


Patch attached with submission follows:

--- Makefile.orig       2010-08-18 13:54:02.000000000 +0000
+++ Makefile    2010-08-18 13:54:08.000000000 +0000
@@ -31,11 +31,11 @@
 .include <bsd.port.pre.mk>

 .ifdef(WITH_SSLEAY)
-RUN_DEPENEDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
+RUN_DEPENDS+=  p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
 .endif

 .ifdef(WITH_NMAP)
-RUN_DEPENEDS+= nmap:${PORTSDIR}/security/nmap
+RUN_DEPENDS+=  nmap:${PORTSDIR}/security/nmap
 .endif

 post-patch:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list