pkg delete tripwire results in an infinite loop due to it askking

whether to retain the tripwrie databse or not. The resolution is
to notify the user to manually remove the tripwrie database if it
is not longer needed.

MFH:		2020Q3 (packaging bugfix)
This commit is contained in:
Cy Schubert 2020-08-12 08:53:49 +00:00
parent 7166bcac6b
commit 49b2f21291
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544738
2 changed files with 3 additions and 20 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= tripwire
PORTVERSION= 2.4.3.7
PORTREVISION= 1
CATEGORIES= security
MAINTAINER= cy@FreeBSD.org

View File

@ -6,25 +6,7 @@ POST-DEINSTALL)
return 0
fi
if [ -d %%TWCFG%% -o -d %%TWDB%% ]; then
unset ANS
echo
while [ -z "$ANS" ]; do
echo If permanently deleting this package,
echo %%TWCFG%% and %%TWDB%% may be removed.
echo Do you wish to delete %%TWCFG%%
echo -n and %%TWDB%%? '(yes/no) -: '
read ANS
case $ANS in
[Yy]|[Yy][Ee][Ss])
rm -rf %%TWCFG%% %%TWDB%%
;;
[Nn]|[Nn][Oo])
;;
*) echo Answer must be yes or no.
echo
unset ANS
;;
esac
done
echo If permanently deleting this package,
echo %%TWCFG%% and %%TWDB%% may be removed.
fi
esac