summaryrefslogtreecommitdiffstats
path: root/dns/totd/pkg-install
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-17 23:08:15 +0000
committerkris <kris@FreeBSD.org>2000-11-17 23:08:15 +0000
commit82b104701706b34794445f6b7906b6fa3cd0b220 (patch)
treeb18718bac2ac0390ed458c64c9fb24ebec899c4b /dns/totd/pkg-install
parent4bf8d2e043184a41939b16282db6737abaab5b96 (diff)
downloadFreeBSD-ports-82b104701706b34794445f6b7906b6fa3cd0b220.zip
FreeBSD-ports-82b104701706b34794445f6b7906b6fa3cd0b220.tar.gz
totd 1.1p4 is a DNS proxy that supports IPv6 <==> IPv4 record translation
Obtained from: OpenBSD
Diffstat (limited to 'dns/totd/pkg-install')
-rw-r--r--dns/totd/pkg-install45
1 files changed, 45 insertions, 0 deletions
diff --git a/dns/totd/pkg-install b/dns/totd/pkg-install
new file mode 100644
index 0000000..de1a95c
--- /dev/null
+++ b/dns/totd/pkg-install
@@ -0,0 +1,45 @@
+#! /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 /etc/totd.conf ]; then
+ echo "yes"
+ echo "Please compare your existing configuration with"
+ echo "${PREFIX}/share/totd/totd.conf.sample"
+ else
+ echo "no"
+ echo -n "Copying sample configuration file... "
+ install -o root -g wheel -m 644 ${PREFIX}/share/totd/totd.conf.sample \
+ /etc/totd.conf
+ echo "ok"
+ echo "Please review new configuration /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
OpenPOWER on IntegriCloud