aboutsummaryrefslogtreecommitdiffstats
path: root/security/nessus-libraries-devel/Makefile
blob: 1a940f9081750e5cef0d3a272ede079efb8080cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Ports collection makefile for:    nessus-libraries-devel
# Date created:     27 Oct 2001
# Whom:         Udo Schweigert <udo.schweigert@siemens.com>
#
# $FreeBSD$
#

# Define NESSUS_CLIENT_ONLY if you only want to build this for the nessus
# client.

PORTNAME=   nessus-libraries-devel
PORTVERSION=    2.3.1
CATEGORIES= security
MASTER_SITES=   ftp://ftp.nessus.org/pub/nessus/experimental/nessus-${PORTVERSION}/src/ \
        ftp://ftp.gwdg.de/pub/linux/misc/nessus/experimental/nessus-${PORTVERSION}/src/ \
        http://ftp.gwdg.de/pub/linux/misc/nessus/experimental/nessus-${PORTVERSION}/src/ \
        ftp://sunsite.cnlab-switch.ch/mirror/nessus/experimental/nessus-${PORTVERSION}/src/ \
        ftp://ftp.au.nessus.org/pub/nessus/experimental/nessus-${PORTVERSION}/src/ \
        ftp://ftp.ayamura.org/pub/nessus/experimental/nessus-${PORTVERSION}/src/
DISTNAME=   nessus-libraries-${PORTVERSION}

MAINTAINER= udo.schweigert@siemens.com
COMMENT=    Libraries for Nessus, the security scanner

CONFLICTS=  nessus-libraries-[0-9]*

DIST_SUBDIR=    nessus
WRKSRC=     ${WRKDIR}/nessus-libraries

USE_BISON=  YES
USE_AUTOCONF_VER=   213
USE_LIBTOOL_VER=    13
CONFIGURE_ARGS= --enable-cipher
.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>