diff options
author | sem <sem@FreeBSD.org> | 2004-11-10 02:29:03 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-11-10 02:29:03 +0800 |
commit | 25ce5e6fc6c81550e3c36181acea6ab69fc9c9a9 (patch) | |
tree | 6a346bd0b2a0a97e1852aaa3ba56821ad6462a99 /security/nessus | |
parent | 07951d3077dd3d9cd7da39fce8e21c62c88f622f (diff) | |
download | freebsd-ports-gnome-25ce5e6fc6c81550e3c36181acea6ab69fc9c9a9.tar.gz freebsd-ports-gnome-25ce5e6fc6c81550e3c36181acea6ab69fc9c9a9.tar.zst freebsd-ports-gnome-25ce5e6fc6c81550e3c36181acea6ab69fc9c9a9.zip |
- Add a hint on complete removal when deinstalling
PR: ports/73726
Submitted by: maintainer
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 |