1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/security/nessus/pkg-deinstall
Tijl Coosemans 53e29e83dc - Add LICENSE.
- New LIB_DEPENDS syntax.
- Staging.
- Replace gtk detection with GTK2 option.
- Mark MAKE_JOBS_UNSAFE for now.  One Makefile has mutilple targets that
  each call make in the same subdirectory and the Makefile in that
  directory does the same with one of its subdirectories.
- Move files/nessusd.conf to files/nessusd.conf.in and add it to SUB_FILES
  instead of calling sed from post-install.
- Move files/pkg-deinstall.in to pkg-deinstall and replace %%PREFIX%%
  with ${PKG_PREFIX}.
- Remove scripts/move_nessus.  It was used to migrate configuration data
  to a new location.

PR:		ports/183221
Approved by:	"Schweigert, Udo" <Udo.Schweigert@siemens.com> (maintainer)
2013-11-11 18:48:29 +00:00

38 lines
987 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
ECHO_CMD=echo
case $2 in
POST-DEINSTALL)
${ECHO_CMD}
${ECHO_CMD} "The nessus 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 ${PKG_PREFIX}/var/nessus ]; then
${ECHO_CMD} "- to delete the nessus server permanently (losing all data):"
${ECHO_CMD} " rm -Rf ${PKG_PREFIX}/var/nessus"
${ECHO_CMD}
fi
rm_dir=""
if [ -d ${PKG_PREFIX}/com/CA ]; then
rm_dir=" ${PKG_PREFIX}/com/CA"
fi
if [ -d ${PKG_PREFIX}/var/CA ]; then
rm_dir="$rm_dir ${PKG_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