summaryrefslogtreecommitdiff
path: root/security/nessus
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-03-11 13:46:15 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-03-11 13:46:15 +0000
commit817c4c79303e3501defee8f241486eebc06581d3 (patch)
tree2448f3173a532c4b5eff27911641b55e224e80c2 /security/nessus
parentEven better way of handling multiple post-extract targets. (diff)
Use WANT_GTK and USE_GTK properly, so that the text-only nessus client can
be built automatically if gtk is not installed. The WITHOUT_GTK option is still supported (by bsd.gnome.mk) I also changed a couple of @dirrms to @unexecs in pkg-plist.
Notes
Notes: svn path=/head/; revision=39586
Diffstat (limited to 'security/nessus')
-rw-r--r--security/nessus/Makefile11
-rw-r--r--security/nessus/pkg-plist4
2 files changed, 10 insertions, 5 deletions
diff --git a/security/nessus/Makefile b/security/nessus/Makefile
index eefb87acf915..7af90b3c2491 100644
--- a/security/nessus/Makefile
+++ b/security/nessus/Makefile
@@ -26,9 +26,14 @@ LIB_DEPENDS= nasl.1:${PORTSDIR}/security/nessus-libnasl
DIST_SUBDIR= nessus
WRKSRC= ${WRKDIR}/nessus-core
-HAVE_GTK= yes
USE_LIBTOOL= yes
-.if defined(WITHOUT_GTK)
+WANT_GTK= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GTK) && !defined(WITHOUT_GTK)
+USE_GTK= yes
+.else
CONFIGURE_ARGS+= --disable-gtk
.endif
@@ -41,4 +46,4 @@ post-install:
@${ECHO} "collection."
@${ECHO} "================================================================================"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/nessus/pkg-plist b/security/nessus/pkg-plist
index 24f36bda5e19..1af5f7ff233a 100644
--- a/security/nessus/pkg-plist
+++ b/security/nessus/pkg-plist
@@ -10,5 +10,5 @@ include/nessus/nessustcp.h
include/nessus/nessusudp.h
include/nessus/ntcompat.h
sbin/nessusd
-@dirrm var/nessus
-@dirrm etc/nessus
+@unexec rmdir %D/var/nessus 2>/dev/null || true
+@unexec rmdir %D/etc/nessus 2>/dev/null || true