freebsd-ports/security/tripwire/files/pkg-deinstall.in
Cy Schubert 92aaf1ed36 Update 2.4.1.2 --> 2.4.2.2.
Binary packaging now possible -- first cut.
2012-01-25 21:15:30 +00:00

27 lines
502 B
Bash

#! /bin/sh
case $2 in
POST-DEINSTALL)
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
fi
esac