diff options
author | sem <sem@FreeBSD.org> | 2004-12-16 00:01:51 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-12-16 00:01:51 +0800 |
commit | 96cd1cc5cbfafb0bdbb67e34a3dae40749382f30 (patch) | |
tree | 2e83f128075046c6da5bf645268a11829850652f /security/nessus | |
parent | 56bd79ce43800524b0f276fcccca13bf8ba551e4 (diff) | |
download | freebsd-ports-gnome-96cd1cc5cbfafb0bdbb67e34a3dae40749382f30.tar.gz freebsd-ports-gnome-96cd1cc5cbfafb0bdbb67e34a3dae40749382f30.tar.zst freebsd-ports-gnome-96cd1cc5cbfafb0bdbb67e34a3dae40749382f30.zip |
Create certificates on separate Makefile target.
It will fix extra files on pointyhat.
Submitted by: maintainer
Diffstat (limited to 'security/nessus')
-rw-r--r-- | security/nessus/Makefile | 18 | ||||
-rw-r--r-- | security/nessus/scripts/pkg-deinstall | 11 |
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" |