summaryrefslogtreecommitdiff
path: root/databases/firebird21-server/files
diff options
context:
space:
mode:
Diffstat (limited to 'databases/firebird21-server/files')
-rw-r--r--databases/firebird21-server/files/aliases.conf.in9
-rw-r--r--databases/firebird21-server/files/icu.m446
-rw-r--r--databases/firebird21-server/files/patch-autogen.sh11
-rw-r--r--databases/firebird21-server/files/patch-builds%install%misc%firebird.conf20
-rw-r--r--databases/firebird21-server/files/patch-builds%posix%Makefile.in.firebird45
-rw-r--r--databases/firebird21-server/files/patch-builds%posix%make.defaults40
-rw-r--r--databases/firebird21-server/files/patch-builds%posix%make.rules13
-rw-r--r--databases/firebird21-server/files/patch-configure.in50
-rw-r--r--databases/firebird21-server/files/patch-src%common%config%config.cpp11
-rw-r--r--databases/firebird21-server/files/patch-src%jrd%db_alias.cpp13
-rw-r--r--databases/firebird21-server/files/patch-src%jrd%gds.cpp11
-rw-r--r--databases/firebird21-server/files/patch-src%jrd%os%config_root.h11
-rw-r--r--databases/firebird21-server/files/patch-src%jrd%plugin_manager.cpp20
-rw-r--r--databases/firebird21-server/files/patch-src%jrd%svc.cpp22
-rw-r--r--databases/firebird21-server/files/patch-src%lock%lock.cpp16
-rw-r--r--databases/firebird21-server/files/patch-src+jrd+IntlManager.cpp11
-rw-r--r--databases/firebird21-server/files/patch-src-common-classes_alloc.h26
-rw-r--r--databases/firebird21-server/files/pkg-install.in71
-rw-r--r--databases/firebird21-server/files/pkg-message.in27
19 files changed, 473 insertions, 0 deletions
diff --git a/databases/firebird21-server/files/aliases.conf.in b/databases/firebird21-server/files/aliases.conf.in
new file mode 100644
index 000000000000..ded23bfd70cb
--- /dev/null
+++ b/databases/firebird21-server/files/aliases.conf.in
@@ -0,0 +1,9 @@
+#
+# List of known database aliases
+# ------------------------------
+#
+# Examples:
+#
+# employee = %%EXAMPLESDIR%%/employee.fdb
+# security = /var/db/firebird/security2.fdb
+#
diff --git a/databases/firebird21-server/files/icu.m4 b/databases/firebird21-server/files/icu.m4
new file mode 100644
index 000000000000..37d0f8a08c40
--- /dev/null
+++ b/databases/firebird21-server/files/icu.m4
@@ -0,0 +1,46 @@
+dnl AM_PATH_ICU([MINIMUM-VERSION])
+dnl Adds support for ICU
+AC_DEFUN([AM_PATH_ICU],
+[
+ rast_lib_icu_major="$1"
+ rast_lib_icu_minor="$2"
+ rast_lib_icu_version="$1.$2"
+
+ AC_ARG_WITH(icu-config,
+ AC_HELP_STRING([--with-icu-config=PATH],[path to icu-config]),
+ [
+ AC_MSG_RESULT(using $withval for icu-config)
+ ICU_CONFIG="$withval"
+ ], [
+ AC_PATH_PROG(ICU_CONFIG, icu-config, no)
+ ])
+ HAVE_ICU="no"
+ if test "$ICU_CONFIG" != "no"; then
+ AC_MSG_CHECKING([ICU version])
+ ICU_VERSION="`$ICU_CONFIG --version`"
+ if test $? -eq 0; then
+ changequote(<<, >>)
+ ICU_MAJOR=`expr "$ICU_VERSION" : '\(.*\)\..*'`
+ ICU_MINOR=`expr "$ICU_VERSION" : '.*\.\(.*\)'`
+ changequote([, ])
+ if expr "$ICU_MAJOR" '>' "$rast_lib_icu_major" > /dev/null ||
+ ( expr "$ICU_MAJOR" '=' "$rast_lib_icu_major" > /dev/null &&
+ expr "$ICU_MINOR" '>=' "$rast_lib_icu_minor" > /dev/null ); then
+ AC_MSG_RESULT([$ICU_VERSION])
+
+ ICU_CPPFLAGS=`$ICU_CONFIG --cppflags`
+ ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly`
+ ICU_LDFLAGS=`$ICU_CONFIG --ldflags-searchpath`
+ AC_SUBST(ICU_CPPFLAGS)
+ AC_SUBST(ICU_LIBS)
+ AC_SUBST(ICU_LDFLAGS)
+ HAVE_ICU="yes"
+ else
+ AC_MSG_WARN([$ICU_VERSION is too old; $rast_lib_icu_version is required])
+ fi
+ else
+ AC_MSG_WARN([icu-config --version failed])
+ fi
+ fi
+ AC_SUBST(HAVE_ICU)
+])
diff --git a/databases/firebird21-server/files/patch-autogen.sh b/databases/firebird21-server/files/patch-autogen.sh
new file mode 100644
index 000000000000..891c077fd261
--- /dev/null
+++ b/databases/firebird21-server/files/patch-autogen.sh
@@ -0,0 +1,11 @@
+--- autogen.sh.orig 2010-09-08 15:44:05.000000000 +0700
++++ autogen.sh 2010-10-18 13:37:36.000000000 +0700
+@@ -63,7 +63,7 @@
+ fi
+
+ echo "Running autoreconf ..."
+-$AUTORECONF --install --force --verbose || exit 1
++$AUTORECONF --install --force --verbose -I ./m4 || exit 1
+
+ # Hack to bypass bug in autoreconf - --install switch not passed to libtoolize,
+ # therefore missing config.sub and confg.guess files
diff --git a/databases/firebird21-server/files/patch-builds%install%misc%firebird.conf b/databases/firebird21-server/files/patch-builds%install%misc%firebird.conf
new file mode 100644
index 000000000000..d0105af83cf6
--- /dev/null
+++ b/databases/firebird21-server/files/patch-builds%install%misc%firebird.conf
@@ -0,0 +1,20 @@
+--- builds/install/misc/firebird.conf.orig Tue Aug 15 22:38:52 2006
++++ builds/install/misc/firebird.conf Tue Aug 15 22:39:24 2006
+@@ -60,7 +60,7 @@
+ #
+ # Type: string
+ #
+-#RootDirectory =
++#RootDirectory = /var/db/firebird
+
+
+ # ----------------------------
+@@ -125,7 +125,7 @@
+ #
+ # Type: string (special format)
+ #
+-#UdfAccess = Restrict UDF
++UdfAccess = Restrict %%PREFIX%%/libexec/firebird/udf
+
+
+ # ----------------------------
diff --git a/databases/firebird21-server/files/patch-builds%posix%Makefile.in.firebird b/databases/firebird21-server/files/patch-builds%posix%Makefile.in.firebird
new file mode 100644
index 000000000000..12922fd739aa
--- /dev/null
+++ b/databases/firebird21-server/files/patch-builds%posix%Makefile.in.firebird
@@ -0,0 +1,45 @@
+--- builds/posix/Makefile.in.firebird.orig 2008-12-10 21:22:15.000000000 +0600
++++ builds/posix/Makefile.in.firebird 2010-10-19 12:36:20.000000000 +0700
+@@ -185,9 +185,6 @@
+ #
+
+ external_libraries:
+-ifeq ($(STD_ICU),false)
+- $(MAKE) -f $(GEN_ROOT)/Makefile.extern.icu
+-endif
+ ifeq ($(STD_EDITLINE),false)
+ ifeq ($(EDITLINE_FLG),Y)
+ $(MAKE) -f $(GEN_ROOT)/Makefile.extern.editline
+@@ -519,12 +516,12 @@
+ #___________________________________________________________________________
+ #
+ .PHONY: clean clean_objects clean_dependancies clean_extern_objects clean_build \
+- clean_gpre_gen clean_icu clean_dbs clean_examples clean_makefiles \
++ clean_gpre_gen clean_dbs clean_examples clean_makefiles \
+ clean_editline clean_all
+
+
+ clean: clean_objects clean_dependancies clean_extern_objects clean_build \
+- clean_yacc_gen clean_gpre_gen clean_icu clean_dbs clean_examples
++ clean_yacc_gen clean_gpre_gen clean_dbs clean_examples
+
+ ifeq ($(EDITLINE_FLG),Y)
+ clean: clean_editline
+@@ -538,7 +535,6 @@
+ $(RM) $(ROOT)/libtool
+ $(RM_R) $(ROOT)/autom4te.cache
+ -make -C $(ROOT)/extern/editline distclean
+- -make -C $(ROOT)/extern/icu/source distclean
+ -make -C $(ROOT)/extern/btyacc distclean
+
+ clean_dbs:
+@@ -551,9 +547,6 @@
+ clean_editline:
+ -make -C $(ROOT)/extern/editline clean
+
+-clean_icu:
+- -make -C $(ROOT)/extern/icu/source clean
+-
+ clean_objects:
+ $(RM) `find $(TMP_ROOT)/ -type f -name '*.o' -print`
+
diff --git a/databases/firebird21-server/files/patch-builds%posix%make.defaults b/databases/firebird21-server/files/patch-builds%posix%make.defaults
new file mode 100644
index 000000000000..d63c0988bf4b
--- /dev/null
+++ b/databases/firebird21-server/files/patch-builds%posix%make.defaults
@@ -0,0 +1,40 @@
+--- builds/posix/make.defaults 2008-09-04 06:47:18.000000000 -0500
++++ builds/posix/make.defaults 2010-12-18 19:51:28.000000000 -0500
+@@ -118,7 +118,7 @@
+ CHMOD= chmod
+ CHMOD_6= chmod 666
+ CHMOD_7= chmod 777
+-CHMOD_S7= chmod 06777
++CHMOD_S7= chmod 04555
+ MV= mv -f
+ TOUCH= touch
+ CP= cp
+@@ -162,7 +162,7 @@
+ STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS)
+
+ LINK_LIBS = @LIBS@
+-ICU_LIBS = -licuuc -licudata -licui18n
++ICU_LIBS = @ICU_LIBS@ @ICU_LDFLAGS@
+ STATICLINK_LIBS = @LIBS@
+ SO_LINK_LIBS = @LIBS@
+
+@@ -239,10 +239,6 @@
+ endif
+ endif
+
+-LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc.$(SHRLIB_EXT) \
+- $(LIB)/$(LIB_PREFIX)icudata.$(SHRLIB_EXT) \
+- $(LIB)/$(LIB_PREFIX)icui18n.$(SHRLIB_EXT)
+-
+ # Shared library name for usage inside of the UDF
+ IbUtilLibraryName = $(LIB_PREFIX)ib_util.$(SHRLIB_EXT)
+ LIBIBUTIL_SO = $(LIB)/$(IbUtilLibraryName)
+@@ -268,7 +264,7 @@
+ FB_SUPER_SERVER = $(BIN)/fbserver$(EXEC_EXT)
+ FB_CLASSIC_SERVER = $(BIN)/fb_inet_server$(EXEC_EXT)
+
+-STATIC_CXXSUPPORT_LIB = -lsupc++ -lgcc_eh
++STATIC_CXXSUPPORT_LIB = -lstdc++ -lgcc_s -lgcc_eh
+
+ # From utilities
+ CREATE_DB = $(BIN)/create_db$(EXEC_EXT)
diff --git a/databases/firebird21-server/files/patch-builds%posix%make.rules b/databases/firebird21-server/files/patch-builds%posix%make.rules
new file mode 100644
index 000000000000..e435c59b116a
--- /dev/null
+++ b/databases/firebird21-server/files/patch-builds%posix%make.rules
@@ -0,0 +1,13 @@
+--- builds/posix/make.rules.orig 2008-12-10 07:03:31.000000000 +0600
++++ builds/posix/make.rules 2010-10-19 12:40:17.000000000 +0700
+@@ -33,9 +33,7 @@
+
+ # Please don't use compiler/platform specific flags here - nmcc 02-Nov-2002
+ CFLAGS:= $(CFLAGS) -I$(SRC_ROOT)/include/gen -I$(SRC_ROOT)/include -I$(SRC_ROOT)/vulcan -DNAMESPACE=Vulcan
+-ifeq ($(STD_ICU),false)
+- CFLAGS:= $(CFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n
+-endif
++CFLAGS:= $(CFLAGS) @ICU_CPPFLAGS@
+
+ ifeq ($(IsProdTypeBuild),Y)
+ CFLAGS:= $(CFLAGS) $(PROD_FLAGS) -DPROD_BUILD
diff --git a/databases/firebird21-server/files/patch-configure.in b/databases/firebird21-server/files/patch-configure.in
new file mode 100644
index 000000000000..74f876aa487c
--- /dev/null
+++ b/databases/firebird21-server/files/patch-configure.in
@@ -0,0 +1,50 @@
+--- configure.in.orig 2009-06-05 16:50:33.000000000 +0700
++++ configure.in 2010-10-19 12:42:22.000000000 +0700
+@@ -721,6 +721,7 @@
+ AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)])
+ fi
++AM_PATH_ICU(3, 6)
+
+ AC_CHECK_SIZEOF(void *)
+ AC_CHECK_SIZEOF(long)
+@@ -905,6 +906,10 @@
+ AC_SUBST(NEW_FIREBIRD_DIR)
+
+ AC_DEFINE_UNQUOTED(FB_PREFIX, $(if test "x$prefix" = "xNONE" ; then echo \"$ac_default_prefix\"; else echo \"$prefix\"; fi), [Installation path prefix])
++AC_DEFINE_UNQUOTED(FB_EXEC_PREFIX, "$exec_prefix", [Executables path prefix])
++AC_DEFINE_UNQUOTED(FB_CONF_PREFIX, "$sysconfdir", [Single-machine data path prefix])
++AC_DEFINE_UNQUOTED(FB_MSG_PREFIX, "$datadir", [Architecture-independent data path prefix])
++AC_DEFINE_UNQUOTED(FB_LIBEXEC_PREFIX, "$libexecdir", [Program executables path prefix])
+
+ AC_CONFIG_COMMANDS(,,[
+ dnl # rebuild version header if needed
+@@ -1267,9 +1272,6 @@
+ if test "$STD_EDITLINE" = "false"; then
+ AC_CONFIG_FILES(gen/Makefile.extern.editline:${MAKE_SRC_DIR}/Makefile.in.extern.editline)
+ fi
+-if test "$STD_ICU" = "false"; then
+- AC_CONFIG_FILES(gen/Makefile.extern.icu:${MAKE_SRC_DIR}/Makefile.in.extern.icu)
+-fi
+
+ case "$PLATFORM" in
+ SOLARIS | solx86 )
+@@ -1280,18 +1282,7 @@
+ esac
+
+
+-if test "$PROD_BUILD_FLG" = N; then
+- DEBUG_ICU=--enable-debug
+-fi
+-
+-if test "$STD_ICU" = "true"; then
+ AC_OUTPUT
+-else
+-AC_OUTPUT
+-(cd extern/icu/source
+-chmod +x runConfigureICU configure install-sh
+-./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" --prefix=`pwd`/..)
+-fi
+
+ dnl Print out the build configuration (the most interesting thing)
+ echo
diff --git a/databases/firebird21-server/files/patch-src%common%config%config.cpp b/databases/firebird21-server/files/patch-src%common%config%config.cpp
new file mode 100644
index 000000000000..b05adf508983
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%common%config%config.cpp
@@ -0,0 +1,11 @@
+--- src/common/config/config.cpp.orig Tue Aug 15 22:53:43 2006
++++ src/common/config/config.cpp Tue Aug 15 22:54:38 2006
+@@ -111,7 +111,7 @@
+ {TYPE_STRING, "RemoteBindAddress", (ConfigValue) 0},
+ {TYPE_STRING, "ExternalFileAccess", (ConfigValue) "None"}, // location(s) of external files for tables
+ {TYPE_STRING, "DatabaseAccess", (ConfigValue) "Full"}, // location(s) of databases
+- {TYPE_STRING, "UdfAccess", (ConfigValue) "Restrict UDF"}, // location(s) of UDFs
++ {TYPE_STRING, "UdfAccess", (ConfigValue) "Restrict " FB_LIBEXEC_PREFIX "/UDF"}, // location(s) of UDFs
+ {TYPE_STRING, "TempDirectories", (ConfigValue) 0},
+ #ifdef DEV_BUILD
+ {TYPE_BOOLEAN, "BugcheckAbort", (ConfigValue) true}, // whether to abort() engine when internal error is found
diff --git a/databases/firebird21-server/files/patch-src%jrd%db_alias.cpp b/databases/firebird21-server/files/patch-src%jrd%db_alias.cpp
new file mode 100644
index 000000000000..27f7d6dc114d
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%jrd%db_alias.cpp
@@ -0,0 +1,13 @@
+--- src/jrd/db_alias.cpp.orig Tue Aug 15 23:07:31 2006
++++ src/jrd/db_alias.cpp Tue Aug 15 23:10:08 2006
+@@ -33,8 +33,8 @@
+
+ bool ResolveDatabaseAlias(const string& alias, string& database)
+ {
+- string alias_filename;
+- Firebird::Prefix(alias_filename, ALIAS_FILE);
++ string alias_filename = string(FB_CONF_PREFIX)
++ + PathUtils::dir_sep + ALIAS_FILE;
+ ConfigFile aliasConfig(false);
+ aliasConfig.setConfigFilePath(alias_filename);
+
diff --git a/databases/firebird21-server/files/patch-src%jrd%gds.cpp b/databases/firebird21-server/files/patch-src%jrd%gds.cpp
new file mode 100644
index 000000000000..f22bc183629e
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%jrd%gds.cpp
@@ -0,0 +1,11 @@
+--- src/jrd/gds.cpp.orig Tue Aug 15 22:49:37 2006
++++ src/jrd/gds.cpp Tue Aug 15 22:50:14 2006
+@@ -3734,7 +3734,7 @@
+ Firebird::PathName msgPrefix;
+ if (!fb_utils::readenv(FB_MSG_ENV, msgPrefix))
+ {
+- msgPrefix = prefix;
++ msgPrefix = FB_MSG_PREFIX;
+ }
+ msgPrefix.copyTo(ib_prefix_msg_val, sizeof(ib_prefix_msg_val));
+ ib_prefix_msg = ib_prefix_msg_val;
diff --git a/databases/firebird21-server/files/patch-src%jrd%os%config_root.h b/databases/firebird21-server/files/patch-src%jrd%os%config_root.h
new file mode 100644
index 000000000000..976da187b36a
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%jrd%os%config_root.h
@@ -0,0 +1,11 @@
+--- src/jrd/os/config_root.h.orig Tue Aug 15 22:57:33 2006
++++ src/jrd/os/config_root.h Tue Aug 15 22:57:53 2006
+@@ -76,7 +76,7 @@
+ {
+ GetRoot();
+ install_dir = root_dir;
+- config_file = root_dir + string(CONFIG_FILE);
++ config_file = string(FB_CONF_PREFIX) + PathUtils::dir_sep + string(CONFIG_FILE);
+ }
+
+
diff --git a/databases/firebird21-server/files/patch-src%jrd%plugin_manager.cpp b/databases/firebird21-server/files/patch-src%jrd%plugin_manager.cpp
new file mode 100644
index 000000000000..7a2ffab72408
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%jrd%plugin_manager.cpp
@@ -0,0 +1,20 @@
+--- src/jrd/plugin_manager.cpp.orig Tue Aug 15 23:11:04 2006
++++ src/jrd/plugin_manager.cpp Tue Aug 15 23:12:01 2006
+@@ -64,7 +64,7 @@
+ void PluginManager::loadAllPlugins()
+ {
+ Firebird::PathName checkDir;
+- const Firebird::PathName fbLibPath = Config::getRootDirectory();
++ const Firebird::PathName fbLibPath = FB_LIBEXEC_PREFIX;
+
+ for (spIterator pathItr = searchPaths.begin(); pathItr != searchPaths.end(); ++pathItr)
+ {
+@@ -131,7 +131,7 @@
+ PluginManager::Module *PluginManager::loadPluginModule(const Firebird::PathName& name)
+ {
+ Firebird::PathName checkPath;
+- const Firebird::PathName fbLibPath = Config::getRootDirectory();
++ const Firebird::PathName fbLibPath = FB_LIBEXEC_PREFIX;
+
+ // Check to see if the module name was specified as a relative path
+ // from one of our search paths. This only makes sense if the name
diff --git a/databases/firebird21-server/files/patch-src%jrd%svc.cpp b/databases/firebird21-server/files/patch-src%jrd%svc.cpp
new file mode 100644
index 000000000000..a76b1568b036
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%jrd%svc.cpp
@@ -0,0 +1,22 @@
+--- src/jrd/svc.cpp.orig Mon Jul 31 11:43:28 2006
++++ src/jrd/svc.cpp Wed Nov 15 16:56:13 2006
+@@ -583,7 +583,8 @@
+ {
+ #ifndef SERVICE_THREAD
+ TEXT service_path[MAXPATHLEN];
+- gds__prefix(service_path, serv->serv_executable);
++ strlcpy(service_path, FB_EXEC_PREFIX "/", MAXPATHLEN);
++ strlcat(service_path, serv->serv_executable, MAXPATHLEN);
+ service_fork(service_path, service);
+ #else
+ /* if service is single threaded, only call if not currently running */
+@@ -1742,7 +1743,8 @@
+ TEXT service_path[MAXPATHLEN];
+
+ if (serv->serv_executable) {
+- gds__prefix(service_path, serv->serv_executable);
++ strlcpy(service_path, FB_EXEC_PREFIX "/", MAXPATHLEN);
++ strlcat(service_path, serv->serv_executable, MAXPATHLEN);
+ service->svc_flags = SVC_forked;
+ service_fork(service_path, service);
+ }
diff --git a/databases/firebird21-server/files/patch-src%lock%lock.cpp b/databases/firebird21-server/files/patch-src%lock%lock.cpp
new file mode 100644
index 000000000000..279324733739
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src%lock%lock.cpp
@@ -0,0 +1,16 @@
+--- src/lock/lock.cpp.orig Fri Feb 3 16:13:23 2006
++++ src/lock/lock.cpp Wed Aug 16 12:41:32 2006
+@@ -2708,7 +2708,12 @@
+ #ifdef DEBUG_MANAGER
+ gds__prefix(string, DEBUG_MANAGER);
+ #else
+- gds__prefix(string, LOCK_MANAGER);
++ if (! getenv("FIREBIRD")) {
++ strlcpy(string, FB_EXEC_PREFIX "/", MAXPATHLEN);
++ strlcat(string, LOCK_MANAGER, MAXPATHLEN);
++ } else {
++ gds__prefix(string, LOCK_MANAGER);
++ }
+ #endif
+ if (statistics(string, &stat_buf) == -1) {
+ // bug() fills the vector with this address, it must be static.
diff --git a/databases/firebird21-server/files/patch-src+jrd+IntlManager.cpp b/databases/firebird21-server/files/patch-src+jrd+IntlManager.cpp
new file mode 100644
index 000000000000..c918181dce4f
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src+jrd+IntlManager.cpp
@@ -0,0 +1,11 @@
+--- src/jrd/IntlManager.cpp.orig Tue Nov 21 16:24:19 2006
++++ src/jrd/IntlManager.cpp Tue Nov 21 16:30:40 2006
+@@ -78,7 +78,7 @@
+ #endif
+
+ Firebird::PathName intlPath;
+- PathUtils::concatPath(intlPath, Config::getRootDirectory(), "intl");
++ PathUtils::concatPath(intlPath, FB_LIBEXEC_PREFIX, "intl");
+
+ ScanDir dir(intlPath.c_str(), "*.conf");
+
diff --git a/databases/firebird21-server/files/patch-src-common-classes_alloc.h b/databases/firebird21-server/files/patch-src-common-classes_alloc.h
new file mode 100644
index 000000000000..501c3b224aaa
--- /dev/null
+++ b/databases/firebird21-server/files/patch-src-common-classes_alloc.h
@@ -0,0 +1,26 @@
+--- src/common/classes/alloc.h 2010-12-18 19:21:49.000000000 -0500
++++ src/common/classes/alloc.h 2010-12-18 19:23:30.000000000 -0500
+@@ -47,6 +47,7 @@
+ #include <stdlib.h> /* XPG: prototypes for malloc/free have to be in
+ stdlib.h (EKU) */
+ #endif
++#include <new>
+
+ #ifdef _MSC_VER
+ #define THROW_BAD_ALLOC
+@@ -448,15 +449,6 @@
+ );
+ }
+
+-inline void* operator new(size_t, void* ptr) throw()
+-{
+- return ptr;
+-}
+-inline void* operator new[](size_t, void* ptr) throw()
+-{
+- return ptr;
+-}
+-
+ inline void operator delete(void* mem) throw()
+ {
+ Firebird::MemoryPool::globalFree(mem);
diff --git a/databases/firebird21-server/files/pkg-install.in b/databases/firebird21-server/files/pkg-install.in
new file mode 100644
index 000000000000..ea7f4c85b705
--- /dev/null
+++ b/databases/firebird21-server/files/pkg-install.in
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+# $FreeBSD: /tmp/pcvs/ports/databases/firebird21-server/files/pkg-install.in,v 1.1 2010-12-20 09:05:05 acm Exp $
+
+PATH=/bin:/usr/bin:/usr/sbin
+
+case $2 in
+PRE-INSTALL)
+
+if [ `id -u` -ne 0 ]; then
+ echo; echo "You must be root to run this step!"; echo; echo
+ exit 1
+fi
+
+nofbuid=0
+fbUID=`id -u firebird 2>/dev/null`
+if [ $? -ne 0 ]; then
+ fbUID=90
+ while [ ! -z `id -un $fbUID 2>/dev/null` ]
+ do
+ fbUID=$(($fbUID+1))
+ done
+ nofbuid=1
+fi
+
+fbGID=`pw groupshow firebird 2>/dev/null`
+if [ $? -ne 0 ]; then
+ fbGID=90
+ while [ ! -z `id -gn $fbGID 2>/dev/null` ]
+ do
+ fbGID=$(($fbGID+1))
+ done
+ echo "firebird:*:$fbGID:" >> /etc/group
+else
+ fbGID=`echo $fbGID | awk -F: '{print $3}'`
+fi
+
+echo "firebird user using uid $fbUID"
+echo "firebird user using gid $fbGID"
+
+if which -s pw; then
+ if [ $nofbuid -ne 0 ]; then
+ pw useradd firebird -u $fbUID -g $fbGID -h - -s /usr/sbin/nologin \
+ -d /nonexistent -c "Firebird Database Administrator"
+ fi
+else
+ echo -n "unable to create user firebird - please create it manually,"
+ echo " before reinstalling this package."
+ exit 1
+fi
+;;
+
+POST-INSTALL)
+cd /var/db/firebird
+
+# Lock files
+
+for i in isc_init1 isc_lock1 isc_event1
+do
+ FileName=$i.`hostname`
+ touch $FileName
+ chmod uga=rw $FileName
+ chown firebird:firebird $FileName
+done
+
+touch firebird.log
+chown firebird:firebird firebird.log security2.fdb
+
+;;
+
+esac
diff --git a/databases/firebird21-server/files/pkg-message.in b/databases/firebird21-server/files/pkg-message.in
new file mode 100644
index 000000000000..3d098ff99886
--- /dev/null
+++ b/databases/firebird21-server/files/pkg-message.in
@@ -0,0 +1,27 @@
+###############################################################################
+
+Firebird was installed.
+
+1) Before start the server ensure that the following line exists in /etc/services:
+
+gds_db 3050/tcp #InterBase Database Remote Protocol
+
+2) If you use inetd then add the following line to /etc/inetd.conf
+
+gds_db stream tcp nowait firebird %%PREFIX%%/bin/fb_inet_server fb_inet_server
+
+And finally restart inetd.
+
+3) It is STRONGLY recommended that you change the SYSDBA
+password with:
+
+% gsec -user SYSDBA -pass masterkey
+GSEC> modify SYSDBA -pw newpassword
+GSEC> quit
+
+before doing anything serious with Firebird.
+
+4) See documentation in %%DOCSDIR%%/ for more information.
+5) Enjoy it ;)
+
+################################################################################