aboutsummaryrefslogtreecommitdiffstats
path: root/security/nessus-devel
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2004-02-26 05:18:25 +0800
committerobraun <obraun@FreeBSD.org>2004-02-26 05:18:25 +0800
commitb608646af99b4ac63aee42e8f2d33175c16b2e6a (patch)
tree4f73a5df69e84eee5bc9ee5c4577b8b4d4eccc47 /security/nessus-devel
parenta2f02d275404746cc4e68aa3a6bfdf79f404bf87 (diff)
downloadfreebsd-ports-gnome-b608646af99b4ac63aee42e8f2d33175c16b2e6a.tar.gz
freebsd-ports-gnome-b608646af99b4ac63aee42e8f2d33175c16b2e6a.tar.zst
freebsd-ports-gnome-b608646af99b4ac63aee42e8f2d33175c16b2e6a.zip
- Upgrade to nessus version 2.0.10a
- Adopt the standard nessus directory structure, reducing the number of files in ${PREFIX}/etc/nessus. Move existing files to the right places PR: ports/62033 Submitted by: maintainer
Diffstat (limited to 'security/nessus-devel')
-rw-r--r--security/nessus-devel/Makefile9
-rw-r--r--security/nessus-devel/distinfo2
-rw-r--r--security/nessus-devel/pkg-plist15
-rw-r--r--security/nessus-devel/scripts/move_nessus51
4 files changed, 62 insertions, 15 deletions
diff --git a/security/nessus-devel/Makefile b/security/nessus-devel/Makefile
index c670f38a7823..bc7fbc8d23ce 100644
--- a/security/nessus-devel/Makefile
+++ b/security/nessus-devel/Makefile
@@ -4,8 +4,7 @@
#
PORTNAME= nessus-devel
-PORTVERSION= 2.0.9
-PORTREVISION= 1
+PORTVERSION= 2.0.10a
CATEGORIES= security
MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \
ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \
@@ -35,14 +34,12 @@ PKGNAMESUFFIX= -gtk
CONFIGURE_ARGS+=--disable-gtk
.endif
-CONFIGURE_ARGS+= --sharedstatedir=${PREFIX}/etc/nessus/com \
- --localstatedir=${PREFIX}/etc/nessus/var
-
MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1
MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8
post-install:
-.if ! exists(${PREFIX}/etc/nessus/var/CA/serverkey.pem)
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus
+.if ! exists(${PREFIX}/var/CA/serverkey.pem)
.if ! defined(BATCH)
${PREFIX}/sbin/nessus-mkcert
.else
diff --git a/security/nessus-devel/distinfo b/security/nessus-devel/distinfo
index def721ea8dce..10175f27b5a3 100644
--- a/security/nessus-devel/distinfo
+++ b/security/nessus-devel/distinfo
@@ -1 +1 @@
-MD5 (nessus/nessus-core-2.0.9.tar.gz) = 7bdbdb663d87a894cf8f99b33a5eb8b5
+MD5 (nessus/nessus-core-2.0.10a.tar.gz) = bd9d62375adc5d6b9e38879a8cee108d
diff --git a/security/nessus-devel/pkg-plist b/security/nessus-devel/pkg-plist
index 909d0c198585..9decbbf7d783 100644
--- a/security/nessus-devel/pkg-plist
+++ b/security/nessus-devel/pkg-plist
@@ -14,14 +14,13 @@ sbin/nessus-adduser
sbin/nessus-mkcert
sbin/nessus-rmuser
sbin/nessusd
-@exec mkdir -p %D/etc/nessus/var/nessus/jobs
-@exec mkdir -p %D/etc/nessus/var/nessus/logs
-@exec mkdir -p %D/etc/nessus/var/nessus/users
-@unexec rmdir %D/etc/nessus/var/nessus/jobs 2>/dev/null || true
-@unexec rmdir %D/etc/nessus/var/nessus/logs 2>/dev/null || true
-@unexec rmdir %D/etc/nessus/var/nessus/users 2>/dev/null || true
-@unexec rmdir %D/etc/nessus/var/nessus 2>/dev/null || true
-@unexec rmdir %D/etc/nessus/var 2>/dev/null || true
+@exec mkdir -p %D/var/nessus/jobs
+@exec mkdir -p %D/var/nessus/logs
+@exec mkdir -p %D/var/nessus/users
+@unexec rmdir %D/var/nessus/jobs 2>/dev/null || true
+@unexec rmdir %D/var/nessus/logs 2>/dev/null || true
+@unexec rmdir %D/var/nessus/users 2>/dev/null || true
+@unexec rmdir %D/var/nessus 2>/dev/null || true
@unexec rmdir %D/etc/nessus 2>/dev/null || true
@exec mkdir -p %D/lib/nessus/plugins
@unexec rmdir %D/lib/nessus/plugins 2>/dev/null || true
diff --git a/security/nessus-devel/scripts/move_nessus b/security/nessus-devel/scripts/move_nessus
new file mode 100644
index 000000000000..89af532bbd09
--- /dev/null
+++ b/security/nessus-devel/scripts/move_nessus
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/security/nessus-devel/scripts/Attic/move_nessus,v 1.1 2004-02-25 21:18:25 obraun Exp $
+#
+# set -x
+
+trap ' cleanup ' 0
+trap ' echo_signal; exit 1' 1 2 3 15
+
+cleanup() {
+ # No tmp file to remove up to now ;-)
+}
+
+echo_signal() {
+ echo "Got Signal -- aborting `basename $0`"
+}
+
+PATH=/bin:/usr/bin
+
+
+if [ -f $PREFIX/etc/nessus/nessusd.conf ]; then
+ mv $PREFIX/etc/nessus/nessusd.conf $PREFIX/etc/nessus/nessusd.conf.bak
+ sed -e "s,/usr/local/etc/nessus/var,/usr/local/var,g" \
+ -e "s,/usr/local/etc/nessus/com,/usr/local/com,g" \
+ $PREFIX/etc/nessus/nessusd.conf.bak > $PREFIX/etc/nessus/nessusd.conf
+fi
+if [ -d $PREFIX/etc/nessus/var/nessus/users ]; then
+ printf "\n\nMigrating nessus to default directory scheme\n"
+ printf "============================================\n\n"
+ cd $PREFIX/etc/nessus/var/nessus/users
+ for i in *; do
+ if [ $i != '*' ]; then
+ mv $i $PREFIX/var/nessus/users
+ printf "Moving nessus user %s\n" $i
+ fi
+ done
+ printf "\n"
+fi
+if [ ! -d $PREFIX/com/CA ]; then
+ if [ -d $PREFIX/etc/nessus/com/CA ]; then
+ if [ ! -d $PREFIX/com ]; then
+ mkdir -m 755 $PREFIX/com
+ fi
+ mv $PREFIX/etc/nessus/com/CA $PREFIX/com/CA
+ fi
+ if [ -d $PREFIX/etc/nessus/var/CA ]; then
+ if [ ! -d $PREFIX/var/CA ]; then
+ mv $PREFIX/etc/nessus/var/CA $PREFIX/var/CA
+ fi
+ fi
+fi