54 lines
1022 B
Plaintext
54 lines
1022 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# $OpenBSD: DEINSTALL,v 1.1 2003/12/01 04:13:05 marcm Exp $
|
||
|
#
|
||
|
|
||
|
set -e
|
||
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||
|
|
||
|
FILES='
|
||
|
sound/events/mailcheck.soundlist
|
||
|
'
|
||
|
|
||
|
do_notice()
|
||
|
{
|
||
|
echo
|
||
|
echo "+--------------- $1"
|
||
|
echo "| To really remove $1 from your system you should also"
|
||
|
echo "| remove the configuration files from the ${CONFDIR} directory."
|
||
|
echo "| Remove the directories in which the files reside as well if empty."
|
||
|
echo "| If you are planning on installing $1 again in the future"
|
||
|
echo "| you can leave it as it is."
|
||
|
echo "|"
|
||
|
echo "| FYI, the following configuration files belongs to this package:"
|
||
|
echo "|"
|
||
|
for f in ${FILES}; do
|
||
|
echo "| ${SYSCONFDIR}/$f"
|
||
|
done
|
||
|
echo "+--------------- $1"
|
||
|
echo
|
||
|
}
|
||
|
|
||
|
# Verify proper execution
|
||
|
#
|
||
|
if [ $# -ne 2 ]; then
|
||
|
echo "usage: $0 distname DEINSTALL" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Verify/process the command
|
||
|
#
|
||
|
case $2 in
|
||
|
DEINSTALL)
|
||
|
if [ "$PKG_DELETE_EXTRA" != Yes ]; then
|
||
|
do_notice "$1"
|
||
|
fi
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage: $0 distname DEINSTALL" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|