mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:03:03 +01:00
HPUX port
This commit is contained in:
parent
e2945cd647
commit
817a8747a7
@ -77,8 +77,8 @@ TarDir= Firebird$(ArchPrefix)-$(Version).$(CpuType)
|
||||
TarFile=Firebird$(ArchPrefix)-$(Version).$(CpuType).tar
|
||||
DepotFile=Firebird$(ArchPrefix)-$(Version).$(CpuType).depot
|
||||
RPMFile=Firebird$(ArchPrefix)-$(Version).$(CpuType).rpm
|
||||
DebugDir=Firebird$(ArchPrefix)-debuginfo-$(Version).$(CpuType)
|
||||
DebugFile=Firebird$(ArchPrefix)-debuginfo-$(Version).$(CpuType).tar
|
||||
#DebugDir=Firebird$(ArchPrefix)-debuginfo-$(Version).$(CpuType)
|
||||
#DebugFile=Firebird$(ArchPrefix)-debuginfo-$(Version).$(CpuType).tar
|
||||
psfFile=firebird$(ArchPrefix).psf
|
||||
|
||||
PkgSrcDir=$(InstallRoot)/$(ArchType)
|
||||
@ -89,67 +89,28 @@ TarInstallDir=$(GEN_ROOT)/install
|
||||
|
||||
dist : packages
|
||||
|
||||
packages: tarfile debugfile depotfile
|
||||
depotfile: $(DepotFile)
|
||||
#packages: depotfile
|
||||
packages: tarfile depotfile
|
||||
#packages: tarfile debugfile depotfile
|
||||
|
||||
depotfile: buildRoot $(DepotFile)
|
||||
|
||||
$(DepotFile): buildDepot
|
||||
(cd $(GEN_ROOT); /usr/sbin/swpackage -d "| gzip -c > $(DepotFile).gz" -x media_type=tape -s $(psfFile))
|
||||
|
||||
tarfile: $(TarFile)
|
||||
tarfile: buildRoot $(TarFile)
|
||||
|
||||
$(TarFile) : buildTarDir
|
||||
(cd $(GEN_ROOT); tar -cvf $(TarFile) $(TarDir))
|
||||
(cd $(GEN_ROOT); tar -cvf $(TarFile) $(TarDir) && gzip $(TarFile))
|
||||
|
||||
debugfile: $(DebugFile)
|
||||
#debugfile: $(DebugFile)
|
||||
|
||||
$(DebugFile) : buildImageDir
|
||||
(cd $(GEN_ROOT)/$(DebugDir); tar -cvf ../$(DebugFile) *)
|
||||
|
||||
# objcopy --add-gnu-debuglink fails with binutils 2.14 or older
|
||||
# its failure affects only GDB ability to pick up external debug
|
||||
# symbols automatically. We may use eu-strip command from elfutils
|
||||
# instead, but it doesn't work or compile with such distros
|
||||
# as Mandrake 9.0 not saying about older ones. New binutils
|
||||
# seem to compile and work everywhere I tried, but we try to
|
||||
# use eu-strip first since it is a part of default Red Hat 9
|
||||
# install and is available in binary form for Mandrake 9.1 and newer.
|
||||
#
|
||||
# 28-Dec-2003. Nickolay Samofatov
|
||||
#
|
||||
# Do not use eu-strip any longer because version 0.89/AMD64 shipped with
|
||||
# Mandrake 9.2 produces broken debuginfo packages and there is no easy way to
|
||||
# detect the breakage. Binutils seem to be more reliable alternative to me.
|
||||
#
|
||||
# 05-Apr-2004. Nickolay Samofatov
|
||||
#
|
||||
#$(DebugFile) : buildImageDir
|
||||
# (cd $(GEN_ROOT)/$(DebugDir); tar -cvf ../$(DebugFile) *)
|
||||
|
||||
buildRoot:
|
||||
(cd $(GEN_ROOT); ./install/makeinstallImage.sh)
|
||||
|
||||
buildDebugInfo: buildRoot
|
||||
mkdir -p $(GEN_ROOT)/$(DebugDir)
|
||||
for x in `(cd $(GEN_ROOT)/buildroot; find)`; do \
|
||||
FIL=$(GEN_ROOT)/buildroot/$$x; \
|
||||
D_FIL=$(GEN_ROOT)/$(DebugDir)/`dirname $${x}`/.debug/`basename $${x}`.debug; \
|
||||
if [ ! -h $$FIL ] && readelf -h $$FIL > /dev/null 2> /dev/null; then \
|
||||
mkdir -p $(GEN_ROOT)/$(DebugDir)/`dirname $$x`/.debug; \
|
||||
echo Generating external debug info for $$x; \
|
||||
cp $${FIL} $${D_FIL}; \
|
||||
if objcopy --add-gnu-debuglink $${D_FIL} $${FIL}; > /dev/null 2> /dev/null; then \
|
||||
echo Succeeded using objcopy from binutils; \
|
||||
else \
|
||||
echo Failed to set debug link for $${x}; \
|
||||
fi; \
|
||||
echo Stripping unneeded symbols from $${x}; \
|
||||
objcopy --strip-debug --strip-unneeded $${FIL}; \
|
||||
fi; \
|
||||
done
|
||||
# Work around GDB 6.0 bug
|
||||
mkdir -p $(GEN_ROOT)/$(DebugDir)@libdir@/.debug
|
||||
for x in `ls $(GEN_ROOT)/$(DebugDir)@prefix@/lib/.debug`; do \
|
||||
ln -f -s @prefix@/lib/.debug/`basename $$x` $(GEN_ROOT)/$(DebugDir)@libdir@/.debug; \
|
||||
done
|
||||
|
||||
# Use this line if you don't want to use separate debug info
|
||||
buildImageDir: buildRoot
|
||||
#buildImageDir: buildDebugInfo
|
||||
@ -167,4 +128,3 @@ buildTarDir: buildImageDir
|
||||
|
||||
install: buildTarDir
|
||||
(cd $(GEN_ROOT)/$(TarDir); ./install.sh)
|
||||
cp -r $(GEN_ROOT)/$(DebugDir)/* /
|
||||
|
@ -25,116 +25,104 @@ os_version ?
|
||||
#
|
||||
fileset
|
||||
tag main
|
||||
file -u 0660 -g firebird -o firebird firebird/security2.fdb /opt/firebird/security2.fdb
|
||||
file -u 0644 -g firebird -o firebird firebird/misc/firebird.conf /opt/firebird/firebird.conf
|
||||
file -u 0644 -g firebird -o firebird ../builds/install/misc/aliases.conf.in /opt/firebird/aliases.conf
|
||||
file -u 0644 -g firebird -o firebird firebird/misc/fbintl.conf /opt/firebird/fbintl.conf
|
||||
file -u 0644 -g firebird -o firebird ../doc/WhatsNew /opt/firebird/WhatsNew
|
||||
file -u 0660 -g firebird -o firebird buildroot@prefix@/security2.fdb @prefix@/security2.fdb
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/firebird.conf @prefix@/firebird.conf
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/aliases.conf @prefix@/aliases.conf
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/WhatsNew @prefix@/WhatsNew
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag include
|
||||
directory buildroot@prefix@/include=@prefix@/include
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag scripts
|
||||
file -u 0555 -g firebird -o firebird install/bin/changeRunUser.sh /opt/firebird/bin/changeRunUser.sh
|
||||
file -u 0555 -g firebird -o firebird install/bin/restoreRootRunUser.sh /opt/firebird/bin/restoreRootRunUser.sh
|
||||
file -u 0555 -g firebird -o firebird install/bin/changedbaPassword.sh /opt/firebird/bin/changedbaPassword.sh
|
||||
end
|
||||
fileset
|
||||
tag include
|
||||
file -u 0644 -g firebird -o firebird firebird/include/ib_util.h /opt/firebird/include/ib_util.h
|
||||
file -u 0644 -g firebird -o firebird firebird/include/perf.h /opt/firebird/include/perf.h
|
||||
file -u 0644 -g firebird -o firebird firebird/include/iberror.h /opt/firebird/include/iberror.h
|
||||
file -u 0644 -g firebird -o firebird firebird/include/ibase.h /opt/firebird/include/ibase.h
|
||||
end
|
||||
fileset
|
||||
tag intl
|
||||
file -u 0755 -g firebird -o firebird firebird/intl/libfbintl.sl /opt/firebird/intl/libfbintl.sl
|
||||
file -u 0755 -g firebird -o firebird buildroot@prefix@/intl/fbintl @prefix@/intl/fbintl
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/intl/fbintl.conf @prefix@/intl/fbintl.conf
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag UDF
|
||||
file -u 0755 -g firebird -o firebird firebird/UDF/ib_udf.sl /opt/firebird/UDF/ib_udf.sl
|
||||
file -u 0755 -g firebird -o firebird firebird/UDF/fbudf.sl /opt/firebird/UDF/fbudf.sl
|
||||
file -u 0644 -g firebird -o firebird ../src/extlib/ib_udf.sql /opt/firebird/UDF/ib_udf.sql
|
||||
file -u 0644 -g firebird -o firebird ../src/extlib/ib_udf2.sql /opt/firebird/UDF/ib_udf2.sql
|
||||
file -u 0644 -g firebird -o firebird ../src/extlib/fbudf/fbudf.sql /opt/firebird/UDF/fbudf.sql
|
||||
file -u 0755 -g firebird -o firebird buildroot@prefix@/UDF/ib_udf.sl @prefix@/UDF/ib_udf.sl
|
||||
file -u 0755 -g firebird -o firebird buildroot@prefix@/UDF/fbudf.sl @prefix@/UDF/fbudf.sl
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/UDF/ib_udf.sql @prefix@/UDF/ib_udf.sql
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/UDF/ib_udf2.sql @prefix@/UDF/ib_udf2.sql
|
||||
file -u 0644 -g firebird -o firebird buildroot@prefix@/UDF/fbudf.sql @prefix@/UDF/fbudf.sql
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag bin
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/fb_inet_server /opt/firebird/bin/fb_inet_server
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gfix /opt/firebird/bin/gfix
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gbak /opt/firebird/bin/gbak
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gsplit /opt/firebird/bin/gsplit
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gsec /opt/firebird/bin/gsec
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/isql /opt/firebird/bin/isql
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gpre /opt/firebird/bin/gpre
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gds_drop /opt/firebird/bin/gds_drop
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gstat /opt/firebird/bin/gstat
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/fb_lock_print /opt/firebird/bin/fb_lock_print
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/fb_lock_mgr /opt/firebird/bin/fb_lock_mgr
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/gdef /opt/firebird/bin/gdef
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/qli /opt/firebird/bin/qli
|
||||
# From 2.0
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/nbackup /opt/firebird/bin/nbackup
|
||||
# From 2.1
|
||||
file -u 0755 -g firebird -o firebird firebird/bin/fbsvcmgr /opt/firebird/bin/fbsvcmgr
|
||||
directory buildroot@prefix@/bin=@prefix@/bin
|
||||
file_permissions -u 0755 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag upgrade
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2/ib_udf2_params.txt /opt/firebird/upgrade/ib_udf2.params.txt
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2/ib_udf_params.txt /opt/firebird/upgrade/ib_udf_params.txt
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2/ib_udf_upgrade.sql /opt/firebird/upgrade/ib_udf_upgrade.sql
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2/security_database.sql /opt/firebird/upgrade/security_database.sql
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2/security_database.txt /opt/firebird/upgrade/security_database.txt
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2.1/metadata_charset.txt /opt/firebird/upgrade/metadata_charset.txt
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2.1/metadata_charset_create.sql /opt/firebird/upgrade/metadata_charset_create.sql
|
||||
file -u 0644 -g firebird -o firebird ../src/misc/upgrade/v2.1/metadata_charset_drop.sql /opt/firebird/upgrade/metadata_charset_drop.sql
|
||||
tag misc
|
||||
directory buildroot@prefix@/misc=@prefix@/misc
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory buildroot@prefix@/misc/upgrade/ib_udf=@prefix@/misc/upgrade/ib_udf
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory buildroot@prefix@/misc/upgrade/metadata=@prefix@/misc/upgrade/metadata
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory buildroot@prefix@/misc/upgrade/security=@prefix@/misc/upgrade/security
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag examples
|
||||
file -u 0644 -g firebird -o firebird firebird/examples/README /opt/firebird/examples/README
|
||||
file -u 0644 -g firebird -o firebird firebird/examples/functions.c /opt/firebird/examples/functions/functions.c
|
||||
directory firebird/examples/api=/opt/firebird/examples/api
|
||||
file -u 0644 -g firebird -o firebird firebird/examples/README @prefix@/examples/README
|
||||
file -u 0644 -g firebird -o firebird firebird/examples/functions.c @prefix@/examples/functions/functions.c
|
||||
directory firebird/examples/api=@prefix@/examples/api
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
direcory firebird/examples/dyn=/opt/firebird/examples/dyn
|
||||
directory firebird/examples/dyn=@prefix@/examples/dyn
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory firebird/examples/empbuild=/opt/firebird/examples/empbuild
|
||||
directory firebird/examples/empbuild=@prefix@/examples/empbuild
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory firebird/examples/include=/opt/firebird/examples/include
|
||||
directory firebird/examples/include=@prefix@/examples/include
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
directory firebird/examples/stat=/opt/firebird/examples/stat
|
||||
directory firebird/examples/stat=@prefix@/examples/stat
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
directory firebird/examples/udf=/opt/firebird/examples/udf
|
||||
file *
|
||||
directory firebird/examples/udf=@prefix@/examples/udf
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag lib
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libfbclient.sl.2.1.0 /opt/firebird/lib/libfbclient.sl.2.1.0
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libfbembed.sl.2.1.0 /opt/firebird/lib/libfbembed.sl.2.1.0
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libib_util.sl /opt/firebird/lib/libib_util.sl
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libicudata.sl.30.0 /opt/firebird/lib/libicudata.sl.30.0
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libicui18n.sl.30.0 /opt/firebird/lib/libicui18n.sl.30.0
|
||||
file -u 0755 -g firebird -o firebird firebird/lib/libicuuc.sl.30.0 /opt/firebird/lib/libicuuc.sl.30.0
|
||||
directory buildroot@prefix@/lib=@prefix@/lib
|
||||
file_permissions -u 0755 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag help
|
||||
file -u 0755 -g firebird -o firebird firebird/help/help.fdb /opt/firebird/help/help.fdb
|
||||
file -u 0444 -g firebird -o firebird firebird/help/help.fdb @prefix@/help/help.fdb
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag messages
|
||||
file -u 0666 -g firebird -o firebird firebird/firebird.msg /opt/firebird/firebird.msg
|
||||
file -u 0666 -g firebird -o firebird firebird/fr_FR.msg /opt/firebird/fr_FR.msg
|
||||
file -u 0666 -g firebird -o firebird firebird/de_DE.msg /opt/firebird/de_DE.msg
|
||||
file -u 0444 -g firebird -o firebird firebird/firebird.msg @prefix@/firebird.msg
|
||||
file -u 0444 -g firebird -o firebird firebird/fr_FR.msg @prefix@/fr_FR.msg
|
||||
file -u 0444 -g firebird -o firebird firebird/de_DE.msg @prefix@/de_DE.msg
|
||||
end
|
||||
#
|
||||
fileset
|
||||
tag docs
|
||||
directory ../doc=/opt/firebird/doc
|
||||
directory ../doc=@prefix@/doc
|
||||
file_permissions -u 0644 -g firebird -o firebird
|
||||
file *
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
@ -55,12 +55,10 @@ DestDir=$TargetDir/$FBRootDir
|
||||
# Place it to target directory
|
||||
|
||||
addLibs() {
|
||||
libTmp=/tmp/fbbuildsh
|
||||
libSdir=$1
|
||||
libScript=$2
|
||||
libTdir=$3
|
||||
libTarget=$libTmp
|
||||
finalTarget=$libTdir/$libScript
|
||||
libTarget=$libTdir/$libScript
|
||||
|
||||
rm -f $libTarget
|
||||
touch $libTarget
|
||||
@ -71,7 +69,6 @@ addLibs() {
|
||||
echo "" >>$libTarget # avoid missing linefeed
|
||||
done
|
||||
cat $libSdir/$libScript >>$libTarget
|
||||
mv $libTarget $finalTarget
|
||||
}
|
||||
|
||||
|
||||
@ -115,15 +112,11 @@ copyFiles() {
|
||||
mkdir $DestDir/doc/sql.extensions
|
||||
mkdir $DestDir/UDF
|
||||
mkdir $DestDir/misc
|
||||
mkdir $DestDir/upgrade
|
||||
|
||||
# mkdir $TargetDir/etc
|
||||
# mkdir $TargetDir/etc/init.d
|
||||
# mkdir $TargetDir/var
|
||||
# mkdir $TargetDir/var/adm
|
||||
# mkdir $TargetDir/var/adm/fillup-templates
|
||||
|
||||
# mkdir -p $TargetDir/usr/sbin
|
||||
mkdir $DestDir/misc/upgrade
|
||||
for i in ib_udf metadata security; do
|
||||
mkdir $DestDir/misc/upgrade/$i
|
||||
done
|
||||
|
||||
mkdir -p $TargetDir@libdir@
|
||||
mkdir -p $TargetDir/usr/include
|
||||
|
||||
@ -145,40 +138,35 @@ copyFiles() {
|
||||
cp $BuiltFBDir/bin/isql $DestDir/bin/isql
|
||||
cp $BuiltFBDir/bin/qli $DestDir/bin/qli
|
||||
|
||||
# Append libraries to scripts
|
||||
addLibs $BuildRootDir/gen/firebird/bin changeRunUser.sh $BuildRootDir/gen/firebird/bin
|
||||
addLibs $BuildRootDir/gen/firebird/bin restoreRootRunUser.sh $BuildRootDir/gen/firebird/bin
|
||||
addLibs $BuildRootDir/gen/firebird/bin changedbaPassword.sh $BuildRootDir/gen/firebird/bin
|
||||
addLibs $BuiltFBDir/bin changegdslibrarycompatibleLink.sh $BuildRootDir/gen/firebird/bin
|
||||
# Append libraries to scripts
|
||||
addLibs $BuiltFBDir/bin changeRunUser.sh $DestDir/bin
|
||||
addLibs $BuiltFBDir/bin restoreRootRunUser.sh $DestDir/bin
|
||||
addLibs $BuiltFBDir/bin changedbaPassword.sh $DestDir/bin
|
||||
addLibs $BuiltFBDir/bin changegdslibrarycompatibleLink.sh $DestDir/bin
|
||||
|
||||
cp $BuildRootDir/gen/firebird/bin/*Library.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin tarmainInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin tarInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin preInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin postInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin preUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin postUninstall.sh $BuildRootDir/gen//install/scripts
|
||||
addLibs $BuiltFBDir/bin tarUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuiltFBDir/bin tarmainUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
|
||||
addLibs $BuildRootDir/gen/install/scripts tarmainInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts tarInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts preInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts postInstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts preUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts postUninstall.sh $BuildRootDir/gen//install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts tarUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
addLibs $BuildRootDir/gen/install/scripts tarmainUninstall.sh $BuildRootDir/gen/install/scripts
|
||||
cp $BuildRootDir/gen/firebird/bin/changeRunUser.sh $DestDir/bin
|
||||
cp $BuildRootDir/gen/firebird/bin/restoreRootRunUser.sh $DestDir/bin
|
||||
cp $BuildRootDir/gen/firebird/bin/changedbaPassword.sh $DestDir/bin
|
||||
cp $BuildRootDir/gen/firebird/bin/changegdslibrarycompatibleLink.sh $DestDir/bin
|
||||
cp $BuildRootDir/gen/firebird/bin/createaliasDB.sh $DestDir/bin
|
||||
# These scripts do not need libraries
|
||||
# These scripts do not need libraries
|
||||
cp $BuildRootDir/gen/firebird/bin/createaliasDB.sh $DestDir/bin
|
||||
cp $BuiltFBDir/bin/fb_config $DestDir/bin
|
||||
|
||||
cp $BuildRootDir/gen/install/misc/firebird.init.d.hpux $DestDir/misc
|
||||
cp $BuildRootDir/gen/install/misc/rc.config.firebird.hpux $DestDir/misc
|
||||
|
||||
# Copy examples only if we have them
|
||||
|
||||
exampleFiles=`find $BuiltFBDir/examples/README -type f -print`
|
||||
if [ -z "$exampleFiles" ]
|
||||
if [ -f "$BuiltFBDir/examples/README" ]
|
||||
then
|
||||
echo "Example files have not been built!"
|
||||
else
|
||||
(cd $BuiltFBDir/examples; tar cf - .) | (cd $DestDir/examples; tar xf -)
|
||||
else
|
||||
echo "Example files have not been built!"
|
||||
fi
|
||||
|
||||
copyIfExists $BuiltFBDir/help/help.gbak $DestDir/help
|
||||
@ -192,18 +180,14 @@ cp $BuildRootDir/gen/firebird/bin/createaliasDB.sh $DestDir/bin
|
||||
|
||||
cp $BuiltFBDir/include/*.h $DestDir/include
|
||||
|
||||
cp -f $BuiltFBDir/lib/libfbembed.sl* $DestDir/lib
|
||||
cp -f $BuiltFBDir/lib/libfbclient.sl* $DestDir/lib
|
||||
|
||||
cp -f $BuiltFBDir/lib/libib_util.sl $DestDir/lib/libib_util.sl
|
||||
|
||||
cp -f $BuiltFBDir/lib/libicu*.sl* $DestDir/lib/
|
||||
((cd $BuiltFBDir/lib; tar cf - *.sl*) | (cd $DestDir/lib; tar xf -))
|
||||
|
||||
cp $BuiltFBDir/intl/libfbintl.sl $DestDir/intl/fbintl
|
||||
|
||||
cp $BuiltFBDir/UDF/ib_udf.sl $DestDir/UDF/
|
||||
cp $BuiltFBDir/UDF/fbudf.sl $DestDir/UDF/
|
||||
|
||||
# Note that the following items copy files from outside the build tree
|
||||
# Note that the following items copy files from outside the build tree
|
||||
|
||||
# Copy the sql-declarations into the UDF-directory
|
||||
cp $BuildRootDir/src/extlib/ib_udf.sql $DestDir/UDF/
|
||||
@ -211,41 +195,35 @@ cp $BuildRootDir/gen/firebird/bin/createaliasDB.sh $DestDir/bin
|
||||
cp $BuildRootDir/src/extlib/fbudf/fbudf.sql $DestDir/UDF/
|
||||
|
||||
# Copy various documentation
|
||||
|
||||
cp $BuildRootDir/doc/*.pdf $DestDir/doc
|
||||
ls $BuildRootDir/doc/*.pdf >/dev/null 2>&1 && cp $BuildRootDir/doc/*.pdf $DestDir/doc
|
||||
cp $BuildRootDir/doc/README.* $DestDir/doc
|
||||
cp $BuildRootDir/doc/sql.extensions/README* $DestDir/doc/sql.extensions
|
||||
cp $BuildRootDir/doc/WhatsNew $DestDir/WhatsNew
|
||||
cp $BuildRootDir/doc/README.user $DestDir/README
|
||||
|
||||
# Copy various upgrade stuff
|
||||
cp $BuildRootDir/src/misc/intl.sql $DestDir/misc/
|
||||
cp $BuildRootDir/src/misc/upgrade/v2/ib_udf* $DestDir/misc/upgrade/ib_udf/
|
||||
cp $BuildRootDir/src/misc/upgrade/v2/security_database* $DestDir/misc/upgrade/security/
|
||||
cp $BuildRootDir/src/misc/upgrade/v2.1/metadata_charset* $DestDir/misc/upgrade/metadata/
|
||||
|
||||
# Misc config files
|
||||
cp $BuildRootDir/gen/install/misc/firebird.conf $DestDir/
|
||||
cp $BuildRootDir/gen/install/misc/aliases.conf $DestDir/
|
||||
cp $BuildRootDir/gen/install/misc/fbintl.conf $DestDir/intl/
|
||||
|
||||
# Create links from @libdir@ to install area.
|
||||
|
||||
# Create links from @libdir@ to install area.
|
||||
origDir=`pwd`
|
||||
cd $DestDir/lib
|
||||
for i in libfb*.sl*; do ln -s /$FBRootDir/lib/$i $origDir/$TargetDir@libdir@/$i; done
|
||||
cd $origDir
|
||||
ln -s ../../$FBRootDir/lib/libib_util.sl $TargetDir@libdir@/libib_util.sl
|
||||
ln -s /$FBRootDir/lib/libib_util.sl $TargetDir@libdir@/libib_util.sl
|
||||
|
||||
# Link include files to /usr/include
|
||||
for i in iberror.h ibase.h ib_util.h; do
|
||||
ln -s ../../$FBRootDir/include/$i $TargetDir/usr/include/$i
|
||||
done
|
||||
|
||||
|
||||
# link include files to /usr/include
|
||||
for i in iberror.h ibase.h ib_util.h
|
||||
do
|
||||
ln -s ../../$FBRootDir/include/$i $TargetDir/usr/include/$i
|
||||
done
|
||||
|
||||
# (cd $DestDir; touch firebird.log;)
|
||||
|
||||
# chmod u=rw,go= firebird.log)
|
||||
# (cd $DestDir; chmod uga+rw examples/*.gdb)
|
||||
|
||||
# chown -R root:root $TargetDir
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
16
configure.in
16
configure.in
@ -1126,14 +1126,14 @@ case "$PLATFORM" in
|
||||
HP_INSTALL_SRC_DIR=builds/install/arch-specific/hpux/${FIREBIRD_ARCH_TYPE}
|
||||
AC_CONFIG_FILES([gen/install/makeinstallImage.sh:${HP_INSTALL_SRC_DIR}/makeinstallImage.sh.in
|
||||
gen/firebirdCS.psf:${HP_INSTALL_SRC_DIR}/firebirdCS.psf.in
|
||||
gen/install/scripts/preInstall.sh:${HP_INSTALL_SRC_DIR}/preInstall.sh.in
|
||||
gen/install/scripts/tarInstall.sh:${HP_INSTALL_SRC_DIR}/tarInstall.sh.in
|
||||
gen/install/scripts/tarmainInstall.sh:${HP_INSTALL_SRC_DIR}/tarmainInstall.sh.in
|
||||
gen/install/scripts/tarUninstall.sh:${HP_INSTALL_SRC_DIR}/tarUninstall.sh.in
|
||||
gen/install/scripts/tarmainUninstall.sh:${HP_INSTALL_SRC_DIR}/tarmainUninstall.sh.in
|
||||
gen/install/scripts/postInstall.sh:${HP_INSTALL_SRC_DIR}/postInstall.sh.in
|
||||
gen/install/scripts/preUninstall.sh:${HP_INSTALL_SRC_DIR}/preUninstall.sh.in
|
||||
gen/install/scripts/postUninstall.sh:${HP_INSTALL_SRC_DIR}/postUninstall.sh.in
|
||||
gen/firebird/bin/preInstall.sh:${HP_INSTALL_SRC_DIR}/preInstall.sh.in
|
||||
gen/firebird/bin/tarInstall.sh:${HP_INSTALL_SRC_DIR}/tarInstall.sh.in
|
||||
gen/firebird/bin/tarmainInstall.sh:${HP_INSTALL_SRC_DIR}/tarmainInstall.sh.in
|
||||
gen/firebird/bin/tarUninstall.sh:${HP_INSTALL_SRC_DIR}/tarUninstall.sh.in
|
||||
gen/firebird/bin/tarmainUninstall.sh:${HP_INSTALL_SRC_DIR}/tarmainUninstall.sh.in
|
||||
gen/firebird/bin/postInstall.sh:${HP_INSTALL_SRC_DIR}/postInstall.sh.in
|
||||
gen/firebird/bin/preUninstall.sh:${HP_INSTALL_SRC_DIR}/preUninstall.sh.in
|
||||
gen/firebird/bin/postUninstall.sh:${HP_INSTALL_SRC_DIR}/postUninstall.sh.in
|
||||
gen/install/misc/firebird.init.d.hpux:builds/install/arch-specific/hpux/misc/firebird.init.d.hpux.in
|
||||
gen/install/misc/rc.config.firebird.hpux:builds/install/arch-specific/hpux/misc/rc.config.firebird.hpux.in
|
||||
gen/firebird/bin/changedbaPassword.sh:builds/install/arch-specific/hpux/misc/changedbaPassword.sh.in
|
||||
|
Loading…
Reference in New Issue
Block a user