summaryrefslogtreecommitdiff
path: root/databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2004-01-13 16:11:11 +0000
committerAlex Dupre <ale@FreeBSD.org>2004-01-13 16:11:11 +0000
commitf18b6b01304df83941f96b515932897cc118a304 (patch)
tree7ede63f375b7fc26d2d877a8b79c4cd7948d2e41 /databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in
parent- fix *squirrelmail ports. (diff)
- Update to 1.5 RC8. [1] [2]
- Note that libgds.so is now symlinked to libfbembed.so rather than libfbclient.so. This restores Firebird 1.0.x shared library compatibility and fixes PHP build. [2] PR: ports/61276 [1], ports/61310 [2] Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> [1], Chris Knight <chris@e-easy.com.au> (maintainer) [2] Approved by: nork (mentor)
Diffstat (limited to '')
-rw-r--r--databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in92
1 files changed, 92 insertions, 0 deletions
diff --git a/databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in b/databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in
new file mode 100644
index 000000000000..d0c86385ae63
--- /dev/null
+++ b/databases/firebird-client/files/patch-src::install::arch-specific::freebsd::install.sh.in
@@ -0,0 +1,92 @@
+--- src/install/arch-specific/freebsd/install.sh.in.orig Thu Nov 6 23:23:29 2003
++++ src/install/arch-specific/freebsd/install.sh.in Tue Jan 13 17:36:16 2004
+@@ -59,7 +59,7 @@
+ if [ -d $InstallPrefix/firebird.old ]; then
+ rm -rf $InstallPrefix/firebird.old
+ fi
+- mv $InstallFirebirdPrefix $InstallPrefix/firebird.old
++ cp -Rp $InstallFirebirdPrefix $InstallPrefix/firebird.old
+ fi
+
+ if [ `id -u` -ne 0 ]; then
+@@ -162,7 +162,7 @@
+ #cp -r $BuiltFBDir/doc $DestDir
+
+ cp $BuiltFBDir/firebird.msg $DestDir/firebird.msg
+-cp $BuiltFBDir/security.fdb $DestDir/security.fdb
++cp $BuiltFBDir/security.fdb $DestDir/security.fdb.sample
+
+
+ #cp $BuiltFBDir/include/gds.f $DestDir/include
+@@ -190,19 +190,19 @@
+ cp $BuildRootDir/doc/WhatsNew $DestDir/WhatsNew
+ cp $BuildRootDir/doc/README.user $DestDir/README
+
+-cp $BuiltFBDir/misc/firebird.conf $DestDir/firebird.conf
++cp $BuiltFBDir/misc/firebird.conf $DestDir/firebird.conf.sample
+
+-echo "#" >> $DestDir/aliases.conf
+-echo "# List of known database aliases" >> $DestDir/aliases.conf
+-echo "# ------------------------------" >> $DestDir/aliases.conf
+-echo "#" >> $DestDir/aliases.conf
+-echo "# Examples:" >> $DestDir/aliases.conf
+-echo "#" >> $DestDir/aliases.conf
+-echo "# employee = /$FBRootDir/examples/employee.fdb" >> $DestDir/aliases.conf
+-echo "#" >> $DestDir/aliases.conf
++echo "#" >> $DestDir/aliases.conf.sample
++echo "# List of known database aliases" >> $DestDir/aliases.conf.sample
++echo "# ------------------------------" >> $DestDir/aliases.conf.sample
++echo "#" >> $DestDir/aliases.conf.sample
++echo "# Examples:" >> $DestDir/aliases.conf.sample
++echo "#" >> $DestDir/aliases.conf.sample
++echo "# employee = $DestDir/examples/employee.fdb" >> $DestDir/aliases.conf.sample
++echo "#" >> $DestDir/aliases.conf.sample
+
+
+-chown -R firebird:firebird $InstallFirebirdPrefix
++chown -R $fbUID:$fbGID $InstallFirebirdPrefix
+ chmod -R o= $InstallFirebirdPrefix
+
+ # Now fix up the mess.
+@@ -235,8 +235,8 @@
+ chmod -R a=rx $InstallFirebirdPrefix/lib/*
+
+ cd $InstallFirebirdPrefix/lib
+-ln -sf libfbclient.so libgds.so
+-ln -sf libfbclient.so.1 libgds.so.1
++ln -sf libfbembed.so libgds.so
++ln -sf libfbembed.so.1 libgds.so.1
+
+ cd $InstallFirebirdPrefix/bin
+ for i in `ls`
+@@ -265,19 +265,25 @@
+ FileName=$i.`hostname`
+ touch $FileName
+ chmod ug=rw,o= $FileName
+- chown firebird:firebird $FileName
++ chown $fbUID:$fbGID $FileName
+ done
+
+-touch firebird.log aliases.conf firebird.conf
+-chown firebird:firebird firebird.log
++touch firebird.log
++chown $fbUID:$fbGID firebird.log
+ chmod ug=rw,o= firebird.log
+-chmod a=r firebird.msg aliases.conf firebird.conf README
++chmod a=r firebird.msg README
++chown root:wheel *.sample
++chmod ug=r,o= *.sample
+
+ # make databases writable by firebird only
+ # local database connections are not a good idea
+ chmod ug=rw,o= examples/*.fdb
+ chmod ug=rw,o= help/*.fdb
+-chmod ug=rw,o= security.fdb
++
++# install the samples if they don't exist
++[ -f aliases.conf ] || install -o $fbUID -g $fbGID -m 440 aliases.conf.sample aliases.conf
++[ -f firebird.conf ] || install -o $fbUID -g $fbGID -m 440 firebird.conf.sample firebird.conf
++[ -f security.fdb ] || install -o $fbUID -g $fbGID -m 660 security.fdb.sample security.fdb
+
+ # remove any existing gds service
+ cp /etc/services /etc/services.old