1999-05-17 10:26:40 +00:00
|
|
|
# New ports collection makefile for: nessus
|
|
|
|
# Date created: 1 May 1999
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1999-05-17 10:26:40 +00:00
|
|
|
#
|
2004-08-13 13:36:02 +00:00
|
|
|
# If you want to only have the command-line client even if gtk is already
|
2004-08-21 10:51:10 +00:00
|
|
|
# installed define one of these:
|
|
|
|
# WITHOUT_GNOME
|
|
|
|
# WITHOUT_GTK
|
2004-08-13 13:36:02 +00:00
|
|
|
# WITHOUT_NESSUS_GTK
|
1999-05-17 10:26:40 +00:00
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= nessus
|
2005-02-14 13:04:59 +00:00
|
|
|
PORTVERSION= 2.2.3
|
1999-05-17 10:26:40 +00:00
|
|
|
CATEGORIES= security
|
2002-11-22 16:18:51 +00:00
|
|
|
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
|
2001-02-05 23:42:43 +00:00
|
|
|
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \
|
|
|
|
http://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/nessus/nessus-${PORTVERSION}/src/ \
|
2003-07-13 20:34:57 +00:00
|
|
|
ftp://ftp.au.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
|
|
|
|
ftp://ftp.ayamura.org/pub/nessus/nessus-${PORTVERSION}/src/
|
2000-10-28 02:04:18 +00:00
|
|
|
DISTNAME= nessus-core-${PORTVERSION}
|
1999-05-17 10:26:40 +00:00
|
|
|
|
2002-06-19 11:13:16 +00:00
|
|
|
MAINTAINER= udo.schweigert@siemens.com
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= A security scanner: looks for vulnerabilities in a given network
|
1999-05-17 10:26:40 +00:00
|
|
|
|
2004-08-13 13:36:02 +00:00
|
|
|
CONFLICTS= nessus-devel-[0-9]* nessus-devel-gtk-[0-9]* \
|
|
|
|
nessus-devel-gtk2-[0-9]*
|
2004-11-06 11:46:44 +00:00
|
|
|
LIB_DEPENDS= nasl.4:${PORTSDIR}/security/nessus-libnasl
|
1999-05-29 03:56:15 +00:00
|
|
|
|
1999-12-01 05:27:13 +00:00
|
|
|
DIST_SUBDIR= nessus
|
|
|
|
WRKSRC= ${WRKDIR}/nessus-core
|
2004-11-09 18:29:03 +00:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall.sh
|
1999-12-01 05:27:13 +00:00
|
|
|
|
2005-02-14 13:04:59 +00:00
|
|
|
USE_LIBTOOL_VER= 13
|
2004-05-02 18:09:24 +00:00
|
|
|
USE_REINPLACE= YES
|
2004-08-13 13:36:02 +00:00
|
|
|
USE_RC_SUBR= YES
|
|
|
|
WANT_GNOME= yes
|
2004-08-21 10:51:10 +00:00
|
|
|
.if defined(WITHOUT_NESSUS_GTK) || defined(WITHOUT_GTK)
|
|
|
|
WITHOUT_GNOME= yes
|
2004-08-13 13:36:02 +00:00
|
|
|
.endif
|
2001-03-11 13:46:15 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-07-24 18:28:51 +00:00
|
|
|
.if ${HAVE_GNOME:Mgtk20}!=""
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
PKGNAMESUFFIX= -gtk2
|
|
|
|
.elif ${HAVE_GNOME:Mgtk12}!=""
|
2002-09-01 15:18:25 +00:00
|
|
|
USE_GNOME+= gtk12
|
|
|
|
PKGNAMESUFFIX= -gtk
|
2001-03-11 13:46:15 +00:00
|
|
|
.else
|
2001-08-08 13:38:14 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-gtk
|
2001-01-05 03:10:15 +00:00
|
|
|
.endif
|
2000-10-05 06:42:57 +00:00
|
|
|
|
2002-06-19 11:13:16 +00:00
|
|
|
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1
|
|
|
|
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8
|
1999-12-01 05:27:13 +00:00
|
|
|
|
2004-08-13 13:36:02 +00:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
RC_SUBR=${RC_SUBR}
|
2004-05-02 18:09:24 +00:00
|
|
|
|
2004-11-09 18:29:03 +00:00
|
|
|
SED_SCRIPT= -e 's,%%PKGNAME%%,${PKGNAME},g' \
|
|
|
|
-e 's,%%PREFIX%%,${PREFIX},g'
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.for script in pkg-deinstall
|
|
|
|
@${SED} ${SED_SCRIPT} ${SCRIPTDIR}/${script} > ${WRKDIR}/${script}.sh
|
|
|
|
.endfor
|
|
|
|
|
1999-05-17 10:26:40 +00:00
|
|
|
post-install:
|
2004-08-13 13:36:02 +00:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
2004-11-06 11:46:44 +00:00
|
|
|
${FILESDIR}/nessusd.sh > ${PREFIX}/etc/rc.d/nessusd.sh
|
|
|
|
@${CHMOD} +x ${PREFIX}/etc/rc.d/nessusd.sh
|
|
|
|
@${SED} -e 's;\$${PREFIX};${PREFIX};' ${FILESDIR}/nessusd.conf \
|
|
|
|
> ${PREFIX}/etc/nessus/nessusd.conf.dist
|
|
|
|
@${SED} -e 's;\$${PREFIX};${PREFIX};' ${FILESDIR}/nessusd.rules \
|
|
|
|
> ${PREFIX}/etc/nessus/nessusd.rules.dist
|
|
|
|
@${CHMOD} 644 ${PREFIX}/etc/nessus/nessusd.conf.dist \
|
|
|
|
${PREFIX}/etc/nessus/nessusd.rules.dist
|
2004-12-11 16:40:58 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/nessus/nessusd.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/nessus/nessusd.conf.dist \
|
|
|
|
${PREFIX}/etc/nessus/nessusd.conf; \
|
|
|
|
fi
|
|
|
|
@if [ ! -f ${PREFIX}/etc/nessus/nessusd.rules ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/nessus/nessusd.rules.dist \
|
|
|
|
${PREFIX}/etc/nessus/nessusd.rules; \
|
|
|
|
fi
|
2004-04-10 20:42:56 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
|
|
|
|
.if ! exists(${PREFIX}/var/CA/serverkey.pem)
|
2004-12-15 16:01:51 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "**************************************************************************"
|
|
|
|
@${ECHO} "To create and install a new certificate, type \"make cert\""
|
|
|
|
@${ECHO} "**************************************************************************"
|
|
|
|
@${ECHO} ""
|
2004-05-02 18:09:24 +00:00
|
|
|
.endif
|
2004-08-13 13:36:02 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-05-17 10:26:40 +00:00
|
|
|
|
2004-12-15 16:01:51 +00:00
|
|
|
cert:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "**************************************************************************"
|
|
|
|
@${ECHO} "The new certificate will be saved into ${PREFIX}/var/CA/serverkey.pem"
|
|
|
|
@${ECHO} "**************************************************************************"
|
|
|
|
@${ECHO} ""
|
|
|
|
${PREFIX}/sbin/nessus-mkcert
|
|
|
|
|
2001-03-11 13:46:15 +00:00
|
|
|
.include <bsd.port.post.mk>
|