summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2007-12-04 23:59:55 +0000
committerWilliam Thomson <wltjr@gentoo.org>2007-12-04 23:59:55 +0000
commit19239c4edc50ff12764e6b663be0cca4edcddc0f (patch)
tree368a37c453893d0e545fe7e76d1c09c3e0b7c95a /dev-db
parentStable for HPPA (bug #201249). (diff)
downloadgentoo-2-19239c4edc50ff12764e6b663be0cca4edcddc0f.tar.gz
gentoo-2-19239c4edc50ff12764e6b663be0cca4edcddc0f.tar.bz2
gentoo-2-19239c4edc50ff12764e6b663be0cca4edcddc0f.zip
Switched from patches to sed for path changes w/ sed checks via function. Moved core from /usr/share/firebird -> /usr/lib/firebird since it contains arch specific binaries, per FHS. Renamed isql -> fbsql per bug #198388. Fixed missing path tweak for bug #198540. Removed past versions, should be all folks :)
(Portage version: 2.1.4_rc4)
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/firebird/ChangeLog17
-rw-r--r--dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r4 (renamed from dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r3)0
-rw-r--r--dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r2 (renamed from dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r1)0
-rw-r--r--dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch354
-rw-r--r--dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs.patch103
-rw-r--r--dev-db/firebird/files/firebird.conf.d4
-rw-r--r--dev-db/firebird/firebird-2.0.3.12981.0-r4.ebuild (renamed from dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild)97
-rw-r--r--dev-db/firebird/firebird-2.1.0.16780_beta2-r2.ebuild (renamed from dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild)102
8 files changed, 285 insertions, 392 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog
index 048e36e881e1..c2b6ec2c86d6 100644
--- a/dev-db/firebird/ChangeLog
+++ b/dev-db/firebird/ChangeLog
@@ -1,6 +1,21 @@
# ChangeLog for dev-db/firebird
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.82 2007/11/12 18:09:41 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.83 2007/12/04 23:59:54 wltjr Exp $
+
+*firebird-2.1.0.16780_beta2-r2 (04 Dec 2007)
+*firebird-2.0.3.12981.0-r4 (04 Dec 2007)
+
+ 04 Dec 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ +files/firebird-2.1.0.16780_beta2-deps-flags-libs.patch,
+ -files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch,
+ +files/firebird.conf.d, -firebird-2.0.3.12981.0-r3.ebuild,
+ +firebird-2.0.3.12981.0-r4.ebuild, -firebird-2.1.0.16780_beta2-r1.ebuild,
+ +firebird-2.1.0.16780_beta2-r2.ebuild:
+ Switched from patches to sed for path changes w/ sed checks via function.
+ Moved core from /usr/share/firebird -> /usr/lib/firebird since it contains
+ arch specific binaries, per FHS. Renamed isql -> fbsql per bug #198388.
+ Fixed missing path tweak for bug #198540. Removed past versions, should be
+ all folks :)
12 Nov 2007; William L. Thomson Jr. <wltjr@gentoo.org>
-files/firebird.conf.d, -files/firebird.init.d, -files/firebird.xinetd,
diff --git a/dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r3 b/dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r4
index 9d8d28d4fe6b..9d8d28d4fe6b 100644
--- a/dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r3
+++ b/dev-db/firebird/files/digest-firebird-2.0.3.12981.0-r4
diff --git a/dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r1 b/dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r2
index f63a1165d43f..f63a1165d43f 100644
--- a/dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r1
+++ b/dev-db/firebird/files/digest-firebird-2.1.0.16780_beta2-r2
diff --git a/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch b/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch
deleted file mode 100644
index de9459cc797f..000000000000
--- a/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs-paths.patch
+++ /dev/null
@@ -1,354 +0,0 @@
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/Makefile.in.firebird Firebird-2.1.0.16780-Beta2/builds/posix/Makefile.in.firebird
---- Firebird-2.1.0.16780-Beta2_orig/builds/posix/Makefile.in.firebird 2007-10-19 11:11:36.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/builds/posix/Makefile.in.firebird 2007-10-19 11:20:01.000000000 -0400
-@@ -185,14 +185,14 @@
- #
-
- 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
--endif
--endif
-+#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
-+#endif
-+#endif
-
- btyacc_binary: $(BTYACC)
-
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.defaults Firebird-2.1.0.16780-Beta2/builds/posix/make.defaults
---- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.defaults 2007-10-19 11:11:36.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/builds/posix/make.defaults 2007-10-19 12:31:50.000000000 -0400
-@@ -229,11 +229,11 @@
- LIBFBSTATIC_A = $(LIB)/libfbstatic.a
-
- ifeq ($(EDITLINE_FLG),Y)
-- ifeq ($(STD_EDITLINE), true)
-- LIBEDITLINE := -leditline
-- else
-- LIBEDITLINE := $(LIB)/libeditline.a
-- endif
-+# ifeq ($(STD_EDITLINE), true)
-+ LIBEDITLINE := -ledit
-+# else
-+# LIBEDITLINE := $(LIB)/libeditline.a
-+# endif
- endif
-
- LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc.$(SHRLIB_EXT) \
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.rules Firebird-2.1.0.16780-Beta2/builds/posix/make.rules
---- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.rules 2007-10-19 11:11:36.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/builds/posix/make.rules 2007-10-19 11:30:08.000000000 -0400
-@@ -33,9 +33,9 @@
-
- # 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
-+#ifeq ($(STD_ICU),false)
-+# CFLAGS:= $(CFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n
-+#endif
-
- ifeq ($(IsProdTypeBuild),Y)
- CFLAGS:= $(CFLAGS) $(PROD_FLAGS) -DPROD_BUILD
-@@ -69,19 +69,19 @@
-
- .SUFFIXES: .c .e .epp .cpp
-
--.e.c:
-+.e.c: $(GPRE_CURRENT)
- $(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
-
-
--.epp.cpp:
-+.epp.cpp: $(GPRE_CURRENT)
- $(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
-
-
--$(SRC_ROOT)/jrd/%.cpp:: $(SRC_ROOT)/jrd/%.epp
-+$(SRC_ROOT)/jrd/%.cpp:: $(SRC_ROOT)/jrd/%.epp $(GPRE_CURRENT)
- $(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
-
-
--$(SRC_ROOT)/dsql/%.cpp:: $(SRC_ROOT)/dsql/%.epp
-+$(SRC_ROOT)/dsql/%.cpp:: $(SRC_ROOT)/dsql/%.epp $(GPRE_CURRENT)
- $(GPRE_CURRENT) $(DSQL_GPRE_FLAGS) $< $@
-
-
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.shared.targets Firebird-2.1.0.16780-Beta2/builds/posix/make.shared.targets
---- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.shared.targets 2007-10-19 11:11:36.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/builds/posix/make.shared.targets 2007-10-19 11:28:58.000000000 -0400
-@@ -49,7 +49,7 @@
-
- # gpre_meta needs a special boot build since there is no database.
-
--$(SRC_ROOT)/gpre/gpre_meta.cpp: $(SRC_ROOT)/gpre/gpre_meta.epp
-+$(SRC_ROOT)/gpre/gpre_meta.cpp: $(SRC_ROOT)/gpre/gpre_meta.epp $(GPRE_BOOT)
- $(GPRE_BOOT) -lang_internal $(GPRE_FLAGS) $< $@
-
-
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/prefix.linux Firebird-2.1.0.16780-Beta2/builds/posix/prefix.linux
---- Firebird-2.1.0.16780-Beta2_orig/builds/posix/prefix.linux 2007-10-19 11:11:36.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/builds/posix/prefix.linux 2007-11-05 21:31:20.000000000 -0500
-@@ -21,11 +21,10 @@
- # -fno-builtin is used because GCC 3.0-3.2.2 had bug with builtins expansion
- # you may remove it if engine is getting compiled with any other GCC version
-
--COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0
--OPTIMIZE_FLAGS=-O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin
-+COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC
- WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable
-
--PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS)
-+PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS)
- DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS)
- #DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS)
-
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/configure Firebird-2.1.0.16780-Beta2/configure
---- Firebird-2.1.0.16780-Beta2_orig/configure 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/configure 2007-10-19 11:26:19.000000000 -0400
-@@ -3928,13 +3928,13 @@
- # not need editline in default libs, but need to test for its presence
- saveLIBS=$LIBS
- if test "$STD_EDITLINE" = "true"; then
-- { echo "$as_me:$LINENO: checking for readline in -leditline" >&5
--echo $ECHO_N "checking for readline in -leditline... $ECHO_C" >&6; }
-+ { echo "$as_me:$LINENO: checking for readline in -ledit" >&5
-+echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6; }
- if test "${ac_cv_lib_editline_readline+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
--LIBS="-leditline $LIBS"
-+LIBS="-ledit $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/jrd/db_alias.cpp Firebird-2.1.0.16780-Beta2/src/jrd/db_alias.cpp
---- Firebird-2.1.0.16780-Beta2_orig/src/jrd/db_alias.cpp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/jrd/db_alias.cpp 2007-10-19 11:31:25.000000000 -0400
-@@ -28,7 +28,7 @@
-
- typedef Firebird::PathName string;
-
--const char* ALIAS_FILE = "aliases.conf";
-+const char* ALIAS_FILE = "../../../etc/firebird/aliases.conf";
-
- static void replace_dir_sep(string& s)
- {
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/jrd/file_params.h Firebird-2.1.0.16780-Beta2/src/jrd/file_params.h
---- Firebird-2.1.0.16780-Beta2_orig/src/jrd/file_params.h 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/jrd/file_params.h 2007-10-19 11:35:32.000000000 -0400
-@@ -38,11 +38,11 @@
- const int EVENT_SEMAPHORES = 1;
-
- #ifdef NOHOSTNAME
--static const char* EVENT_FILE = "isc_event1";
--static const char* LOCK_FILE = "isc_lock1.gbl";
--static const char* INIT_FILE = "isc_init1";
--static const char* GUARD_FILE = "isc_guard1";
--static const char* MONITOR_FILE = "isc_monitor1";
-+static const char* EVENT_FILE = "../../../var/run/firebird/isc_event1";
-+static const char* LOCK_FILE = "../../../var/run/firebird/isc_lock1.gbl";
-+static const char* INIT_FILE = "../../../var/run/firebird/isc_init1";
-+static const char* GUARD_FILE = "../../../var/run/firebird/isc_guard1";
-+static const char* MONITOR_FILE = "../../../var/run/firebird/isc_monitor1";
- #elif defined(VMS)
- static const char* EVENT_FILE = "[000000]isc_event1.%s";
- static const char* LOCK_FILE = "[000000]isc_lock1.%s";
-@@ -56,11 +56,11 @@
- static const char* GUARD_FILE = "%s.grd";
- static const char* MONITOR_FILE = "%s.mon";
- #else
--static const char* EVENT_FILE = "isc_event1.%s";
--static const char* LOCK_FILE = "isc_lock1.%s";
--static const char* INIT_FILE = "isc_init1.%s";
--static const char* GUARD_FILE = "isc_guard1.%s";
--static const char* MONITOR_FILE = "isc_monitor1.%s";
-+static const char* EVENT_FILE = "../../../var/run/firebird/isc_event1.%s";
-+static const char* LOCK_FILE = "../../../var/run/firebird/isc_lock1.%s";
-+static const char* INIT_FILE = "../../../var/run/firebird/isc_init1.%s";
-+static const char* GUARD_FILE = "../../../var/run/firebird/isc_guard1.%s";
-+static const char* MONITOR_FILE = "../../../var/run/firebird/isc_monitor1.%s";
- #endif
-
- #ifdef sun
-@@ -91,7 +91,7 @@
- static const char* MSG_FILE = "firebird.msg";
- static const char MSG_FILE_LANG[]= "intl/%.10s.msg";
- const int LOCALE_MAX = 10;
--static const char* LOGFILE = "firebird.log";
-+static const char* LOGFILE = "../../../var/log/firebird/firebird.log";
- #elif defined(WIN_NT)
- static const char* WORKFILE = "c:\\temp\\";
- static const char* MSG_FILE = "firebird.msg";
-@@ -130,7 +130,7 @@
- static const char* MSG_FILE = "firebird.msg";
- static const char MSG_FILE_LANG[]= "intl/%.10s.msg";
- const int LOCALE_MAX = 10;
--static const char* LOGFILE = "firebird.log";
-+static const char* LOGFILE = "../../../var/log/firebird/firebird.log";
- #endif
-
- #endif /* JRD_FILE_PARAMS_H */
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/jrd/jrd_pwd.h Firebird-2.1.0.16780-Beta2/src/jrd/jrd_pwd.h
---- Firebird-2.1.0.16780-Beta2_orig/src/jrd/jrd_pwd.h 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/jrd/jrd_pwd.h 2007-10-19 11:36:14.000000000 -0400
-@@ -57,7 +57,7 @@
- #ifdef VMS
- "[sysmgr]security2.fdb";
- #else
-- "security2.fdb";
-+ "../../../etc/firebird/security2.fdb";
- #endif
-
- gds__prefix(path_buffer, USER_INFO_NAME);
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/jrd/os/config_root.h Firebird-2.1.0.16780-Beta2/src/jrd/os/config_root.h
---- Firebird-2.1.0.16780-Beta2_orig/src/jrd/os/config_root.h 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/jrd/os/config_root.h 2007-10-19 11:37:36.000000000 -0400
-@@ -33,7 +33,7 @@
- #include "../jrd/os/path_utils.h"
- #include "../common/utils_proto.h"
-
--static const char* CONFIG_FILE = "firebird.conf";
-+static const char* CONFIG_FILE = "../../../etc/firebird/firebird.conf";
-
- /**
- Since the original (isc.cpp) code wasn't able to provide powerful and
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/jrd/svc.cpp Firebird-2.1.0.16780-Beta2/src/jrd/svc.cpp
---- Firebird-2.1.0.16780-Beta2_orig/src/jrd/svc.cpp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/jrd/svc.cpp 2007-10-19 11:44:43.000000000 -0400
-@@ -445,38 +445,38 @@
- static serv_entry services[] =
- {
-
-- { isc_action_max, "print_cache", "-svc", "bin/fb_cache_print", NULL, 0 },
-- { isc_action_max, "print_locks", "-svc", "bin/fb_lock_print", NULL, 0 },
-- { isc_action_max, "start_cache", "-svc", "bin/fb_cache_manager", NULL, 0 },
-- { isc_action_max, "analyze_database", "-svc", "bin/gstat", NULL, 0 },
-- { isc_action_max, "backup", "-svc -b", "bin/gbak", MAIN_GBAK, 0 },
-- { isc_action_max, "create", "-svc -c", "bin/gbak", MAIN_GBAK, 0 },
-- { isc_action_max, "restore", "-svc -r", "bin/gbak", MAIN_GBAK, 0 },
-- { isc_action_max, "gdef", "-svc", "bin/gdef", NULL, 0 },
-- { isc_action_max, "gsec", "-svc", "bin/gsec", NULL, 0 },
-- { isc_action_max, "disable_journal", "-svc -disable", "bin/gjrn", NULL, 0 },
-- { isc_action_max, "dump_journal", "-svc -online_dump", "bin/gjrn", NULL, 0 },
-- { isc_action_max, "enable_journal", "-svc -enable", "bin/gjrn", NULL, 0 },
-- { isc_action_max, "monitor_journal", "-svc -console", "bin/gjrn", NULL, 0 },
-+ { isc_action_max, "print_cache", "-svc", "../../../usr/bin/fb_cache_print", NULL, 0 },
-+ { isc_action_max, "print_locks", "-svc", "../../../usr/bin/fb_lock_print", NULL, 0 },
-+ { isc_action_max, "start_cache", "-svc", "../../../usr/bin/fb_cache_manager", NULL, 0 },
-+ { isc_action_max, "analyze_database", "-svc", "../../../usr/bin/gstat", NULL, 0 },
-+ { isc_action_max, "backup", "-svc -b", "../../../usr/bin/gbak", MAIN_GBAK, 0 },
-+ { isc_action_max, "create", "-svc -c", "../../../usr/bin/gbak", MAIN_GBAK, 0 },
-+ { isc_action_max, "restore", "-svc -r", "../../../usr/bin/gbak", MAIN_GBAK, 0 },
-+ { isc_action_max, "gdef", "-svc", "../../../usr/bin/gdef", NULL, 0 },
-+ { isc_action_max, "gsec", "-svc", "../../../usr/bin/gsec", NULL, 0 },
-+ { isc_action_max, "disable_journal", "-svc -disable", "../../../usr/bin/gjrn", NULL, 0 },
-+ { isc_action_max, "dump_journal", "-svc -online_dump", "../../../usr/bin/gjrn", NULL, 0 },
-+ { isc_action_max, "enable_journal", "-svc -enable", "../../../usr/bin/gjrn", NULL, 0 },
-+ { isc_action_max, "monitor_journal", "-svc -console", "../../../usr/bin/gjrn", NULL, 0 },
- { isc_action_max, "query_server", NULL, NULL, NULL, 0 },
-- { isc_action_max, "start_journal", "-svc -server", "bin/gjrn", NULL, 0 },
-- { isc_action_max, "stop_cache", "-svc -shut -cache", "bin/gfix", NULL, 0 },
-- { isc_action_max, "stop_journal", "-svc -console", "bin/gjrn", NULL, 0 },
-+ { isc_action_max, "start_journal", "-svc -server", "../../../usr/bin/gjrn", NULL, 0 },
-+ { isc_action_max, "stop_cache", "-svc -shut -cache", "../../../usr/bin/gfix", NULL, 0 },
-+ { isc_action_max, "stop_journal", "-svc -console", "../../../usr/bin/gjrn", NULL, 0 },
- { isc_action_max, "anonymous", NULL, NULL, NULL, 0 },
-
- /* NEW VERSION 2 calls, the name field MUST be different from those names above
- */
- { isc_action_max, "service_mgr", NULL, NULL, NULL, 0 },
-- { isc_action_svc_backup, "Backup Database", NULL, "bin/gbak", MAIN_GBAK, 0 },
-- { isc_action_svc_restore, "Restore Database", NULL, "bin/gbak", MAIN_GBAK, 0 },
-- { isc_action_svc_repair, "Repair Database", NULL, "bin/gfix", MAIN_GFIX, 0 },
-- { isc_action_svc_add_user, "Add User", NULL, "bin/gsec", MAIN_GSEC, 0 },
-- { isc_action_svc_delete_user, "Delete User", NULL, "bin/gsec", MAIN_GSEC, 0 },
-- { isc_action_svc_modify_user, "Modify User", NULL, "bin/gsec", MAIN_GSEC, 0 },
-- { isc_action_svc_display_user, "Display User", NULL, "bin/gsec", MAIN_GSEC, 0 },
-- { isc_action_svc_properties, "Database Properties", NULL, "bin/gfix", MAIN_GFIX, 0 },
-- { isc_action_svc_lock_stats, "Lock Stats", NULL, "bin/fb_lock_print", TEST_THREAD, 0 },
-- { isc_action_svc_db_stats, "Database Stats", NULL, "bin/gstat", MAIN_GSTAT, 0 },
-+ { isc_action_svc_backup, "Backup Database", NULL, "../../../usr/bin/gbak", MAIN_GBAK, 0 },
-+ { isc_action_svc_restore, "Restore Database", NULL, "../../../usr/bin/gbak", MAIN_GBAK, 0 },
-+ { isc_action_svc_repair, "Repair Database", NULL, "../../../usr/bin/gfix", MAIN_GFIX, 0 },
-+ { isc_action_svc_add_user, "Add User", NULL, "../../../usr/bin/gsec", MAIN_GSEC, 0 },
-+ { isc_action_svc_delete_user, "Delete User", NULL, "../../../usr/bin/gsec", MAIN_GSEC, 0 },
-+ { isc_action_svc_modify_user, "Modify User", NULL, "../../../usr/bin/gsec", MAIN_GSEC, 0 },
-+ { isc_action_svc_display_user, "Display User", NULL, "../../../usr/bin/gsec", MAIN_GSEC, 0 },
-+ { isc_action_svc_properties, "Database Properties", NULL, "../../../usr/bin/gfix", MAIN_GFIX, 0 },
-+ { isc_action_svc_lock_stats, "Lock Stats", NULL, "../../../usr/bin/fb_lock_print", TEST_THREAD, 0 },
-+ { isc_action_svc_db_stats, "Database Stats", NULL, "../../../usr/bin/gstat", MAIN_GSTAT, 0 },
- { isc_action_svc_get_fb_log, "Get Log File", NULL, NULL, SVC_read_fb_log, 0 },
- /* actions with no names are undocumented */
- { isc_action_svc_set_config, NULL, NULL, NULL, TEST_THREAD, 0 },
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/utilities/fbcpl/fbdialog.cpp Firebird-2.1.0.16780-Beta2/src/utilities/fbcpl/fbdialog.cpp
---- Firebird-2.1.0.16780-Beta2_orig/src/utilities/fbcpl/fbdialog.cpp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/utilities/fbcpl/fbdialog.cpp 2007-10-19 11:51:22.000000000 -0400
-@@ -1367,7 +1367,7 @@
- bool CFBDialog::UpdateFirebirdConf(CString option, CString value)
- {
- CStdioFile FbConfFile, FbConfFileNew;
-- CString FirebirdConfFilename = m_Root_Path + "firebird.conf";
-+ CString FirebirdConfFilename = "../../../etc/firebird/firebird.conf";
- CString FirebirdConfNewname = FirebirdConfFilename + ".new";
- CString FirebirdConfOldname = FirebirdConfFilename + ".old";
- CString FirebirdConfLine = "";
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/utilities/gsec/security.epp Firebird-2.1.0.16780-Beta2/src/utilities/gsec/security.epp
---- Firebird-2.1.0.16780-Beta2_orig/src/utilities/gsec/security.epp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/utilities/gsec/security.epp 2007-10-19 11:51:56.000000000 -0400
-@@ -41,7 +41,7 @@
- #endif
- #include "../common/utils_proto.h"
-
--DATABASE DB = STATIC FILENAME "security2.fdb";
-+DATABASE DB = STATIC FILENAME "../../../etc/firebird/security2.fdb";
-
- static const char* SYSDBA_USER_NAME = "SYSDBA";
-
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/utilities/guard/guard.cpp Firebird-2.1.0.16780-Beta2/src/utilities/guard/guard.cpp
---- Firebird-2.1.0.16780-Beta2_orig/src/utilities/guard/guard.cpp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/utilities/guard/guard.cpp 2007-10-19 11:52:29.000000000 -0400
-@@ -59,7 +59,7 @@
- const USHORT IGNORE = 3;
- const USHORT NORMAL_EXIT= 0;
-
--const char* SUPER_SERVER_BINARY = "bin/fbserver";
-+const char* SUPER_SERVER_BINARY = "../../../usr/bin/fbserver";
-
- const char* INTERBASE_USER = "interbase";
- const char* FIREBIRD_USER = "firebird";
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/utilities/ibmgr/ibmgr.h Firebird-2.1.0.16780-Beta2/src/utilities/ibmgr/ibmgr.h
---- Firebird-2.1.0.16780-Beta2_orig/src/utilities/ibmgr/ibmgr.h 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/utilities/ibmgr/ibmgr.h 2007-10-19 11:52:56.000000000 -0400
-@@ -31,7 +31,7 @@
- static const char* FIREBIRD_USER_NAME = "firebird";
- static const char* INTERBASE_USER_NAME = "interbase";
- static const char* INTERBASE_USER_SHORT= "interbas";
--static const char* SERVER_GUARDIAN = "bin/fbguard";
-+static const char* SERVER_GUARDIAN = "../../../usr/bin/fbguard";
-
- const USHORT MSG_FAC = 18;
- const int MSG_LEN = 128;
-diff -Naur Firebird-2.1.0.16780-Beta2_orig/src/utilities/ibmgr/srvrmgr.cpp Firebird-2.1.0.16780-Beta2/src/utilities/ibmgr/srvrmgr.cpp
---- Firebird-2.1.0.16780-Beta2_orig/src/utilities/ibmgr/srvrmgr.cpp 2007-10-19 11:11:39.000000000 -0400
-+++ Firebird-2.1.0.16780-Beta2/src/utilities/ibmgr/srvrmgr.cpp 2007-10-19 11:53:32.000000000 -0400
-@@ -272,7 +272,7 @@
- rs = "can not quit now, use shut -ign";
- break;
- case MSG_STARTERR:
-- rs = "check $FIREBIRD/firebird.log file for errors";
-+ rs = "check /var/log/firebird/firebird.log file for errors";
- break;
- case MSG_STARTFAIL:
- rs = "can not start server";
diff --git a/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs.patch b/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs.patch
new file mode 100644
index 000000000000..661b95acaeba
--- /dev/null
+++ b/dev-db/firebird/files/firebird-2.1.0.16780_beta2-deps-flags-libs.patch
@@ -0,0 +1,103 @@
+diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/Makefile.in.firebird Firebird-2.1.0.16780-Beta2/builds/posix/Makefile.in.firebird
+--- Firebird-2.1.0.16780-Beta2_orig/builds/posix/Makefile.in.firebird 2007-11-14 13:22:07.000000000 -0500
++++ Firebird-2.1.0.16780-Beta2/builds/posix/Makefile.in.firebird 2007-11-14 13:43:55.000000000 -0500
+@@ -185,14 +185,7 @@
+ #
+
+ 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
+-endif
+-endif
++
+
+ btyacc_binary: $(BTYACC)
+
+--- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.defaults 2007-11-14 13:22:07.000000000 -0500
++++ Firebird-2.1.0.16780-Beta2/builds/posix/make.defaults 2007-11-14 13:44:39.000000000 -0500
+@@ -229,11 +229,7 @@
+ LIBFBSTATIC_A = $(LIB)/libfbstatic.a
+
+ ifeq ($(EDITLINE_FLG),Y)
+- ifeq ($(STD_EDITLINE), true)
+- LIBEDITLINE := -leditline
+- else
+- LIBEDITLINE := $(LIB)/libeditline.a
+- endif
++ LIBEDITLINE := -ledit
+ endif
+
+ LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc.$(SHRLIB_EXT) \
+diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.rules Firebird-2.1.0.16780-Beta2/builds/posix/make.rules
+--- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.rules 2007-11-14 13:22:07.000000000 -0500
++++ Firebird-2.1.0.16780-Beta2/builds/posix/make.rules 2007-11-14 14:30:13.000000000 -0500
+@@ -33,9 +33,6 @@
+
+ # 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
+
+ ifeq ($(IsProdTypeBuild),Y)
+ CFLAGS:= $(CFLAGS) $(PROD_FLAGS) -DPROD_BUILD
+@@ -69,19 +66,19 @@
+
+ .SUFFIXES: .c .e .epp .cpp
+
+-.e.c:
++.e.c: $(GPRE_CURRENT)
+ $(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
+
+
+-.epp.cpp:
++.epp.cpp: $(GPRE_CURRENT)
+ $(GPRE_CURRENT) $(GPRE_FLAGS) $< $@
+
+
+-$(SRC_ROOT)/jrd/%.cpp:: $(SRC_ROOT)/jrd/%.epp
++$(SRC_ROOT)/jrd/%.cpp:: $(SRC_ROOT)/jrd/%.epp $(GPRE_CURRENT)
+ $(GPRE_CURRENT) $(JRD_GPRE_FLAGS) $< $@
+
+
+-$(SRC_ROOT)/dsql/%.cpp:: $(SRC_ROOT)/dsql/%.epp
++$(SRC_ROOT)/dsql/%.cpp:: $(SRC_ROOT)/dsql/%.epp $(GPRE_CURRENT)
+ $(GPRE_CURRENT) $(DSQL_GPRE_FLAGS) $< $@
+
+
+diff -Naur Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.shared.targets Firebird-2.1.0.16780-Beta2/builds/posix/make.shared.targets
+--- Firebird-2.1.0.16780-Beta2_orig/builds/posix/make.shared.targets 2007-11-14 13:22:07.000000000 -0500
++++ Firebird-2.1.0.16780-Beta2/builds/posix/make.shared.targets 2007-11-14 13:46:49.000000000 -0500
+@@ -49,7 +49,7 @@
+
+ # gpre_meta needs a special boot build since there is no database.
+
+-$(SRC_ROOT)/gpre/gpre_meta.cpp: $(SRC_ROOT)/gpre/gpre_meta.epp
++$(SRC_ROOT)/gpre/gpre_meta.cpp: $(SRC_ROOT)/gpre/gpre_meta.epp $(GPRE_BOOT)
+ $(GPRE_BOOT) -lang_internal $(GPRE_FLAGS) $< $@
+
+
+diff -Naur Firebird-2.1.0.16780-Beta2_orig/configure Firebird-2.1.0.16780-Beta2/configure
+--- Firebird-2.1.0.16780-Beta2_orig/configure 2007-11-14 13:22:15.000000000 -0500
++++ Firebird-2.1.0.16780-Beta2/configure 2007-11-14 13:48:51.000000000 -0500
+@@ -3928,13 +3928,13 @@
+ # not need editline in default libs, but need to test for its presence
+ saveLIBS=$LIBS
+ if test "$STD_EDITLINE" = "true"; then
+- { echo "$as_me:$LINENO: checking for readline in -leditline" >&5
+-echo $ECHO_N "checking for readline in -leditline... $ECHO_C" >&6; }
++ { echo "$as_me:$LINENO: checking for readline in -ledit" >&5
++echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6; }
+ if test "${ac_cv_lib_editline_readline+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-leditline $LIBS"
++LIBS="-ledit $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
diff --git a/dev-db/firebird/files/firebird.conf.d b/dev-db/firebird/files/firebird.conf.d
new file mode 100644
index 000000000000..3c1e72a55eba
--- /dev/null
+++ b/dev-db/firebird/files/firebird.conf.d
@@ -0,0 +1,4 @@
+ISC_USER=SYSDBA
+ISC_PASSWORD=masterke
+FIREBIRD=/usr/lib/firebird
+FBRunUser=firebird
diff --git a/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild b/dev-db/firebird/firebird-2.0.3.12981.0-r4.ebuild
index 23eec1a70849..b0ff66478d57 100644
--- a/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild
+++ b/dev-db/firebird/firebird-2.0.3.12981.0-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r3.ebuild,v 1.3 2007/11/09 15:21:43 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r4.ebuild,v 1.1 2007/12/04 23:59:54 wltjr Exp $
inherit flag-o-matic eutils autotools versionator
@@ -28,7 +28,13 @@ S="${WORKDIR}/${MY_P}"
pkg_setup() {
enewgroup firebird 450
- enewuser firebird 450 /bin/bash /usr/share/firebird firebird
+ enewuser firebird 450 /bin/bash /usr/lib/firebird firebird
+}
+
+function check_sed() {
+ MSG="sed of $3, required $2 lines modified $1"
+ einfo "${MSG}"
+ [[ $1 -ge $2 ]] || die "${MSG}"
}
src_unpack() {
@@ -42,19 +48,68 @@ src_unpack() {
unpack "${MY_P}.tar.bz2"
+ # compile time relative path hacks, ew :(
mkdir -p "${WORKDIR}/../etc" \
"${WORKDIR}/usr" \
"${WORKDIR}/var/log/firebird" \
"${WORKDIR}/var/run/firebird"
- cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
- cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird
+ cd "${WORKDIR}/usr"; ln -s "${S}/gen/firebird/bin"
+ cd "${WORKDIR}/../etc"; ln -s "${S}/gen/firebird" firebird
cd "${S}"
- epatch "${FILESDIR}/${P}-flags.patch"
epatch "${FILESDIR}/${P}-external-libs.patch"
+ epatch "${FILESDIR}/${P}-flags.patch"
epatch "${FILESDIR}/${P}-make-deps.patch"
- epatch "${FILESDIR}/${P}-paths.patch"
+
+ einfo "Split up Firebird via relative path hacks"
+ # sed vs patch for portability and addtional location changes
+ # based on FIREBIRD=/usr/lib/firebird
+ check_sed "$(sed -i -e 's:"aliases.conf":"../../../etc/firebird/aliases.conf":w /dev/stdout' \
+ src/jrd/db_alias.cpp | wc -l )" "1" "src/jrd/db_alias.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"isc_event1:"../../../var/run/firebird/isc_event1:w /dev/stdout' \
+ -e 's:"isc_lock1:"../../../var/run/firebird/isc_lock1:w /dev/stdout' \
+ -e 's:"isc_init1:"../../../var/run/firebird/isc_init1:w /dev/stdout' \
+ -e 's:"isc_config:"../../../var/run/firebird/isc_config:w /dev/stdout' \
+ -e 's:"isc_guard1:"../../../var/run/firebird/isc_guard1:w /dev/stdout' \
+ -e 's:"firebird.log":"../../../var/log/firebird/firebird.log":w /dev/stdout' \
+ -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/jrd/file_params.h | wc -l)" "14" "src/jrd/file_params.h" # 14 lines
+ check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/jrd/jrd_pwd.h | wc -l)" "1" "src/jrd/jrd_pwd.h" # 1 line
+ check_sed "$(sed -i -e 's:"firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
+ src/jrd/os/config_root.h | wc -l)" "1" "src/jrd/os/config_root.h" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fb_cache_print":"../../../usr/bin/fb_cache_print":w /dev/stdout' \
+ -e 's:"bin/fb_lock_print":"../../../usr/bin/fb_lock_print":w /dev/stdout' \
+ -e 's:"bin/fb_cache_manager":"../../../usr/bin/fb_cache_manager":w /dev/stdout' \
+ -e 's:"bin/gstat":"../../../usr/bin/gstat":w /dev/stdout' \
+ -e 's:"bin/gbak":"../../../usr/bin/gbak":w /dev/stdout' \
+ -e 's:"bin/gdef":"../../../usr/bin/gdef":w /dev/stdout' \
+ -e 's:"bin/gsec":"../../../usr/bin/gsec":w /dev/stdout' \
+ -e 's:"bin/gjrn":"../../../usr/bin/gjrn":w /dev/stdout' \
+ -e 's:"bin/gfix":"../../../usr/bin/gfix":w /dev/stdout' \
+ src/jrd/svc.cpp | wc -l)" "26" "src/jrd/svc.cpp" # 26 lines
+ check_sed "$(sed -i -e 's:"bin/fb_lock_mgr":"../../../usr/bin/fb_lock_mgr":w /dev/stdout' \
+ src/lock/lock.cpp | wc -l)" "1" "src/lock/lock.cpp" # 1 line
+ check_sed "$(sed -i -e 's:m_Root_Path + "firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
+ src/utilities/fbcpl/fbdialog.cpp | wc -l)" "1" "src/utilities/fbcpl/fbdialog.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/utilities/gsec/security.epp | wc -l)" "1" "src/utilities/gsec/security.epp" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fbserver":"../../../usr/bin/fbserver":w /dev/stdout' \
+ src/utilities/guard/guard.cpp | wc -l)" "1" "src/utilities/guard/guard.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fbguard":"../../../usr/bin/fbguard":w /dev/stdout' \
+ src/utilities/ibmgr/ibmgr.h | wc -l)" "1" "src/utilities/ibmgr/ibmgr.h" # 1 line
+ check_sed "$(sed -i -e 's:$FIREBIRD/firebird.log:/var/log/firebird/firebird.log:w /dev/stdout' \
+ src/utilities/ibmgr/srvrmgr.cpp | wc -l)" "1" "src/utilities/ibmgr/srvrmgr.cpp" # 1 line
+
+ # Rename references to isql to fbsql
+ check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \
+ src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
+ src/msgs/history.sql | wc -l)" "4" "src/msgs/history.sql" # 4 lines
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
+ -e 's:ISQL :FBSQL :w /dev/stdout' \
+ src/msgs/messages.sql | wc -l)" "4" "src/msgs/messages.sql" # 4 lines
find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
rm -rf "${S}"/extern/{editline,icu}
@@ -66,7 +121,7 @@ src_compile() {
filter-flags -fprefetch-loop-arrays
filter-mfpmath sse
- econf --prefix=/usr/share/firebird --with-editline \
+ econf --prefix=/usr/lib/firebird --with-editline \
$(use_enable !xinetd superserver) \
$(use_enable debug) \
${myconf} || die "econf failed"
@@ -77,10 +132,13 @@ src_install() {
cd "${S}/gen/firebird"
# Seems to be ignored?
-# insinto /usr/share/firebird/bin
-# dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
+ insinto /usr/share/firebird/bin
+ dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
rm bin/*.sh || die "Could not remove *sh files"
+ einfo "Renaming isql -> fbsql"
+ mv bin/isql bin/fbsql
+
insinto /usr/bin
dobin bin/*
@@ -91,10 +149,10 @@ src_install() {
dolib.so lib/*.so*
dolib.a lib/*.a*
- insinto /usr/share/firebird
+ insinto /usr/lib/firebird
doins *.msg
- insinto /usr/share/firebird/help
+ insinto /usr/lib/firebird/help
doins help/help.fdb
insinto /usr/share/firebird/upgrade
@@ -107,13 +165,13 @@ src_install() {
insopts -m0660 -o firebird -g firebird
doins security2.fdb
- exeinto /usr/share/firebird/UDF
+ exeinto /usr/lib/firebird/UDF
doexe UDF/*.so
- exeinto /usr/share/firebird/intl
- newexe intl/libfbintl.so fbintl
+ exeinto /usr/lib/firebird/intl
+ newexe intl/libfbintl.so fbintl.so
- insinto /usr/share/firebird/intl
+ insinto /usr/lib/firebird/intl
doins ../install/misc/fbintl.conf
diropts -m 755 -o firebird -g firebird
@@ -133,7 +191,7 @@ src_install() {
newins "${FILESDIR}/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed"
else
newinitd "${FILESDIR}/${PN}.init.d.2" ${PN}
- newconfd "${FILESDIR}/firebird.conf.d.2" ${PN}
+ newconfd "${FILESDIR}/firebird.conf.d" ${PN}
fperms 640 /etc/conf.d/firebird
fi
doenvd "${FILESDIR}/70${PN}"
@@ -149,13 +207,14 @@ src_install() {
pkg_postinst() {
# Hack to fix ownership/perms
- chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/share/firebird"
+ chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/lib/firebird"
chmod 750 "${ROOT}/etc/firebird"
elog
elog "Firebird is no longer installed in /opt. Binaries are in"
- elog "/usr/bin. The core, udfs, etc are in /usr/share/firebird. Logs"
+ elog "/usr/bin. The core, udfs, etc are in /usr/lib/firebird. Logs"
elog "are in /var/log/firebird, and lock files in /var/run/firebird"
+ elog "The command line tool isql has been renamed to fbsql."
elog "Please report any problems or issues to bugs.gentoo.org."
elog
}
@@ -210,5 +269,5 @@ pkg_config() {
fi
einfo "If you're using UDFs, please remember to move them"
- einfo "to /usr/share/firebird/UDF"
+ einfo "to /usr/lib/firebird/UDF"
}
diff --git a/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild b/dev-db/firebird/firebird-2.1.0.16780_beta2-r2.ebuild
index f722a64327af..7b413658a372 100644
--- a/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild
+++ b/dev-db/firebird/firebird-2.1.0.16780_beta2-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2-r1.ebuild,v 1.3 2007/11/09 15:21:43 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.0.16780_beta2-r2.ebuild,v 1.1 2007/12/04 23:59:54 wltjr Exp $
inherit flag-o-matic eutils autotools versionator
@@ -29,7 +29,13 @@ S="${WORKDIR}/${MY_P}"
pkg_setup() {
enewgroup firebird 450
- enewuser firebird 450 /bin/bash /usr/share/firebird firebird
+ enewuser firebird 450 /bin/bash /usr/lib/firebird firebird
+}
+
+function check_sed() {
+ MSG="sed of $3, required $2 lines modified $1"
+ einfo "${MSG}"
+ [[ $1 -ge $2 ]] || die "${MSG}"
}
src_unpack() {
@@ -43,16 +49,72 @@ src_unpack() {
unpack "${MY_P}.tar.bz2"
+ # compile time relative path hacks, ew :(
mkdir -p "${WORKDIR}/../etc" \
"${WORKDIR}/usr" \
"${WORKDIR}/var/log/firebird" \
"${WORKDIR}/var/run/firebird"
- cd "${WORKDIR}/usr"; ln -s "${WORKDIR}/${MY_P}/gen/firebird/bin"
- cd "${WORKDIR}/../etc"; ln -s "${WORKDIR}/${MY_P}/gen/firebird" firebird
+ cd "${WORKDIR}/usr"; ln -s "${S}/gen/firebird/bin"
+ cd "${WORKDIR}/../etc"; ln -s "${S}/gen/firebird" firebird
cd "${S}"
- epatch "${FILESDIR}/${P}-deps-flags-libs-paths.patch"
+ epatch "${FILESDIR}/${P}-deps-flags-libs.patch"
+
+ einfo "Split up Firebird via relative path hacks"
+ # sed vs patch for portability and addtional location changes
+ # based on FIREBIRD=/usr/lib/firebird
+ check_sed "$(sed -i -e 's:"aliases.conf":"../../../etc/firebird/aliases.conf":w /dev/stdout' \
+ src/jrd/db_alias.cpp | wc -l )" "1" "src/jrd/db_alias.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"isc_event1:"../../../var/run/firebird/isc_event1:w /dev/stdout' \
+ -e 's:"isc_lock1:"../../../var/run/firebird/isc_lock1:w /dev/stdout' \
+ -e 's:"isc_init1:"../../../var/run/firebird/isc_init1:w /dev/stdout' \
+ -e 's:"isc_guard1:"../../../var/run/firebird/isc_guard1:w /dev/stdout' \
+ -e 's:"isc_monitor1:"../../../var/run/firebird/isc_monitor1:w /dev/stdout' \
+ -e 's:"firebird.log":"../../../var/log/firebird/firebird.log":w /dev/stdout' \
+ -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/jrd/file_params.h | wc -l)" "12" "src/jrd/file_params.h" # 12 lines
+ check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/jrd/jrd_pwd.h | wc -l)" "1" "src/jrd/jrd_pwd.h" # 1 line
+ check_sed "$(sed -i -e 's:"firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
+ src/jrd/os/config_root.h | wc -l)" "1" "src/jrd/os/config_root.h" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fb_cache_print":"../../../usr/bin/fb_cache_print":w /dev/stdout' \
+ -e 's:"bin/fb_lock_print":"../../../usr/bin/fb_lock_print":w /dev/stdout' \
+ -e 's:"bin/fb_cache_manager":"../../../usr/bin/fb_cache_manager":w /dev/stdout' \
+ -e 's:"bin/gstat":"../../../usr/bin/gstat":w /dev/stdout' \
+ -e 's:"bin/gbak":"../../../usr/bin/gbak":w /dev/stdout' \
+ -e 's:"bin/gdef":"../../../usr/bin/gdef":w /dev/stdout' \
+ -e 's:"bin/gsec":"../../../usr/bin/gsec":w /dev/stdout' \
+ -e 's:"bin/gjrn":"../../../usr/bin/gjrn":w /dev/stdout' \
+ -e 's:"bin/gfix":"../../../usr/bin/gfix":w /dev/stdout' \
+ src/jrd/svc.cpp | wc -l)" "26" "src/jrd/svc.cpp" # 26 lines
+ check_sed "$(sed -i -e 's:"bin/fb_lock_mgr":"../../../usr/bin/fb_lock_mgr":w /dev/stdout' \
+ src/lock/lock.cpp | wc -l)" "1" "src/lock/lock.cpp" # 1 line
+ check_sed "$(sed -i -e 's:m_Root_Path + "firebird.conf":"../../../etc/firebird/firebird.conf":w /dev/stdout' \
+ src/utilities/fbcpl/fbdialog.cpp | wc -l)" "1" "src/utilities/fbcpl/fbdialog.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"security2.fdb":"../../../etc/firebird/security2.fdb":w /dev/stdout' \
+ src/utilities/gsec/security.epp | wc -l)" "1" "src/utilities/gsec/security.epp" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fbserver":"../../../usr/bin/fbserver":w /dev/stdout' \
+ src/utilities/guard/guard.cpp | wc -l)" "1" "src/utilities/guard/guard.cpp" # 1 line
+ check_sed "$(sed -i -e 's:"bin/fbguard":"../../../usr/bin/fbguard":w /dev/stdout' \
+ src/utilities/ibmgr/ibmgr.h | wc -l)" "1" "src/utilities/ibmgr/ibmgr.h" # 1 line
+ check_sed "$(sed -i -e 's:$FIREBIRD/firebird.log:/var/log/firebird/firebird.log:w /dev/stdout' \
+ src/utilities/ibmgr/srvrmgr.cpp | wc -l)" "1" "src/utilities/ibmgr/srvrmgr.cpp" # 1 line
+
+ # Rename references to isql to fbsql
+ check_sed "$(sed -i -e 's:"isql :"fbsql :w /dev/stdout' \
+ src/isql/isql.epp | wc -l)" "1" "src/isql/isql.epp" # 1 line
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
+ src/msgs/history.sql | wc -l)" "4" "src/msgs/history.sql" # 4 lines
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
+ src/msgs/history2.sql | wc -l)" "4" "src/msgs/history2.sql" # 4 lines
+ check_sed "$(sed -i -e 's:isql :fbsql :w /dev/stdout' \
+ -e 's:ISQL :FBSQL :w /dev/stdout' \
+ src/msgs/messages.sql | wc -l)" "4" "src/msgs/messages.sql" # 4 lines
+ check_sed "$(sed -i -e 's:--- ISQL:--- FBSQL:w /dev/stdout' \
+ -e 's:isql :fbsql :w /dev/stdout' \
+ -e 's:ISQL :FBSQL :w /dev/stdout' \
+ src/msgs/messages2.sql | wc -l)" "6" "src/msgs/messages2.sql" # 6 lines
find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
rm -rf "${S}"/extern/{editline,icu}
@@ -64,7 +126,7 @@ src_compile() {
filter-flags -fprefetch-loop-arrays
filter-mfpmath sse
- econf --prefix=/usr/share/firebird --with-editline \
+ econf --prefix=/usr/lib/firebird --with-editline \
$(use_enable !xinetd superserver) \
$(use_enable debug) \
${myconf} || die "econf failed"
@@ -75,10 +137,13 @@ src_install() {
cd "${S}/gen/firebird"
# Seems to be ignored?
-# insinto /usr/share/firebird/bin
-# dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
+ insinto /usr/share/firebird/bin
+ dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
rm bin/*.sh || die "Could not remove *sh files"
+ einfo "Renaming isql -> fbsql"
+ mv bin/isql bin/fbsql
+
insinto /usr/bin
dobin bin/*
@@ -89,10 +154,10 @@ src_install() {
dolib.so lib/*.so*
dolib.a lib/*.a*
- insinto /usr/share/firebird
+ insinto /usr/lib/firebird
doins *.msg
- insinto /usr/share/firebird/help
+ insinto /usr/lib/firebird/help
doins help/help.fdb
insinto /usr/share/firebird/upgrade
@@ -105,13 +170,13 @@ src_install() {
insopts -m0660 -o firebird -g firebird
doins security2.fdb
- exeinto /usr/share/firebird/UDF
+ exeinto /usr/lib/firebird/UDF
doexe UDF/*.so
- exeinto /usr/share/firebird/intl
- newexe intl/libfbintl.so fbintl
+ exeinto /usr/lib/firebird/intl
+ newexe intl/libfbintl.so fbintl.so
- insinto /usr/share/firebird/intl
+ insinto /usr/lib/firebird/intl
doins ../install/misc/fbintl.conf
diropts -m 755 -o firebird -g firebird
@@ -131,7 +196,7 @@ src_install() {
newins "${FILESDIR}/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed"
else
newinitd "${FILESDIR}/${PN}.init.d.2" ${PN}
- newconfd "${FILESDIR}/firebird.conf.d.2" ${PN}
+ newconfd "${FILESDIR}/firebird.conf.d" ${PN}
fperms 640 /etc/conf.d/firebird
fi
doenvd "${FILESDIR}/70${PN}"
@@ -147,13 +212,14 @@ src_install() {
pkg_postinst() {
# Hack to fix ownership/perms
- chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/share/firebird"
+ chown -fR firebird:firebird "${ROOT}/etc/firebird" "${ROOT}/usr/lib/firebird"
chmod 750 "${ROOT}/etc/firebird"
elog
elog "Firebird is no longer installed in /opt. Binaries are in"
- elog "/usr/bin. The core, udfs, etc are in /usr/share/firebird. Logs"
+ elog "/usr/bin. The core, udfs, etc are in /usr/lib/firebird. Logs"
elog "are in /var/log/firebird, and lock files in /var/run/firebird"
+ elog "The command line tool isql has been renamed to fbsql."
elog "Please report any problems or issues to bugs.gentoo.org."
elog
}
@@ -208,5 +274,5 @@ pkg_config() {
fi
einfo "If you're using UDFs, please remember to move them"
- einfo "to /usr/share/firebird/UDF"
+ einfo "to /usr/lib/firebird/UDF"
}