ports/73729: maintainer-update of security/nessus-devel

Udo Schweigert udo.schweigert at siemens.com
Tue Nov 9 18:00:46 UTC 2004


>Number:         73729
>Category:       ports
>Synopsis:       maintainer-update of security/nessus-devel
>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 18:00:46 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:


>Description:

Maintainer-update of the security/nessus-devel port:

	- Add hint on complete removal when deinstalling

Committer: cvs add nessus-devel/scripts/pkg-deinstall

>How-To-Repeat:
>Fix:

diff -ru /usr/ports/security/nessus-devel/Makefile nessus-devel/Makefile
--- /usr/ports/security/nessus-devel/Makefile	Mon Nov  8 17:35:46 2004
+++ nessus-devel/Makefile	Mon Nov  8 17:39:00 2004
@@ -29,6 +29,7 @@
 
 DIST_SUBDIR=	nessus
 WRKSRC=		${WRKDIR}/nessus-core
+PKGDEINSTALL=	${WRKDIR}/pkg-deinstall.sh
 
 USE_LIBTOOL_VER=13
 USE_REINPLACE=	YES
@@ -55,6 +56,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-devel/scripts/pkg-deinstall nessus-devel/scripts/pkg-deinstall
--- /usr/ports/security/nessus-devel/scripts/pkg-deinstall	Thu Jan  1 01:00:00 1970
+++ nessus-devel/scripts/pkg-deinstall	Sun Nov  7 20:35:47 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:



More information about the freebsd-ports-bugs mailing list