Add INSTALL and DEINSTALL scripts to spit out needed info

call INSTALL script from Makefile
remove extraneous cruft from packing list
THIS PORT IS NOW FROZEN FOR 2.5
This commit is contained in:
marc 1999-04-08 04:37:27 +00:00
parent 6c99e3ddf6
commit 6c640f17ee
4 changed files with 76 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 1999/03/12 22:55:34 brad Exp $
# $OpenBSD: Makefile,v 1.8 1999/04/08 04:37:27 marc Exp $
DISTNAME= xntp3-5.93e-export
CATEGORIES= sysutils
@ -17,6 +17,6 @@ post-install:
@${LN} -sf xntpd ${PREFIX}/sbin/ntpd
@${MKDIR} ${PREFIX}/share/doc/ntp
@(cd ${WRKSRC}/html; tar cf - . | (cd ${PREFIX}/share/doc/ntp; tar xfBp -))
@echo "**** html documentation installed in ${PREFIX}/share/doc/ntp"
@${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 1999/04/08 04:37:27 marc Exp $
#
# xtnpd de-installation
if [ -f /etc/ntp.conf ]; then
echo
echo "+---------------"
echo "| To completely deinstall $1 package you need to perform"
echo "| this steps as root:"
echo "|"
echo "| rm -rf /etc/ntp.*"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -0,0 +1,52 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 1999/04/08 04:37:27 marc Exp $
#
# Pre/post-installation setup of xntpd
# Function: tell the user what s/he needs to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| html documentation for $1 can be found in the directory"
echo "| ${PREFIX}/share/doc/ntp. To use this application you must"
echo "|"
echo "| 1) create/update the file /etc/ntp.conf (see the documentation)"
echo "| 2) restart your system"
echo "|"
echo "| The system restart is necessary as $1 is started from"
echo "| /etc/rc.securelevel before the system securelevel is changed"
echo "+---------------"
echo
}
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
# 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

View File

@ -1,6 +1,6 @@
sbin/xntpd
@exec ln -sf %f %B/ntpd
@unexec rm -f %B/ntpd
@comment ntpd, a symbolic link to xntpd, is known by rc.securelevel
sbin/ntpd
sbin/ntpdate
sbin/xntpdc
sbin/ntpq