summaryrefslogtreecommitdiff
path: root/databases/firebird-devel/scripts/pre-install
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-03-10 20:32:33 +0000
committerWill Andrews <will@FreeBSD.org>2001-03-10 20:32:33 +0000
commitcca71f50d225f7829cd5f1539338fa678225bd91 (patch)
treeefa61cf749d57bdf40c5cb6e2fd2dd93fbcb7020 /databases/firebird-devel/scripts/pre-install
parentAdd wapsh 1.0, a system to allow remote shell logins via a WAP (diff)
Add firebird 0.9, the open-source InterBase(tm) 6.0 spin-off
(Classic version). PR: 24313 Submitted by: Geoffrey C. Speicher <geoff@sea-incorporated.com>
Diffstat (limited to 'databases/firebird-devel/scripts/pre-install')
-rw-r--r--databases/firebird-devel/scripts/pre-install20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/firebird-devel/scripts/pre-install b/databases/firebird-devel/scripts/pre-install
new file mode 100644
index 000000000000..a6e1b37a9008
--- /dev/null
+++ b/databases/firebird-devel/scripts/pre-install
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -d $PREFIX/firebird ]; then
+ if [ -d $PREFIX/firebird.old ]; then
+ rm -rf $PREFIX/firebird.old
+ fi
+ mv $PREFIX/firebird $PREFIX/firebird.old
+fi
+
+if [ -L /usr/interbase ]; then
+ rm -f /usr/interbase
+fi
+
+if [ -d /usr/interbase ]; then
+ mv /usr/interbase /usr/interbase.old
+fi
+
+ln -fs $PREFIX/firebird /usr/interbase
+
+perl $SCRIPTDIR/createuser