diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-11-09 18:29:03 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-11-09 18:29:03 +0000 |
commit | 52518d83284735b77980d469b43eb421383efd08 (patch) | |
tree | c42de2f096cc98675a3e4fa6a056b1e7ab672d27 /security/nessus | |
parent | c0c4da186a007e90ce1346e18d0beafaf5d930e1 (diff) | |
download | ports-52518d83284735b77980d469b43eb421383efd08.tar.gz ports-52518d83284735b77980d469b43eb421383efd08.zip |
- Add a hint on complete removal when deinstalling
PR: ports/73726
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=121207
Diffstat (limited to 'security/nessus')
-rw-r--r-- | security/nessus/Makefile | 9 | ||||
-rw-r--r-- | security/nessus/scripts/pkg-deinstall | 30 |
2 files changed, 39 insertions, 0 deletions
diff --git a/security/nessus/Makefile b/security/nessus/Makefile index 0e1d54ef3037..9f8c739fdfce 100644 --- a/security/nessus/Makefile +++ b/security/nessus/Makefile @@ -30,6 +30,7 @@ LIB_DEPENDS= nasl.4:${PORTSDIR}/security/nessus-libnasl DIST_SUBDIR= nessus WRKSRC= ${WRKDIR}/nessus-core +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall.sh USE_LIBTOOL_VER=13 USE_REINPLACE= YES @@ -57,6 +58,14 @@ MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8 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/=/%%!/} \ ${FILESDIR}/nessusd.sh > ${PREFIX}/etc/rc.d/nessusd.sh diff --git a/security/nessus/scripts/pkg-deinstall b/security/nessus/scripts/pkg-deinstall new file mode 100644 index 000000000000..53ba586f97f6 --- /dev/null +++ b/security/nessus/scripts/pkg-deinstall @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/security/nessus/scripts/Attic/pkg-deinstall,v 1.1 2004-11-09 18:29:03 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 + 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 |