openbsd-ports/net/ntp/pkg/DEINSTALL
2001-03-24 17:20:36 +00:00

28 lines
694 B
Bash

#!/bin/sh
# $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}"
CONFIG_DIR="${SYSCONFDIR}"
CONFIG_FILE="$CONFIG_DIR/ntp.conf"
if [ -f "$CONFIG_FILE" ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to"
echo "| perform this step as root:"
echo "|"
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