diff options
author | Timothy Redaelli <drizzt@gentoo.org> | 2007-05-11 15:49:53 +0000 |
---|---|---|
committer | Timothy Redaelli <drizzt@gentoo.org> | 2007-05-11 15:49:53 +0000 |
commit | fc715e124b55fb93921d5f345526e7466af491f6 (patch) | |
tree | 433e7442bdac9166cde5a868b9570dc8632d9efa /dev-db/firebird | |
parent | Undo previous change, use RESTRICT=test instead. (diff) | |
download | historical-fc715e124b55fb93921d5f345526e7466af491f6.tar.gz historical-fc715e124b55fb93921d5f345526e7466af491f6.tar.bz2 historical-fc715e124b55fb93921d5f345526e7466af491f6.zip |
Add firebird 2.0.1.
Thanks for Diego Pettenò and William L. Thomson Jr. wrt bug #117869.
Package-Manager: portage-2.1.2.4
Diffstat (limited to 'dev-db/firebird')
-rw-r--r-- | dev-db/firebird/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/firebird/Manifest | 42 | ||||
-rw-r--r-- | dev-db/firebird/files/digest-firebird-2.0.1.12855.0 | 6 | ||||
-rw-r--r-- | dev-db/firebird/files/firebird-2.0.1.12855.0-external-libs.patch | 45 | ||||
-rw-r--r-- | dev-db/firebird/files/firebird-2.0.1.12855.0-make-deps.patch | 41 | ||||
-rw-r--r-- | dev-db/firebird/firebird-2.0.1.12855.0.ebuild | 220 | ||||
-rw-r--r-- | dev-db/firebird/metadata.xml | 2 |
7 files changed, 357 insertions, 10 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog index 31e318d83215..d5eca8561382 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.52 2007/05/09 16:13:04 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.53 2007/05/11 15:49:53 drizzt Exp $ + +*firebird-2.0.1.12855.0 (11 May 2007) + + 11 May 2007; Timothy Redaelli <drizzt@gentoo.org> + +files/firebird-2.0.1.12855.0-external-libs.patch, + +files/firebird-2.0.1.12855.0-make-deps.patch, metadata.xml, + +firebird-2.0.1.12855.0.ebuild: + Add firebird 2.0.1. + Thanks for Diego Pettenò and William L. Thomson Jr. wrt bug #117869. *firebird-1.5.4 (09 May 2007) diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest index a83129476943..78e415020952 100644 --- a/dev-db/firebird/Manifest +++ b/dev-db/firebird/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX 70firebird 50 RMD160 ebfc2e7a38dbd95b3df0dc4c8a757bd089f69807 SHA1 71b414835ed7c66f94b2908b7793da817d3c4438 SHA256 ca3ca56c53490ac6f849ce78cd1240fc52334f25c8d3841eef1560bed2a80d03 MD5 d3278f869be37481ddde143f5ee98c4a files/70firebird 50 RMD160 ebfc2e7a38dbd95b3df0dc4c8a757bd089f69807 files/70firebird 50 @@ -22,6 +25,14 @@ AUX firebird-1.5.3-gcc412.patch 1446 RMD160 2069b6baf60039ff724ee66201fa039f4be3 MD5 b37cd6a2dfa0bd7ae6f67273474f3af0 files/firebird-1.5.3-gcc412.patch 1446 RMD160 2069b6baf60039ff724ee66201fa039f4be394bf files/firebird-1.5.3-gcc412.patch 1446 SHA256 8d3572cc9f9227672fb7c665faf5e720d959975f14b2c4479a20b0de0a8eb7b8 files/firebird-1.5.3-gcc412.patch 1446 +AUX firebird-2.0.1.12855.0-external-libs.patch 1891 RMD160 6450f96348d1736ff1101d6bafe7b1057d221175 SHA1 b1ad1e60a538acd88cb9f7dcdea10e90459ed782 SHA256 75697d2d0cdc4e1fa48a6714f1e8e47563e2d2ea7765ae8a56f533a3c7b865da +MD5 e10b40f875eb2d8f32b8547efb176ec0 files/firebird-2.0.1.12855.0-external-libs.patch 1891 +RMD160 6450f96348d1736ff1101d6bafe7b1057d221175 files/firebird-2.0.1.12855.0-external-libs.patch 1891 +SHA256 75697d2d0cdc4e1fa48a6714f1e8e47563e2d2ea7765ae8a56f533a3c7b865da files/firebird-2.0.1.12855.0-external-libs.patch 1891 +AUX firebird-2.0.1.12855.0-make-deps.patch 1369 RMD160 843f3fdf1469ca31ccbf14b0d90f10d240ade63b SHA1 05d6e9c3b3dd0ac8f0093307cc5e3a1313f4dcb8 SHA256 826f6d70b71ec8630a9520dacfade245cff14cd9c766ba5be0eeda204f4bc9fb +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.conf.d 80 RMD160 bcee53ba9cde8822f3c4f980e274bc4958a6fc30 SHA1 9442726f3e59887ecc40333c0214045cd8f78d50 SHA256 ad4590c1fc81006759ae801086aa73567f82799bad8275c91d7ddb97c26f7f2f MD5 c5f5e6bae2cae891269931331e69f1ca files/firebird.conf.d 80 RMD160 bcee53ba9cde8822f3c4f980e274bc4958a6fc30 files/firebird.conf.d 80 @@ -35,6 +46,7 @@ MD5 b0d6de21d0e14d41983d440d5675e9d5 files/firebird.xinetd 206 RMD160 982a38df26c870ba634576f6188683478d2a69da files/firebird.xinetd 206 SHA256 b129b0653cacd81968986b5514ba78829deeab19972cec18271a6b354247e494 files/firebird.xinetd 206 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-1.5-gcc4.patch.bz2 21974 RMD160 c7a348dd1fbd08813eebb9487716f4d1a5390576 SHA1 7588ee5db8325bc5330cbc244b7ceabaf85811cc SHA256 f48e1fbccae15b9367c432e46f06ea9a4b4059de5192386375733764c028776c DIST firebird-1.5.3.4870.tar.bz2 5055973 RMD160 3833574f8c2d996bfb06b346a5d22a88d9923425 SHA1 6be1e2e46be6ebd16e5b9b10ad2b4f5aeb15f3d4 SHA256 16880405d6e321a70e80c6e6fb4ed8429a692c43b8a7b59a676cf7d2162d2023 DIST firebird-1.5.4-debian-patchset.tar.bz2 22696 RMD160 e4fec480f4480fc2dbc460c5dffab6c0127867f1 SHA1 e925f90d18ece6eb5c8a2645f7e2f559e5e7b153 SHA256 c88345bad9064c552f4231d1ce82e3fb89d2cdfde8bf0965a966b426d9aaefea @@ -48,17 +60,31 @@ EBUILD firebird-1.5.4.ebuild 7593 RMD160 47858f2a2eb70c3f8e511ea1acd9deb55a7b608 MD5 7b47d1938133456d0ab4420a04567b61 firebird-1.5.4.ebuild 7593 RMD160 47858f2a2eb70c3f8e511ea1acd9deb55a7b608e firebird-1.5.4.ebuild 7593 SHA256 c1a08be23a00c063c9e82ec87531b69e856ff2c28a647efefed376c68d1e4ff9 firebird-1.5.4.ebuild 7593 -MISC ChangeLog 8038 RMD160 3cbd84ce230c098f2177eb1924b2d3b63ed8ce75 SHA1 1905452f7cea3ee9d4641108eec16880a74e38fd SHA256 4f1b3643b534a9ac761d49754d99b8b199d8a62f9a977bf9fa268503fe3bd523 -MD5 cf75399821f892000a14aa6837c39f09 ChangeLog 8038 -RMD160 3cbd84ce230c098f2177eb1924b2d3b63ed8ce75 ChangeLog 8038 -SHA256 4f1b3643b534a9ac761d49754d99b8b199d8a62f9a977bf9fa268503fe3bd523 ChangeLog 8038 -MISC metadata.xml 225 RMD160 7c157805d934c18e77b4ed4ebd28870843ec0b81 SHA1 edf45c54d43d4c80b949c49355fc530b4271338e SHA256 d16e8c5dfbf984681d500dad1063583ba0a21e0b73da359178bb87c09d951c9c -MD5 70eaf71c2018b87fe06aed9df3799509 metadata.xml 225 -RMD160 7c157805d934c18e77b4ed4ebd28870843ec0b81 metadata.xml 225 -SHA256 d16e8c5dfbf984681d500dad1063583ba0a21e0b73da359178bb87c09d951c9c metadata.xml 225 +EBUILD firebird-2.0.1.12855.0.ebuild 5645 RMD160 a3574f4ab4ea3f46169ec8d1c0e37bb393282bd8 SHA1 7709f85d7aa5da31b9353fd0c6736f7914c3f623 SHA256 43deaa323b8e9f60c3db75dc4137a9c37ae34dca2eeb38fbbdd13279600a15e7 +MD5 53afed87e20cd3f1518bf354c7fb4575 firebird-2.0.1.12855.0.ebuild 5645 +RMD160 a3574f4ab4ea3f46169ec8d1c0e37bb393282bd8 firebird-2.0.1.12855.0.ebuild 5645 +SHA256 43deaa323b8e9f60c3db75dc4137a9c37ae34dca2eeb38fbbdd13279600a15e7 firebird-2.0.1.12855.0.ebuild 5645 +MISC ChangeLog 8375 RMD160 20c8793fe38ffcd9db0364c7156a67d768a104aa SHA1 826907c7850398e2f303a615cdf00e274568cb52 SHA256 2d74f2f771e510fdd1eb7508e3691adf2fe4f956c018c246423d91240497302f +MD5 f30b7d87317e2670f392823239aba1ac ChangeLog 8375 +RMD160 20c8793fe38ffcd9db0364c7156a67d768a104aa ChangeLog 8375 +SHA256 2d74f2f771e510fdd1eb7508e3691adf2fe4f956c018c246423d91240497302f ChangeLog 8375 +MISC metadata.xml 220 RMD160 308345912146c5e9bd3f1d2ee119e04cede580a3 SHA1 2869d94e798df613f6a03d471ca672fce92af74e SHA256 f887a8f740f065e7b83ebcb94494ab388927dca6b0d57e6f8b1b7acc9822af66 +MD5 e05d23db48b753387fa5e7d9d23c4eb3 metadata.xml 220 +RMD160 308345912146c5e9bd3f1d2ee119e04cede580a3 metadata.xml 220 +SHA256 f887a8f740f065e7b83ebcb94494ab388927dca6b0d57e6f8b1b7acc9822af66 metadata.xml 220 MD5 a52e967cf2d04fbbf7c6a8a2fc988105 files/digest-firebird-1.5.3-r1 1015 RMD160 e71a88ad45cd1b43c6c69417a9d7b9e24bb9a1e6 files/digest-firebird-1.5.3-r1 1015 SHA256 fce6d7adc88cb5cb9a444b74dc328c86dc9f6edfebfad4a9cd9f60eacaad225d files/digest-firebird-1.5.3-r1 1015 MD5 20a106c4128997b0c01898ae2431188d files/digest-firebird-1.5.4 1048 RMD160 380abfa848b17114c93549605983bb62325fa2ef files/digest-firebird-1.5.4 1048 SHA256 a9f424580b7adc46492d408d0219e04ca70854ee5c0553ba8419f289164a72d9 files/digest-firebird-1.5.4 1048 +MD5 5c0b5264d4f1c9edec1c5bdf3cb765e3 files/digest-firebird-2.0.1.12855.0 506 +RMD160 3a785de7489e80937c79ebc588010b4f3d1f8055 files/digest-firebird-2.0.1.12855.0 506 +SHA256 f32bfbce159f18706c7b98be298dc2fbefbd3feb6d08ce4b521063db4e19d735 files/digest-firebird-2.0.1.12855.0 506 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.3 (GNU/Linux) + +iD8DBQFGRJCojJyKLBkBVroRAlybAJ9CIqouV8toYCkr1Xl7lvzfpg/XyACdGt0M +ZBqOS9umPlyTtNhRHqTMPqg= +=Wovr +-----END PGP SIGNATURE----- diff --git a/dev-db/firebird/files/digest-firebird-2.0.1.12855.0 b/dev-db/firebird/files/digest-firebird-2.0.1.12855.0 new file mode 100644 index 000000000000..04a90efef089 --- /dev/null +++ b/dev-db/firebird/files/digest-firebird-2.0.1.12855.0 @@ -0,0 +1,6 @@ +MD5 9f16b202478eb3b287f70c87f9482308 Firebird-2.0.1.12855-0.tar.bz2 12582690 +RMD160 abe8a59795c59f6fdccfe2fe6612b81b8373493f Firebird-2.0.1.12855-0.tar.bz2 12582690 +SHA256 4346471f7c302b5ecdb8440b3c329e3d1fd78483b948e9e7b94ef284c37cb86e Firebird-2.0.1.12855-0.tar.bz2 12582690 +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.1.12855.0-external-libs.patch b/dev-db/firebird/files/firebird-2.0.1.12855.0-external-libs.patch new file mode 100644 index 000000000000..3de90c0bc40d --- /dev/null +++ b/dev-db/firebird/files/firebird-2.0.1.12855.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.1.12855.0-make-deps.patch b/dev-db/firebird/files/firebird-2.0.1.12855.0-make-deps.patch new file mode 100644 index 000000000000..6369727aa0a7 --- /dev/null +++ b/dev-db/firebird/files/firebird-2.0.1.12855.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.1.12855.0.ebuild b/dev-db/firebird/firebird-2.0.1.12855.0.ebuild new file mode 100644 index 000000000000..ade9434f328c --- /dev/null +++ b/dev-db/firebird/firebird-2.0.1.12855.0.ebuild @@ -0,0 +1,220 @@ +# 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.1.12855.0.ebuild,v 1.1 2007/05/11 15:49:53 drizzt 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 ~sparc ~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* + + 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 /etc/firebird + insopts -m0644 -o firebird -g firebird + doins misc/* + insopts -m0660 -o firebird -g firebird + doins security2.fdb + + exeinto /opt/firebird/UDF + doexe UDF/*.so + exeinto /opt/firebird/intl + doexe intl/*.so + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${S}/gen/install/misc/${PN}.xinetd" "${PN}" || die "newins xinetd file failed" + else + # TODO: this sucks, write a new one. + newinitd "${S}/gen/install/misc/${PN}.init.d.gentoo" "${PN}" + newconfd "${S}/gen/install/misc/${PN}.conf" "${PN}" + fi + doenvd "${FILESDIR}/70${PN}" + + # Install docs + use doc && dodoc "${WORKDIR}"/manuals/* +} + +pkg_postinst() { + 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 + + # Create log + if [ ! -h firebird.log ] + then + if [ -f firebird.log ] + then + mv firebird.log /var/log + else + touch /var/log/firebird.log + chown firebird:firebird /var/log/firebird.log + chmod ug=rw,o= /var/log/firebird.log + fi + + # symlink the log to /var/log + ln -s /var/log/firebird.log firebird.log + fi + + # if found /etc/isc4.gdb from previous install, backup, and restore as + # /etc/security.fdb + if [ -f /etc/firebird/isc4.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/isc4.gdb /etc/firebird/isc4.gbk + gbak -R /etc/firebird/isc4.gbk /etc/firebird/security2.fdb + mv /etc/firebird/isc4.gdb /etc/firebird/isc4.gdb.old + rm /etc/firebird/isc4.gbk + + # make sure they are readable only to firebird + chown firebird:firebird /etc/firebird/{isc4.*,security2.*} + chmod 660 /etc/firebird/{isc4.*,security2.*} + + einfo + einfo "Converted old isc4.gdb to security.fdb, isc4.gdb has been " + einfo "renamed to isc4.gdb.old. if you had previous security.fdb, " + einfo "it's backed to security.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" +} diff --git a/dev-db/firebird/metadata.xml b/dev-db/firebird/metadata.xml index 5e216ef5bfc4..48e7de384ac9 100644 --- a/dev-db/firebird/metadata.xml +++ b/dev-db/firebird/metadata.xml @@ -3,6 +3,6 @@ <pkgmetadata> <herd>no-herd</herd> <maintainer> - <email>sekretarz@gentoo.org</email> +<email>drizzt@gentoo.org</email> </maintainer> </pkgmetadata> |