diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-09-17 20:15:39 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-09-17 20:15:39 +0000 |
commit | e29d5571872a911d38d26450968f6362aad6b1d8 (patch) | |
tree | c67e54d291ec1d6f8e2d0ae5e5af953ec33d8a54 /dev-db/firebird | |
parent | Use external media-libs/libart_lgpl (bug #252927). (diff) | |
download | historical-e29d5571872a911d38d26450968f6362aad6b1d8.tar.gz historical-e29d5571872a911d38d26450968f6362aad6b1d8.tar.bz2 historical-e29d5571872a911d38d26450968f6362aad6b1d8.zip |
Bump to 2.1.3, fixes #264955
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'dev-db/firebird')
-rw-r--r-- | dev-db/firebird/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/firebird/Manifest | 4 | ||||
-rw-r--r-- | dev-db/firebird/firebird-2.1.3.18185.0.ebuild | 276 |
3 files changed, 286 insertions, 2 deletions
diff --git a/dev-db/firebird/ChangeLog b/dev-db/firebird/ChangeLog index 2327696c64a1..b3409ac1008b 100644 --- a/dev-db/firebird/ChangeLog +++ b/dev-db/firebird/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/firebird # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.99 2009/09/17 19:55:01 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/ChangeLog,v 1.100 2009/09/17 20:15:39 patrick Exp $ + +*firebird-2.1.3.18185.0 (17 Sep 2009) + + 17 Sep 2009; Patrick Lauer <patrick@gentoo.org> + +firebird-2.1.3.18185.0.ebuild: + Bump to 2.1.3, fixes #264955 *firebird-2.1.2.18118.0 (17 Sep 2009) diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest index 2f4ce15cb5c2..7d24c97340db 100644 --- a/dev-db/firebird/Manifest +++ b/dev-db/firebird/Manifest @@ -17,11 +17,13 @@ DIST Firebird-2.0.3.12981-0.tar.bz2 12623689 RMD160 6a1139b30a77070e6e74bdaebc5d DIST Firebird-2.0.4.13130-1.tar.bz2 12679867 RMD160 997fcbd5d76ed11ce4f4ac9c1597bc72568ff5c6 SHA1 27af200f5c040ec084495693489d4ac71136c595 SHA256 e2e3bcdcc62f6dbdf0faecd4dd0d43ef41e94d731d485a9c4f0957f631b99bfa DIST Firebird-2.1.1.17910-0.tar.bz2 13457410 RMD160 ff4225438983a0c24da3a6b4df54de2cc40aac3f SHA1 122493f35b733b24047163f83724a6a271d4beb7 SHA256 6581286f57eba1494599cfb09a18e56970a45f03f2cd490a947e96874a57b645 DIST Firebird-2.1.2.18118-0.tar.bz2 13485341 RMD160 37a35600092758715b4d1f82d728fa2e87f8c2de SHA1 1f2528af1804eb09f06f8cfa1d97b9643af181ef SHA256 91cb30a744c6d1e05a259ca97acc1f24d20e478ac37b7130e0675f209b3ec6e3 +DIST Firebird-2.1.3.18185-0.tar.bz2 13770360 RMD160 af9ae88f8a8152ffeb7d128f009436b06e28c07f SHA1 1504e4a579d9020bd47470ae54c67490ad13f032 SHA256 8047cbd4bdc79928be7369bf0cdfde74873f1de29c0ac74e7241826c02f0fd28 DIST ib_b60_doc.zip 10530848 RMD160 c64b4b6bc9125929928517ba072558a58ddf577d SHA1 5e94fb89e15f738aa8605c913e75ec212fa163ef SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d EBUILD firebird-2.0.3.12981.0-r6.ebuild 10003 RMD160 4858fcdca62966f8296c45710b2b70f3bf339428 SHA1 4fbcddb11d63ff3cf2779faf735530a216ed9159 SHA256 ca4c33a6577fa781b3f7c6ac6fb66874436d7ea85670f7d5fb8d9acaf932c8fd EBUILD firebird-2.0.3.12981.0-r7.ebuild 9973 RMD160 1fa0f590c57bdf79ae27c02203f10642b33cfae9 SHA1 b23a6f29d7df3a4299cf9dfe14cbaa4d4ca57212 SHA256 9b8a27a5590a141a1add117db155082cd4acad51b98600447850a92ab7e2c621 EBUILD firebird-2.0.4.13130.1.ebuild 9796 RMD160 c326d22650d17fe8eb7415993dd591b2bfec8471 SHA1 887bcfdd22ac4ba7c21472a96b825df83c472173 SHA256 65f1c3398ee83f6bb134c9cad68a2f430bf0567360535835090ca0b41554ed17 EBUILD firebird-2.1.1.17910.0.ebuild 10121 RMD160 56152a9d2b5160858ddf9d63fff172a30461eda5 SHA1 900683375ab92f08e4d9acc648732a52a1b86c39 SHA256 c5d463df2873b128997b938de31815c52bf519dc596c1b5a0d9d72817f782b61 EBUILD firebird-2.1.2.18118.0.ebuild 10129 RMD160 0592b65219284dd19ce9d3820bb711c784cdeb0e SHA1 4fd0e247ee14b7408d2d634de85b8cd46fae48b7 SHA256 d1ab0c5bf4571dd657b4277eb447fcf4bfc03e054ffc4f926e860f325a25e2c2 -MISC ChangeLog 21817 RMD160 ad5d2927770d1eedf0ce9d8aa58a20907db2a8c6 SHA1 4637ba0417e9f842e255999343ea0bcba7fee52a SHA256 b5bbb5657bbe2d2cbfb84e54428bf8bd3f4c7d40aead51b36cbfafa87337793d +EBUILD firebird-2.1.3.18185.0.ebuild 10159 RMD160 7bcc0e39fe111fe2bf8f383dc0641f25941fade0 SHA1 e80201d29a2d355d826881fb705d7493e258ff51 SHA256 ce63dcb3ef737319a27e6f0aa6bac6853efe77462b875e10668213076007e630 +MISC ChangeLog 21973 RMD160 96499e301b9e28f806a8c997261ef6a78c1c14b7 SHA1 0d51fc99922e4ce4f871ad3d90339ba1314aa1a0 SHA256 19a2398b489fe7fa3cbd47238fea39446a5ecc5e27afd4204f7778292f36aa78 MISC metadata.xml 619 RMD160 098761b0ad299b3c7bf0d3b59b9ebe2cf01cc145 SHA1 ef2a0fbd0a8b21692ae1a2a12e8b0ce7222fff9f SHA256 6b01dc565960c0345d81dafc9775196f4bc719eb925ea94c6b0a0c20e195e9e8 diff --git a/dev-db/firebird/firebird-2.1.3.18185.0.ebuild b/dev-db/firebird/firebird-2.1.3.18185.0.ebuild new file mode 100644 index 000000000000..7cdbf7bf0ca0 --- /dev/null +++ b/dev-db/firebird/firebird-2.1.3.18185.0.ebuild @@ -0,0 +1,276 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/firebird-2.1.3.18185.0.ebuild,v 1.1 2009/09/17 20:15:39 patrick Exp $ + +inherit flag-o-matic eutils autotools versionator + +MY_P=Firebird-$(replace_version_separator 4 -) +#MY_P=Firebird-${PV/_rc/-ReleaseCandidate} + +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="IDPL 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 ) + !sys-cluster/ganglia" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup firebird 450 + 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() { + 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" + + # 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 "${S}/gen/firebird/bin" + cd "${WORKDIR}/../etc"; ln -s "${S}/gen/firebird" firebird + + cd "${S}" + + epatch "${FILESDIR}/${PN}-2.1.2.18118.0-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} + + epatch "${FILESDIR}/${PN}-2.1.2.18118.0-gcc-icu-declare.patch" + + eautoreconf +} + +src_compile() { + filter-flags -fprefetch-loop-arrays + filter-mfpmath sse + + econf --prefix=/usr/lib/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" + +# Seems to be ignored? + 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/* + + insinto /usr/include + doins include/* + + insinto /usr/lib + dolib.so lib/*.so* + dolib.a lib/*.a* + + insinto /usr/lib/firebird + doins *.msg + + insinto /usr/lib/firebird/help + doins help/help.fdb + + insinto /usr/share/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 /usr/lib/firebird/UDF + doexe UDF/*.so + + exeinto /usr/lib/firebird/intl + newexe intl/libfbintl.so fbintl.so + + insinto /usr/lib/firebird/intl + doins ../install/misc/fbintl.conf + + diropts -m 755 -o firebird -g firebird + dodir /var/log/firebird + dodir /var/run/firebird + keepdir /var/log/firebird + keepdir /var/run/firebird + + # create links for backwards compatibility + cd "${D}/usr/lib" + ln -s libfbclient.so libgds.so + ln -s libfbclient.so libgds.so.0 + ln -s libfbclient.so libfbclient.so.1 + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/${PN}.xinetd.2" ${PN} || die "newins xinetd file failed" + else + newinitd "${FILESDIR}/${PN}.init.d" ${PN} + newconfd "${FILESDIR}/${PN}.conf.d" ${PN} + fperms 640 /etc/conf.d/${PN} + fi + + # Install docs + use doc && dodoc "${WORKDIR}"/manuals/* + use examples && docinto examples +} + +pkg_postinst() { + # Hack to fix ownership/perms + 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/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 +} + +pkg_config() { + # if found /etc/security.gdb from previous install, backup, and restore as + # /etc/security2.fdb + if [ -f "${ROOT}/etc/firebird/security.gdb" ] ; then + # if we have scurity2.fdb already, back it 1st + if [ -f "${ROOT}/etc/firebird/security2.fdb" ] ; then + cp "${ROOT}/etc/firebird/security2.fdb" "${ROOT}/etc/firebird/security2.fdb.old" + fi + gbak -B "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gbk" + gbak -R "${ROOT}/etc/firebird/security.gbk" "${ROOT}/etc/firebird/security2.fdb" + mv "${ROOT}/etc/firebird/security.gdb" "${ROOT}/etc/firebird/security.gdb.old" + rm "${ROOT}/etc/firebird/security.gbk" + + # make sure they are readable only to firebird + chown firebird:firebird "${ROOT}/etc/firebird/{security.*,security2.*}" + chmod 660 "${ROOT}/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 ${ROOT}/etc/firebird)." + einfo + fi + + # we need to enable local access to the server + if [ ! -f "${ROOT}/etc/hosts.equiv" ] ; then + touch "${ROOT}/etc/hosts.equiv" + chown root:0 "${ROOT}/etc/hosts.equiv" + chmod u=rw,go=r "${ROOT}/etc/hosts.equiv" + fi + + # add 'localhost.localdomain' to the hosts.equiv file... + if [ grep -q 'localhost.localdomain$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then + echo "localhost.localdomain" >> "${ROOT}/etc/hosts.equiv" + einfo "Added localhost.localdomain to ${ROOT}/etc/hosts.equiv" + fi + + # add 'localhost' to the hosts.equiv file... + if [ grep -q 'localhost$' "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then + echo "localhost" >> "${ROOT}/etc/hosts.equiv" + einfo "Added localhost to ${ROOT}/etc/hosts.equiv" + fi + + HS_NAME=`hostname` + if [ grep -q ${HS_NAME} "${ROOT}/etc/hosts.equiv" 2>/dev/null ] ; then + echo "${HS_NAME}" >> "${ROOT}/etc/hosts.equiv" + einfo "Added ${HS_NAME} to ${ROOT}/etc/hosts.equiv" + fi + + einfo "If you're using UDFs, please remember to move them" + einfo "to /usr/lib/firebird/UDF" +} |