blob: ccea38d3af1064c363c26e52ea58577b5c5a8744 (
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
|
# New ports collection makefile for: nessus-devel
#
# $FreeBSD$
#
# If you want to only have the command-line client even if gtk is already
# installed define:
# WITHOUT_NESSUS_GTK
PORTNAME= nessus-devel
PORTVERSION= 2.1.1
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.au.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
ftp://ftp.ayamura.org/pub/nessus/nessus-${PORTVERSION}/src/
DISTNAME= nessus-core-${PORTVERSION}
MAINTAINER= udo.schweigert@siemens.com
COMMENT= A security scanner: looks for vulnerabilities in a given network
CONFLICTS= nessus-[0-9]* nessus-gtk-[0-9]* nessus-gtk2-[0-9]*
LIB_DEPENDS= nasl.3:${PORTSDIR}/security/nessus-libnasl-devel
DIST_SUBDIR= nessus
WRKSRC= ${WRKDIR}/nessus-core
USE_LIBTOOL_VER=13
USE_REINPLACE= YES
USE_RC_SUBR= YES
.if !defined(WITHOUT_NESSUS_GTK)
WANT_GNOME= yes
.endif
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NESSUS_GTK)
CONFIGURE_ARGS+=--disable-gtk
.else
.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+= gtk20
PKGNAMESUFFIX= -gtk2
.elif ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PKGNAMESUFFIX= -gtk
.else
CONFIGURE_ARGS+=--disable-gtk
.endif
.endif
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
RC_SUBR=${RC_SUBR}
post-install:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/nessusd.sh > ${LOCALBASE}/etc/rc.d/nessusd.sh
@${CHMOD} +x ${LOCALBASE}/etc/rc.d/nessusd.sh
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
.if ! exists(${PREFIX}/var/CA/serverkey.pem)
.if ! defined(BATCH)
${PREFIX}/sbin/nessus-mkcert
.else
${PREFIX}/sbin/nessus-mkcert -q
.endif
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|