hardcoded /etc -> ${SYSCONFDIR}
This commit is contained in:
parent
f609e9336f
commit
1a9e64cc62
@ -1,20 +1,20 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/02/07 17:43:21 danh Exp $
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2001/02/12 18:05:20 brad Exp $
|
||||
#
|
||||
# ntp de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=/etc/ntp.conf
|
||||
CONFIG_DIR=${SYSCONFDIR}
|
||||
|
||||
if [ -f ${CONFIG_FILE} ]; then
|
||||
if [ -f $CONFIG_DIR/ntp.conf ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -rf /etc/ntp.*"
|
||||
echo "| rm -rf $CONFIG_DIR/ntp.*"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.2 2001/02/08 15:52:18 danh Exp $
|
||||
# $OpenBSD: INSTALL,v 1.3 2001/02/12 18:05:21 brad Exp $
|
||||
#
|
||||
# Pre/post-installation setup of ntp
|
||||
|
||||
@ -8,7 +8,8 @@
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=/etc/ntp.conf
|
||||
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
|
||||
#
|
||||
@ -17,9 +18,9 @@ do_notice()
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| Several example configuration files can be found in "
|
||||
echo "| ${PREFIX}/share/examples/ntp."
|
||||
echo "| $SAMPLE_CONFIG_DIR."
|
||||
echo "|"
|
||||
echo "| 1) create/update the file ${CONFIG_FILE}"
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user