View | Details | Raw Unified | Return to bug 69877
Collapse All | Expand All

(-)nessus/Makefile (-6 / +20 lines)
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>
(-)nessus/files/nessusd.sh (-24 / +33 lines)
Lines 1-28 Link Here
1
#! /bin/sh
1
#!/bin/sh
2
#
2
3
# Start or stop nessusd
3
# $FreeBSD: ports/security/nessus/files/nessusd.sh,v 1.1 2004/05/02 18:09:24 pav Exp $
4
# $FreeBSD: ports/security/nessus/files/nessusd.sh,v 1.1 2004/05/02 18:09:24 pav Exp $
5
6
# PROVIDE: nessusd
7
# REQUIRE: DAEMON
8
# BEFORE: LOGIN
9
# KEYWORD: FreeBSD shutdown
10
#
11
# NOTE for FreeBSD 5.0+:
12
# If you want this script to start with the base rc scripts
13
# move nessusd.sh to /etc/rc.d/nessusd
14
15
prefix=%%PREFIX%%
16
17
# Define these nessusd_* variables in one of these files:
18
#	/etc/rc.conf
19
#	/etc/rc.conf.local
20
#	/etc/rc.conf.d/nessusd
4
#
21
#
22
# DO NOT CHANGE THESE DEFAULT VALUES HERE
23
#
24
[ -z "$nessusd_enable" ] && nessusd_enable="NO"	# Disable nessusd
25
#nessusd_program="${prefix}/sbin/nessusd"	# Location of nessusd
26
nessusd_flags="-D"				# Flags to nessusd program
27
28
. %%RC_SUBR%%
5
29
6
umask 022
30
name="nessusd"
7
arg=${1:-start}
31
rcvar=`set_rcvar`
32
command="${prefix}/sbin/nessusd"
33
pidfile="/usr/local/var/nessus/nessusd.pid"
34
required_files="${prefix}/etc/nessus/nessusd.conf"
8
35
9
nessusd_bin=%%PREFIX%%/sbin/nessusd
36
load_rc_config $name
10
nessus_arg="-D"
37
run_rc_command "$1"
11
kill_arg=nessusd
12
13
echo -n " nessusd"
14
15
case $arg in
16
start)
17
	test -x $nessusd_bin || exit 1
18
	$nessusd_bin $nessus_arg
19
	;;
20
stop)
21
	killall $kill_arg > /dev/null 2>&1
22
	;;
23
restart)
24
	killall $kill_arg > /dev/null 2>&1
25
	test -x $nessusd_bin || exit 1
26
	$nessusd_bin $nessus_arg
27
	;;
28
esac
(-)nessus/pkg-message (+10 lines)
Line 0 Link Here
1
         ***********************************
2
         * !!!!!!!!!!! WARNING !!!!!!!!!!! *
3
         ***********************************
4
Since 2.0.12_1, to run nessusd server from startup, add nessusd_enable="YES"
5
in your /etc/rc.conf.
6
7
Available variables you add/set to /etc/rc.conf.
8
- nessusd_enable (bool):      Set to "NO" by default.
9
                              Set it to "YES" to enable nessusd.
10
- nessusd_flags (str):        Set to "-D" by default.
(-)nessus/pkg-plist (-1 / +1 lines)
Lines 1-4 Link Here
1
etc/rc.d/nessusd.sh.sample
1
etc/rc.d/nessusd.sh
2
bin/nessus
2
bin/nessus
3
bin/nessus-mkcert-client
3
bin/nessus-mkcert-client
4
bin/nessus-mkrand
4
bin/nessus-mkrand
(-)nessus/scripts/move_nessus (-10 / +19 lines)
Lines 25-40 Link Here
25
	$PREFIX/etc/nessus/nessusd.conf.bak > $PREFIX/etc/nessus/nessusd.conf
25
	$PREFIX/etc/nessus/nessusd.conf.bak > $PREFIX/etc/nessus/nessusd.conf
26
fi
26
fi
27
if [ -d $PREFIX/etc/nessus/var/nessus/users ]; then
27
if [ -d $PREFIX/etc/nessus/var/nessus/users ]; then
28
  printf "\n\nMigrating nessus to default directory scheme\n"
28
  rmdir $PREFIX/etc/nessus/var/nessus/users > /dev/null 2>/dev/null
29
  printf "============================================\n\n"
29
  if [ $? -gt 0 ]; then
30
  cd $PREFIX/etc/nessus/var/nessus/users
30
    printf "\n\nMigrating nessus to default directory scheme\n"
31
  for i in *; do 
31
    printf "============================================\n\n"
32
    if [ $i != '*' ]; then 
32
    cd $PREFIX/etc/nessus/var/nessus/users
33
      mv $i $PREFIX/var/nessus/users
33
    for i in *; do 
34
      printf "Moving nessus user %s\n" $i
34
      if [ $i != '*' ]; then 
35
    fi
35
        mv $i $PREFIX/var/nessus/users
36
  done
36
        printf "Moving nessus user %s\n" $i
37
  printf "\n"
37
      fi
38
    done
39
    cd $PREFIX
40
    rmdir $PREFIX/etc/nessus/var/nessus/users > /dev/null 2>/dev/null
41
    printf "\n"
42
  fi
38
fi
43
fi
39
if [ ! -d $PREFIX/com/CA ]; then
44
if [ ! -d $PREFIX/com/CA ]; then
40
  if [ -d $PREFIX/etc/nessus/com/CA ]; then
45
  if [ -d $PREFIX/etc/nessus/com/CA ]; then
Lines 49-51 Link Here
49
    fi
54
    fi
50
  fi
55
  fi
51
fi
56
fi
57
cd $PREFIX
58
rmdir $PREFIX/etc/nessus/var > /dev/null 2>/dev/null
59
rmdir $PREFIX/etc/nessus/com > /dev/null 2>/dev/null
60
exit 0
(-)nessus-libnasl/Makefile (+2 lines)
Lines 19-24 Link Here
19
MAINTAINER=	udo.schweigert@siemens.com
19
MAINTAINER=	udo.schweigert@siemens.com
20
COMMENT=	Nessus Attack Scripting Language
20
COMMENT=	Nessus Attack Scripting Language
21
21
22
CONFLICTS=	nessus-libnasl-devel-[0-9]*
23
22
LIB_DEPENDS=	nessus.2:${PORTSDIR}/security/nessus-libraries
24
LIB_DEPENDS=	nessus.2:${PORTSDIR}/security/nessus-libraries
23
25
24
DIST_SUBDIR=	nessus
26
DIST_SUBDIR=	nessus
(-)nessus-libraries/Makefile (+2 lines)
Lines 22-27 Link Here
22
MAINTAINER=	udo.schweigert@siemens.com
22
MAINTAINER=	udo.schweigert@siemens.com
23
COMMENT=	Libraries for Nessus, the security scanner
23
COMMENT=	Libraries for Nessus, the security scanner
24
24
25
CONFLICTS=	nessus-libraries-devel-[0-9]*
26
25
DIST_SUBDIR=	nessus
27
DIST_SUBDIR=	nessus
26
WRKSRC=		${WRKDIR}/nessus-libraries
28
WRKSRC=		${WRKDIR}/nessus-libraries
27
29
(-)nessus-plugins/Makefile (+2 lines)
Lines 19-24 Link Here
19
MAINTAINER=	udo.schweigert@siemens.com
19
MAINTAINER=	udo.schweigert@siemens.com
20
COMMENT=	Plugins for Nessus, the security scanner
20
COMMENT=	Plugins for Nessus, the security scanner
21
21
22
CONFLICTS=	nessus-plugins-devel-[0-9]*
23
22
BUILD_DEPENDS=	${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus
24
BUILD_DEPENDS=	${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus
23
RUN_DEPENDS=	${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus \
25
RUN_DEPENDS=	${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus \
24
		nmap:${PORTSDIR}/security/nmap \
26
		nmap:${PORTSDIR}/security/nmap \

Return to bug 69877