1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/security/nessus/Makefile
Pav Lucistnik 5a5e873d18 - Add sample rc script
PR:		ports/66052
Submitted by:	Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
2004-05-02 18:09:24 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: nessus
# Date created: 1 May 1999
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= nessus
PORTVERSION= 2.0.10a
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
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/ \
ftp://ftp.au.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
ftp://ftp.ayamura.org/pub/nessus/nessus-${PORTVERSION}/src/
DISTNAME= nessus-core-${PORTVERSION}
MAINTAINER= udo.schweigert@siemens.com
COMMENT= A security scanner: looks for vulnerabilities in a given network
LIB_DEPENDS= nasl.2:${PORTSDIR}/security/nessus-libnasl
DIST_SUBDIR= nessus
WRKSRC= ${WRKDIR}/nessus-core
USE_LIBTOOL_VER=13
WANT_GNOME= yes
USE_REINPLACE= YES
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PKGNAMESUFFIX= -gtk
.else
CONFIGURE_ARGS+=--disable-gtk
.endif
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8
post-extract:
@${CP} ${FILESDIR}/nessusd.sh ${WRKSRC}/nessusd.sh
@${REINPLACE_CMD} -E -e 's|%%PREFIX%%|${PREFIX}|g' ${BUILD_WRKSRC}/nessusd.sh
post-install:
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/nessusd.sh \
${LOCALBASE}/etc/rc.d/nessusd.sh.sample
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
.if ! exists(${PREFIX}/var/CA/serverkey.pem)
.if ! defined(BATCH)
${PREFIX}/sbin/nessus-mkcert
.else
${PREFIX}/sbin/nessus-mkcert -q
.endif
.endif
.include <bsd.port.post.mk>