# $Id: Portfile 76385 2011-02-21 20:58:10Z ricci@macports.org $

PortSystem 1.0
name		nessus-plugins
version		2.2.6
categories	net security
maintainers	nomaintainer
description	Nessus security scanner
long_description Nessus is a security scanner that crawls across a network, looking \
                for well-known vulnerabilities and common misconfigurations.

homepage        http://www.nessus.org/
platforms       darwin
master_sites    ftp://ftp.nessus.org/pub/nessus/nessus-${version}/src/ \
                ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${version}/src/ \
                http://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${version}/src/ \
                ftp://sunsite.cnlab-switch.ch/mirror/nessus/nessus-${version}/src/ \
                ftp://ftp.chg.ru/pub/security/nessus/nessus-${version}/src/ \
                ftp://ftp.sekure.net/pub/nessus/nessus-${version}/src/
distfiles	${name}-GPL-${version}${extract.suffix}
checksums	md5 7d4f1fed76105a1e4e0522573e36cba5 \
		sha1 7e38d223c954d50bda344581e0545046242a19f4
worksrcdir      ${name}/
depends_lib     lib:libnessus-${version}:nessus-libraries
depends_build   bin:nessus-core:nessus-core

configure.args  --mandir=\\\${prefix}/share/man \
                --infodir=\\\${prefix}/share/info

variant licensed {
	ui_msg ""
	ui_msg "####################################################################"
	ui_msg "You must download the nessus-plugins-${version}.tar.gz file yourself"
	ui_msg "and install it into ${prefix}/var/db/dports/distfiles/nessus-plugins/."
	ui_msg "If you get errors about not being able to fetch the distfile, "
	ui_msg "re-read the above."
	ui_msg "####################################################################"
	ui_msg ""
	
	distfiles	${name}-${version}${extract.suffix}
	checksums	md5 96198eeba6acfc2ac89781128564d27b \
			sha1 a924b31ccf96f30276f8c9c3fb89abbb7f9c1171
}
