freebsd-ports/security/nessus/scripts/pkg-deinstall
Sergey Matveychuk 576bf06eee Create certificates on separate Makefile target.
It will fix extra files on pointyhat.

Submitted by:	maintainer
2004-12-15 16:01:51 +00:00

37 lines
1 KiB
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.2 2004-12-15 16:01:51 sem Exp $
#
ECHO_CMD=echo
case $2 in
POST-DEINSTALL)
${ECHO_CMD}
${ECHO_CMD} "The %%PKGNAME%% server package has been deleted."
${ECHO_CMD} "If you're *not* upgrading and won't be using"
${ECHO_CMD} "it any longer, you may want to issue the"
${ECHO_CMD} "following commands:"
${ECHO_CMD}
if [ -d %%PREFIX%%/var/nessus ]; then
${ECHO_CMD} "- to delete the nessus server permanently (losing all data):"
${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$rm_dir"
${ECHO_CMD}
fi
${ECHO_CMD} "If you are upgrading, don't forget to restart"
${ECHO_CMD} "nessusd and updating the plugins."
${ECHO_CMD}
;;
esac