43d02cccff
- fix compile on -current and recent -stable (due to conflicting strcasestr definitions) PR: 33188 Submitted by: maintainer
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# New ports collection makefile for: nessus-devel
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nessus-devel
|
|
PORTVERSION= 1.1.11
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp.cis.fed.gov/pub/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://ftp.nessus.org/pub/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://cvs.nessus.org/pub/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://ftp.gwdg.de/pub/linux/misc/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
http://ftp.gwdg.de/pub/linux/misc/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://ftp.esiea.fr/pub/mirrors/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://sunsite.cnlab-switch.ch/mirror/unstable/nessus/nessus-${PORTVERSION}/src/ \
|
|
ftp://ftp.chg.ru/pub/security/nessus/unstable/nessus-${PORTVERSION}/src/ \
|
|
ftp://ftp.sekure.net/pub/nessus/unstable/nessus-${PORTVERSION}/src/
|
|
DISTNAME= nessus-core-${PORTVERSION}
|
|
|
|
MAINTAINER= udo.schweigert@siemens.com
|
|
|
|
LIB_DEPENDS= nasl.2:${PORTSDIR}/security/nessus-libnasl-devel
|
|
|
|
DIST_SUBDIR= nessus
|
|
WRKSRC= ${WRKDIR}/nessus-core
|
|
|
|
USE_LIBTOOL= yes
|
|
WANT_GTK= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(HAVE_GTK)
|
|
USE_GTK= yes
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-gtk
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --sharedstatedir=${PREFIX}/etc/nessus/com \
|
|
--localstatedir=${PREFIX}/etc/nessus/var
|
|
|
|
MAN1= nessus.1 nessus-mkrand.1
|
|
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8
|
|
|
|
post-patch::
|
|
@${PERL} -pi.fbsd -e 's,strcasestr,ne_strcasestr,g' \
|
|
${WRKSRC}/nessus/html_graph_output.c
|
|
@${PERL} -pi.fbsd -e 's,strcasestr,ne_strcasestr,g' \
|
|
${WRKSRC}/nessus/xml_output_ng.c
|
|
|
|
|
|
post-install:
|
|
.if ! defined(BATCH)
|
|
.if ! exists(${PREFIX}/etc/nessus/var/CA/serverkey.pem)
|
|
${PREFIX}/sbin/nessus-mkcert
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|