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 | 9fb8b66fa9347e65e7e3ad3c8a9477e36e6d8e86 (patch) | |
tree | 5a5043c5d289a8f688a2b64aceb58d25f04351cd /dev-db/firebird | |
parent | Undo previous change, use RESTRICT=test instead. (diff) | |
download | gentoo-2-9fb8b66fa9347e65e7e3ad3c8a9477e36e6d8e86.tar.gz gentoo-2-9fb8b66fa9347e65e7e3ad3c8a9477e36e6d8e86.tar.bz2 gentoo-2-9fb8b66fa9347e65e7e3ad3c8a9477e36e6d8e86.zip |
Add firebird 2.0.1.
Thanks for Diego Pettenò and William L. Thomson Jr. wrt bug #117869.
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-db/firebird')
-rw-r--r-- | dev-db/firebird/ChangeLog | 11 | ||||
-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 |
6 files changed, 323 insertions, 2 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/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> |