34 lines
898 B
Bash
34 lines
898 B
Bash
#!/bin/sh
|
|
# $OpenBSD: DEINSTALL,v 1.7 2004/06/05 04:54:53 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 [ ${PKG_DELETE_EXTRA} != Yes -a -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
|
|
echo
|
|
echo "+---------------"
|
|
echo "| You must also manually remove any key files or drift files"
|
|
echo "| that you may have created or used."
|
|
echo "+---------------"
|
|
echo
|
|
|
|
exit 0
|