Lines 4-12
Link Here
|
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/security/nessus/Makefile,v 1.55 2004/07/24 18:28:50 mezz Exp $ |
5 |
# $FreeBSD: ports/security/nessus/Makefile,v 1.55 2004/07/24 18:28:50 mezz Exp $ |
6 |
# |
6 |
# |
|
|
7 |
# If you want to only have the command-line client even if gtk is already |
8 |
# installed define: |
9 |
# WITHOUT_NESSUS_GTK |
7 |
|
10 |
|
8 |
PORTNAME= nessus |
11 |
PORTNAME= nessus |
9 |
PORTVERSION= 2.0.12 |
12 |
PORTVERSION= 2.0.12 |
|
|
13 |
PORTREVISION= 1 |
10 |
CATEGORIES= security |
14 |
CATEGORIES= security |
11 |
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \ |
15 |
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \ |
12 |
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \ |
16 |
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \ |
Lines 19-35
Link Here
|
19 |
MAINTAINER= udo.schweigert@siemens.com |
23 |
MAINTAINER= udo.schweigert@siemens.com |
20 |
COMMENT= A security scanner: looks for vulnerabilities in a given network |
24 |
COMMENT= A security scanner: looks for vulnerabilities in a given network |
21 |
|
25 |
|
|
|
26 |
CONFLICTS= nessus-devel-[0-9]* nessus-devel-gtk-[0-9]* \ |
27 |
nessus-devel-gtk2-[0-9]* |
22 |
LIB_DEPENDS= nasl.2:${PORTSDIR}/security/nessus-libnasl |
28 |
LIB_DEPENDS= nasl.2:${PORTSDIR}/security/nessus-libnasl |
23 |
|
29 |
|
24 |
DIST_SUBDIR= nessus |
30 |
DIST_SUBDIR= nessus |
25 |
WRKSRC= ${WRKDIR}/nessus-core |
31 |
WRKSRC= ${WRKDIR}/nessus-core |
26 |
|
32 |
|
27 |
USE_LIBTOOL_VER=13 |
33 |
USE_LIBTOOL_VER=13 |
28 |
WANT_GNOME= yes |
|
|
29 |
USE_REINPLACE= YES |
34 |
USE_REINPLACE= YES |
|
|
35 |
USE_RC_SUBR= YES |
36 |
.if !defined(WITHOUT_NESSUS_GTK) |
37 |
WANT_GNOME= yes |
38 |
.endif |
30 |
|
39 |
|
31 |
.include <bsd.port.pre.mk> |
40 |
.include <bsd.port.pre.mk> |
32 |
|
41 |
|
|
|
42 |
.if defined(WITHOUT_NESSUS_GTK) |
43 |
CONFIGURE_ARGS+=--disable-gtk |
44 |
.else |
33 |
.if ${HAVE_GNOME:Mgtk20}!="" |
45 |
.if ${HAVE_GNOME:Mgtk20}!="" |
34 |
USE_GNOME+= gtk20 |
46 |
USE_GNOME+= gtk20 |
35 |
PKGNAMESUFFIX= -gtk2 |
47 |
PKGNAMESUFFIX= -gtk2 |
Lines 39-55
Link Here
|
39 |
.else |
51 |
.else |
40 |
CONFIGURE_ARGS+=--disable-gtk |
52 |
CONFIGURE_ARGS+=--disable-gtk |
41 |
.endif |
53 |
.endif |
|
|
54 |
.endif |
42 |
|
55 |
|
43 |
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1 |
56 |
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1 |
44 |
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8 |
57 |
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8 |
45 |
|
58 |
|
46 |
post-extract: |
59 |
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ |
47 |
@${CP} ${FILESDIR}/nessusd.sh ${WRKSRC}/nessusd.sh |
60 |
RC_SUBR=${RC_SUBR} |
48 |
@${REINPLACE_CMD} -E -e 's|%%PREFIX%%|${PREFIX}|g' ${BUILD_WRKSRC}/nessusd.sh |
|
|
49 |
|
61 |
|
50 |
post-install: |
62 |
post-install: |
51 |
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/nessusd.sh \ |
63 |
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ |
52 |
${LOCALBASE}/etc/rc.d/nessusd.sh.sample |
64 |
${FILESDIR}/nessusd.sh > ${LOCALBASE}/etc/rc.d/nessusd.sh |
|
|
65 |
@${CHMOD} +x ${LOCALBASE}/etc/rc.d/nessusd.sh |
53 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus |
66 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus |
54 |
.if ! exists(${PREFIX}/var/CA/serverkey.pem) |
67 |
.if ! exists(${PREFIX}/var/CA/serverkey.pem) |
55 |
.if ! defined(BATCH) |
68 |
.if ! defined(BATCH) |
Lines 58-62
Link Here
|
58 |
${PREFIX}/sbin/nessus-mkcert -q |
71 |
${PREFIX}/sbin/nessus-mkcert -q |
59 |
.endif |
72 |
.endif |
60 |
.endif |
73 |
.endif |
|
|
74 |
@${CAT} ${PKGMESSAGE} |
61 |
|
75 |
|
62 |
.include <bsd.port.post.mk> |
76 |
.include <bsd.port.post.mk> |