freebsd-ports/security/nessus-libraries/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

52 lines
1.8 KiB
Makefile

# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$
# Define NESSUS_CLIENT_ONLY if you only want to build this for the nessus
# client.
PORTNAME= nessus-libraries
PORTVERSION= 2.2.9
PORTREVISION= 1
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.ayamura.org/pub/nessus/nessus-${PORTVERSION}/src/
DISTNAME= nessus-libraries-${PORTVERSION}
MAINTAINER= udo.schweigert@siemens.com
COMMENT= Libraries for Nessus, the security scanner
DIST_SUBDIR= nessus
WRKSRC= ${WRKDIR}/nessus-libraries
USES= bison
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --enable-cipher
.if defined(WITH_NESSUS_BPF_SHARE)
CONFIGURE_ARGS+= --enable-bpf-sharing
.endif
USE_LDCONFIG= YES
MAN1= nessus-config.1
.if ! defined(NESSUS_CLIENT_ONLY) && ! defined(PACKAGE_BUILDING)
MANUAL_PACKAGE_BUILD= needs /dev/bpf which is not available in pointyhat jail
pre-configure:
@if [ ! -c /dev/bpf ]; 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} "* For more info on this read files/README.BPF *";\
${ECHO} "********************************************************";\
${FALSE}; \
fi
.endif
.include <bsd.port.mk>