7332fb8d9a
reviewed by margarida, avsm, and sturm, ok sturm
30 lines
742 B
Bash
30 lines
742 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.2 2003/07/19 17:02:06 jose Exp $
|
|
#
|
|
# p0f de-installation, ganked from siphon de-installation
|
|
|
|
set -e
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
CONFIG_FILE=${SYSCONFDIR}/p0f.fp
|
|
MYSQL_CONFIG=${SYSCONFDIR}/p0f-mysql.conf
|
|
|
|
if [ -f $CONFIG_FILE ]; then
|
|
echo
|
|
echo "+---------------"
|
|
echo "| To completely deinstall the $1 package you need to perform"
|
|
echo "| this step as root:"
|
|
echo "|"
|
|
echo "| rm -f $CONFIG_FILE"
|
|
if [ -f $MYSQL_CONFIG ]; then
|
|
echo "| rm -f $MYSQL_CONFIG"
|
|
fi
|
|
echo "|"
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
echo "| at some future time."
|
|
echo "+---------------"
|
|
echo
|
|
fi
|
|
|
|
exit 0
|