mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Moved plaform specific installation and packaging rules from
builds/posix/Makefile.in.install and builds/posix/Makefile.in.firebird to src/install/arch-specific/<platform>/Makefile.in.
This commit is contained in:
parent
09fbc5abf3
commit
7666ebb334
@ -27,7 +27,7 @@
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
# $Id: Makefile.in.firebird,v 1.14 2002-11-07 16:54:47 skywalker Exp $
|
||||
# $Id: Makefile.in.firebird,v 1.15 2002-11-11 13:09:17 eku Exp $
|
||||
#
|
||||
|
||||
ROOT=..
|
||||
@ -531,34 +531,19 @@ $(BIN)/% :: $(SRC_ROOT)/install/misc/%
|
||||
$(CP) $^ $@
|
||||
chmod ugo=rx $@
|
||||
|
||||
# Just a note that some of the script files (xinetd/firebird etc) need to h
|
||||
# have their paths changed in their shell scripts.
|
||||
|
||||
#___________________________________________________________________________
|
||||
#
|
||||
|
||||
.PHONY: install
|
||||
.PHONY: install package packages dist
|
||||
|
||||
install:
|
||||
install package packages dist:
|
||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.install $@
|
||||
|
||||
|
||||
packages:
|
||||
$(MAKE) -f $(MAKE_ROOT)/Makefile.install $@
|
||||
|
||||
|
||||
installclassic:
|
||||
$(SRC_ROOT)/install/classic/CSpreinstall.sh
|
||||
# $(SRC_ROOT)/install/classic/CSinstall.sh
|
||||
# $(SRC_ROOT)/install/classic/CSpostinstall.sh
|
||||
|
||||
dist:
|
||||
$(MAKE) -C install $@
|
||||
|
||||
|
||||
#___________________________________________________________________________
|
||||
#
|
||||
|
||||
|
||||
clean: clean_objects clean_dependancies clean_extern_objects clean_build
|
||||
|
||||
|
||||
@ -589,100 +574,5 @@ clean_build:
|
||||
rm -f `find $(GEN_ROOT)/firebird -type f -print`
|
||||
# rm -f $(GDSLIB_OBJECTS) $(GDSLIB_PHASE3_OBJECTS)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
darwin_installer_common: force
|
||||
$(QUIET_ECHO) "Building Firebird Installer..."
|
||||
mkdir -p $(OBJS)/firebird/installer_tmp
|
||||
$(MV) $(OBJS)/firebird/Firebird.framework $(OBJS)/firebird/installer_tmp
|
||||
$(CP) $(SOURCE)/sandbox/bellardo/darwin/makefile \
|
||||
$(OBJS)/firebird/installer_tmp
|
||||
ln -s $(OBJS)/firebird/bellardo/darwin \
|
||||
$(OBJS)/firebird/installer_tmp/files
|
||||
ln -s ../.. $(OBJS)/firebird/installer_tmp/source
|
||||
$(CD) $(OBJS)/firebird/installer_tmp && $(MAKE) install_package
|
||||
$(RM) -rf $(OBJS)/firebird/installer_tmp
|
||||
-$(RM) -rf $(OBJS)/firebird/Firebird.framework
|
||||
|
||||
darwin_installer: darwin_installer_common darwin_framework
|
||||
super_darwin_installer: darwin_installer_common ss_darwin_framework
|
||||
|
||||
darwin_framework: force
|
||||
$(QUIET_ECHO) "Building Classic Firebird Framework..."
|
||||
$(RM) -rf $(OBJS)/firebird/Firebird2.framework
|
||||
$(MAKE) -f $(SOURCE)/sandbox/bellardo/darwin/FirebirdFramework.make \
|
||||
framework
|
||||
|
||||
ss_darwin_framework: force
|
||||
$(QUIET_ECHO) "Building Super Server Firebird Framework..."
|
||||
$(RM) -rf $(OBJS)/firebird/Firebird.framework
|
||||
$(MAKE) -f $(SOURCE)/sandbox/bellardo/darwin/FirebirdFramework.make \
|
||||
super_framework
|
||||
|
||||
|
||||
#____________________________________________________________________________
|
||||
# The installations need to find a better and possibly linux
|
||||
# specific home. The tar installs should probably work with
|
||||
# other unix type of systems.
|
||||
|
||||
# I have seperated super and classic out since I needed different
|
||||
# files in each case.
|
||||
|
||||
miscFiles: force
|
||||
$(QUIET_ECHO) "Building miscellaneous install files..."
|
||||
mkdir -p $(OBJS)/firebird/misc
|
||||
-$(CP) $(SOURCE)/makefiles/install.unix $(OBJS)/firebird/install
|
||||
-$(CP) $(SOURCE)/makefiles/servers.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/makefiles/inetd.conf.unx $(OBJS)/firebird/inetd.conf.isc
|
||||
-$(CP) $(SOURCE)/makefiles/services.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/makefiles/sys.conf.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/sandbox/skywalker/install/misc/firebird.xinetd $(OBJS)/firebird/misc
|
||||
|
||||
superMiscFiles: force
|
||||
$(QUIET_ECHO) "Building miscellaneous install files..."
|
||||
$(CP) source/$(SYSTEM)/install source/interbase
|
||||
-$(CP) source/$(SYSTEM)/servers.isc source/interbase
|
||||
$(CP) source/$(SYSTEM)/inetd.conf.isc source/interbase
|
||||
$(CP) source/$(SYSTEM)/original/services.isc source/interbase
|
||||
-$(CP) source/$(SYSTEM)/sys.conf.isc source/interbase
|
||||
mkdir -p source/interbase/misc
|
||||
$(CP) firebird/skywalker/install/misc/firebird.init.d.* source/interbase/misc
|
||||
|
||||
#install: force
|
||||
# $(MAKE) -f firebird/skywalker/install/Makefile install
|
||||
|
||||
runclassicinstall: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile runclassicinstall
|
||||
|
||||
classicpackages: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classicpackages
|
||||
|
||||
classictarfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classictarfile
|
||||
|
||||
classicrpmfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classicrpmfile
|
||||
|
||||
superpackages: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile superpackages
|
||||
|
||||
supertarfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile supertarfile
|
||||
|
||||
superrpmfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile superrpmfile
|
||||
#___________________________________________________________________________
|
||||
#
|
||||
|
@ -27,7 +27,7 @@
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
# $Id: Makefile.in.install,v 1.5 2002-11-11 05:55:18 skywalker Exp $
|
||||
# $Id: Makefile.in.install,v 1.6 2002-11-11 13:09:17 eku Exp $
|
||||
#
|
||||
ROOT=..
|
||||
|
||||
@ -39,140 +39,9 @@ include $(ROOT)/gen/make.defaults
|
||||
include $(ROOT)/gen/make.shared.variables
|
||||
|
||||
|
||||
FirebirdInstallPrefix=@prefix@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
FIREBIRD=$(FirebirdInstallPrefix)
|
||||
.PHONY: install package packages dist
|
||||
|
||||
export -n FIREBIRD
|
||||
export -n INTERBASE
|
||||
|
||||
.PHONY: install dist packages tarfile rpmfile
|
||||
.PHONY: buildTarDir buildImageDir
|
||||
|
||||
# Some of these targets are run from the root tree of the build.
|
||||
# those need to know where the install subdirectory is kept.
|
||||
# Others are run locally these need to know the path back to the
|
||||
# root of the build tree.
|
||||
|
||||
BuildRoot=$(GEN_ROOT)
|
||||
|
||||
InstallRoot=.
|
||||
|
||||
|
||||
FirebirdBuildPrefix=$(GEN_ROOT)
|
||||
|
||||
#export FirebirdBuildPrefix
|
||||
#export FirebirdInstallPrefix
|
||||
#export PackageVersion
|
||||
|
||||
BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@
|
||||
PackageVersion=@FIREBIRD_PACKAGE_VERSION@
|
||||
|
||||
Version=$(BuildVersion)-$(PackageVersion)
|
||||
|
||||
|
||||
|
||||
# This means something like: FirebirdCS-2.0.0-1.i386.tar.gz
|
||||
|
||||
TarDir= Firebird$(ArchPrefix)-$(Version).$(CpuType)
|
||||
TarFile=Firebird$(ArchPrefix)-$(Version).$(CpuType).tar.gz
|
||||
RPMFile=Firebird$(ArchPrefix)-$(Version).$(CpuType).rpm
|
||||
|
||||
|
||||
# Determine where the packages are built. Each distribution builds them in
|
||||
# their own spot.
|
||||
# This should be moved to configure.in file
|
||||
RedhatPackageDir=/usr/src/redhat/RPMS/$(CpuType)
|
||||
MandrakePackageDir=/usr/src/RPM/RPMS/$(CpuType)
|
||||
SuSEPackageDir=/usr/src/packages/RPMS/$(CpuType)
|
||||
|
||||
PackageDir:=$(shell if [ -d $(RedhatPackageDir) ]; then echo $(RedhatPackageDir); \
|
||||
elif [ -d $(MandrakePackageDir) ]; then echo $(MandrakePackageDir); \
|
||||
elif [ -d $(SuSEPackageDir) ]; then echo $(SuSEPackageDir); \
|
||||
fi)
|
||||
|
||||
|
||||
|
||||
PkgSrcDir=$(InstallRoot)/$(ArchType)
|
||||
ScriptDir=$(GEN_ROOT)/install/scripts/
|
||||
RPMSrcDir=$(GEN_ROOT)/install/scripts
|
||||
|
||||
|
||||
TarInstallDir=$(GEN_ROOT)/install
|
||||
|
||||
|
||||
|
||||
dist : packages
|
||||
|
||||
packages: tarfile rpmfile
|
||||
|
||||
tarfile: $(TarFile)
|
||||
|
||||
#
|
||||
#$(TarFile) : buildInstallDir
|
||||
# (cd $(GEN_ROOT); tar -czf $(TarFile) install)
|
||||
|
||||
$(TarFile) : buildTarDir
|
||||
(cd $(GEN_ROOT); tar -czf $(TarFile) $(TarDir))
|
||||
|
||||
|
||||
# No longer needed: MOD 7-Nov-2002
|
||||
#buildInstallDir:
|
||||
# (cd $(GEN_ROOT); tar -czf install/firebird.tar.gz firebird)
|
||||
|
||||
buildImageDir:
|
||||
(cd $(GEN_ROOT); ./install/makeInstallImage.sh)
|
||||
|
||||
|
||||
buildTarDir: buildImageDir
|
||||
mkdir -p $(GEN_ROOT)/$(TarDir)
|
||||
cp -r $(GEN_ROOT)/install/scripts $(GEN_ROOT)/$(TarDir)
|
||||
cp -r $(GEN_ROOT)/install/scripts/tarMainInstall.sh $(GEN_ROOT)/$(TarDir)/install.sh
|
||||
chmod a+x $(GEN_ROOT)/$(TarDir)/install.sh $(GEN_ROOT)/$(TarDir)/scripts/*sh
|
||||
(cd $(GEN_ROOT)/$(TarDir); tar -C ../buildroot -czf buildroot.tar.gz . )
|
||||
(cd $(GEN_ROOT)/$(TarDir); tar -tzf buildroot.tar.gz > manifest.txt )
|
||||
|
||||
|
||||
install: buildTarDir
|
||||
(cd $(GEN_ROOT)/$(TarDir); ./install.sh)
|
||||
|
||||
|
||||
rpmfile: $(RPMFile)
|
||||
|
||||
$(RPMFile) : $(GEN_ROOT)/install/rpmscript buildImageDir
|
||||
rpm -bb $(GEN_ROOT)/install/rpmscript
|
||||
# rpm -bb --buildroot `pwd`/buildroot $(GEN_ROOT)/rpmscript
|
||||
cp $(PackageDir)/$(RPMFile) .
|
||||
|
||||
|
||||
.PHONY: $(GEN_ROOT)/install/rpmscript
|
||||
|
||||
$(GEN_ROOT)/install/rpmscript :
|
||||
echo $@
|
||||
cat $(RPMSrcDir)/rpmheader.txt > $@
|
||||
echo "" >> $@
|
||||
echo "%prep" >> $@
|
||||
# cat $(ClassicSrcDir)/prepinstall.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%build" >> $@
|
||||
# cat $(ScriptDir)/buildinstall.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%install" >> $@
|
||||
# cat $(ScriptDir)/install.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%files" >> $@
|
||||
cat $(RPMSrcDir)/rpmfiles.txt >> $@
|
||||
echo "" >> $@
|
||||
echo "%pre" >> $@
|
||||
cat $(ScriptDir)/preinstall.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%post" >> $@
|
||||
cat $(ScriptDir)/postinstall.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%preun" >> $@
|
||||
cat $(ScriptDir)/preuninstall.sh >> $@
|
||||
echo "" >> $@
|
||||
echo "%postun" >> $@
|
||||
cat $(ScriptDir)/postuninstall.sh >> $@
|
||||
install package packages dist:
|
||||
$(MAKE) -C $(MAKE_ROOT)/install/@MAKEFILE_PREFIX@ $@
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl $Id: configure.in,v 1.73 2002-11-11 05:54:24 skywalker Exp $
|
||||
dnl $Id: configure.in,v 1.74 2002-11-11 13:09:16 eku Exp $
|
||||
|
||||
dnl ############################# INITIALISATION ###############################
|
||||
|
||||
@ -39,6 +39,7 @@ i*-sni-sysv4) MAKEFILE_PREFIX=sinixz ; PLATFORM="SINIX-Z" ; AC_DEFINE(SIN
|
||||
*-*-mingw*) MAKEFILE_PREFIX=mingw ; PLATFORM=win32 ; AC_DEFINE(WIN_NT) ;;
|
||||
esac
|
||||
|
||||
AC_SUBST(MAKEFILE_PREFIX)
|
||||
AC_SUBST(PLATFORM)
|
||||
|
||||
|
||||
@ -507,7 +508,7 @@ dnl I've used AC_CONFIG_COMMMANDS since it seems to work
|
||||
dnl but I did think I wanted AC_CONFIG_COMMANDS_POST, but I couldn't get
|
||||
dnl it to work as I expected. MOD 10-Nov-2002
|
||||
|
||||
AC_CONFIG_COMMANDS([posttinstall],
|
||||
AC_CONFIG_COMMANDS([postinstall],
|
||||
[
|
||||
chmod a+x gen/install/scripts/*.sh
|
||||
chmod a+x gen/install/sinixz/*
|
||||
|
@ -0,0 +1,29 @@
|
||||
# EKU: taken from Makefile.in.firebird
|
||||
|
||||
darwin_installer_common: force
|
||||
$(QUIET_ECHO) "Building Firebird Installer..."
|
||||
mkdir -p $(OBJS)/firebird/installer_tmp
|
||||
$(MV) $(OBJS)/firebird/Firebird.framework $(OBJS)/firebird/installer_tmp
|
||||
$(CP) $(SOURCE)/sandbox/bellardo/darwin/makefile \
|
||||
$(OBJS)/firebird/installer_tmp
|
||||
ln -s $(OBJS)/firebird/bellardo/darwin \
|
||||
$(OBJS)/firebird/installer_tmp/files
|
||||
ln -s ../.. $(OBJS)/firebird/installer_tmp/source
|
||||
$(CD) $(OBJS)/firebird/installer_tmp && $(MAKE) install_package
|
||||
$(RM) -rf $(OBJS)/firebird/installer_tmp
|
||||
-$(RM) -rf $(OBJS)/firebird/Firebird.framework
|
||||
|
||||
darwin_installer: darwin_installer_common darwin_framework
|
||||
super_darwin_installer: darwin_installer_common ss_darwin_framework
|
||||
|
||||
darwin_framework: force
|
||||
$(QUIET_ECHO) "Building Classic Firebird Framework..."
|
||||
$(RM) -rf $(OBJS)/firebird/Firebird2.framework
|
||||
$(MAKE) -f $(SOURCE)/sandbox/bellardo/darwin/FirebirdFramework.make \
|
||||
framework
|
||||
|
||||
ss_darwin_framework: force
|
||||
$(QUIET_ECHO) "Building Super Server Firebird Framework..."
|
||||
$(RM) -rf $(OBJS)/firebird/Firebird.framework
|
||||
$(MAKE) -f $(SOURCE)/sandbox/bellardo/darwin/FirebirdFramework.make \
|
||||
super_framework
|
@ -26,7 +26,7 @@
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
# $Id: Makefile.in,v 1.3 2001-12-24 02:50:50 tamlin Exp $
|
||||
# $Id: Makefile.in,v 1.4 2002-11-11 13:09:18 eku Exp $
|
||||
#
|
||||
|
||||
#RedhatPackageDir=/usr/src/redhat/RPMS/i386
|
||||
@ -112,3 +112,56 @@ SSrpmscript:
|
||||
echo "%postun" >> $@
|
||||
cat $(SuperSrcDir)/SSpostuninstall.sh >> $@
|
||||
|
||||
# EKU: taken from Makefile.in.firebird, please adjust
|
||||
|
||||
#____________________________________________________________________________
|
||||
# The installations need to find a better and possibly linux
|
||||
# specific home. The tar installs should probably work with
|
||||
# other unix type of systems.
|
||||
|
||||
# I have seperated super and classic out since I needed different
|
||||
# files in each case.
|
||||
|
||||
miscFiles: force
|
||||
$(QUIET_ECHO) "Building miscellaneous install files..."
|
||||
mkdir -p $(OBJS)/firebird/misc
|
||||
-$(CP) $(SOURCE)/makefiles/install.unix $(OBJS)/firebird/install
|
||||
-$(CP) $(SOURCE)/makefiles/servers.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/makefiles/inetd.conf.unx $(OBJS)/firebird/inetd.conf.isc
|
||||
-$(CP) $(SOURCE)/makefiles/services.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/makefiles/sys.conf.isc $(OBJS)/firebird
|
||||
-$(CP) $(SOURCE)/sandbox/skywalker/install/misc/firebird.xinetd $(OBJS)/firebird/misc
|
||||
|
||||
superMiscFiles: force
|
||||
$(QUIET_ECHO) "Building miscellaneous install files..."
|
||||
$(CP) source/$(SYSTEM)/install source/interbase
|
||||
-$(CP) source/$(SYSTEM)/servers.isc source/interbase
|
||||
$(CP) source/$(SYSTEM)/inetd.conf.isc source/interbase
|
||||
$(CP) source/$(SYSTEM)/original/services.isc source/interbase
|
||||
-$(CP) source/$(SYSTEM)/sys.conf.isc source/interbase
|
||||
mkdir -p source/interbase/misc
|
||||
$(CP) firebird/skywalker/install/misc/firebird.init.d.* source/interbase/misc
|
||||
|
||||
#install: force
|
||||
# $(MAKE) -f firebird/skywalker/install/Makefile install
|
||||
|
||||
runclassicinstall: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile runclassicinstall
|
||||
|
||||
classicpackages: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classicpackages
|
||||
|
||||
classictarfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classictarfile
|
||||
|
||||
classicrpmfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile classicrpmfile
|
||||
|
||||
superpackages: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile superpackages
|
||||
|
||||
supertarfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile supertarfile
|
||||
|
||||
superrpmfile: force
|
||||
$(MAKE) -f firebird/skywalker/install/Makefile superrpmfile
|
||||
|
@ -26,15 +26,27 @@
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
# $Id: Makefile.in,v 1.2 2002-09-13 07:15:04 eku Exp $
|
||||
# $Id: Makefile.in,v 1.3 2002-11-11 13:09:18 eku Exp $
|
||||
#
|
||||
|
||||
ROOT=../../..
|
||||
|
||||
include $(ROOT)/gen/make.platform
|
||||
include $(ROOT)/gen/make.rules
|
||||
include $(ROOT)/gen/make.defaults
|
||||
include $(ROOT)/gen/make.shared.variables
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
PGK_FILES=pkginfo prototype preinstall postinstall postremove
|
||||
PKG_DIR=@NEW_FIREBIRD_DIR@/../install/sinixz
|
||||
PKG_DIR=$(RealFirebirdPath)/../install/sinixz
|
||||
|
||||
install: package
|
||||
|
||||
package:
|
||||
@echo Making SINIX-Z package...
|
||||
cp $(PGK_FILES) @NEW_FIREBIRD_DIR@
|
||||
cp $(PGK_FILES) $(RealFirebirdPath)
|
||||
rm -rf $(PKG_DIR)/firebird2
|
||||
-mkdir -p $(PKG_DIR)
|
||||
pkgmk -o -d $(PKG_DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user