mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
MacOS Port into HEAD
This commit is contained in:
parent
09a44c7626
commit
1644f2cb64
@ -1,6 +1,6 @@
|
||||
Title Firebird Database
|
||||
Version 2.0.2
|
||||
Description Firebird 2.0.2
|
||||
Version 2.1.0
|
||||
Description Firebird 2.1.0
|
||||
DefaultLocation /tmp/install
|
||||
DeleteWarning
|
||||
|
||||
|
@ -6,7 +6,7 @@ include $(ROOT)/gen/make.platform
|
||||
include $(ROOT)/gen/make.rules
|
||||
include $(ROOT)/gen/make.shared.variables
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
DIR = $(ROOT)/gen/firebird/installer_scratch
|
||||
|
||||
@ -21,12 +21,13 @@ FB_VER_SUFFIX_SM:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darw
|
||||
FB_VER_SUFFIX_M:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darwin/buildsuffix.c | tail -1 | sed -e 's/" "//g' -e 's/"//g' -e 's/Release Candidate/RC/')
|
||||
FB_MAJOR_VERS:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darwin/majorvers.c | tail -1 | sed -e 's/" "//g' -e 's/"//g')
|
||||
FB_MINOR_VERS:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darwin/minorvers.c | tail -1 | sed -e 's/" "//g' -e 's/"//g')
|
||||
FB_REV_NO:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darwin/revno.c | tail -1 | sed -e 's/" "//g' -e 's/"//g')
|
||||
FB_BUILD_NO:=$(shell cpp -DDARWIN -I. ../builds/install/arch-specific/darwin/buildno.c | tail -1 | sed -e 's/" "//g' -e 's/"//g')
|
||||
FB_PLATFORM:=$(shell uname -p)
|
||||
|
||||
package packages dist: package_@FIREBIRD_ARCH_TYPE@
|
||||
#package packages dist: package_classic
|
||||
|
||||
package_classic package_embedded: INST_NM=Firebird-CS-$(FB_INST_VERS).$(FB_MINOR_VERS)-$(FB_PLATFORM)
|
||||
package_classic package_embedded: INST_NM=FirebirdCS-$(FB_MAJOR_VERS).$(FB_MINOR_VERS).$(FB_REV_NO)-$(FB_BUILD_NO)-$(FB_PLATFORM)
|
||||
package_classic package_embedded: BLOCKSIZE=1048576
|
||||
package_classic package_embedded:
|
||||
-rm -rf $(DIR)
|
||||
@ -45,6 +46,7 @@ package_classic package_embedded:
|
||||
-e 's/_MFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_M)/g' \
|
||||
-e 's/_MAJOR_VERS_/$(FB_MAJOR_VERS)/g' \
|
||||
-e 's/_MINOR_VERS_/$(FB_MINOR_VERS)/g' \
|
||||
-e 's/_REV_NO_/$(FB_REV_NO)/g' \
|
||||
../builds/install/arch-specific/darwin/Info.plist \
|
||||
> $(DIR)/$(INST_NM).pkg/Contents/Info.plist
|
||||
sed -e 's/_FB_BUILD_SUFFIX_/$(FB_VER_SUFFIX)/g' \
|
||||
@ -52,6 +54,7 @@ package_classic package_embedded:
|
||||
-e 's/_MFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_M)/g' \
|
||||
-e 's/_MAJOR_VERS_/$(FB_MAJOR_VERS)/g' \
|
||||
-e 's/_MINOR_VERS_/$(FB_MINOR_VERS)/g' \
|
||||
-e 's/_REV_NO_/$(FB_REV_NO)/g' \
|
||||
../builds/install/arch-specific/darwin/Description.plist \
|
||||
> $(DIR)/$(INST_NM).pkg/Contents/Resources/Description.plist
|
||||
cp -r ../builds/install/arch-specific/darwin/Firebird.startupitem \
|
||||
@ -87,9 +90,7 @@ package_classic package_embedded:
|
||||
mv $(DIR)/$(INST_NM).pkg $(ROOT)/gen/firebird
|
||||
rm -rf $(DIR)
|
||||
|
||||
# cpp -DDARWIN -I. install/arch-specific/darwin/fullvers.c | tail -1 | sed -e 's/" "//g' -e 's/"//g'
|
||||
|
||||
package_super package_server: INST_NM=Firebird-SS-$(FB_INST_VERS)
|
||||
package_super package_server: INST_NM=FirebirdSS-$(FB_MAJOR_VERS).$(FB_MINOR_VERS).$(FB_REV_NO)-$(FB_BUILD_NO)-$(FB_PLATFORM)
|
||||
package_super package_server: BLOCKSIZE=1048576
|
||||
package_super package_server:
|
||||
-rm -rf $(DIR)
|
||||
@ -102,37 +103,39 @@ package_super package_server:
|
||||
$(ROOT)/gen/firebird/frameworks/FirebirdSS.framework
|
||||
mkdir -p $(DIR)/$(INST_NM).pkg/Contents/Resources
|
||||
mv $(DIR)/Archive.* $(DIR)/$(INST_NM).pkg/Contents
|
||||
cp install/arch-specific/darwin/PkgInfo $(DIR)/$(INST_NM).pkg/Contents
|
||||
cp ../builds/install/arch-specific/darwin/PkgInfo $(DIR)/$(INST_NM).pkg/Contents
|
||||
sed -e 's/_FB_BUILD_SUFFIX_/$(FB_VER_SUFFIX)/g' \
|
||||
-e 's/_SMFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_SM)/g' \
|
||||
-e 's/_MFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_M)/g' \
|
||||
-e 's/_MAJOR_VERS_/$(FB_MAJOR_VERS)/g' \
|
||||
-e 's/_MINOR_VERS_/$(FB_MINOR_VERS)/g' \
|
||||
install/arch-specific/darwin/Info.plist \
|
||||
-e 's/_REV_NO_/$(FB_REV_NO)/g' \
|
||||
../builds/install/arch-specific/darwin/Info.plist \
|
||||
> $(DIR)/$(INST_NM).pkg/Contents/Info.plist
|
||||
sed -e 's/_FB_BUILD_SUFFIX_/$(FB_VER_SUFFIX)/g' \
|
||||
-e 's/_SMFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_SM)/g' \
|
||||
-e 's/_MFB_BUILD_SUFFIX_/$(FB_VER_SUFFIX_M)/g' \
|
||||
-e 's/_MAJOR_VERS_/$(FB_MAJOR_VERS)/g' \
|
||||
-e 's/_MINOR_VERS_/$(FB_MINOR_VERS)/g' \
|
||||
install/arch-specific/darwin/Description.plist \
|
||||
-e 's/_REV_NO_/$(FB_REV_NO)/g' \
|
||||
../builds/install/arch-specific/darwin/Description.plist \
|
||||
> $(DIR)/$(INST_NM).pkg/Contents/Resources/Description.plist
|
||||
cp install/arch-specific/darwin/installer_background.pdf \
|
||||
cp ../builds/install/arch-specific/darwin/installer_background.pdf \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/background.pdf
|
||||
cp install/arch-specific/darwin/install-script \
|
||||
cp ../builds/install/arch-specific/darwin/install-script \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/postinstall
|
||||
cp -r install/arch-specific/darwin/Firebird.startupitem \
|
||||
cp -r ../builds/install/arch-specific/darwin/Firebird.startupitem \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/StartupItem
|
||||
rm -rf `find $(DIR)/$(INST_NM).pkg/Contents/Resources/StartupItem -name CVS`
|
||||
cp install/arch-specific/darwin/install-script \
|
||||
cp ../builds/install/arch-specific/darwin/install-script \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/postupgrade
|
||||
cp install/arch-specific/darwin/preinstall-script \
|
||||
cp ../builds/install/arch-specific/darwin/preinstall-script \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/preinstall
|
||||
cp install/arch-specific/darwin/preupgrade-script \
|
||||
cp ../builds/install/arch-specific/darwin/preupgrade-script \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources/preupgrade
|
||||
chmod a+rx $(DIR)/$(INST_NM).pkg/Contents/Resources/pre*
|
||||
chmod a+rx $(DIR)/$(INST_NM).pkg/Contents/Resources/post*
|
||||
cp install/arch-specific/darwin/*.txt \
|
||||
cp ../builds/install/arch-specific/darwin/*.txt \
|
||||
$(DIR)/$(INST_NM).pkg/Contents/Resources
|
||||
ln -s ../Archive.bom $(DIR)/$(INST_NM).pkg/Contents/Resources/$(INST_NM).bom
|
||||
ln -s ../Archive.pax.gz \
|
||||
@ -150,18 +153,16 @@ package_super package_server:
|
||||
mv $(DIR)/$(INST_NM).pkg $(ROOT)/gen/firebird
|
||||
rm -rf $(DIR)
|
||||
|
||||
# cpp -DDARWIN -I. install/arch-specific/darwin/fullvers.c | tail -1 | sed -e 's/" "//g' -e 's/"//g'
|
||||
|
||||
|
||||
install: install_@FIREBIRD_ARCH_TYPE@
|
||||
#install: install_@FIREBIRD_ARCH_TYPE@
|
||||
|
||||
install_super install_server:
|
||||
installer -verbose -dumplog -pkg \
|
||||
`pwd`/$(ROOT)/gen/firebird/Firebird-SS-$(FB_INST_VERS).pkg -target /
|
||||
`pwd`/$(ROOT)/gen/firebird/Firebird-SS-$(FB_INST_VERS).$(FB_MINOR_VERS)-$(FB_PLATFORM).pkg -target /
|
||||
|
||||
install_embedded install_classic:
|
||||
install_classic install_serverc:
|
||||
installer -verbose -dumplog -pkg \
|
||||
`pwd`/$(ROOT)/gen/firebird/Firebird-CS-$(FB_INST_VERS).pkg -target /
|
||||
`pwd`/$(ROOT)/gen/firebird/Firebird-CS-$(FB_INST_VERS).$*FB_MINOR_VERS)-$(FB_PLATFORM)..pkg -target /
|
||||
|
||||
darwin_installer_common: force
|
||||
$(QUIET_ECHO) "Building Firebird Installer..."
|
||||
|
2
builds/install/arch-specific/darwin/buildno.c
Normal file
2
builds/install/arch-specific/darwin/buildno.c
Normal file
@ -0,0 +1,2 @@
|
||||
#include "../../../../src/jrd/license.h"
|
||||
FB_BUILD_NO
|
@ -1,2 +1,2 @@
|
||||
#include "jrd/license.h"
|
||||
#include "../../../../src/jrd/license.h"
|
||||
FB_VERSION
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: install-script,v 1.2 2007-03-09 10:32:41 paulbeach Exp $
|
||||
# $Id: install-script,v 1.3 2007-06-11 14:21:13 paulbeach Exp $
|
||||
#
|
||||
# Script args:
|
||||
# $0: full path to script
|
||||
@ -9,11 +9,12 @@
|
||||
# $3: ????? Path to install Volume????
|
||||
# $4: ?????
|
||||
|
||||
FB_FW="$2/Firebird.framework"
|
||||
FB_FW="/Library/Frameworks/Firebird.framework"
|
||||
FB_RES="$FB_FW/Versions/A/Resources"
|
||||
INST_RES="$FB_RES/installer_files"
|
||||
|
||||
# Install and start sysv semaphores
|
||||
echo "Install and start sysv semaphores"
|
||||
if test `uname -r | sed -e 's/\.[0-9]*//g'` -lt 6; then
|
||||
if [ -e "SysV Semaphores" ]; then
|
||||
mkdir -p /Library/StartupItems
|
||||
@ -28,6 +29,7 @@ fi
|
||||
#
|
||||
#
|
||||
# Start with the service entry
|
||||
echo "Start with the service entry"
|
||||
if niutil -list . /services/gds_db 2&>1 /dev/null ; then
|
||||
echo -n
|
||||
else
|
||||
@ -38,6 +40,7 @@ fi
|
||||
|
||||
# Now for the group. If the firebird group already exists, remember the
|
||||
# id if we need it to create the firebird user
|
||||
echo "Create the Firebird group"
|
||||
if niutil -list . /groups/firebird 2&>1 /dev/null; then
|
||||
NEW_GID=`niutil -readprop . /groups/firebird gid`
|
||||
else
|
||||
@ -49,6 +52,7 @@ else
|
||||
fi
|
||||
|
||||
# Now create the firebird user
|
||||
echo "Create the Firebird user"
|
||||
if niutil -list . /users/firebird 2&>1 /dev/null; then
|
||||
echo -n
|
||||
else
|
||||
@ -64,31 +68,19 @@ else
|
||||
niutil -createprop . /users/firebird realname "Firebird SQL Database"
|
||||
fi
|
||||
|
||||
# set the permissions correctly
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
echo -n
|
||||
#else
|
||||
$FB_FW/Resources/bin/fbmgr.bin -shut -user sysdba -password masterkey
|
||||
rm -rf /System/Library/StartupItems/Firebird
|
||||
fi
|
||||
|
||||
# Shutdown any existing servers
|
||||
echo "Shutdown any existing servers"
|
||||
if [ -x /sbin/service ]; then
|
||||
service firebird stop
|
||||
fi
|
||||
|
||||
# Install the framework
|
||||
# mkdir -p /Library/Frameworks
|
||||
# cp -r Firebird.framework $FB_FW
|
||||
#ln -s ../../bin $FB_FW/Versions/A/Resources/English.lproj/var/bin; \
|
||||
#ln -s Versions/Current/Headers $FB_FW/Headers
|
||||
#ln -s Versions/Current/Resources $FB_FW/Resources
|
||||
#ln -s Versions/Current/Firebird $FB_FW/Firebird
|
||||
#ln -s A $FB_FW/Versions/Current
|
||||
echo "Install the framework"
|
||||
chown -R firebird "$FB_FW"
|
||||
chgrp -R firebird "$FB_FW"
|
||||
|
||||
# set the permissions correctly
|
||||
echo "Set the permissions correctly"
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
chmod 777 "$FB_FW/Resources/English.lproj/var"
|
||||
chmod 777 "$FB_FW/Resources/English.lproj/var/security2.fdb"
|
||||
@ -98,36 +90,30 @@ else
|
||||
chmod 777 "$FB_FW/Resources/English.lproj/var/security2.fdb"
|
||||
chmod 777 "$FB_FW/Resources/English.lproj/var/help/help.fdb"
|
||||
|
||||
# chmod a+s "$FB_FW/Resources/bin/gds_drop"
|
||||
chmod a+s "$FB_FW/Resources/bin/gds_drop"
|
||||
chmod a+s "$FB_FW/Resources/bin/fb_lock_mgr"
|
||||
chmod a+s "$FB_FW/Resources/bin/fb_inet_server"
|
||||
|
||||
# chown root "$FB_FW/Resources/bin/gds_drop"
|
||||
chown root "$FB_FW/Resources/bin/gds_drop"
|
||||
chown root "$FB_FW/Resources/bin/fb_lock_mgr"
|
||||
chown root "$FB_FW/Resources/bin/fb_inet_server"
|
||||
fi
|
||||
|
||||
# Install the startup item
|
||||
echo "Install the startup item"
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
if [ -e "$INST_RES/Firebird.startup" ]; then
|
||||
# mkdir -p /Library/StartupItems
|
||||
rm -rf /System/Library/StartupItems/Firebird
|
||||
cp -r "$INST_RES/Firebird.startup" /System/Library/StartupItems/Firebird
|
||||
rm -rf /Library/StartupItems/Firebird
|
||||
cp -r "$INST_RES/Firebird" /Library/StartupItems/Firebird
|
||||
fi
|
||||
else
|
||||
rm -rf /System/Library/StartupItems/Firebird
|
||||
rm -rf /Library/StartupItems/Firebird
|
||||
fi
|
||||
|
||||
|
||||
# Install FBConsole
|
||||
#if [ -e FBConsole.app ]; then
|
||||
# mkdir -p /Applications
|
||||
# cp -r FBConsole.app /Applications
|
||||
#fi
|
||||
|
||||
#
|
||||
# Add gds_db to the services file, if available
|
||||
#
|
||||
echo "Add gds_db to the services file"
|
||||
HUPNEEDED='n' # Relevant to Classic only
|
||||
if [ -f /etc/services ]; then
|
||||
grep -s gds_db /etc/services > /dev/null 2>&1
|
||||
@ -144,7 +130,8 @@ if [ -f /etc/inetd.conf ]; then
|
||||
cp /etc/inetd.conf /etc/inetd.conf.fbsave
|
||||
fi
|
||||
|
||||
# Remove all traces of CS first
|
||||
# Remove all traces of Classic first
|
||||
echo "Remove all traces of Classic first"
|
||||
if [ -f /etc/inetd.conf ]; then
|
||||
grep -s gds_db /etc/inetd.conf > /dev/null 2>&1
|
||||
if test $? != 0 ; then
|
||||
@ -159,12 +146,30 @@ if [ -f /etc/xinetd.d/firebird ]; then
|
||||
HUPNEEDED='y'
|
||||
fi
|
||||
|
||||
# Install ourselves in the correct place
|
||||
# Install ourselves in the correct place - SuperServer
|
||||
echo "Install ourselves in the correct place"
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
cp -r $1/Contents/Resources/StartupItem /System/Library/StartupItems/Firebird
|
||||
cp -r $1/Contents/Resources/StartupItem /Library/StartupItems/Firebird
|
||||
fi
|
||||
|
||||
# Install ourselves in the correct place - Classic
|
||||
# inetd.d - older versions of MacOS
|
||||
|
||||
if [ -f //var/run/inted.pid -a -d /etc/inetd.d ]; then
|
||||
if [ -f /etc/inetd.conf ]; then
|
||||
echo "gds_db stream tcp nowait root $FB_FW/Resources/bin/fb_inet_server fb_inet_server" > /etc/.fb.inetd.conf.entry
|
||||
cat /etc/inetd.conf /etc/.fb.inetd.conf.entry > /etc/.interbase.temp.install.inetd.conf
|
||||
mv /etc/.interbase.temp.install.inetd.conf /etc/inetd.conf
|
||||
rm -f /etc/.fb.inetd.conf.entry
|
||||
HUPNEEDED='y'
|
||||
fi
|
||||
fi
|
||||
|
||||
# xinetd.d - Classic default
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
echo -n
|
||||
else
|
||||
if [ -f /var/run/xinetd.pid -a -d /etc/xinetd.d ]; then
|
||||
cat > /etc/xinetd.d/firebird <<EOF
|
||||
cat > /etc/xinetd.d/firebird <<EOF
|
||||
service gds_db
|
||||
{
|
||||
disable = no
|
||||
@ -172,25 +177,19 @@ service gds_db
|
||||
wait = no
|
||||
user = firebird
|
||||
EOF
|
||||
echo "server = $FB_RES/bin/fb_inet_server" >> /etc/xinetd.d/firebird
|
||||
echo "server = $FB_FW/Resources/bin/fb_inet_server" >> /etc/xinetd.d/firebird
|
||||
cat >> /etc/xinetd.d/firebird << EOF
|
||||
groups = yes
|
||||
}
|
||||
EOF
|
||||
|
||||
HUPNEEDED='y'
|
||||
else
|
||||
if [ -f /etc/inetd.conf ]; then
|
||||
echo "gds_db stream tcp nowait root $FB_FW/Resources/bin/fb_inet_server fb_inet_server" > /etc/.fb.inetd.conf.entry
|
||||
cat /etc/inetd.conf /etc/.fb.inetd.conf.entry > /etc/.interbase.temp.install.inetd.conf
|
||||
mv /etc/.interbase.temp.install.inetd.conf /etc/inetd.conf
|
||||
rm -f /etc/.fb.inetd.conf.entry
|
||||
HUPNEEDED='y'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Placeholder for launchd
|
||||
|
||||
# Make sure the hosts.equiv files are set correctly
|
||||
echo "Make sure hosts.equiv files are set correctly"
|
||||
cp /etc/hosts.equiv /etc/hosts.equiv.fbsave
|
||||
if grep -x "localhost" /etc/hosts.equiv > /dev/null; then
|
||||
echo -n
|
||||
@ -203,15 +202,15 @@ else
|
||||
echo "localhost.localdomain" >> /etc/hosts.equiv
|
||||
fi
|
||||
|
||||
|
||||
# Install the saved security database, if any
|
||||
if test -f /tmp/fb-security-database-update.fdb; then
|
||||
mv -f /tmp/fb-security-database-update.fdb "$FB_RES/English.lproj/var/security2.fdb"
|
||||
rm -f /tmp/fb-security-database-update.fdb
|
||||
echo "Install the saved security database"
|
||||
if test -f /tmp/fb-security-database-update2.fdb; then
|
||||
mv -f /tmp/fb-security-database-update2.fdb "$FB_RES/English.lproj/var/security2.fdb"
|
||||
rm -f /tmp/fb-security-database-update2.fdb
|
||||
fi
|
||||
|
||||
|
||||
# Tell inetd/xinetd to reload their configuration files.
|
||||
echo "Tell inetd/xinetd to reload configuration files"
|
||||
if [ "$HUPNEEDED" = 'y' ]
|
||||
then
|
||||
#INETPID=`ps -axe | grep inetd | awk '{print $1}'`
|
||||
@ -225,10 +224,8 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
###
|
||||
# And last but not least, start the server
|
||||
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then
|
||||
#echo Starting Firebird Database Server
|
||||
/System/Library/StartupItems/Firebird/Firebird start
|
||||
/Library/StartupItems/Firebird/Firebird start
|
||||
fi
|
||||
|
||||
|
@ -7,21 +7,24 @@
|
||||
# $3: ????? Path to install Volume????
|
||||
# $4: ?????
|
||||
|
||||
FB_FW="/Library/Frameworks/Firebird.framework"
|
||||
|
||||
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.gdb"; then
|
||||
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.gdb" /tmp/fb-security-database-update.fdb
|
||||
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.gdb"; then
|
||||
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.gdb" /tmp/fb-security-database-update.fdb
|
||||
fi
|
||||
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.fdb"; then
|
||||
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/isc4.fdb" /tmp/fb-security-database-update.fdb
|
||||
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.fdb"; then
|
||||
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/isc4.fdb" /tmp/fb-security-database-update.fdb
|
||||
fi
|
||||
if test -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/security.fdb"; then
|
||||
mv -f "$2/Firebird.framework/Versions/A/Resources/English.lproj/var/security.fdb" /tmp/fb-security-database-update.fdb
|
||||
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/security.fdb"; then
|
||||
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/security.fdb" /tmp/fb-security-database-update.fdb
|
||||
fi
|
||||
if test -f "$FB_FW/Versions/A/Resources/English.lproj/var/security2.fdb"; then
|
||||
mv -f "$FB_FW/Versions/A/Resources/English.lproj/var/security2.fdb" /tmp/fb-security-database-update2.fdb
|
||||
fi
|
||||
|
||||
|
||||
if [ -f /Library/StartupItems/Firebird/Firebird ]; then
|
||||
/Library/StartupItems/Firebird/Firebird stop
|
||||
fi
|
||||
rm -rf "$2/Firebird.framework"
|
||||
|
||||
rm -rf "$FB_FW/Firebird.framework"
|
||||
rm -rf /Library/StartupItems/Firebird
|
||||
exit 0
|
||||
|
2
builds/install/arch-specific/darwin/revno.c
Normal file
2
builds/install/arch-specific/darwin/revno.c
Normal file
@ -0,0 +1,2 @@
|
||||
#include "../../../../src/jrd/license.h"
|
||||
FB_REV_NO
|
@ -338,7 +338,7 @@ otherfiles: misc_files
|
||||
.PHONY: embed_gpre embed_util
|
||||
|
||||
classic_targets: $(PLAT_CLASSIC_PRE_TARGET) libfbembed inet_server embed_gfix embed_gbak embed_isql \
|
||||
embed_gpre embed_util embed_gdef embed_qli embed_fbudf libfbclient
|
||||
embed_gpre embed_util embed_gdef embed_qli embed_fbudf libfbclient $(PLAT_CLASSIC_POST_TARGET)
|
||||
|
||||
libfbembed:
|
||||
$(MAKE) -f $(GEN_ROOT)/Makefile.libfbembed $@
|
||||
@ -375,8 +375,8 @@ embed_fbudf:
|
||||
.PHONY: fbserver
|
||||
.PHONY: libfbclient client_gfix client_gbak client_isql client_gpre client_util client_fbudf
|
||||
|
||||
super_targets: fbserver libfbclient client_gfix client_gbak client_gsec\
|
||||
client_isql client_gpre client_util client_fbudf client_gdef client_qli
|
||||
super_targets: $(PLAT_SUPER_PRE_TARGET) fbserver libfbclient client_gfix client_gbak client_gsec\
|
||||
client_isql client_gpre client_util client_fbudf client_gdef client_qli $(PLAT_SUPER_POST_TRAGET)
|
||||
|
||||
fbserver:
|
||||
$(MAKE) -f $(GEN_ROOT)/Makefile.fbserver $@
|
||||
|
@ -111,7 +111,7 @@ endif
|
||||
|
||||
$(LIBFBCLIENT_SO): $(FBCLIENT_Objects)
|
||||
ifeq ($(PLATFORM),DARWIN)
|
||||
$(LIB_LINK) $(LINK_FIREBIRD_SYMBOLS) $(LIB_LINK_OPTIONS) $(LIB_LINK_IMPLIB) \
|
||||
$(LIB_LINK) $(LINK_FIREBIRD_CLIENT_SYMBOLS) $(LIB_LINK_OPTIONS) $(LIB_LINK_IMPLIB) \
|
||||
$(LIB_CLIENT_LINK_OPTIONS) $(LIB_LINK_SONAME) \
|
||||
-o $@ $^ $(SO_LINK_LIBS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
||||
else
|
||||
|
@ -63,7 +63,7 @@ libfbembed : $(LIBFBEMBED_SONAME)
|
||||
|
||||
$(LIBFBEMBED_SO): $(LIBFBEMBED_Objects) $(SERVER_Objects) $(COMMON_Objects)
|
||||
ifeq ($(PLATFORM),DARWIN)
|
||||
$(LIB_LINK) $(LINK_FIREBIRD_SYMBOLS) $(LIB_LINK_OPTIONS) \
|
||||
$(LIB_LINK) $(LINK_FIREBIRD_EMBED_SYMBOLS) $(LIB_LINK_OPTIONS) \
|
||||
$(LIB_EMBED_LINK_OPTIONS) $(LIB_LINK_SONAME) \
|
||||
-o $@ $^ -L$(LIB) $(LIB_GUI) $(SO_LINK_LIBS) $(ICU_LIBS)
|
||||
else
|
||||
|
@ -58,8 +58,6 @@ gbak_static : $(GBAK_STATIC)
|
||||
$(GBAK_STATIC) : $(GBAKSTATIC_Objects) $(COMMON_Objects) $(LIBFBSTATIC_A)
|
||||
$(CXX) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS) $(ICU_LIBS)
|
||||
|
||||
# Darwin may need this link as well
|
||||
#$(COREFOUNDATION_LINK)
|
||||
|
||||
include $(ROOT)/gen/make.shared.targets
|
||||
|
||||
|
24
builds/posix/fbintl.darwin.vers
Normal file
24
builds/posix/fbintl.darwin.vers
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Version script to hide private symbols from Firebird libraries
|
||||
# This version to support the MacOSX Linker
|
||||
#
|
||||
# The contents of this file are subject to the Initial
|
||||
# Developer's Public License Version 1.0 (the "License");
|
||||
# you may not use this file except in compliance with the
|
||||
# License. You may obtain a copy of the License at
|
||||
# http://www.firebirdsql.org
|
||||
#
|
||||
# Software distributed under the License is distributed AS IS,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing rights
|
||||
# and limitations under the License.
|
||||
#
|
||||
# This code was created by Paul Beach, IBPhoenix
|
||||
# based on code created by Nickolay Samofatov
|
||||
# for the Firebird Open Source RDBMS project.
|
||||
#
|
||||
# All Rights Reserved.
|
||||
# Contributor(s): ______________________________________.
|
||||
|
||||
_LD_lookup_charset
|
||||
_LD_lookup_texttype
|
338
builds/posix/firebird.darwin.client.vers
Normal file
338
builds/posix/firebird.darwin.client.vers
Normal file
@ -0,0 +1,338 @@
|
||||
#
|
||||
# Version script to hide private symbols from Firebird libraries
|
||||
# This version to support the MacOSX Linker
|
||||
#
|
||||
# The contents of this file are subject to the Initial
|
||||
# Developers Public License Version 1.0 (the "License");
|
||||
# you may not use this file except in compliance with the
|
||||
# License. You may obtain a copy of the License at
|
||||
# http://www.firebirdsql.org/
|
||||
#
|
||||
# Software distributed under the License is distributed on an
|
||||
# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
||||
# or implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# This Code was created by Paul Beach, IBPhoenix
|
||||
# based on original code created by Inprise and Nickolay Somofatov
|
||||
# based on firebird.vers (Nickolay Samofatov) and fbclient.def (Inprise)
|
||||
#
|
||||
# All Rights Reserved.
|
||||
# Contributor(s): ______________________________________.
|
||||
|
||||
#-------------------
|
||||
# PRIVATE INTERFACE
|
||||
#-------------------
|
||||
_gds__alloc
|
||||
_gds__attach_database
|
||||
_gds__blob_info
|
||||
_gds__blob_size
|
||||
_gds__cancel_blob
|
||||
_gds__cancel_events
|
||||
_gds__close
|
||||
_gds__close_blob
|
||||
_gds__commit_retaining
|
||||
_gds__commit_transaction
|
||||
_gds__compile_request
|
||||
_gds__compile_request2
|
||||
_gds__create_blob
|
||||
_gds__create_blob2
|
||||
_gds__create_database
|
||||
_gds__database_cleanup
|
||||
_gds__database_info
|
||||
_gds__ddl
|
||||
_gds__declare
|
||||
_gds__decode
|
||||
_gds__decode_date
|
||||
_gds__describe
|
||||
_gds__describe_bind
|
||||
_gds__detach_database
|
||||
_gds__disable_subsystem
|
||||
_gds__dsql_finish
|
||||
_gds__edit
|
||||
_gds__enable_subsystem
|
||||
_gds__encode
|
||||
_gds__encode_date
|
||||
_gds__event_block
|
||||
_gds__event_counts
|
||||
_gds__event_wait
|
||||
_gds__execute
|
||||
_gds__execute_immediate
|
||||
_gds__fetch
|
||||
_gds__free
|
||||
_gds__ftof
|
||||
_gds__get_prefix
|
||||
_gds__get_segment
|
||||
_gds__get_slice
|
||||
_gds__interprete
|
||||
_gds__log
|
||||
_gds__log_status
|
||||
_gds__map_blobs
|
||||
_gds__msg_close
|
||||
_gds__msg_format
|
||||
_gds__msg_lookup
|
||||
_gds__msg_open
|
||||
_gds__msg_put
|
||||
_gds__open
|
||||
_gds__open_blob
|
||||
_gds__open_blob2
|
||||
_gds__parse_bpb
|
||||
_gds__prefix
|
||||
_gds__prefix_lock
|
||||
_gds__prefix_msg
|
||||
_gds__prepare
|
||||
_gds__prepare_transaction
|
||||
_gds__prepare_transaction2
|
||||
_gds__print_blr
|
||||
_gds__print_status
|
||||
_gds__put_error
|
||||
_gds__put_segment
|
||||
_gds__put_slice
|
||||
_gds__qtoq
|
||||
_gds__que_events
|
||||
_gds__receive
|
||||
_gds__reconnect_transaction
|
||||
_gds__register_cleanup
|
||||
_gds__release_request
|
||||
_gds__request_info
|
||||
_gds__rollback_transaction
|
||||
_gds__seek_blob
|
||||
_gds__send
|
||||
_gds__set_debug
|
||||
_gds__sqlcode
|
||||
_gds__start_and_send
|
||||
_gds__start_multiple
|
||||
_gds__start_request
|
||||
_gds__start_transaction
|
||||
_gds__temp_file
|
||||
_gds__thread_enable
|
||||
_gds__thread_enter
|
||||
_gds__thread_exit
|
||||
_gds__thread_start
|
||||
_gds__to_sqlda
|
||||
_gds__transaction_cleanup
|
||||
_gds__transaction_info
|
||||
_gds__unregister_cleanup
|
||||
_gds__unwind_request
|
||||
_gds__validate_lib_path
|
||||
_gds__vax_integer
|
||||
_gds__version
|
||||
_gds__vtof
|
||||
_gds__vtov
|
||||
_gds__default_printer
|
||||
_gds__alloc_debug
|
||||
_gds_alloc_flag_unfreed
|
||||
_gds_alloc_report
|
||||
|
||||
_perf_format
|
||||
_perf_get_info
|
||||
_perf_report
|
||||
|
||||
#----------------------------
|
||||
# PUBLIC INTERFACE, i.e. API
|
||||
#----------------------------
|
||||
|
||||
# Array functions
|
||||
|
||||
_isc_array_gen_sdl
|
||||
_isc_array_get_slice
|
||||
_isc_array_lookup_bounds
|
||||
_isc_array_lookup_desc
|
||||
_isc_array_put_slice
|
||||
_isc_array_set_desc
|
||||
_isc_get_slice
|
||||
_isc_put_slice
|
||||
|
||||
# BLOB functions
|
||||
|
||||
_isc_blob_default_desc
|
||||
_isc_blob_gen_bpb
|
||||
_isc_blob_info
|
||||
_isc_blob_lookup_desc
|
||||
_isc_blob_set_desc
|
||||
_isc_cancel_blob
|
||||
_isc_close_blob
|
||||
_isc_create_blob
|
||||
_isc_create_blob2
|
||||
_isc_get_segment
|
||||
_isc_open_blob
|
||||
_isc_open_blob2
|
||||
_isc_put_segment
|
||||
|
||||
# Database functions
|
||||
|
||||
_isc_attach_database
|
||||
_isc_create_database
|
||||
_isc_database_info
|
||||
_isc_detach_database
|
||||
_isc_drop_database
|
||||
_isc_expand_dpb
|
||||
_isc_modify_dpb
|
||||
_isc_version
|
||||
_isc_get_client_major_version
|
||||
_isc_get_client_minor_version
|
||||
_isc_get_client_version
|
||||
|
||||
# Conversion functions
|
||||
|
||||
_isc_decode_date
|
||||
_isc_decode_sql_date
|
||||
_isc_decode_sql_time
|
||||
_isc_decode_timestamp
|
||||
_isc_encode_date
|
||||
_isc_encode_sql_date
|
||||
_isc_encode_sql_time
|
||||
_isc_encode_timestamp
|
||||
_isc_portable_integer
|
||||
_isc_vax_integer
|
||||
|
||||
# DSQL functions
|
||||
|
||||
_isc_dsql_allocate_statement
|
||||
_isc_dsql_alloc_statement2
|
||||
_isc_dsql_describe
|
||||
_isc_dsql_describe_bind
|
||||
_isc_dsql_execute
|
||||
_isc_dsql_execute2
|
||||
_isc_dsql_execute_m
|
||||
_isc_dsql_execute2_m
|
||||
_isc_dsql_execute_immediate
|
||||
_isc_dsql_exec_immed2
|
||||
_isc_dsql_execute_immediate_m
|
||||
_isc_dsql_exec_immed2_m
|
||||
_isc_dsql_exec_immed3_m
|
||||
_isc_dsql_fetch
|
||||
_isc_dsql_fetch_a
|
||||
_isc_dsql_fetch_m
|
||||
_isc_dsql_finish
|
||||
_isc_dsql_free_statement
|
||||
_isc_dsql_insert
|
||||
_isc_dsql_insert_m
|
||||
_isc_dsql_prepare
|
||||
_isc_dsql_prepare_m
|
||||
_isc_dsql_release
|
||||
_isc_dsql_set_cursor_name
|
||||
_isc_dsql_sql_info
|
||||
|
||||
# ESQL functions
|
||||
|
||||
_isc_embed_dsql_close
|
||||
_isc_embed_dsql_declare
|
||||
_isc_embed_dsql_describe
|
||||
_isc_embed_dsql_describe_bind
|
||||
_isc_embed_dsql_execute
|
||||
_isc_embed_dsql_execute2
|
||||
_isc_embed_dsql_execute_immed
|
||||
_isc_embed_dsql_exec_immed2
|
||||
_isc_embed_dsql_fetch
|
||||
_isc_embed_dsql_fetch_a
|
||||
_isc_embed_dsql_insert
|
||||
_isc_embed_dsql_open
|
||||
_isc_embed_dsql_open2
|
||||
_isc_embed_dsql_prepare
|
||||
_isc_embed_dsql_release
|
||||
|
||||
# Error-handling functions
|
||||
|
||||
_isc_interprete
|
||||
_fb_interpret
|
||||
_isc_print_sqlerror
|
||||
_isc_print_status
|
||||
_isc_sqlcode
|
||||
_isc_sql_interprete
|
||||
|
||||
# Event functions
|
||||
|
||||
_isc_cancel_events
|
||||
_isc_event_block
|
||||
_isc_event_counts
|
||||
_isc_que_events
|
||||
_isc_wait_for_event
|
||||
|
||||
# Security functions
|
||||
|
||||
_isc_add_user
|
||||
_isc_delete_user
|
||||
_isc_modify_user
|
||||
|
||||
# Services functions
|
||||
|
||||
_isc_service_attach
|
||||
_isc_service_detach
|
||||
_isc_service_query
|
||||
_isc_service_start
|
||||
|
||||
# Transaction control functions
|
||||
|
||||
_isc_commit_retaining
|
||||
_isc_commit_transaction
|
||||
_isc_prepare_transaction
|
||||
_isc_prepare_transaction2
|
||||
_isc_rollback_retaining
|
||||
_isc_rollback_transaction
|
||||
_isc_start_multiple
|
||||
_isc_start_transaction
|
||||
_isc_transaction_info
|
||||
|
||||
# Other functions
|
||||
|
||||
_isc_compile_request
|
||||
_isc_compile_request2
|
||||
_isc_ddl
|
||||
_isc_prepare
|
||||
_isc_receive
|
||||
_isc_reconnect_transaction
|
||||
_isc_release_request
|
||||
_isc_request_info
|
||||
_isc_seek_blob
|
||||
_isc_send
|
||||
_isc_start_and_send
|
||||
_isc_start_request
|
||||
_isc_transact_request
|
||||
_isc_unwind_request
|
||||
|
||||
# Other SQL functions
|
||||
|
||||
_isc_close
|
||||
_isc_declare
|
||||
_isc_describe
|
||||
_isc_describe_bind
|
||||
_isc_execute
|
||||
_isc_execute_immediate
|
||||
_isc_fetch
|
||||
_isc_fetch_a
|
||||
_isc_open
|
||||
|
||||
# Other BLOB functions
|
||||
|
||||
_BLOB_close
|
||||
_BLOB_display
|
||||
_BLOB_dump
|
||||
_BLOB_edit
|
||||
_BLOB_get
|
||||
_BLOB_load
|
||||
_BLOB_open
|
||||
_BLOB_put
|
||||
_BLOB_text_dump
|
||||
_BLOB_text_load
|
||||
_Bopen
|
||||
|
||||
# Other misc functions
|
||||
|
||||
_isc_ftof
|
||||
_isc_free
|
||||
_isc_print_blr
|
||||
_isc_qtoq
|
||||
_isc_set_debug
|
||||
_isc_to_sqlda
|
||||
_isc_vtof
|
||||
_isc_vtov
|
||||
|
||||
#-----------------
|
||||
# OTHER FUNCTIONS
|
||||
#-----------------
|
||||
|
||||
_CVT_move
|
||||
|
||||
_KEYWORD_stringIsAToken
|
||||
_KEYWORD_getTokens
|
341
builds/posix/firebird.darwin.embed.vers
Normal file
341
builds/posix/firebird.darwin.embed.vers
Normal file
@ -0,0 +1,341 @@
|
||||
#
|
||||
# Version script to hide private symbols from Firebird libraries
|
||||
# This version to support the MacOSX Linker
|
||||
#
|
||||
# The contents of this file are subject to the Initial
|
||||
# Developers Public License Version 1.0 (the "License");
|
||||
# you may not use this file except in compliance with the
|
||||
# License. You may obtain a copy of the License at
|
||||
# http://www.firebirdsql.org/
|
||||
#
|
||||
# Software distributed under the License is distributed on an
|
||||
# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
||||
# or implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# This Code was created by Paul Beach, IBPhoenix
|
||||
# based on original code created by Inprise and Nickolay Somofatov
|
||||
# based on firebird.vers (Nickolay Samofatov) and fbclient.def (Inprise)
|
||||
#
|
||||
# All Rights Reserved.
|
||||
# Contributor(s): ______________________________________.
|
||||
|
||||
|
||||
_server_main
|
||||
|
||||
#-------------------
|
||||
# PRIVATE INTERFACE
|
||||
#-------------------
|
||||
_gds__alloc
|
||||
_gds__attach_database
|
||||
_gds__blob_info
|
||||
_gds__blob_size
|
||||
_gds__cancel_blob
|
||||
_gds__cancel_events
|
||||
_gds__close
|
||||
_gds__close_blob
|
||||
_gds__commit_retaining
|
||||
_gds__commit_transaction
|
||||
_gds__compile_request
|
||||
_gds__compile_request2
|
||||
_gds__create_blob
|
||||
_gds__create_blob2
|
||||
_gds__create_database
|
||||
_gds__database_cleanup
|
||||
_gds__database_info
|
||||
_gds__ddl
|
||||
_gds__declare
|
||||
_gds__decode
|
||||
_gds__decode_date
|
||||
_gds__describe
|
||||
_gds__describe_bind
|
||||
_gds__detach_database
|
||||
_gds__disable_subsystem
|
||||
_gds__dsql_finish
|
||||
_gds__edit
|
||||
_gds__enable_subsystem
|
||||
_gds__encode
|
||||
_gds__encode_date
|
||||
_gds__event_block
|
||||
_gds__event_counts
|
||||
_gds__event_wait
|
||||
_gds__execute
|
||||
_gds__execute_immediate
|
||||
_gds__fetch
|
||||
_gds__free
|
||||
_gds__ftof
|
||||
_gds__get_prefix
|
||||
_gds__get_segment
|
||||
_gds__get_slice
|
||||
_gds__interprete
|
||||
_gds__log
|
||||
_gds__log_status
|
||||
_gds__map_blobs
|
||||
_gds__msg_close
|
||||
_gds__msg_format
|
||||
_gds__msg_lookup
|
||||
_gds__msg_open
|
||||
_gds__msg_put
|
||||
_gds__open
|
||||
_gds__open_blob
|
||||
_gds__open_blob2
|
||||
_gds__parse_bpb
|
||||
_gds__prefix
|
||||
_gds__prefix_lock
|
||||
_gds__prefix_msg
|
||||
_gds__prepare
|
||||
_gds__prepare_transaction
|
||||
_gds__prepare_transaction2
|
||||
_gds__print_blr
|
||||
_gds__print_status
|
||||
_gds__put_error
|
||||
_gds__put_segment
|
||||
_gds__put_slice
|
||||
_gds__qtoq
|
||||
_gds__que_events
|
||||
_gds__receive
|
||||
_gds__reconnect_transaction
|
||||
_gds__register_cleanup
|
||||
_gds__release_request
|
||||
_gds__request_info
|
||||
_gds__rollback_transaction
|
||||
_gds__seek_blob
|
||||
_gds__send
|
||||
_gds__set_debug
|
||||
_gds__sqlcode
|
||||
_gds__start_and_send
|
||||
_gds__start_multiple
|
||||
_gds__start_request
|
||||
_gds__start_transaction
|
||||
_gds__temp_file
|
||||
_gds__thread_enable
|
||||
_gds__thread_enter
|
||||
_gds__thread_exit
|
||||
_gds__thread_start
|
||||
_gds__to_sqlda
|
||||
_gds__transaction_cleanup
|
||||
_gds__transaction_info
|
||||
_gds__unregister_cleanup
|
||||
_gds__unwind_request
|
||||
_gds__validate_lib_path
|
||||
_gds__vax_integer
|
||||
_gds__version
|
||||
_gds__vtof
|
||||
_gds__vtov
|
||||
_gds__default_printer
|
||||
_gds__alloc_debug
|
||||
_gds_alloc_flag_unfreed
|
||||
_gds_alloc_report
|
||||
|
||||
_perf_format
|
||||
_perf_get_info
|
||||
_perf_report
|
||||
|
||||
#----------------------------
|
||||
# PUBLIC INTERFACE, i.e. API
|
||||
#----------------------------
|
||||
|
||||
# Array functions
|
||||
|
||||
_isc_array_gen_sdl
|
||||
_isc_array_get_slice
|
||||
_isc_array_lookup_bounds
|
||||
_isc_array_lookup_desc
|
||||
_isc_array_put_slice
|
||||
_isc_array_set_desc
|
||||
_isc_get_slice
|
||||
_isc_put_slice
|
||||
|
||||
# BLOB functions
|
||||
|
||||
_isc_blob_default_desc
|
||||
_isc_blob_gen_bpb
|
||||
_isc_blob_info
|
||||
_isc_blob_lookup_desc
|
||||
_isc_blob_set_desc
|
||||
_isc_cancel_blob
|
||||
_isc_close_blob
|
||||
_isc_create_blob
|
||||
_isc_create_blob2
|
||||
_isc_get_segment
|
||||
_isc_open_blob
|
||||
_isc_open_blob2
|
||||
_isc_put_segment
|
||||
|
||||
# Database functions
|
||||
|
||||
_isc_attach_database
|
||||
_isc_create_database
|
||||
_isc_database_info
|
||||
_isc_detach_database
|
||||
_isc_drop_database
|
||||
_isc_expand_dpb
|
||||
_isc_modify_dpb
|
||||
_isc_version
|
||||
_isc_get_client_major_version
|
||||
_isc_get_client_minor_version
|
||||
_isc_get_client_version
|
||||
|
||||
# Conversion functions
|
||||
|
||||
_isc_decode_date
|
||||
_isc_decode_sql_date
|
||||
_isc_decode_sql_time
|
||||
_isc_decode_timestamp
|
||||
_isc_encode_date
|
||||
_isc_encode_sql_date
|
||||
_isc_encode_sql_time
|
||||
_isc_encode_timestamp
|
||||
_isc_portable_integer
|
||||
_isc_vax_integer
|
||||
|
||||
# DSQL functions
|
||||
|
||||
_isc_dsql_allocate_statement
|
||||
_isc_dsql_alloc_statement2
|
||||
_isc_dsql_describe
|
||||
_isc_dsql_describe_bind
|
||||
_isc_dsql_execute
|
||||
_isc_dsql_execute2
|
||||
_isc_dsql_execute_m
|
||||
_isc_dsql_execute2_m
|
||||
_isc_dsql_execute_immediate
|
||||
_isc_dsql_exec_immed2
|
||||
_isc_dsql_execute_immediate_m
|
||||
_isc_dsql_exec_immed2_m
|
||||
_isc_dsql_exec_immed3_m
|
||||
_isc_dsql_fetch
|
||||
_isc_dsql_fetch_a
|
||||
_isc_dsql_fetch_m
|
||||
_isc_dsql_finish
|
||||
_isc_dsql_free_statement
|
||||
_isc_dsql_insert
|
||||
_isc_dsql_insert_m
|
||||
_isc_dsql_prepare
|
||||
_isc_dsql_prepare_m
|
||||
_isc_dsql_release
|
||||
_isc_dsql_set_cursor_name
|
||||
_isc_dsql_sql_info
|
||||
|
||||
# ESQL functions
|
||||
|
||||
_isc_embed_dsql_close
|
||||
_isc_embed_dsql_declare
|
||||
_isc_embed_dsql_describe
|
||||
_isc_embed_dsql_describe_bind
|
||||
_isc_embed_dsql_execute
|
||||
_isc_embed_dsql_execute2
|
||||
_isc_embed_dsql_execute_immed
|
||||
_isc_embed_dsql_exec_immed2
|
||||
_isc_embed_dsql_fetch
|
||||
_isc_embed_dsql_fetch_a
|
||||
_isc_embed_dsql_insert
|
||||
_isc_embed_dsql_open
|
||||
_isc_embed_dsql_open2
|
||||
_isc_embed_dsql_prepare
|
||||
_isc_embed_dsql_release
|
||||
|
||||
# Error-handling functions
|
||||
|
||||
_isc_interprete
|
||||
_fb_interpret
|
||||
_isc_print_sqlerror
|
||||
_isc_print_status
|
||||
_isc_sqlcode
|
||||
_isc_sql_interprete
|
||||
|
||||
# Event functions
|
||||
|
||||
_isc_cancel_events
|
||||
_isc_event_block
|
||||
_isc_event_counts
|
||||
_isc_que_events
|
||||
_isc_wait_for_event
|
||||
|
||||
# Security functions
|
||||
|
||||
_isc_add_user
|
||||
_isc_delete_user
|
||||
_isc_modify_user
|
||||
|
||||
# Services functions
|
||||
|
||||
_isc_service_attach
|
||||
_isc_service_detach
|
||||
_isc_service_query
|
||||
_isc_service_start
|
||||
|
||||
# Transaction control functions
|
||||
|
||||
_isc_commit_retaining
|
||||
_isc_commit_transaction
|
||||
_isc_prepare_transaction
|
||||
_isc_prepare_transaction2
|
||||
_isc_rollback_retaining
|
||||
_isc_rollback_transaction
|
||||
_isc_start_multiple
|
||||
_isc_start_transaction
|
||||
_isc_transaction_info
|
||||
|
||||
# Other functions
|
||||
|
||||
_isc_compile_request
|
||||
_isc_compile_request2
|
||||
_isc_ddl
|
||||
_isc_prepare
|
||||
_isc_receive
|
||||
_isc_reconnect_transaction
|
||||
_isc_release_request
|
||||
_isc_request_info
|
||||
_isc_seek_blob
|
||||
_isc_send
|
||||
_isc_start_and_send
|
||||
_isc_start_request
|
||||
_isc_transact_request
|
||||
_isc_unwind_request
|
||||
|
||||
# Other SQL functions
|
||||
|
||||
_isc_close
|
||||
_isc_declare
|
||||
_isc_describe
|
||||
_isc_describe_bind
|
||||
_isc_execute
|
||||
_isc_execute_immediate
|
||||
_isc_fetch
|
||||
_isc_fetch_a
|
||||
_isc_open
|
||||
|
||||
# Other BLOB functions
|
||||
|
||||
_BLOB_close
|
||||
_BLOB_display
|
||||
_BLOB_dump
|
||||
_BLOB_edit
|
||||
_BLOB_get
|
||||
_BLOB_load
|
||||
_BLOB_open
|
||||
_BLOB_put
|
||||
_BLOB_text_dump
|
||||
_BLOB_text_load
|
||||
_Bopen
|
||||
|
||||
# Other misc functions
|
||||
|
||||
_isc_ftof
|
||||
_isc_free
|
||||
_isc_print_blr
|
||||
_isc_qtoq
|
||||
_isc_set_debug
|
||||
_isc_to_sqlda
|
||||
_isc_vtof
|
||||
_isc_vtov
|
||||
|
||||
#-----------------
|
||||
# OTHER FUNCTIONS
|
||||
#-----------------
|
||||
|
||||
_CVT_move
|
||||
|
||||
_KEYWORD_stringIsAToken
|
||||
_KEYWORD_getTokens
|
@ -88,7 +88,11 @@ IsProdTypeBuild = @PROD_BUILD_FLG@
|
||||
# release with debug and optimization
|
||||
|
||||
|
||||
ifeq ($(PLATFORM),DARWIN)
|
||||
FirebirdInstallPrefix =
|
||||
else
|
||||
FirebirdInstallPrefix = @prefix@
|
||||
endif
|
||||
CpuType=@CPU_TYPE@
|
||||
|
||||
PLATFORM=@PLATFORM@
|
||||
|
@ -15,7 +15,7 @@
|
||||
# All Rights Reserved.
|
||||
# Contributor(s): ______________________________________.
|
||||
# Start of file prefix.darwin: $(VERSION) DARWIN
|
||||
#$Id: postfix.darwin,v 1.2 2007-03-09 10:32:48 paulbeach Exp $
|
||||
#$Id: postfix.darwin,v 1.3 2007-06-11 14:21:17 paulbeach Exp $
|
||||
# 2 Oct 2002, Nickolay Samofatov - Major Cleanup
|
||||
|
||||
|
||||
@ -40,10 +40,8 @@ darwin_setup_framework:
|
||||
ln -s ../../../../../../security2.fdb \
|
||||
$(FB_FW)/Resources/English.lproj/var/security2.fdb
|
||||
ln -s ../../../../../../help $(FB_FW)/Resources/English.lproj/var/help
|
||||
#sed "s/__VERSION__/`$(VERS_UTIL)`/g" source/firebird/bellardo/darwin/FrameworkInfo.plist > source/interbase/Firebird.framework/Resources/Info.plist
|
||||
|
||||
darwin_finish_cs_framework: FB_FW = ../gen/firebird/frameworks/FirebirdCS.framework
|
||||
#darwin_finish_cs_framework: extlib
|
||||
darwin_finish_cs_framework:
|
||||
-$(RM) -rf $(FB_FW)
|
||||
mkdir -p $(FB_FW)/Versions/A/Resources/English.lproj/var
|
||||
@ -71,9 +69,8 @@ darwin_finish_cs_framework:
|
||||
cp -r ../gen/firebird/help $(FB_FW)/Resources/English.lproj/var/help
|
||||
cp ../gen/firebird/security2.fdb $(FB_FW)/Resources/English.lproj/var
|
||||
mkdir -p $(FB_FW)/Resources/doc
|
||||
ln -s ../../doc $(FB_FW)/Resources/English.lproj/var/doc
|
||||
ln -s ../../doc $(FB_FW)/Resources/doc
|
||||
cp -r ../doc $(FB_FW)/Resources
|
||||
cp ../gen/firebird/security2.fdb $(FB_FW)/Resources/English.lproj/var
|
||||
mkdir -p $(FB_FW)/Resources/bin
|
||||
ln -s ../../bin $(FB_FW)/Resources/English.lproj/var/bin
|
||||
cp ../gen/firebird/bin/fb_inet_server $(FB_FW)/Resources/bin
|
||||
@ -91,22 +88,27 @@ darwin_finish_cs_framework:
|
||||
cp ../gen/firebird/bin/gstat $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/nbackup $(FB_FW)/Resources/bin
|
||||
#cp -r ../gen/firebird/examples $(FB_FW)/Resources/examples
|
||||
cp ../src/extlib/ib_udf.sql $(FB_FW)/Resources/examples
|
||||
cp ../src/extlib/ib_udf.sql $(FB_FW)/Resources/English.lproj/var/UDF
|
||||
cp ../src/extlib/fbudf/fbudf.sql $(FB_FW)/Resources/English.lproj/var/UDF
|
||||
cp ../builds/install/arch-specific/darwin/FrameworkInfo.plist \
|
||||
$(FB_FW)/Resources/Info.plist
|
||||
cp ../gen/firebird/misc/firebird.conf $(FB_FW)/Resources/English.lproj/var
|
||||
#sed "s/__VERSION__/`$(VERS_UTIL)`/g" source/firebird/bellardo/darwin/FrameworkInfo.plist > source/interbase/Firebird.framework/Resources/Info.plist
|
||||
|
||||
darwin_finish_ss_framework: FB_FW = ../gen/firebird/frameworks/FirebirdSS.framework
|
||||
darwin_finish_ss_framework: extlib
|
||||
-$(RM) -rf $(FB_FW)
|
||||
mkdir -p $(FB_FW)/Versions/A/Resources/English.lproj/var
|
||||
mkdir -p $(FB_FW)/Versions/A/Libraries
|
||||
ln -s Versions/Current/Firebird $(FB_FW)/Firebird
|
||||
ln -s Versions/Current/Headers $(FB_FW)/Headers
|
||||
ln -s Versions/Current/Resources $(FB_FW)/Resources
|
||||
ln -s Versions/Current/Libraries $(FB_FW)/Libraries
|
||||
ln -s A $(FB_FW)/Versions/Current
|
||||
cp -r ../gen/firebird/include $(FB_FW)/Versions/A/Headers
|
||||
cp ../gen/firebird/lib/libfbclient.dylib $(FB_FW)/Versions/A/Firebird
|
||||
cp ../gen/firebird/lib/libicudata.dylib $(FB_FW)/Versions/A/Libraries/libicudata.dylib
|
||||
cp ../gen/firebird/lib/libicui18n.dylib $(FB_FW)/Versions/A/Libraries/libicui18n.dylib
|
||||
cp ../gen/firebird/lib/libicuuc.dylib $(FB_FW)/Versions/A/Libraries/libicuuc.dylib
|
||||
cp ../gen/firebird/lib/libib_util.dylib $(FB_FW)/Versions/A/Libraries/libib_util.dylib
|
||||
cp ../gen/firebird/firebird.msg \
|
||||
$(FB_FW)/Resources/English.lproj/var/firebird.msg
|
||||
cp -r ../gen/firebird/UDF $(FB_FW)/Resources/English.lproj/var/UDF
|
||||
@ -117,7 +119,10 @@ darwin_finish_ss_framework: extlib
|
||||
$(FB_FW)/Resources/English.lproj/var/intl/fbintl.conf
|
||||
chmod a+rx $(FB_FW)/Resources/English.lproj/var/intl/fbintl.dylib
|
||||
cp -r ../gen/firebird/help $(FB_FW)/Resources/English.lproj/var/help
|
||||
cp ../gen/firebird/security.fdb $(FB_FW)/Resources/English.lproj/var
|
||||
cp ../gen/firebird/security2.fdb $(FB_FW)/Resources/English.lproj/var
|
||||
mkdir -p $(FB_FW)/Resources/doc
|
||||
ln -s ../../doc $(FB_FW)/Resources/doc
|
||||
cp -r ../doc $(FB_FW)/Resources
|
||||
mkdir -p $(FB_FW)/Resources/bin
|
||||
touch $(FB_FW)/Resources/.SuperServer
|
||||
ln -s ../../bin $(FB_FW)/Resources/English.lproj/var/bin
|
||||
@ -129,18 +134,19 @@ darwin_finish_ss_framework: extlib
|
||||
cp ../gen/firebird/bin/isql $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gpre $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/fb_lock_print $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gds_drop $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gds_relay $(FB_FW)/Resources/bin
|
||||
#cp ../gen/firebird/bin/gds_drop $(FB_FW)/Resources/bin
|
||||
#cp ../gen/firebird/bin/gds_relay $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gsec $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gstat $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/nbackup $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/qli $(FB_FW)/Resources/bin
|
||||
cp ../gen/firebird/bin/gdef $(FB_FW)/Resources/bin
|
||||
#cp -r ../gen/firebird/examples/v5 $(FB_FW)/Resources/examples
|
||||
#cp -r ../gen/firebird/examples $(FB_FW)/Resources/examples
|
||||
cp ../src/extlib/ib_udf.sql $(FB_FW)/Resources/examples
|
||||
cp install/arch-specific/darwin/FrameworkInfo.plist \
|
||||
cp ../src/extlib/fbudf/fbudf.sql $(FB_FW)/Resources/English.lproj/var/UDF
|
||||
cp ../builds/install/arch-specific/darwin/FrameworkInfo.plist \
|
||||
$(FB_FW)/Resources/Info.plist
|
||||
cp install/misc/firebird.conf $(FB_FW)/Resources/English.lproj/var
|
||||
#sed "s/__VERSION__/`$(VERS_UTIL)`/g" source/firebird/bellardo/darwin/FrameworkInfo.plist > source/interbase/Firebird.framework/Resources/Info.plist
|
||||
cp ../gen/firebird/misc/firebird.conf $(FB_FW)/Resources/English.lproj/var
|
||||
|
||||
darwin_postbuild_target: package
|
||||
@echo
|
||||
|
@ -31,14 +31,15 @@ CLIENT_UTIL_TARGETS=gds_drop gstat gsec fbguard fbmgr_bin nbackup fb_lock_print
|
||||
|
||||
Physical_IO_Module=os/posix/unix.cpp
|
||||
PLATFORM_PATH=os/darwin
|
||||
FirebirdInstallPrefix =
|
||||
|
||||
LIB_LINK=g++
|
||||
LINK_OPTS:=
|
||||
LIB_BUNDLE_OPTIONS:=$(LD_FLAGS) -bundle -flat_namespace -undefined suppress
|
||||
LIB_LINK_OPTIONS:=$(LD_FLAGS) -dynamiclib -flat_namespace
|
||||
LIB_LINK_SONAME:=-current_version 2.0.0 -compatibility_version 2.0.0 -seg1addr 0x30000000
|
||||
LIB_LINK_MAPFILE:=-unexported_symbols_list
|
||||
LIB_LINK_OPTIONS:=$(LD_FLAGS) -dynamiclib -flat_namespace
|
||||
LIB_LINK_SONAME:=-current_version 2.1.0 -compatibility_version 2.1.0 -seg1addr 0x30000000
|
||||
LIB_LINK_MAPFILE:=-Wl,-exported_symbols_list,
|
||||
LINK_FIREBIRD_EMBED_SYMBOLS=$(LIB_LINK_MAPFILE)$(ROOT)/builds/posix/firebird.darwin.embed.vers
|
||||
LINK_FIREBIRD_CLIENT_SYMBOLS=$(LIB_LINK_MAPFILE)$(ROOT)/builds/posix/firebird.darwin.client.vers
|
||||
LINK_FBINTL_SYMBOLS=$(LIB_LINK_MAPFILE)$(ROOT)/builds/posix/fbintl.vers
|
||||
|
||||
LIB_LINK_RPATH:=-install_name /Firebird.framework/Versions/A/Libraries/
|
||||
LIB_EMBED_LINK_OPTIONS:= -install_name Firebird.framework/Versions/A/Firebird
|
||||
@ -48,7 +49,7 @@ FBEMBED_LINK:=-F../gen/firebird -framework Firebird -L$(LIB) -lfbembed
|
||||
PLAT_CLASSIC_PRE_TARGET=darwin_setup_framework
|
||||
PLAT_CLASSIC_POST_TARGET=darwin_finish_cs_framework
|
||||
|
||||
#PLAT_SUPER_PRE_TARGET=darwin_setup_framework
|
||||
#PLAT_SUPER_POST_TRAGET=darwin_finish_ss_framework
|
||||
PLAT_SUPER_PRE_TARGET=darwin_setup_framework
|
||||
PLAT_SUPER_POST_TRAGET=darwin_finish_ss_framework
|
||||
|
||||
PLATFORM_POSTBUILD_TARGET=darwin_postbuild_target
|
||||
|
@ -139,6 +139,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#ifndef DARWIN
|
||||
class Spinlock {
|
||||
private:
|
||||
pthread_spinlock_t spinlock;
|
||||
@ -160,6 +161,7 @@ public:
|
||||
system_call_failed::raise("pthread_spin_unlock");
|
||||
}
|
||||
};
|
||||
#endif //DARWIN
|
||||
|
||||
#endif //SOLARIS_MT
|
||||
|
||||
|
@ -88,7 +88,7 @@ using namespace NAMESPACE;
|
||||
#define USE_POSIX_THREADS
|
||||
#endif
|
||||
#ifdef SUPERCLIENT
|
||||
#if defined(LINUX) || defined(FREEBSD)
|
||||
#if defined(LINUX) || defined(FREEBSD) || defined (DARWIN)
|
||||
/* The following ifdef was added to build thread safe gds shared
|
||||
library on linux platform. It seems the gdslib works now (20020220)
|
||||
with thread enabled applications. Anyway, more tests should be
|
||||
|
@ -279,7 +279,7 @@ static inline int sinixz_sigaction(int sig, const struct sinixz_sigaction *act,
|
||||
#endif
|
||||
#ifdef i386
|
||||
#define I386
|
||||
#define IMPLEMENTATION isc_info_db_imp_darwin_x86 /* 70 */
|
||||
#define IMPLEMENTATION isc_info_db_impl_darwin_x86 /* 70 */
|
||||
#endif
|
||||
#define IEEE
|
||||
#define QUADCONST(n) (n##LL)
|
||||
|
@ -107,7 +107,7 @@ namespace {
|
||||
// always try to use module "as is"
|
||||
{MOD_SUFFIX, "", false},
|
||||
|
||||
#ifdef HP10
|
||||
#ifdef HPUX
|
||||
{MOD_SUFFIX, ".sl", true},
|
||||
#endif
|
||||
|
||||
@ -117,7 +117,7 @@ namespace {
|
||||
#endif
|
||||
|
||||
#ifdef DARWIN
|
||||
{MOD_SUFFIX, ".so", true},
|
||||
{MOD_SUFFIX, ".dylib", true},
|
||||
#endif
|
||||
|
||||
};
|
||||
|
@ -235,12 +235,12 @@ namespace {
|
||||
bool ok() const { return this->mnt_cnt > 0; }
|
||||
#else
|
||||
bool ok() const { return mtab.ok(); }
|
||||
#endif /*DARWIN*/
|
||||
bool get();
|
||||
tstring node, /* remote server name */
|
||||
mount, /* local mount point */
|
||||
path; /* path on remote server */
|
||||
};
|
||||
#endif // DARWIN
|
||||
#endif //NO_NFS
|
||||
} // anonymous namespace
|
||||
|
||||
@ -258,7 +258,6 @@ static bool get_full_path(const tstring&, tstring&);
|
||||
#endif
|
||||
|
||||
#ifdef hpux
|
||||
/* RITTER - added HP11 to the pre-processor condition below */
|
||||
#if !(defined HP10 || defined HP11)
|
||||
static bool get_server(tstring&, tstring&);
|
||||
#endif
|
||||
|
@ -136,7 +136,7 @@
|
||||
#ifdef i386
|
||||
#define FB_PLATFORM "UI" /* Darwin/Intel */
|
||||
#endif
|
||||
#ifdef powerpc
|
||||
#if defined (DARWIN) && defined (_powerpc_)
|
||||
#define FB_PLATFORM "UP" /* Darwin/PowerPC */
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user