diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2003-04-19 20:40:13 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2003-04-19 20:40:13 +0000 |
commit | accf206ab88cabf657d5287f0104fef7d2ab8c0b (patch) | |
tree | 9e3b6453ed0063bbbdbf1df6174d62e59154eb2f /security/nessus-libraries/Makefile | |
parent | 302126f054250084384932d4d98e76bc63d7eb21 (diff) | |
download | ports-accf206ab88cabf657d5287f0104fef7d2ab8c0b.tar.gz ports-accf206ab88cabf657d5287f0104fef7d2ab8c0b.zip |
- Update to 2.0.4.
- Add dependency on bpf for the server.
- Add "client only" knob.
PR: ports/51126
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=79310
Diffstat (limited to 'security/nessus-libraries/Makefile')
-rw-r--r-- | security/nessus-libraries/Makefile | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/security/nessus-libraries/Makefile b/security/nessus-libraries/Makefile index 78798f4eec1f..c002b8b8a6b2 100644 --- a/security/nessus-libraries/Makefile +++ b/security/nessus-libraries/Makefile @@ -5,8 +5,11 @@ # $FreeBSD$ # +# Define NESSUS_CLIENT_ONLY if you only want to build this for the nessus +# client. + PORTNAME= nessus-libraries -PORTVERSION= 1.2.7 +PORTVERSION= 2.0.4 CATEGORIES= security MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \ ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \ @@ -22,12 +25,47 @@ COMMENT= Libraries for Nessus, the security scanner DIST_SUBDIR= nessus WRKSRC= ${WRKDIR}/nessus-libraries +USE_BISON= YES USE_LIBTOOL= YES CONFIGURE_ARGS= --enable-cipher --sharedstatedir=${PREFIX}/etc/nessus/com \ --localstatedir=${PREFIX}/etc/nessus/var +.if defined(WITH_NESSUS_BPF_SHARE) +CONFIGURE_ARGS+= --enable-bpf-sharing +.endif INSTALLS_SHLIB= YES MAN1= nessus-config.1 +.if ! defined(NESSUS_CLIENT_ONLY) +pre-configure: + @if [ ! -c /dev/bpf1 ]; then \ + ${ECHO} "********************************************************";\ + ${ECHO} "* W a r n i n g *";\ + ${ECHO} "* *";\ + ${ECHO} "* Nessus needs Berkeley Packet Filter (bpf). *";\ + ${ECHO} "* To use nessus, your kernel must be rebuilt with bpf, *";\ + ${ECHO} "* and make bpf devices on /dev directory. *";\ + ${ECHO} "* *";\ + ${ECHO} "* Be sure to build as many bpf devices as you need. *";\ + ${ECHO} "* For more info on this read files/README.BPF *";\ + ${ECHO} "********************************************************";\ + ${FALSE}; \ + fi +.if ! defined(WITH_NESSUS_BPF_SHARE) + @if [ ! -c /dev/bpf40 ]; then \ + ${ECHO} "********************************************************";\ + ${ECHO} "* W a r n i n g *";\ + ${ECHO} "* *";\ + ${ECHO} "* Nessus needs many bpf devices. If you can't rebuild *";\ + ${ECHO} "* your kernel with more than 40 bpf devices (as *";\ + ${ECHO} "* described in files/README.BPF) then build this port *";\ + ${ECHO} "* with \"make -DWITH_NESSUS_BPF_SHARE\" *";\ + ${ECHO} "* *";\ + ${ECHO} "********************************************************";\ + ${FALSE}; \ + fi +.endif +.endif + .include <bsd.port.mk> |