- drop INSTALL in favor of MESSAGE.

- in DEINSTALL, specify exactly what is okay to remove.
This commit is contained in:
danh 2001-02-13 00:40:46 +00:00
parent 5c38acdc21
commit c90852b537
3 changed files with 24 additions and 65 deletions

View File

@ -1,23 +1,24 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2001/02/12 18:05:20 brad Exp $
# $OpenBSD: DEINSTALL,v 1.3 2001/02/13 00:40:46 danh Exp $
#
# ntp de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
PREFIX="${PKG_PREFIX:-/usr/local}"
CONFIG_FILE="${SYSCONFDIR}/ntp.conf"
if [ -f $CONFIG_DIR/ntp.conf ]; then
if [ -f "${CONFIG_FILE}" ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "| To completely deinstall the $1 package you need to"
echo "| perform this step as root:"
echo "|"
echo "| rm -rf $CONFIG_DIR/ntp.*"
echo "| rm -f ${CONFIG_FILE}"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
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

View File

@ -1,55 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2001/02/12 18:05:21 brad Exp $
#
# Pre/post-installation setup of ntp
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/ntp
# Function: tell the user what s/he needs to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| Several example configuration files can be found in "
echo "| $SAMPLE_CONFIG_DIR."
echo "|"
echo "| 1) create/update the file $CONFIG_DIR/ntp.conf"
echo "| 2) restart your system"
echo "|"
echo "| The system restart is necessary as tickadj is run from"
echo "| /etc/rc.securelevel before the system securelevel is"
echo "| changed."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
do_notice $1
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

13
net/ntp/pkg/MESSAGE Normal file
View File

@ -0,0 +1,13 @@
+---------------
| Several example configuration files can be found in
| ${PREFIX}/share/examples/ntp.
|
| 1) create/update the file ${SYSCONFDIR}/ntp.conf
| 2) restart your system
|
| The system restart is necessary as tickadj is run from
| /etc/rc.securelevel before the system securelevel is
| changed.
+---------------