From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 13 20:00:29 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0611D16A41F for ; Tue, 13 Dec 2005 20:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A331F43D55 for ; Tue, 13 Dec 2005 20:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBDK0O3U001031 for ; Tue, 13 Dec 2005 20:00:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBDK0OpU001030; Tue, 13 Dec 2005 20:00:24 GMT (envelope-from gnats) Resent-Date: Tue, 13 Dec 2005 20:00:24 GMT Resent-Message-Id: <200512132000.jBDK0OpU001030@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ion-Mihai "IOnut" Tetcu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9A0816A420 for ; Tue, 13 Dec 2005 19:59:26 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id C4BDA43D6E for ; Tue, 13 Dec 2005 19:59:20 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 16163 invoked from network); 13 Dec 2005 19:59:13 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 13 Dec 2005 19:59:13 -0000 Received: (qmail 7684 invoked by uid 89); 13 Dec 2005 19:59:08 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 13 Dec 2005 19:59:08 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 3D234B84A for ; Tue, 13 Dec 2005 21:59:05 +0200 (EET) Message-Id: <1134503945.0@it.buh.tecnik93.com> Date: Tue, 13 Dec 2005 21:59:05 +0200 From: "Ion-Mihai "IOnut" Tetcu" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.6 Cc: Subject: ports/90344: [MAINTAINER] security/nikto: UNBREAK; many fixes. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:00:29 -0000 >Number: 90344 >Category: ports >Synopsis: [MAINTAINER] security/nikto: UNBREAK; many fixes. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Dec 13 20:00:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ion-Mihai "IOnut" Tetcu >Release: FreeBSD 6.0-STABLE i386 >Organization: Tecnik'93 >Environment: System: FreeBSD 6.0-STABLE #5: Thu Dec 1 02:08:55 EET 2005 >Description: Un-BREAK by using version-ed file-name for DISTFILES, from vendor site, official mirror www.mirrors.wiretapped.net and my server. USE_PERL and reinplace hardcoded path for perl OPTIONally run-depend on security/p5-Net-SSLeay and security/nmap. Install config.txt as nikto.conf (and replace references to config.txt in all appropriate places). Use INSTALL_DATA for plugins. Bump PORTREVISION. Take maintainership. Nice collection of pointy-hats earned with this port by previous commiters, I hope I don't also get one. >How-To-Repeat: >Fix: --- nikto.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/security/nikto/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.7 diff -u -r1.1.1.1 -r1.7 --- Makefile 13 Dec 2005 10:08:40 -0000 1.1.1.1 +++ Makefile 13 Dec 2005 16:26:20 -0000 1.7 @@ -4,43 +4,65 @@ # # $FreeBSD: ports/security/nikto/Makefile,v 1.13 2005/11/15 04:46:36 kris Exp $ # +# $Tecnik: ports/security/nikto/Makefile,v 1.7 2005/12/13 16:26:20 itetcu Exp $ +# PORTNAME= nikto PORTVERSION= 1.35 +PORTREVISON= 1 CATEGORIES= security www -MASTER_SITES= http://www.cirt.net/nikto/ \ - ftp://ftp.bay13.net/pub/wiretapped/vulnerability-assessment/nikto/ \ - http://mirror1.internap.com/pub/localareasecurity/wiretapped/vulnerability-assessment/nikto/ \ - ftp://ftp.localareasecurity.com/pub/wiretapped/vulnerability-assessment/nikto/ \ - http://www.mirrors.wiretapped.net/security/vulnerability-assessment/nikto/ +MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \ + http://www.mirrors.wiretapped.net/security/vulnerability-assessment/${PORTNAME}/ \ + http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= itetcu@people.tecnik93.com COMMENT= Web and CGI vulnerability scanner with SSL support -BROKEN= Size mismatch - +USE_BZIP2= yes +USE_PERL5_RUN= yes NO_BUILD= yes USE_REINPLACE= yes -PORTDOCS= nikto_usage.txt nikto_usage.html CHANGES.txt README_plugins.txt +PORTDOCS= CHANGES.txt README_plugins.txt nikto_usage.html nikto_usage.txt +MAN1= ${PORTNAME}.1 + +OPTIONS+= SSLEAY "Use NET::SSLeay for ssl scanning" on +OPTIONS+= NMAP "Use security/nmap for port scanning" on + +.include + +.ifdef(WITH_SSLEAY) +RUN_DEPENEDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay +.endif + +.ifdef(WITH_NMAP) +RUN_DEPENEDS+= nmap:${PORTSDIR}/security/nmap +.endif post-patch: - @${REINPLACE_CMD} -Ee 's,(config.txt),${PREFIX}/etc/nikto/\1,g' ${WRKSRC}/nikto.pl + @${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" ${WRKSRC}/nikto.pl + @${REINPLACE_CMD} -Ee "s,(config.txt),${PREFIX}/etc/nikto.conf," ${WRKSRC}/nikto.pl @${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" \ -e "s|# (PLUGINDIR=)/usr/local/nikto/plugins|\1${DATADIR}|g" \ ${WRKSRC}/config.txt + @${REINPLACE_CMD} "s/config.txt/nikto.conf/g" ${WRKSRC}/plugins/* ${WRKSRC}/docs/* + @{MV} ${WRKSRC}/docs/nikto-1.34.man ${WRKSRC}/docs/nikto.1 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto - @${MKDIR} ${PREFIX}/etc/nikto - ${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto + ${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto.conf @${MKDIR} ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/plugins/* ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/LW.pm ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/*.db ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/nikto_plugin_order.txt ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin ${DATADIR} + .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} -.endfor +. for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} +. endfor .endif + ${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MAN1PREFIX}/man/man1 -.include +.include Index: distinfo =================================================================== RCS file: /home/ncvs/ports/security/nikto/distinfo,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- distinfo 13 Dec 2005 10:08:40 -0000 1.1.1.1 +++ distinfo 13 Dec 2005 11:53:24 -0000 1.2 @@ -1,2 +1,3 @@ -MD5 (nikto-1.35.tar.gz) = 908f6b5c670434324633db48bd4537cd -SIZE (nikto-1.35.tar.gz) = 190033 +MD5 (nikto-1.35.tar.bz2) = 50d9c671a5285365bd93bcea7577950b +SHA256 (nikto-1.35.tar.bz2) = b73d54e9b364f08b2e92753c7e53549a864f24bee13658efa47d201a298e404d +SIZE (nikto-1.35.tar.bz2) = 166897 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/security/nikto/pkg-plist,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- pkg-plist 13 Dec 2005 10:08:40 -0000 1.1.1.1 +++ pkg-plist 13 Dec 2005 12:38:14 -0000 1.2 @@ -1,5 +1,5 @@ bin/nikto -etc/nikto/config.txt +etc/nikto.conf %%DATADIR%%/nikto_mutate.plugin %%DATADIR%%/nikto_outdated.plugin %%DATADIR%%/nikto_apacheusers.plugin @@ -20,4 +20,3 @@ %%DATADIR%%/servers.db %%DATADIR%%/LW.pm @dirrm %%DATADIR%% -@dirrm etc/nikto --- nikto.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: