openbsd-ports/net/ntp/pkg/DEINSTALL

28 lines
694 B
Plaintext
Raw Normal View History

#!/bin/sh
2001-03-24 12:20:36 -05:00
# $OpenBSD: DEINSTALL,v 1.5 2001/03/24 17:20:36 danh Exp $
#
# ntp de-installation
set -e
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
PREFIX="${PKG_PREFIX:-/usr/local}"
2001-03-20 10:53:40 -05:00
CONFIG_DIR="${SYSCONFDIR}"
CONFIG_FILE="$CONFIG_DIR/ntp.conf"
2001-03-20 10:53:40 -05:00
if [ -f "$CONFIG_FILE" ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to"
echo "| perform this step as root:"
echo "|"
2001-03-24 12:20:36 -05:00
echo "| rm -f $CONFIG_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1 at"
echo "| some future time. You may also want to remove any"
echo "| leftover drift files or keys."
echo "+---------------"
echo
fi
exit 0