From c90852b53779e1f7f75fe68f24f044052c6266ef Mon Sep 17 00:00:00 2001 From: danh Date: Tue, 13 Feb 2001 00:40:46 +0000 Subject: [PATCH] - drop INSTALL in favor of MESSAGE. - in DEINSTALL, specify exactly what is okay to remove. --- net/ntp/pkg/DEINSTALL | 21 +++++++++-------- net/ntp/pkg/INSTALL | 55 ------------------------------------------- net/ntp/pkg/MESSAGE | 13 ++++++++++ 3 files changed, 24 insertions(+), 65 deletions(-) delete mode 100644 net/ntp/pkg/INSTALL create mode 100644 net/ntp/pkg/MESSAGE diff --git a/net/ntp/pkg/DEINSTALL b/net/ntp/pkg/DEINSTALL index b682c9962cd..277f1a9f0f7 100644 --- a/net/ntp/pkg/DEINSTALL +++ b/net/ntp/pkg/DEINSTALL @@ -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 diff --git a/net/ntp/pkg/INSTALL b/net/ntp/pkg/INSTALL deleted file mode 100644 index ae3d4e0104a..00000000000 --- a/net/ntp/pkg/INSTALL +++ /dev/null @@ -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 diff --git a/net/ntp/pkg/MESSAGE b/net/ntp/pkg/MESSAGE new file mode 100644 index 00000000000..e1e1ad74647 --- /dev/null +++ b/net/ntp/pkg/MESSAGE @@ -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. ++--------------- +