summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2007-08-31 04:23:05 +0000
committerWilliam Thomson <wltjr@gentoo.org>2007-08-31 04:23:05 +0000
commitef30d9735ef2e07628ae47a25818639a93c5ffa7 (patch)
tree2b220d0938489b2b5a552e106f99e2d6fbc76a63 /dev-db
parentFixed gcc4.2 compilation bug #190576. (diff)
downloadhistorical-ef30d9735ef2e07628ae47a25818639a93c5ffa7.tar.gz
historical-ef30d9735ef2e07628ae47a25818639a93c5ffa7.tar.bz2
historical-ef30d9735ef2e07628ae47a25818639a93c5ffa7.zip
Bumped to latest release. Addresses security bug #190833, but will still need to be tested and likely rush stabilized.
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/firebird/ChangeLog11
-rw-r--r--dev-db/firebird/Manifest24
-rw-r--r--dev-db/firebird/files/digest-firebird-2.0.2.12964.06
-rw-r--r--dev-db/firebird/files/firebird-2.0.2.12964.0-external-libs.patch45
-rw-r--r--dev-db/firebird/files/firebird-2.0.2.12964.0-make-deps.patch41
-rw-r--r--dev-db/firebird/firebird-2.0.2.12964.0.ebuild249
6 files changed, 371 insertions, 5 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog
index 0ddccb727928..cd82f0ee9312 100644
--- a/dev-db/firebird/ChangeLog
+++ b/dev-db/firebird/ChangeLog
@@ -1,6 +1,15 @@
# 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.67 2007/07/02 14:27:47 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.68 2007/08/31 04:23:05 wltjr Exp $
+
+*firebird-2.0.2.12964.0 (31 Aug 2007)
+
+ 31 Aug 2007; William L. Thomson Jr. <wltjr@gentoo.org>
+ +files/firebird-2.0.2.12964.0-external-libs.patch,
+ +files/firebird-2.0.2.12964.0-make-deps.patch,
+ +firebird-2.0.2.12964.0.ebuild:
+ Bumped to latest release. Addresses security bug #190833, but will still
+ need to be tested and likely rush stabilized.
02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org>
firebird-1.5.4-r3.ebuild:
diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest
index 8ca4678b04ca..946fae999de8 100644
--- a/dev-db/firebird/Manifest
+++ b/dev-db/firebird/Manifest
@@ -10,6 +10,14 @@ AUX firebird-2.0.1.12855.0-make-deps.patch 1369 RMD160 843f3fdf1469ca31ccbf14b0d
MD5 e0ff4a56391f46b0ee3f8ab2faaafe6a files/firebird-2.0.1.12855.0-make-deps.patch 1369
RMD160 843f3fdf1469ca31ccbf14b0d90f10d240ade63b files/firebird-2.0.1.12855.0-make-deps.patch 1369
SHA256 826f6d70b71ec8630a9520dacfade245cff14cd9c766ba5be0eeda204f4bc9fb files/firebird-2.0.1.12855.0-make-deps.patch 1369
+AUX firebird-2.0.2.12964.0-external-libs.patch 1891 RMD160 6450f96348d1736ff1101d6bafe7b1057d221175 SHA1 b1ad1e60a538acd88cb9f7dcdea10e90459ed782 SHA256 75697d2d0cdc4e1fa48a6714f1e8e47563e2d2ea7765ae8a56f533a3c7b865da
+MD5 e10b40f875eb2d8f32b8547efb176ec0 files/firebird-2.0.2.12964.0-external-libs.patch 1891
+RMD160 6450f96348d1736ff1101d6bafe7b1057d221175 files/firebird-2.0.2.12964.0-external-libs.patch 1891
+SHA256 75697d2d0cdc4e1fa48a6714f1e8e47563e2d2ea7765ae8a56f533a3c7b865da files/firebird-2.0.2.12964.0-external-libs.patch 1891
+AUX firebird-2.0.2.12964.0-make-deps.patch 1369 RMD160 843f3fdf1469ca31ccbf14b0d90f10d240ade63b SHA1 05d6e9c3b3dd0ac8f0093307cc5e3a1313f4dcb8 SHA256 826f6d70b71ec8630a9520dacfade245cff14cd9c766ba5be0eeda204f4bc9fb
+MD5 e0ff4a56391f46b0ee3f8ab2faaafe6a files/firebird-2.0.2.12964.0-make-deps.patch 1369
+RMD160 843f3fdf1469ca31ccbf14b0d90f10d240ade63b files/firebird-2.0.2.12964.0-make-deps.patch 1369
+SHA256 826f6d70b71ec8630a9520dacfade245cff14cd9c766ba5be0eeda204f4bc9fb files/firebird-2.0.2.12964.0-make-deps.patch 1369
AUX firebird.conf.d 80 RMD160 bcee53ba9cde8822f3c4f980e274bc4958a6fc30 SHA1 9442726f3e59887ecc40333c0214045cd8f78d50 SHA256 ad4590c1fc81006759ae801086aa73567f82799bad8275c91d7ddb97c26f7f2f
MD5 c5f5e6bae2cae891269931331e69f1ca files/firebird.conf.d 80
RMD160 bcee53ba9cde8822f3c4f980e274bc4958a6fc30 files/firebird.conf.d 80
@@ -24,6 +32,7 @@ RMD160 c9b6f61321861ce86c14c3fec0f13909865e6344 files/firebird.xinetd 208
SHA256 802738bd350a19c3abbd99be0bcf3d52b3c4cdc09211f2de2b89d25c54fb5a6c files/firebird.xinetd 208
DIST Firebird-1.5-QuickStart.pdf 193637 RMD160 c3d541701950a9b8ac0b353e5360af9235a3cf3f SHA1 fc64d475222257b269378451a69167ea53852ece SHA256 3b6cbf86d9ee7deaeeae101edf6c124c694ca423c9f4d09da035eed9e2bb70fe
DIST Firebird-2.0.1.12855-0.tar.bz2 12582690 RMD160 abe8a59795c59f6fdccfe2fe6612b81b8373493f SHA1 a364548028e411919a94b5be4263b9914b696bda SHA256 4346471f7c302b5ecdb8440b3c329e3d1fd78483b948e9e7b94ef284c37cb86e
+DIST Firebird-2.0.2.12964-0.tar.bz2 12624989 RMD160 51b30e8eb162f0b7c7ab0b46267e8d04006746cd SHA1 fa2b5eb4ed8786f9e8183cc8045c8098fa9163b9 SHA256 34b63c6ab4d992c050dc769a656d7ea13a96c8ac7b7f6e399df54df18f9e79b5
DIST firebird-1.5.4-debian-patchset.tar.bz2 22696 RMD160 e4fec480f4480fc2dbc460c5dffab6c0127867f1 SHA1 e925f90d18ece6eb5c8a2645f7e2f559e5e7b153 SHA256 c88345bad9064c552f4231d1ce82e3fb89d2cdfde8bf0965a966b426d9aaefea
DIST firebird-1.5.4.4910.tar.bz2 5087076 RMD160 00480f290b8e82f9965387a903ae392e8b71c3f1 SHA1 684860f6b1b77f5068ea175d3e08a7c839bb92a5 SHA256 c4464b1b89fde0676562de2b82c971d4f791133dcc2967760dc2f3a5cfd52556
DIST ib_b60_doc.zip 10530848 RMD160 c64b4b6bc9125929928517ba072558a58ddf577d SHA1 5e94fb89e15f738aa8605c913e75ec212fa163ef SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d
@@ -39,10 +48,14 @@ EBUILD firebird-2.0.1.12855.0-r5.ebuild 7052 RMD160 3a48c449b2331eeb5396b5aa8b3a
MD5 faf8a0548e7f17c97a2da5537475513d firebird-2.0.1.12855.0-r5.ebuild 7052
RMD160 3a48c449b2331eeb5396b5aa8b3a5d507b016c9c firebird-2.0.1.12855.0-r5.ebuild 7052
SHA256 b8f6ff2e1842cf1b6037557726122c28b1cd2a36f12cd757d32545ebd2eea145 firebird-2.0.1.12855.0-r5.ebuild 7052
-MISC ChangeLog 11563 RMD160 e2b2a82fa0dc760b065db3a4a8abd1e83ed89c48 SHA1 441452ff20429e77309a1f44a80c03bab3baaa9d SHA256 c16cd8d50ecb8884f5a2b9d715444fa45d5542e15d99e17abefecd855060f148
-MD5 7648320bbcaa2a36980aec74fcb57a1a ChangeLog 11563
-RMD160 e2b2a82fa0dc760b065db3a4a8abd1e83ed89c48 ChangeLog 11563
-SHA256 c16cd8d50ecb8884f5a2b9d715444fa45d5542e15d99e17abefecd855060f148 ChangeLog 11563
+EBUILD firebird-2.0.2.12964.0.ebuild 7045 RMD160 de5b51de55baf6350c62a766a9cb9fa053fad8d4 SHA1 e9c1ff208ea9044f6c73d068b05f6a751fbad517 SHA256 1af79d9e1f6f92244cb936dd7ecc4f1743fd13c2a1618a17033db1918ce2b89c
+MD5 3da9db9cf11594d4f53d8258a309979e firebird-2.0.2.12964.0.ebuild 7045
+RMD160 de5b51de55baf6350c62a766a9cb9fa053fad8d4 firebird-2.0.2.12964.0.ebuild 7045
+SHA256 1af79d9e1f6f92244cb936dd7ecc4f1743fd13c2a1618a17033db1918ce2b89c firebird-2.0.2.12964.0.ebuild 7045
+MISC ChangeLog 11919 RMD160 d2e4a2022d49702d277fb3cecf16052854e61584 SHA1 938f2cf181c9516318492f458f667bfb0125b4a9 SHA256 87601fd692a2bd075847783b2bd612607c0d3c0ef0ba5a4a2e239b204e03e04b
+MD5 30c5dea569098283220ee09ec1b90240 ChangeLog 11919
+RMD160 d2e4a2022d49702d277fb3cecf16052854e61584 ChangeLog 11919
+SHA256 87601fd692a2bd075847783b2bd612607c0d3c0ef0ba5a4a2e239b204e03e04b ChangeLog 11919
MISC metadata.xml 676 RMD160 cbec5ef0857aae880afdbc60f370c1b76d36ccf8 SHA1 c4a3ff2cb0dca7f10616bcb6380478fc9b030cf5 SHA256 8b013a783e48791968505c98397ff8777960cdd69f7818b3cff689fa1b2373a8
MD5 d6677dccf2b721741683d19348632bd6 metadata.xml 676
RMD160 cbec5ef0857aae880afdbc60f370c1b76d36ccf8 metadata.xml 676
@@ -56,3 +69,6 @@ SHA256 f32bfbce159f18706c7b98be298dc2fbefbd3feb6d08ce4b521063db4e19d735 files/di
MD5 5c0b5264d4f1c9edec1c5bdf3cb765e3 files/digest-firebird-2.0.1.12855.0-r5 506
RMD160 3a785de7489e80937c79ebc588010b4f3d1f8055 files/digest-firebird-2.0.1.12855.0-r5 506
SHA256 f32bfbce159f18706c7b98be298dc2fbefbd3feb6d08ce4b521063db4e19d735 files/digest-firebird-2.0.1.12855.0-r5 506
+MD5 5aa0937469e9aa232dbd514df17d3a63 files/digest-firebird-2.0.2.12964.0 506
+RMD160 983998f164a2736d0e1a7231b4738dda1c4053df files/digest-firebird-2.0.2.12964.0 506
+SHA256 5621a0e5319acec6ade6be41f5c41fc1d40d9d13fcb249c57eaa11b68c73e692 files/digest-firebird-2.0.2.12964.0 506
diff --git a/dev-db/firebird/files/digest-firebird-2.0.2.12964.0 b/dev-db/firebird/files/digest-firebird-2.0.2.12964.0
new file mode 100644
index 000000000000..4930bcc36ca6
--- /dev/null
+++ b/dev-db/firebird/files/digest-firebird-2.0.2.12964.0
@@ -0,0 +1,6 @@
+MD5 6b7d5781a3e4b72ef6349b2c5c67f576 Firebird-2.0.2.12964-0.tar.bz2 12624989
+RMD160 51b30e8eb162f0b7c7ab0b46267e8d04006746cd Firebird-2.0.2.12964-0.tar.bz2 12624989
+SHA256 34b63c6ab4d992c050dc769a656d7ea13a96c8ac7b7f6e399df54df18f9e79b5 Firebird-2.0.2.12964-0.tar.bz2 12624989
+MD5 e48478a6034eb449ad502495e83a0764 ib_b60_doc.zip 10530848
+RMD160 c64b4b6bc9125929928517ba072558a58ddf577d ib_b60_doc.zip 10530848
+SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d ib_b60_doc.zip 10530848
diff --git a/dev-db/firebird/files/firebird-2.0.2.12964.0-external-libs.patch b/dev-db/firebird/files/firebird-2.0.2.12964.0-external-libs.patch
new file mode 100644
index 000000000000..3de90c0bc40d
--- /dev/null
+++ b/dev-db/firebird/files/firebird-2.0.2.12964.0-external-libs.patch
@@ -0,0 +1,45 @@
+Index: firebird-2.0.0.12748/builds/posix/Makefile.in.firebird
+===================================================================
+--- firebird-2.0.0.12748.orig/builds/posix/Makefile.in.firebird
++++ firebird-2.0.0.12748/builds/posix/Makefile.in.firebird
+@@ -186,10 +186,10 @@ $(GEN_ROOT)/Make.Version : $(SRC_ROOT)/m
+ #
+
+ external_libraries:
+- $(MAKE) -f $(GEN_ROOT)/Makefile.extern.icu
+-ifeq ($(EDITLINE_FLG),Y)
+- $(MAKE) -f $(GEN_ROOT)/Makefile.extern.editline
+-endif
++# $(MAKE) -f $(GEN_ROOT)/Makefile.extern.icu
++#ifeq ($(EDITLINE_FLG),Y)
++# $(MAKE) -f $(GEN_ROOT)/Makefile.extern.editline
++#endif
+
+ #---------------------------------------------------------------------------
+ # Phase1: make a gpre_static from scratch so we can parse .e and .epp files
+Index: firebird-2.0.0.12748/configure.in
+===================================================================
+--- firebird-2.0.0.12748.orig/configure.in
++++ firebird-2.0.0.12748/configure.in
+@@ -445,7 +445,7 @@
+ AC_CHECK_LIB(termcap, tgetent, , \
+ AC_CHECK_LIB(tinfo, tgetent, , \
+ AC_MSG_ERROR(termcap support not found)))))
+- AC_SUBST(EDITLINE_A, -leditline)
++ AC_SUBST(EDITLINE_A, -ledit)
+ fi
+ AC_CHECK_LIB(stdc++, main,,, $LIBS)
+
+Index: firebird-2.0.0.12748/builds/posix/make.rules
+===================================================================
+--- firebird-2.0.0.12748.orig/builds/posix/make.rules
++++ firebird-2.0.0.12748/builds/posix/make.rules
+@@ -33,7 +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 -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n -DNAMESPACE=Vulcan
++CFLAGS:= $(CFLAGS) -I$(SRC_ROOT)/include/gen -I$(SRC_ROOT)/include -I$(SRC_ROOT)/vulcan -DNAMESPACE=Vulcan
+
+ ifeq ($(IsProdTypeBuild),Y)
+ CFLAGS:= $(CFLAGS) $(PROD_FLAGS) -DPROD_BUILD
diff --git a/dev-db/firebird/files/firebird-2.0.2.12964.0-make-deps.patch b/dev-db/firebird/files/firebird-2.0.2.12964.0-make-deps.patch
new file mode 100644
index 000000000000..6369727aa0a7
--- /dev/null
+++ b/dev-db/firebird/files/firebird-2.0.2.12964.0-make-deps.patch
@@ -0,0 +1,41 @@
+Index: firebird-2.0.0.12748/builds/posix/make.shared.targets
+===================================================================
+--- firebird-2.0.0.12748.orig/builds/posix/make.shared.targets
++++ firebird-2.0.0.12748/builds/posix/make.shared.targets
+@@ -57,7 +57,7 @@ $(SRC_ROOT)/dsql/parse.cpp: $(SRC_ROOT)/
+
+ # 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) $< $@
+
+
+Index: firebird-2.0.0.12748/builds/posix/make.rules
+===================================================================
+--- firebird-2.0.0.12748.orig/builds/posix/make.rules
++++ firebird-2.0.0.12748/builds/posix/make.rules
+@@ -103,19 +103,19 @@ DSQL_GPRE_FLAGS = -lang_internal -r -m
+
+ .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 --git a/dev-db/firebird/firebird-2.0.2.12964.0.ebuild b/dev-db/firebird/firebird-2.0.2.12964.0.ebuild
new file mode 100644
index 000000000000..b30c9902ce4d
--- /dev/null
+++ b/dev-db/firebird/firebird-2.0.2.12964.0.ebuild
@@ -0,0 +1,249 @@
+# 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.2.12964.0.ebuild,v 1.1 2007/08/31 04:23:05 wltjr Exp $
+
+inherit flag-o-matic eutils autotools versionator
+
+MY_P=Firebird-$(replace_version_separator 4 -)
+
+DESCRIPTION="A relational database offering many ANSI SQL-99 features"
+HOMEPAGE="http://firebird.sourceforge.net/"
+SRC_URI="mirror://sourceforge/firebird/${MY_P}.tar.bz2
+ doc? ( ftp://ftpc.inprise.com/pub/interbase/techpubs/ib_b60_doc.zip )"
+
+LICENSE="Interbase-1.0"
+SLOT="0"
+KEYWORDS="~amd64 -ia64 ~x86"
+IUSE="doc xinetd examples debug"
+RESTRICT="userpriv"
+
+RDEPEND="dev-libs/libedit
+ dev-libs/icu"
+DEPEND="${RDEPEND}
+ doc? ( app-arch/unzip )"
+RDEPEND="${RDEPEND}
+ xinetd? ( virtual/inetd )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup firebird 450
+ enewuser firebird 450 /bin/bash /opt/firebird firebird
+}
+
+src_unpack() {
+ if use doc; then
+ # Unpack docs
+ mkdir "${WORKDIR}/manuals"
+ cd "${WORKDIR}/manuals"
+ unpack ib_b60_doc.zip
+ cd "${WORKDIR}"
+ fi
+
+ unpack "${MY_P}.tar.bz2"
+
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-external-libs.patch"
+ epatch "${FILESDIR}/${P}-make-deps.patch"
+ find "${S}" -name \*.sh -print0 | xargs -0 chmod +x
+ rm -rf "${S}"/extern/{editline,icu}
+
+ eautoreconf
+}
+
+src_compile() {
+ filter-flags -fprefetch-loop-arrays
+ filter-mfpmath sse
+
+ econf \
+ --prefix=/opt/firebird --with-editline \
+ $(use_enable !xinetd superserver) \
+ $(use_enable debug) \
+ ${myconf} || die "econf failed"
+ emake -j1 || die "error during make"
+}
+
+src_install() {
+ cd "${S}/gen/firebird"
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*
+ fi
+
+ into /opt/firebird
+ dobin bin/*
+ dolib.so lib/*.so*
+ dolib.a lib/*.a*
+
+ insinto /opt/firebird
+ doins *.msg
+
+ rm -rf "${D}"/opt/firebird/bin/*.sh
+ dobin bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh
+
+ insinto /opt/firebird/include
+ doins include/*
+
+ insinto /opt/firebird/help
+ doins help/help.fdb
+
+ insinto /opt/firebird/upgrade
+ doins "${S}"/src/misc/upgrade/v2/*
+
+ insinto /etc/firebird
+ insopts -m0644 -o firebird -g firebird
+ doins misc/*
+ doins ../install/misc/aliases.conf
+ insopts -m0660 -o firebird -g firebird
+ doins security2.fdb
+
+ exeinto /opt/firebird/UDF
+ doexe UDF/*.so
+ exeinto /opt/firebird/intl
+ doexe intl/*.so
+ newexe intl/libfbintl.so fbintl
+
+ diropts -m 755 -o firebird -g firebird
+ dodir /var/log/firebird
+ dodir /var/run/firebird
+ keepdir /var/log/firebird
+ keepdir /var/run/firebird
+
+ touch "${D}"/var/log/firebird/firebird.log
+ chown firebird:firebird "${D}"/var/log/firebird/firebird.log
+
+ # create links for split config & log file
+ dosym /etc/firebird/aliases.conf /opt/firebird/aliases.conf
+ dosym /etc/firebird/security2.fdb /opt/firebird/security2.fdb
+ dosym /etc/firebird/firebird.conf /opt/firebird/firebird.conf
+ dosym /etc/firebird/fbintl.conf /opt/firebird/intl/fbintl.conf
+ dosym /var/log/firebird/firebird.log /opt/firebird/firebird.log
+
+ local my_lib=$(get_libdir)
+
+ # firebird has a problem with lib64 dir name, bug?
+ if [ ${my_lib} == "lib64" ] ; then
+ dosym ./lib64 /opt/firebird/lib
+ fi
+
+ # create links for backwards compatibility dosym puts link in / :(
+ cd "${D}/opt/firebird/${my_lib}/"
+ ln -s libfbclient.so libgds.so
+ ln -s libfbclient.so libgds.so.0
+ ln -s libfbclient.so libfbclient.so.1
+
+ # create system links for ld
+ dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so
+ dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libgds.so.0
+ dosym ../../opt/firebird/${my_lib}/libfbclient.so /usr/${my_lib}/libfbclient.so
+ dosym ../../opt/firebird/${my_lib}/libfbclient.so.1 /usr/${my_lib}/libfbclient.so.1
+ dosym ../../opt/firebird/${my_lib}/libfbclient.so.2 /usr/${my_lib}/libfbclient.so.2
+
+ if use xinetd ; then
+ insinto /etc/xinetd.d
+ newins "${S}/gen/install/misc/${PN}.xinetd" "${PN}" || die "newins xinetd file failed"
+ else
+ newinitd "${FILESDIR}/${PN}.init.d" ${PN}
+ newconfd "${FILESDIR}/firebird.conf.d" ${PN}
+ fperms 640 /etc/conf.d/firebird
+ fi
+ doenvd "${FILESDIR}/70${PN}"
+
+ # Install docs
+ use doc && dodoc "${WORKDIR}"/manuals/*
+}
+
+pkg_postinst() {
+ # Hack to fix ownership/perms
+ chown -fR firebird:firebird /etc/firebird /opt/firebird
+ chmod 750 /etc/firebird
+
+ elog
+ elog "1. If haven't done so already, please run:"
+ elog
+ elog " \"emerge --config =${PF}\""
+ elog
+ elog " to create lockfiles, set permissions and more"
+ elog
+ elog "2. Firebird now runs with it's own user. Please remember to"
+ elog " set permissions to firebird:firebird on databases you "
+ elog " already have (if any)."
+ elog
+
+ if ! use xinetd
+ then
+ elog "3. You've built the stand alone deamon version,"
+ elog " SuperServer. If you were using pre 1.5.0 ebuilds"
+ elog " you're probably have one installed via xinetd. please"
+ elog " remember to disable it (usually in /etc/xinetd.d/firebird),"
+ elog " since the current one has it's own init script under"
+ elog " /etc/init.d"
+ fi
+}
+
+pkg_config() {
+ cd /opt/firebird
+
+ # Create Lock files
+ for i in isc_init1 isc_lock1 isc_event1
+ do
+ FileName=$i.`hostname`
+ touch $FileName
+ chown firebird:firebird $FileName
+ chmod ug=rw,o= $FileName
+ done
+
+ # if found /etc/security.gdb from previous install, backup, and restore as
+ # /etc/security2.fdb
+ if [ -f /etc/firebird/security.gdb ]
+ then
+ # if we have scurity2.fdb already, back it 1st
+ if [ -f /etc/firebird/security2.fdb ] ; then
+ cp /etc/firebird/security2.fdb /etc/firebird/security2.fdb.old
+ fi
+ gbak -B /etc/firebird/security.gdb /etc/firebird/security.gbk
+ gbak -R /etc/firebird/security.gbk /etc/firebird/security2.fdb
+ mv /etc/firebird/security.gdb /etc/firebird/security.gdb.old
+ rm /etc/firebird/security.gbk
+
+ # make sure they are readable only to firebird
+ chown firebird:firebird /etc/firebird/{security.*,security2.*}
+ chmod 660 /etc/firebird/{security.*,security2.*}
+
+ einfo
+ einfo "Converted old security.gdb to security2.fdb, security.gdb has been "
+ einfo "renamed to security.gdb.old. if you had previous security2.fdb, "
+ einfo "it's backed to security2.fdb.old (all under /etc/firebird)."
+ einfo
+ fi
+
+ # we need to enable local access to the server
+ if [ ! -f /etc/hosts.equiv ] ; then
+ touch /etc/hosts.equiv
+ chown root:0 /etc/hosts.equiv
+ chmod u=rw,go=r /etc/hosts.equiv
+ fi
+
+ # add 'localhost.localdomain' to the hosts.equiv file...
+ if grep -q 'localhost.localdomain$' /etc/hosts.equiv 2>/dev/null; then
+ echo "localhost.localdomain" >> /etc/hosts.equiv
+ einfo "Added localhost.localdomain to /etc/hosts.equiv"
+ fi
+
+ # add 'localhost' to the hosts.equiv file...
+ if grep -q 'localhost$' /etc/hosts.equiv 2>/dev/null; then
+ echo "localhost" >> /etc/hosts.equiv
+ einfo "Added localhost to /etc/hosts.equiv"
+ fi
+
+ HS_NAME=`hostname`
+ if grep -q ${HS_NAME} /etc/hosts.equiv 2>/dev/null; then
+ echo "${HS_NAME}" >> /etc/hosts.equiv
+ einfo "Added ${HS_NAME} to /etc/hosts.equiv"
+ fi
+
+ einfo "If you're using UDFs, please remember to move them"
+ einfo "to /opt/firebird/UDF"
+}