1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/dns/totd/pkg-install
Kris Kennaway b805b9fbde Correct the location of the totd.conf and totd.conf.sample files for
package installations.  Release my maintainership as I don't use this
port any more.

Submitted by:	Shoichi Sakane <sakane@kame.net>
PR:		ports/38451
2002-08-24 03:31:43 +00:00

46 lines
1.0 KiB
Bash

#! /bin/sh
# $OpenBSD: INSTALL,v 1.1 2000/06/11 01:15:53 fgsch Exp $
#
# Post-installation setup of totd - based on majordomo INSTALL script
# from daniel@reichardt.ch
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
do_install_configuration()
{
echo -n "Let's see if there is already a configuration file... "
if [ -f ${PREFIX}/etc/totd.conf ]; then
echo "yes"
echo "Please compare your existing configuration with"
echo "${PREFIX}/etc/totd.conf.sample"
else
echo "no"
echo -n "Copying sample configuration file... "
install -o root -g wheel -m 644 ${PREFIX}/etc/totd.conf.sample \
${PREFIX}/etc/totd.conf
echo "ok"
echo "Please review new configuration ${PREFIX}/etc/totd.conf"
fi
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_install_configuration
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0