Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2004 18:45:41 +0100 (CET)
From:      Udo Schweigert <udo.schweigert@siemens.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73726: maintainer-update of security/nessus
Message-ID:  <200411091745.iA9HjfUg030347@alaska.cert.siemens.com>
Resent-Message-ID: <200411091750.iA9HoUsh091732@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73726
>Category:       ports
>Synopsis:       maintainer-update of security/nessus
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 09 17:50:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:


>Description:

Maintainer-update of the security/nessus-* ports:

	- Add a hint on complete removal when deinstalling

Committer: cvs add nessus/scripts/pkg-deinstall

>How-To-Repeat:
>Fix:

diff -ru /usr/ports/security/nessus/Makefile nessus/Makefile
--- /usr/ports/security/nessus/Makefile	Sun Nov  7 06:07:51 2004
+++ nessus/Makefile	Sun Nov  7 20:18:33 2004
@@ -30,6 +30,7 @@
 
 DIST_SUBDIR=	nessus
 WRKSRC=		${WRKDIR}/nessus-core
+PKGDEINSTALL=	${WRKDIR}/pkg-deinstall.sh
 
 USE_LIBTOOL_VER=13
 USE_REINPLACE=	YES
@@ -56,6 +57,14 @@
 
 RC_SCRIPTS_SUB=	PREFIX=${PREFIX} \
 		RC_SUBR=${RC_SUBR}
+
+SED_SCRIPT=	-e 's,%%PKGNAME%%,${PKGNAME},g' \
+		-e 's,%%PREFIX%%,${PREFIX},g'
+
+post-build:
+.for script in pkg-deinstall
+	@${SED} ${SED_SCRIPT} ${SCRIPTDIR}/${script} > ${WRKDIR}/${script}.sh
+.endfor
 
 post-install:
 	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
diff -ru /usr/ports/security/nessus/scripts/pkg-deinstall nessus/scripts/pkg-deinstall
--- /usr/ports/security/nessus/scripts/pkg-deinstall	Thu Jan  1 01:00:00 1970
+++ nessus/scripts/pkg-deinstall	Sun Nov  7 20:33:18 2004
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD: $
+#
+
+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
+  if [ -d %%PREFIX%%/com/CA ]; then
+    ${ECHO_CMD} "- to remove the Certificate Authority associated with nessus:"
+    ${ECHO_CMD} "  rm -Rf %%PREFIX%%/com/CA"
+    ${ECHO_CMD}
+  fi
+  ${ECHO_CMD} "If you are upgrading, don't forget to restart"
+  ${ECHO_CMD} "nessusd and updating the plugins."
+  ${ECHO_CMD}
+  ;;
+esac
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411091745.iA9HjfUg030347>