aboutsummaryrefslogtreecommitdiff
path: root/security/nessus
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-15 16:01:51 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-15 16:01:51 +0000
commit576bf06eee9d66a02548d550f502780e85f2647a (patch)
tree7c265e02c897da89d3e6228a62cb3609fc5d3cf5 /security/nessus
parentfc64824d902478e57ea509474315b8e262cc3034 (diff)
downloadports-576bf06eee9d66a02548d550f502780e85f2647a.tar.gz
ports-576bf06eee9d66a02548d550f502780e85f2647a.zip
Notes
Diffstat (limited to 'security/nessus')
-rw-r--r--security/nessus/Makefile18
-rw-r--r--security/nessus/scripts/pkg-deinstall11
2 files changed, 22 insertions, 7 deletions
diff --git a/security/nessus/Makefile b/security/nessus/Makefile
index ba92e4f4b58d..3ab9b160d3ba 100644
--- a/security/nessus/Makefile
+++ b/security/nessus/Makefile
@@ -86,12 +86,20 @@ post-install:
fi
@${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
+ @${ECHO} ""
+ @${ECHO} "**************************************************************************"
+ @${ECHO} "To create and install a new certificate, type \"make cert\""
+ @${ECHO} "**************************************************************************"
+ @${ECHO} ""
.endif
@${CAT} ${PKGMESSAGE}
+cert:
+ @${ECHO} ""
+ @${ECHO} "**************************************************************************"
+ @${ECHO} "The new certificate will be saved into ${PREFIX}/var/CA/serverkey.pem"
+ @${ECHO} "**************************************************************************"
+ @${ECHO} ""
+ ${PREFIX}/sbin/nessus-mkcert
+
.include <bsd.port.post.mk>
diff --git a/security/nessus/scripts/pkg-deinstall b/security/nessus/scripts/pkg-deinstall
index 53ba586f97f6..573b33a8ace9 100644
--- a/security/nessus/scripts/pkg-deinstall
+++ b/security/nessus/scripts/pkg-deinstall
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:03 sem Exp $
+# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.2 2004-12-15 16:01:51 sem Exp $
#
ECHO_CMD=echo
@@ -18,9 +18,16 @@ POST-DEINSTALL)
${ECHO_CMD} " rm -Rf %%PREFIX%%/var/nessus"
${ECHO_CMD}
fi
+ rm_dir=""
if [ -d %%PREFIX%%/com/CA ]; then
+ rm_dir=" %%PREFIX%%/com/CA"
+ fi
+ if [ -d %%PREFIX%%/var/CA ]; then
+ rm_dir="$rm_dir %%PREFIX%%/var/CA"
+ fi
+ if [ "x$rm_dir" != "x" ]; then
${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:"
- ${ECHO_CMD} " rm -Rf %%PREFIX%%/com/CA"
+ ${ECHO_CMD} " rm -Rf$rm_dir"
${ECHO_CMD}
fi
${ECHO_CMD} "If you are upgrading, don't forget to restart"