diff options
author | sem <sem@FreeBSD.org> | 2004-12-12 00:40:58 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-12-12 00:40:58 +0800 |
commit | e31687bc9e010fcb03d406a370bd1b2f6d2c1133 (patch) | |
tree | 7c231ff86c6d01dcd37d3e9f2d2b20d487890d6e /security/nessus | |
parent | 05bd3673758dd398c750a360b21d71ba33ccf80a (diff) | |
download | freebsd-ports-gnome-e31687bc9e010fcb03d406a370bd1b2f6d2c1133.tar.gz freebsd-ports-gnome-e31687bc9e010fcb03d406a370bd1b2f6d2c1133.tar.zst freebsd-ports-gnome-e31687bc9e010fcb03d406a370bd1b2f6d2c1133.zip |
- Upgrade to nessus version 2.2.2a
- Fix installing of default config files
PR: ports/74938
Submitted by: maintainer
Diffstat (limited to 'security/nessus')
-rw-r--r-- | security/nessus/Makefile | 10 | ||||
-rw-r--r-- | security/nessus/distinfo | 4 | ||||
-rw-r--r-- | security/nessus/pkg-plist | 8 |
3 files changed, 16 insertions, 6 deletions
diff --git a/security/nessus/Makefile b/security/nessus/Makefile index 9f8c739fdfce..ba92e4f4b58d 100644 --- a/security/nessus/Makefile +++ b/security/nessus/Makefile @@ -11,7 +11,7 @@ # WITHOUT_NESSUS_GTK PORTNAME= nessus -PORTVERSION= 2.2.0 +PORTVERSION= 2.2.2a CATEGORIES= security MASTER_SITES= ftp://ftp.nessus.org/pub/nessus/nessus-${PORTVERSION}/src/ \ ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-${PORTVERSION}/src/ \ @@ -76,6 +76,14 @@ post-install: > ${PREFIX}/etc/nessus/nessusd.rules.dist @${CHMOD} 644 ${PREFIX}/etc/nessus/nessusd.conf.dist \ ${PREFIX}/etc/nessus/nessusd.rules.dist + @if [ ! -f ${PREFIX}/etc/nessus/nessusd.conf ]; then \ + ${CP} -p ${PREFIX}/etc/nessus/nessusd.conf.dist \ + ${PREFIX}/etc/nessus/nessusd.conf; \ + fi + @if [ ! -f ${PREFIX}/etc/nessus/nessusd.rules ]; then \ + ${CP} -p ${PREFIX}/etc/nessus/nessusd.rules.dist \ + ${PREFIX}/etc/nessus/nessusd.rules; \ + fi @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus .if ! exists(${PREFIX}/var/CA/serverkey.pem) .if ! defined(BATCH) diff --git a/security/nessus/distinfo b/security/nessus/distinfo index 1e06042c18b5..8bb4203c335d 100644 --- a/security/nessus/distinfo +++ b/security/nessus/distinfo @@ -1,2 +1,2 @@ -MD5 (nessus/nessus-core-2.2.0.tar.gz) = 16c1b51d81896415af9dfc91a7faf8d9 -SIZE (nessus/nessus-core-2.2.0.tar.gz) = 688545 +MD5 (nessus/nessus-core-2.2.2a.tar.gz) = c307b37336921462fb21ca09aca407ca +SIZE (nessus/nessus-core-2.2.2a.tar.gz) = 676390 diff --git a/security/nessus/pkg-plist b/security/nessus/pkg-plist index 1919a502ea15..fb04d9d6a30c 100644 --- a/security/nessus/pkg-plist +++ b/security/nessus/pkg-plist @@ -1,13 +1,14 @@ -etc/rc.d/nessusd.sh bin/nessus +bin/nessus-fetch bin/nessus-mkcert-client bin/nessus-mkrand @unexec if cmp -s %D/etc/nessus/nessusd.conf.dist %D/etc/nessus/nessusd.conf; then rm -f %D/etc/nessus/nessusd.conf; fi @unexec if cmp -s %D/etc/nessus/nessusd.rules.dist %D/etc/nessus/nessusd.rules; then rm -f %D/etc/nessus/nessusd.rules; fi etc/nessus/nessusd.conf.dist etc/nessus/nessusd.rules.dist -@exec if [ ! -f %D/etc/nessus/nessusd.conf ]; then cp %D/etc/nessus/nessusd.conf %D/etc/nessus/nessusd.conf; fi -@exec if [ ! -f %D/etc/nessus/nessusd.rules ]; then cp %D/etc/nessus/nessusd.onf %D/etc/nessus/nessusd.onf; fi +@exec if [ ! -f %D/etc/nessus/nessusd.conf ]; then cp -p %D/etc/nessus/nessusd.conf.dist %D/etc/nessus/nessusd.conf; fi +@exec if [ ! -f %D/etc/nessus/nessusd.rules ]; then cp -p %D/etc/nessus/nessusd.conf.dist %D/etc/nessus/nessusd.conf; fi +etc/rc.d/nessusd.sh include/nessus/config.h include/nessus/includes.h include/nessus/nessus-devel.h @@ -25,6 +26,7 @@ sbin/nessusd @exec mkdir -p %D/var/nessus/jobs @exec mkdir -p %D/var/nessus/logs @exec mkdir -p %D/var/nessus/users +@unexec if [ ! -s %D/var/nessus/logs/nessusd.messages ]; then rm %D/var/nessus/logs/nessusd.messages; fi @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 |