diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db')
816 files changed, 43926 insertions, 0 deletions
diff --git a/dev-db/4store/4store-1.1.5.ebuild b/dev-db/4store/4store-1.1.5.ebuild new file mode 100644 index 000000000000..51f47be8b999 --- /dev/null +++ b/dev-db/4store/4store-1.1.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils user + +DESCRIPTION="4store is an efficient, scalable and stable RDF database" +HOMEPAGE="http://4store.org/" +# http://4store.org/download/4store-v1.0.4.tar.gz +MY_P="${PN}-v${PV}" +SRC_URI="http://4store.org/download/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# < http://4store.org/trac/wiki/Dependencies +DEPEND="media-libs/raptor + >=dev-libs/rasqal-0.9.18 + dev-libs/libxml2 + dev-libs/libpcre + sys-libs/readline + sys-libs/ncurses + dev-libs/expat + sys-libs/zlib" + +RDEPEND="${DEPEND}" +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup fourstore + enewuser fourstore -1 -1 /var/lib/4store fourstore +} + +src_install() { + + # patch the Makefiles to use /usr/ instead of /usr/local/ + find . -name "Makefile" -execdir sed -e "s#/usr/local/#/usr/#" -i {} \; + + MAKEOPTS="-j1" emake DESTDIR="${D}" install || die "emake install failed" + + dodir /var/log/4store + fowners fourstore:fourstore \ + /var/lib/4store \ + /var/log/4store + + # fix 1777 + fperms 755 /var/lib/4store + + # fix 755 + fperms 644 \ + /usr/share/man/man1/4s-query.1 \ + /usr/share/man/man1/4s-backend-setup.1 \ + /usr/share/man/man1/4s-import.1 \ + /usr/share/man/man1/4s-cluster-info.1 \ + /usr/share/man/man1/4s-cluster-start.1 \ + /usr/share/man/man1/4s-cluster-create.1 \ + /usr/share/man/man1/4s-cluster-stop.1 \ + /usr/share/man/man1/4s-cluster-destroy.1 +} diff --git a/dev-db/4store/Manifest b/dev-db/4store/Manifest new file mode 100644 index 000000000000..dea2c6ddc3d1 --- /dev/null +++ b/dev-db/4store/Manifest @@ -0,0 +1 @@ +DIST 4store-v1.1.5.tar.gz 5610204 SHA256 2bdd6fb804288802187c5779e365eea2b3ddebce419b3da0609be38edc9e8c5b SHA512 42a7431c7853e1b06a76ed15c205eebd7b334516c14e7dcfeddb2f9249f30f879f8256a1b454be71f79e71205b3efa95efab726fd88b4d455bb0fc4a8092bcf4 WHIRLPOOL 55fd3f725386847c598c80945a01234fb7f3c8ced56f1004f3679d99e7fdf12cb8f92c4f865891491ac0dc66d5194379cbe2022f25bef9134bc041c5f5dd2d92 diff --git a/dev-db/4store/metadata.xml b/dev-db/4store/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/dev-db/4store/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/dev-db/SchemaSync/Manifest b/dev-db/SchemaSync/Manifest new file mode 100644 index 000000000000..30d3f9c11602 --- /dev/null +++ b/dev-db/SchemaSync/Manifest @@ -0,0 +1 @@ +DIST SchemaSync-0.9.2.tar.gz 12828 SHA256 3ee4e87e932c41e9fcbc534d662d6dc7be6ac29c2cd5ef3e6fd620fad6c2f3f5 SHA512 4f2522c05e3cf0957fe0d51cc48f3a45fd8eaeb341801bfdeb32bb7e959e8a250a84a162b80853f2010a99a932ef7d1b556579f7c77971f0e9a3e0fa87531599 WHIRLPOOL b532793719bca008a5036fc12f75feb9b136323f7d6d3a1253a4b4521a7699cad082d6fe208ec6fbe6b6c12d80e3e59aa6e77f96c26a56f1dde8d2a31ae610ea diff --git a/dev-db/SchemaSync/SchemaSync-0.9.2.ebuild b/dev-db/SchemaSync/SchemaSync-0.9.2.ebuild new file mode 100644 index 000000000000..d11c55cae690 --- /dev/null +++ b/dev-db/SchemaSync/SchemaSync-0.9.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +PYTHON_DEPEND="2:2.5:2.7" + +inherit distutils + +DESCRIPTION="MySQL Schema Versioning and Migration Utility" +HOMEPAGE="http://schemasync.org/" +SRC_URI="http://www.schemasync.org/downloads/${P}.tar.gz" + +pn="${PN,,}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-python/setuptools + dev-python/mysql-python + dev-python/SchemaObject" +DEPEND="${RDEPEND}" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + python_convert_shebangs -r 2 . +} + +pkg_postinst() { + python_mod_optimize "${pn}" +} + +pkg_postrm() { + python_mod_cleanup "${pn}" +} diff --git a/dev-db/SchemaSync/metadata.xml b/dev-db/SchemaSync/metadata.xml new file mode 100644 index 000000000000..1e7587374fdf --- /dev/null +++ b/dev-db/SchemaSync/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> diff --git a/dev-db/apgdiff/Manifest b/dev-db/apgdiff/Manifest new file mode 100644 index 000000000000..985b111038a9 --- /dev/null +++ b/dev-db/apgdiff/Manifest @@ -0,0 +1,5 @@ +DIST apgdiff-1.4-src.zip 178608 SHA256 aa341a627e2087eb9fb66c1bc0a785e5e9953459395b60e1b447ed30947f52f9 SHA512 c1dcd3f39e931f90e65a439a610d5b264b790419a59b2c90f6d9107c1b5151c602887588f378110a2e9420428414fc333c7919e2137e2dc35168654ceb3ae8d0 WHIRLPOOL 2e05303fef00b999aa07dce0b59df7d805b486cced61ac50a40c3b8aefcdd37aec649feb4f5fc96111d388029198def0aada0d33c6421e672a652d19b55f94a1 +DIST apgdiff-2.2.1-src.zip 194305 SHA256 844c92499f80b52d290fa89edf19c955e056eb6d92ee7fb3ad01acfcc04b4d04 SHA512 cab6b2349d5822ca579c1e021ea7f02f5ddf39d56559f841d0cadfdccc1c1c61399c494302ea5909984b9a8a6d91cf08868f012dd3487a8633f65e3bbd28f19c WHIRLPOOL 364f78e22c136e10acd3337db7d7b85ef16e33042d7d6fae990824fda583d94189ebd737c6268fb1264f7b9d2fa11c3c4852fd8fab89cfbca6cd42c7bfb97397 +DIST apgdiff-2.2.2-src.zip 198814 SHA256 cd4c4a5315fdf311e3dd18c1368a50fead91bb17198e984b0d4ace15755a55ae SHA512 273ba473b5b4ccfe2ae1b3f34ce2c2b825e446fad166f28a4575528190c20922e6794563ae3e5b2918ade5a3292a792ea363e9e5ec0900e924332d8771548c0b WHIRLPOOL ee6af8b7444676e4eb887f716dee3514f9d5a5d54bf0efa859c20c817424a5dbcf4059dc6641c1fa19c53441c25e002e812d5eea13d3c4aecce6fee76a46dd9e +DIST apgdiff-2.3-src.zip 215881 SHA256 bbae469988ca321b76a4d2d8717477261c823ac9608282998cec28ed8933c8b2 SHA512 e716143ff4378fc27c4781076c51826583c2ad9dab17f4364acbfed0f9a0958dca0de9a72171816bbce41653ad33834158cb9277dd8790649da4bd24e013bbb5 WHIRLPOOL e404000074fee973b49ace8f6223072eb4aca95283d9a3ffd9b4dec1f242de263546e0894b8242828368926a45ba3ac5388b59cb4be73a1b0421a9e1703f2685 +DIST apgdiff-2.4-src.zip 227714 SHA256 8551a3e10c7aae3a04efc5dad655575484b63a3323f07db5e81c50b42d88129c SHA512 f37e0f86ff8a8bc53a43cac1748ab3a2c96ab6c972b37ee63f281ee397b31a7b48986cbc963d89ea773f1bb7b10b798de74a4c88a03f2db7672501b93355261b WHIRLPOOL 61a8a605508564188f16fc306abd710e3895079a53a2f311e3cbb8b1943146f7f4039b31f5f5653b1ea30447a2e35328201d7aec7b91952483c1a5a18704d3b7 diff --git a/dev-db/apgdiff/apgdiff-1.4.ebuild b/dev-db/apgdiff/apgdiff-1.4.ebuild new file mode 100644 index 000000000000..688ade64018b --- /dev/null +++ b/dev-db/apgdiff/apgdiff-1.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="http://apgdiff.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.5 + >=dev-java/ant-core-1.7.0:0 + >=dev-java/ant-junit-1.7.0:0 + app-arch/zip:0 + test? ( + dev-java/hamcrest-core:0 + >=dev-java/junit-4.4:4 + )" + +RDEPEND=">=virtual/jre-1.5" + +java_prepare() { + mkdir "${S}"/lib + cd "${S}"/lib + if use test ; then + java-pkg_jar-from --build-only hamcrest-core + java-pkg_jar-from --build-only junit-4 + fi +} + +src_compile() { + eant -Dnoget=true jar $(use_doc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + java-pkg_dolauncher apgdiff --jar ${PN}.jar + + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + ANT_TASKS="ant-junit" eant -Dnoget=true test +} diff --git a/dev-db/apgdiff/apgdiff-2.2.1.ebuild b/dev-db/apgdiff/apgdiff-2.2.1.ebuild new file mode 100644 index 000000000000..bbfae5428360 --- /dev/null +++ b/dev-db/apgdiff/apgdiff-2.2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="http://apgdiff.com" +SRC_URI="http://apgdiff.com/download/${P}-src.zip" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.6 + >=dev-java/ant-core-1.7.0:0 + >=dev-java/ant-junit-1.7.0:0 + app-arch/zip:0 + test? ( + dev-java/hamcrest-core:1.3 + >=dev-java/junit-4.4:4 + )" + +RDEPEND=">=virtual/jre-1.6" + +java_prepare() { + mkdir "${S}"/lib + cd "${S}"/lib + if use test ; then + java-pkg_jar-from --build-only hamcrest-core-1.3 + java-pkg_jar-from --build-only junit-4 + fi +} + +src_compile() { + eant -Dnoget=true jar $(use_doc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + java-pkg_dolauncher apgdiff --jar ${PN}.jar + + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + ANT_TASKS="ant-junit" eant -Dnoget=true test +} diff --git a/dev-db/apgdiff/apgdiff-2.2.2.ebuild b/dev-db/apgdiff/apgdiff-2.2.2.ebuild new file mode 100644 index 000000000000..d3b7362f9d4c --- /dev/null +++ b/dev-db/apgdiff/apgdiff-2.2.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="http://apgdiff.com" +SRC_URI="http://apgdiff.com/download/${P}-src.zip" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.6 + >=dev-java/ant-core-1.7.0:0 + >=dev-java/ant-junit-1.7.0:0 + app-arch/zip:0 + test? ( + dev-java/hamcrest-core:0 + >=dev-java/junit-4.4:4 + )" + +RDEPEND=">=virtual/jre-1.6" + +java_prepare() { + mkdir "${S}"/lib + cd "${S}"/lib + if use test ; then + java-pkg_jar-from --build-only hamcrest-core + java-pkg_jar-from --build-only junit-4 + fi +} + +src_compile() { + eant -Dnoget=true jar $(use_doc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + java-pkg_dolauncher apgdiff --jar ${PN}.jar + + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + ANT_TASKS="ant-junit" eant -Dnoget=true test +} diff --git a/dev-db/apgdiff/apgdiff-2.3.ebuild b/dev-db/apgdiff/apgdiff-2.3.ebuild new file mode 100644 index 000000000000..d3b7362f9d4c --- /dev/null +++ b/dev-db/apgdiff/apgdiff-2.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="http://apgdiff.com" +SRC_URI="http://apgdiff.com/download/${P}-src.zip" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.6 + >=dev-java/ant-core-1.7.0:0 + >=dev-java/ant-junit-1.7.0:0 + app-arch/zip:0 + test? ( + dev-java/hamcrest-core:0 + >=dev-java/junit-4.4:4 + )" + +RDEPEND=">=virtual/jre-1.6" + +java_prepare() { + mkdir "${S}"/lib + cd "${S}"/lib + if use test ; then + java-pkg_jar-from --build-only hamcrest-core + java-pkg_jar-from --build-only junit-4 + fi +} + +src_compile() { + eant -Dnoget=true jar $(use_doc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + java-pkg_dolauncher apgdiff --jar ${PN}.jar + + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + ANT_TASKS="ant-junit" eant -Dnoget=true test +} diff --git a/dev-db/apgdiff/apgdiff-2.4.ebuild b/dev-db/apgdiff/apgdiff-2.4.ebuild new file mode 100644 index 000000000000..d3b7362f9d4c --- /dev/null +++ b/dev-db/apgdiff/apgdiff-2.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="http://apgdiff.com" +SRC_URI="http://apgdiff.com/download/${P}-src.zip" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.6 + >=dev-java/ant-core-1.7.0:0 + >=dev-java/ant-junit-1.7.0:0 + app-arch/zip:0 + test? ( + dev-java/hamcrest-core:0 + >=dev-java/junit-4.4:4 + )" + +RDEPEND=">=virtual/jre-1.6" + +java_prepare() { + mkdir "${S}"/lib + cd "${S}"/lib + if use test ; then + java-pkg_jar-from --build-only hamcrest-core + java-pkg_jar-from --build-only junit-4 + fi +} + +src_compile() { + eant -Dnoget=true jar $(use_doc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + java-pkg_dolauncher apgdiff --jar ${PN}.jar + + use doc && java-pkg_dojavadoc dist/javadoc + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + ANT_TASKS="ant-junit" eant -Dnoget=true test +} diff --git a/dev-db/apgdiff/metadata.xml b/dev-db/apgdiff/metadata.xml new file mode 100644 index 000000000000..407583277d87 --- /dev/null +++ b/dev-db/apgdiff/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>java@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-db/barman/Manifest b/dev-db/barman/Manifest new file mode 100644 index 000000000000..7cda572d30f1 --- /dev/null +++ b/dev-db/barman/Manifest @@ -0,0 +1,2 @@ +DIST barman-1.4.0.tar.gz 120590 SHA256 d18c331bd6d8931bd60dab272bc9d512eb494bfddb11964d7ca430f51b7e45e9 SHA512 415fd5597df94fb43b8c48ec1250c22e6bbe21217fe9937d6c0cf6ef8ab68bea21b9341c18a2e97f7af92b516f0201b82fa1279af6994d6fa60d441d3f9326e2 WHIRLPOOL 6e1e1c112ad5ef1afc76369d0f4428128ce85d2abe4a298b2eed73efc6bd2e248dd81baa3f6839360ea162dc676103f4e59f13fefe102ea609455e1330444e93 +DIST barman-1.4.1.tar.gz 122048 SHA256 38a649ab1cea811e2db9410d87c08423beb3135f88b1160913bcb9f16a10b1df SHA512 3f6d55ceee55efc95d526848292f68c80bbee4081fc26714b0da52990e3a05030ae2f89561a4c4c71c273bb1c07f009dc0bbbbebbc5cde87831b514e918ad531 WHIRLPOOL 8f42844f5d9514b0d8c14ff2ad03f1e8e3994e0e394e7e7a761b0a95ed6a8c9a4eea791a82a14b346cbcf3354aaa8f56547290eddc75ea0f57e775a55db70499 diff --git a/dev-db/barman/barman-1.4.0.ebuild b/dev-db/barman/barman-1.4.0.ebuild new file mode 100644 index 000000000000..d312a7ea25b1 --- /dev/null +++ b/dev-db/barman/barman-1.4.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +PYTHON_COMPAT=( python2_7) + +inherit distutils-r1 + +DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers" + +HOMEPAGE="http://www.pgbarman.org" +SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="dev-python/argh[${PYTHON_USEDEP}] + >=dev-python/psycopg-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/argcomplete[${PYTHON_USEDEP}] + net-misc/rsync + dev-db/postgresql[server]" +DEPEND="" diff --git a/dev-db/barman/barman-1.4.1.ebuild b/dev-db/barman/barman-1.4.1.ebuild new file mode 100644 index 000000000000..d312a7ea25b1 --- /dev/null +++ b/dev-db/barman/barman-1.4.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +PYTHON_COMPAT=( python2_7) + +inherit distutils-r1 + +DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers" + +HOMEPAGE="http://www.pgbarman.org" +SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="dev-python/argh[${PYTHON_USEDEP}] + >=dev-python/psycopg-2[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/argcomplete[${PYTHON_USEDEP}] + net-misc/rsync + dev-db/postgresql[server]" +DEPEND="" diff --git a/dev-db/barman/metadata.xml b/dev-db/barman/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/dev-db/barman/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/dev-db/bucardo/Manifest b/dev-db/bucardo/Manifest new file mode 100644 index 000000000000..4a4dc44fe419 --- /dev/null +++ b/dev-db/bucardo/Manifest @@ -0,0 +1,3 @@ +DIST Bucardo-5.1.1.tar.gz 313409 SHA256 73fec278e83ccd561050d24816438db34d0b68fb9bc44bf4d27c5885ad31597f SHA512 cfba0ad5bd305a057688e024b11dce8332ebada2a5ca649481311cd46e140d6fc57c71914570fe7f26beb9c6e5ac232d36450bed9017ae932117cf28561d311a WHIRLPOOL d8d4848e2e817d648bc9aa4102d00e6da981098f0baf10af3239c1818aa51fba890670788acdf2b0af6f87f3b2fc987a44918d45ab3a304ebd32e536430f0167 +DIST Bucardo-5.2.0.tar.gz 318481 SHA256 3b6353b5cf28e45e1ad612f3aea884dabd19823374cc38eeec8364390d5a94ad SHA512 179c72d3a6cd756a725b3f37e2d6dc30df5d473e90a479f22d6a2ca4e6e98f55c1aa12d92ae4958d4446f5f1176fad4c5c0085d38cf3c64f77b699e3bf0884dd WHIRLPOOL 8c76910c97f9252473cd7575a08fea9f6c536d58f66ab596274fec514e220edbd20ea0fac75dc739757702e1b9ee47181240f348ace74ca7f7cf9121a6f85d9c +DIST Bucardo-5.3.1.tar.gz 321942 SHA256 de8f83305395571cff8c6db8e0016b195424ed75116012528d283dd789c2c132 SHA512 c0821116b81523016b1b7cd9f7544b575c9b762fea1a721f57648dd8484fbc8881fa10fc4a81166239b3a4b50072dfdb8075e5f1485c96c37265d023b0f4ac27 WHIRLPOOL acf5bb82a83d49f979301fe2941c884be0773e1180929d2973e3f6b781f610ea3650498141655b59c2e15dd581d555e4e2314f4d8762ffa323209d4146dab82c diff --git a/dev-db/bucardo/bucardo-5.1.1-r1.ebuild b/dev-db/bucardo/bucardo-5.1.1-r1.ebuild new file mode 100644 index 000000000000..842dc1235925 --- /dev/null +++ b/dev-db/bucardo/bucardo-5.1.1-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +RESTRICT="test" + +inherit perl-module + +MY_PN="Bucardo" + +DESCRIPTION="An asynchronous PostgreSQL replication system" +HOMEPAGE="http://bucardo.org/wiki/Bucardo" +SRC_URI="http://bucardo.org/downloads/${MY_PN}-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="test" doesn't work without extra data +IUSE="" + +DEPEND="dev-perl/DBIx-Safe + dev-perl/DBD-Pg" +RDEPEND="dev-perl/DBIx-Safe" + +S=${WORKDIR}/${MY_PN}-${PV} + +src_install() { + emake DESTDIR="${D}" INSTALL_BASE="${D}" install -j1 + keepdir /var/run/bucardo +} diff --git a/dev-db/bucardo/bucardo-5.2.0.ebuild b/dev-db/bucardo/bucardo-5.2.0.ebuild new file mode 100644 index 000000000000..842dc1235925 --- /dev/null +++ b/dev-db/bucardo/bucardo-5.2.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +RESTRICT="test" + +inherit perl-module + +MY_PN="Bucardo" + +DESCRIPTION="An asynchronous PostgreSQL replication system" +HOMEPAGE="http://bucardo.org/wiki/Bucardo" +SRC_URI="http://bucardo.org/downloads/${MY_PN}-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="test" doesn't work without extra data +IUSE="" + +DEPEND="dev-perl/DBIx-Safe + dev-perl/DBD-Pg" +RDEPEND="dev-perl/DBIx-Safe" + +S=${WORKDIR}/${MY_PN}-${PV} + +src_install() { + emake DESTDIR="${D}" INSTALL_BASE="${D}" install -j1 + keepdir /var/run/bucardo +} diff --git a/dev-db/bucardo/bucardo-5.3.1.ebuild b/dev-db/bucardo/bucardo-5.3.1.ebuild new file mode 100644 index 000000000000..8337c3ae4088 --- /dev/null +++ b/dev-db/bucardo/bucardo-5.3.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +RESTRICT="test" + +inherit perl-module + +MY_PN="Bucardo" + +DESCRIPTION="An asynchronous PostgreSQL replication system" +HOMEPAGE="http://bucardo.org/wiki/Bucardo" +SRC_URI="http://bucardo.org/downloads/${MY_PN}-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="test" doesn't work without extra data +IUSE="" + +DEPEND="dev-perl/DBIx-Safe + dev-perl/DBD-Pg" +RDEPEND="dev-perl/DBIx-Safe" + +S=${WORKDIR}/${MY_PN}-${PV} + +src_install() { + emake DESTDIR="${D}" INSTALL_BASE="${D}" install -j1 + keepdir /var/run/bucardo +} diff --git a/dev-db/bucardo/metadata.xml b/dev-db/bucardo/metadata.xml new file mode 100644 index 000000000000..d06e452b35af --- /dev/null +++ b/dev-db/bucardo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>postgresql</herd> +</pkgmetadata> diff --git a/dev-db/cdb/Manifest b/dev-db/cdb/Manifest new file mode 100644 index 000000000000..7b701ec1a4cc --- /dev/null +++ b/dev-db/cdb/Manifest @@ -0,0 +1 @@ +DIST cdb-0.75.tar.gz 54162 SHA256 1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5 SHA512 6faeab91a77457348b58f685e81000b83fb609691317198a06284c5c62dee1e4d6138f90be1e727021f279d740169c175a21b23c96adb39a654e3f7fafdf36c0 WHIRLPOOL 51e1783c3f5c7c44846e370075ca53593cf5cbf82bcdf39e3882b49205058844d7403c571ce007eaba987b23848dcc87e3c4ad3cc7b622389bb2f532bafb4912 diff --git a/dev-db/cdb/cdb-0.75-r3.ebuild b/dev-db/cdb/cdb-0.75-r3.ebuild new file mode 100644 index 000000000000..aa073cc0b70d --- /dev/null +++ b/dev-db/cdb/cdb-0.75-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 +inherit eutils multilib toolchain-funcs + +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" + +DESCRIPTION="Fast, reliable, simple package for creating and reading constant databases" +HOMEPAGE="http://cr.yp.to/cdb.html" +SRC_URI="http://cr.yp.to/cdb/${P}.tar.gz" +LICENSE="public-domain" +SLOT="0" +IUSE="" + +DEPEND=">=sys-apps/sed-4 + !dev-db/tinycdb" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-errno.diff + epatch "${FILESDIR}"/${P}-stdint.diff + + sed -i -e 's/head -1/head -n 1/g' Makefile \ + || die "sed Makefile failed" +} + +src_configure() { + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld + echo "${EPREFIX}/usr" > conf-home +} + +src_install() { + dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest \ + || die "dobin failed" + + # ok so ... first off, some automakes fail at finding + # cdb.a, so install that now + dolib *.a || die "dolib failed" + + # then do this pretty little symlinking to solve the somewhat + # cosmetic library issue at hand + dosym cdb.a /usr/$(get_libdir)/libcdb.a || die "dosym failed" + + # uint32.h needs installation too, otherwise compiles depending + # on it will fail + insinto /usr/include/cdb + doins cdb*.h buffer.h alloc.h uint32.h || die "doins failed" + + dodoc CHANGES FILES README SYSDEPS TODO VERSION +} diff --git a/dev-db/cdb/files/cdb-0.75-errno.diff b/dev-db/cdb/files/cdb-0.75-errno.diff new file mode 100644 index 000000000000..5f6ac20c59c6 --- /dev/null +++ b/dev-db/cdb/files/cdb-0.75-errno.diff @@ -0,0 +1,11 @@ +--- error.h.orig 2003-03-29 04:18:26.000000000 -0800 ++++ error.h 2003-03-29 04:19:00.000000000 -0800 +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; diff --git a/dev-db/cdb/files/cdb-0.75-stdint.diff b/dev-db/cdb/files/cdb-0.75-stdint.diff new file mode 100644 index 000000000000..eb564512075e --- /dev/null +++ b/dev-db/cdb/files/cdb-0.75-stdint.diff @@ -0,0 +1,436 @@ +diff -Naur cdb-0.75-orig/cdb.c cdb-0.75/cdb.c +--- cdb-0.75-orig/cdb.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdb.c 2009-01-16 19:46:17.000000000 +0100 +@@ -41,7 +41,7 @@ + } + } + +-int cdb_read(struct cdb *c,char *buf,unsigned int len,uint32 pos) ++int cdb_read(struct cdb *c,char *buf,unsigned int len,uint32_t pos) + { + if (c->map) { + if ((pos > c->size) || (c->size - pos < len)) goto FORMAT; +@@ -67,7 +67,7 @@ + return -1; + } + +-static int match(struct cdb *c,char *key,unsigned int len,uint32 pos) ++static int match(struct cdb *c,char *key,unsigned int len,uint32_t pos) + { + char buf[32]; + int n; +@@ -87,8 +87,8 @@ + int cdb_findnext(struct cdb *c,char *key,unsigned int len) + { + char buf[8]; +- uint32 pos; +- uint32 u; ++ uint32_t pos; ++ uint32_t u; + + if (!c->loop) { + u = cdb_hash(key,len); +diff -Naur cdb-0.75-orig/cdbdump.c cdb-0.75/cdbdump.c +--- cdb-0.75-orig/cdbdump.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdbdump.c 2009-01-16 19:46:17.000000000 +0100 +@@ -18,7 +18,7 @@ + if (buffer_flush(buffer_1) == -1) die_write(); + } + +-uint32 pos = 0; ++uint32_t pos = 0; + + void get(char *buf,unsigned int len) + { +@@ -37,7 +37,7 @@ + + char buf[512]; + +-void copy(uint32 len) ++void copy(uint32_t len) + { + unsigned int x; + +@@ -50,7 +50,7 @@ + } + } + +-void getnum(uint32 *num) ++void getnum(uint32_t *num) + { + get(buf,4); + uint32_unpack(buf,num); +@@ -60,9 +60,9 @@ + + main() + { +- uint32 eod; +- uint32 klen; +- uint32 dlen; ++ uint32_t eod; ++ uint32_t klen; ++ uint32_t dlen; + + getnum(&eod); + while (pos < 2048) getnum(&dlen); +diff -Naur cdb-0.75-orig/cdbget.c cdb-0.75/cdbget.c +--- cdb-0.75-orig/cdbget.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdbget.c 2009-01-16 19:46:17.000000000 +0100 +@@ -27,8 +27,8 @@ + { + char *key; + int r; +- uint32 pos; +- uint32 len; ++ uint32_t pos; ++ uint32_t len; + unsigned long u = 0; + + if (!*argv) die_usage(); +diff -Naur cdb-0.75-orig/cdb.h cdb-0.75/cdb.h +--- cdb-0.75-orig/cdb.h 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdb.h 2009-01-16 19:46:17.000000000 +0100 +@@ -6,26 +6,26 @@ + #include "uint32.h" + + #define CDB_HASHSTART 5381 +-extern uint32 cdb_hashadd(uint32,unsigned char); +-extern uint32 cdb_hash(char *,unsigned int); ++extern uint32_t cdb_hashadd(uint32_t,unsigned char); ++extern uint32_t cdb_hash(char *,unsigned int); + + struct cdb { + char *map; /* 0 if no map is available */ + int fd; +- uint32 size; /* initialized if map is nonzero */ +- uint32 loop; /* number of hash slots searched under this key */ +- uint32 khash; /* initialized if loop is nonzero */ +- uint32 kpos; /* initialized if loop is nonzero */ +- uint32 hpos; /* initialized if loop is nonzero */ +- uint32 hslots; /* initialized if loop is nonzero */ +- uint32 dpos; /* initialized if cdb_findnext() returns 1 */ +- uint32 dlen; /* initialized if cdb_findnext() returns 1 */ ++ uint32_t size; /* initialized if map is nonzero */ ++ uint32_t loop; /* number of hash slots searched under this key */ ++ uint32_t khash; /* initialized if loop is nonzero */ ++ uint32_t kpos; /* initialized if loop is nonzero */ ++ uint32_t hpos; /* initialized if loop is nonzero */ ++ uint32_t hslots; /* initialized if loop is nonzero */ ++ uint32_t dpos; /* initialized if cdb_findnext() returns 1 */ ++ uint32_t dlen; /* initialized if cdb_findnext() returns 1 */ + } ; + + extern void cdb_free(struct cdb *); + extern void cdb_init(struct cdb *,int fd); + +-extern int cdb_read(struct cdb *,char *,unsigned int,uint32); ++extern int cdb_read(struct cdb *,char *,unsigned int,uint32_t); + + extern void cdb_findstart(struct cdb *); + extern int cdb_findnext(struct cdb *,char *,unsigned int); +diff -Naur cdb-0.75-orig/cdb_hash.c cdb-0.75/cdb_hash.c +--- cdb-0.75-orig/cdb_hash.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdb_hash.c 2009-01-16 19:46:17.000000000 +0100 +@@ -2,15 +2,15 @@ + + #include "cdb.h" + +-uint32 cdb_hashadd(uint32 h,unsigned char c) ++uint32_t cdb_hashadd(uint32_t h,unsigned char c) + { + h += (h << 5); + return h ^ c; + } + +-uint32 cdb_hash(char *buf,unsigned int len) ++uint32_t cdb_hash(char *buf,unsigned int len) + { +- uint32 h; ++ uint32_t h; + + h = CDB_HASHSTART; + while (len) { +diff -Naur cdb-0.75-orig/cdb_make.c cdb-0.75/cdb_make.c +--- cdb-0.75-orig/cdb_make.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdb_make.c 2009-01-16 19:51:05.000000000 +0100 +@@ -19,15 +19,15 @@ + return seek_set(fd,c->pos); + } + +-static int posplus(struct cdb_make *c,uint32 len) ++static int posplus(struct cdb_make *c,uint32_t len) + { +- uint32 newpos = c->pos + len; ++ uint32_t newpos = c->pos + len; + if (newpos < len) { errno = error_nomem; return -1; } + c->pos = newpos; + return 0; + } + +-int cdb_make_addend(struct cdb_make *c,unsigned int keylen,unsigned int datalen,uint32 h) ++int cdb_make_addend(struct cdb_make *c,unsigned int keylen,unsigned int datalen,uint32_t h) + { + struct cdb_hplist *head; + +@@ -74,11 +74,11 @@ + { + char buf[8]; + int i; +- uint32 len; +- uint32 u; +- uint32 memsize; +- uint32 count; +- uint32 where; ++ uint32_t len; ++ uint32_t u; ++ uint32_t memsize; ++ uint32_t count; ++ uint32_t where; + struct cdb_hplist *x; + struct cdb_hp *hp; + +@@ -99,7 +99,7 @@ + } + + memsize += c->numentries; /* no overflow possible up to now */ +- u = (uint32) 0 - (uint32) 1; ++ u = UINT32_MAX; + u /= sizeof(struct cdb_hp); + if (memsize > u) { errno = error_nomem; return -1; } + +diff -Naur cdb-0.75-orig/cdbmake.c cdb-0.75/cdbmake.c +--- cdb-0.75-orig/cdbmake.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdbmake.c 2009-01-16 19:46:17.000000000 +0100 +@@ -41,7 +41,7 @@ + unsigned int klen; + unsigned int dlen; + unsigned int i; +- uint32 h; ++ uint32_t h; + int fd; + char ch; + +diff -Naur cdb-0.75-orig/cdb_make.h cdb-0.75/cdb_make.h +--- cdb-0.75-orig/cdb_make.h 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdb_make.h 2009-01-16 19:46:17.000000000 +0100 +@@ -8,7 +8,7 @@ + + #define CDB_HPLIST 1000 + +-struct cdb_hp { uint32 h; uint32 p; } ; ++struct cdb_hp { uint32_t h; uint32_t p; } ; + + struct cdb_hplist { + struct cdb_hp hp[CDB_HPLIST]; +@@ -19,20 +19,20 @@ + struct cdb_make { + char bspace[8192]; + char final[2048]; +- uint32 count[256]; +- uint32 start[256]; ++ uint32_t count[256]; ++ uint32_t start[256]; + struct cdb_hplist *head; + struct cdb_hp *split; /* includes space for hash */ + struct cdb_hp *hash; +- uint32 numentries; ++ uint32_t numentries; + buffer b; +- uint32 pos; ++ uint32_t pos; + int fd; + } ; + + extern int cdb_make_start(struct cdb_make *,int); + extern int cdb_make_addbegin(struct cdb_make *,unsigned int,unsigned int); +-extern int cdb_make_addend(struct cdb_make *,unsigned int,unsigned int,uint32); ++extern int cdb_make_addend(struct cdb_make *,unsigned int,unsigned int,uint32_t); + extern int cdb_make_add(struct cdb_make *,char *,unsigned int,char *,unsigned int); + extern int cdb_make_finish(struct cdb_make *); + +diff -Naur cdb-0.75-orig/cdbstats.c cdb-0.75/cdbstats.c +--- cdb-0.75-orig/cdbstats.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdbstats.c 2009-01-16 19:46:17.000000000 +0100 +@@ -28,7 +28,7 @@ + if (buffer_flush(buffer_1small) == -1) die_write(); + } + +-uint32 pos = 0; ++uint32_t pos = 0; + + void get(char *buf,unsigned int len) + { +@@ -43,7 +43,7 @@ + } + } + +-void getnum(uint32 *num) ++void getnum(uint32_t *num) + { + char buf[4]; + get(buf,4); +@@ -70,9 +70,9 @@ + + main() + { +- uint32 eod; +- uint32 klen; +- uint32 dlen; ++ uint32_t eod; ++ uint32_t klen; ++ uint32_t dlen; + seek_pos rest; + int r; + +diff -Naur cdb-0.75-orig/cdbtest.c cdb-0.75/cdbtest.c +--- cdb-0.75-orig/cdbtest.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/cdbtest.c 2009-01-16 19:46:17.000000000 +0100 +@@ -24,7 +24,7 @@ + if (buffer_flush(buffer_1small) == -1) die_write(); + } + +-uint32 pos = 0; ++uint32_t pos = 0; + + void get(char *buf,unsigned int len) + { +@@ -40,7 +40,7 @@ + } + } + +-void getnum(uint32 *num) ++void getnum(uint32_t *num) + { + char buf[4]; + get(buf,4); +@@ -68,9 +68,9 @@ + + main() + { +- uint32 eod; +- uint32 klen; +- uint32 dlen; ++ uint32_t eod; ++ uint32_t klen; ++ uint32_t dlen; + seek_pos rest; + int r; + +diff -Naur cdb-0.75-orig/Makefile cdb-0.75/Makefile +--- cdb-0.75-orig/Makefile 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/Makefile 2009-01-16 19:46:17.000000000 +0100 +@@ -298,13 +298,6 @@ + uint32.h + ./compile testzero.c + +-uint32.h: \ +-tryulong32.c compile load uint32.h1 uint32.h2 +- ( ( ./compile tryulong32.c && ./load tryulong32 && \ +- ./tryulong32 ) >/dev/null 2>&1 \ +- && cat uint32.h2 || cat uint32.h1 ) > uint32.h +- rm -f tryulong32.o tryulong32 +- + uint32_pack.o: \ + compile uint32_pack.c uint32.h + ./compile uint32_pack.c +diff -Naur cdb-0.75-orig/TARGETS cdb-0.75/TARGETS +--- cdb-0.75-orig/TARGETS 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/TARGETS 2009-01-16 19:52:06.000000000 +0100 +@@ -1,6 +1,5 @@ + load + compile +-uint32.h + cdbget.o + systype + makelib +diff -Naur cdb-0.75-orig/uint32.h cdb-0.75/uint32.h +--- cdb-0.75-orig/uint32.h 1970-01-01 01:00:00.000000000 +0100 ++++ cdb-0.75/uint32.h 2009-01-16 19:46:17.000000000 +0100 +@@ -0,0 +1,11 @@ ++#ifndef UINT32_H ++#define UINT32_H ++ ++#include <stdint.h> ++ ++extern void uint32_pack(char *,uint32_t); ++extern void uint32_pack_big(char *,uint32_t); ++extern void uint32_unpack(char *,uint32_t *); ++extern void uint32_unpack_big(char *,uint32_t *); ++ ++#endif +diff -Naur cdb-0.75-orig/uint32.h1 cdb-0.75/uint32.h1 +--- cdb-0.75-orig/uint32.h1 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/uint32.h1 1970-01-01 01:00:00.000000000 +0100 +@@ -1,11 +0,0 @@ +-#ifndef UINT32_H +-#define UINT32_H +- +-typedef unsigned int uint32; +- +-extern void uint32_pack(char *,uint32); +-extern void uint32_pack_big(char *,uint32); +-extern void uint32_unpack(char *,uint32 *); +-extern void uint32_unpack_big(char *,uint32 *); +- +-#endif +diff -Naur cdb-0.75-orig/uint32.h2 cdb-0.75/uint32.h2 +--- cdb-0.75-orig/uint32.h2 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/uint32.h2 1970-01-01 01:00:00.000000000 +0100 +@@ -1,11 +0,0 @@ +-#ifndef UINT32_H +-#define UINT32_H +- +-typedef unsigned long uint32; +- +-extern void uint32_pack(char *,uint32); +-extern void uint32_pack_big(char *,uint32); +-extern void uint32_unpack(char *,uint32 *); +-extern void uint32_unpack_big(char *,uint32 *); +- +-#endif +diff -Naur cdb-0.75-orig/uint32_pack.c cdb-0.75/uint32_pack.c +--- cdb-0.75-orig/uint32_pack.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/uint32_pack.c 2009-01-16 19:46:17.000000000 +0100 +@@ -1,6 +1,6 @@ + #include "uint32.h" + +-void uint32_pack(char s[4],uint32 u) ++void uint32_pack(char s[4],uint32_t u) + { + s[0] = u & 255; + u >>= 8; +@@ -10,7 +10,7 @@ + s[3] = u >> 8; + } + +-void uint32_pack_big(char s[4],uint32 u) ++void uint32_pack_big(char s[4],uint32_t u) + { + s[3] = u & 255; + u >>= 8; +diff -Naur cdb-0.75-orig/uint32_unpack.c cdb-0.75/uint32_unpack.c +--- cdb-0.75-orig/uint32_unpack.c 2009-01-16 19:38:41.000000000 +0100 ++++ cdb-0.75/uint32_unpack.c 2009-01-16 19:46:17.000000000 +0100 +@@ -1,8 +1,8 @@ + #include "uint32.h" + +-void uint32_unpack(char s[4],uint32 *u) ++void uint32_unpack(char s[4],uint32_t *u) + { +- uint32 result; ++ uint32_t result; + + result = (unsigned char) s[3]; + result <<= 8; +@@ -15,9 +15,9 @@ + *u = result; + } + +-void uint32_unpack_big(char s[4],uint32 *u) ++void uint32_unpack_big(char s[4],uint32_t *u) + { +- uint32 result; ++ uint32_t result; + + result = (unsigned char) s[0]; + result <<= 8; diff --git a/dev-db/cdb/metadata.xml b/dev-db/cdb/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/cdb/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/couchdb/Manifest b/dev-db/couchdb/Manifest new file mode 100644 index 000000000000..dc6daa854038 --- /dev/null +++ b/dev-db/couchdb/Manifest @@ -0,0 +1 @@ +DIST apache-couchdb-1.6.1.tar.gz 12085350 SHA256 5a601b173733ce3ed31b654805c793aa907131cd70b06d03825f169aa48c8627 SHA512 70630a27dec7281fa5bdca0601796baa28fba1d7c9975d8f38b9623bbeedd62b26081118357886c7be00b7769360238b2c99695234e13cecb15a210eb986eadc WHIRLPOOL 5776fe139db54e5ec285ef9882f5164a42a499bab312d66c0edd5314dd1915827a7cf7df02cd5df85c437bf3f70096cb101748956d639e8e80ffd0bb0b79197a diff --git a/dev-db/couchdb/couchdb-1.6.1.ebuild b/dev-db/couchdb/couchdb-1.6.1.ebuild new file mode 100644 index 000000000000..b95498072499 --- /dev/null +++ b/dev-db/couchdb/couchdb-1.6.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib pax-utils user + +DESCRIPTION="Apache CouchDB is a distributed, fault-tolerant and schema-free document-oriented database." +HOMEPAGE="http://couchdb.apache.org/" +SRC_URI="mirror://apache/couchdb/source/${PV}/apache-${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="selinux test" + +RDEPEND=">=dev-libs/icu-4.3.1:= + dev-lang/erlang[ssl] + >=dev-libs/openssl-0.9.8j:0 + >=net-misc/curl-7.18.2 + <dev-lang/spidermonkey-1.8.7 + selinux? ( sec-policy/selinux-couchdb )" + +DEPEND="${RDEPEND}" +RESTRICT=test + +S="${WORKDIR}/apache-${P}" + +pkg_setup() { + enewgroup couchdb + enewuser couchdb -1 -1 /var/lib/couchdb couchdb +} + +src_prepare() { + sed -i ./src/couchdb/priv/Makefile.* -e 's|-Werror||g' +} + +src_configure() { + econf \ + --with-erlang="${EPREFIX}"/usr/$(get_libdir)/erlang/usr/include \ + --localstatedir="${EPREFIX}"/var \ + --with-js-lib="${EPREFIX}"/usr/$(get_libdir) + # bug 296609, upstream bug #COUCHDB-621 + sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = "${EPREFIX}"/usr/share/doc/${PF}#" -i Makefile || die "sed failed" +} + +src_compile() { + emake + # bug 442616 + pax-mark mr src/couchdb/priv/couchjs +} + +src_test() { + emake distcheck +} + +src_install() { + emake DESTDIR="${D}" install + + fowners couchdb:couchdb \ + /var/lib/couchdb \ + /var/log/couchdb + + for f in "${ED}"/etc/couchdb/*.ini ; do + fowners root:couchdb "${f#${ED}}" + fperms 660 "${f#${ED}}" + done + fperms 664 /etc/couchdb/default.ini + + newinitd "${FILESDIR}/couchdb.init-4" couchdb + newconfd "${FILESDIR}/couchdb.conf-2" couchdb + + sed -i -e "s:LIBDIR:$(get_libdir):" "${ED}/etc/conf.d/couchdb" +} diff --git a/dev-db/couchdb/files/couchdb.conf-2 b/dev-db/couchdb/files/couchdb.conf-2 new file mode 100644 index 000000000000..94d50b35f33d --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-2 @@ -0,0 +1,9 @@ +# Options for CouchDB + +EXEC="/usr/bin/couchdb" +COUCHDB_USER="couchdb:couchdb" +COUCHDB_PID_FILE="/var/run/couchdb/couchdb.pid" +COUCHDB_STDOUT_FILE="/dev/null" +COUCHDB_STDERR_FILE="/dev/null" +#COUCHDB_RESPAWN_TIMEOUT= +#COUCHDB_OPTIONS= diff --git a/dev-db/couchdb/files/couchdb.init-4 b/dev-db/couchdb/files/couchdb.init-4 new file mode 100644 index 000000000000..7c78eeb99039 --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-4 @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2013 Dirkjan Ochtman +# Distributed under the terms of the Apache License, Version 2.0 + +pidfile=${COUCHDB_PID_FILE} +command=${EXEC:-/usr/bin/couchdb} +command_args="-b -o ${COUCHDB_STDOUT_FILE} -e ${COUCHDB_STDERR_FILE} -p ${pidfile} ${COUCHDB_OPTIONS}" + +start_stop_daemon_args="--user ${COUCHDB_USER}" + +depend() { + need net +} + +start_pre() { + checkpath -q -d -m 0755 -o ${COUCHDB_USER} /var/run/couchdb +} diff --git a/dev-db/couchdb/metadata.xml b/dev-db/couchdb/metadata.xml new file mode 100644 index 000000000000..2ba6aefc792e --- /dev/null +++ b/dev-db/couchdb/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>djc@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-db/cppdb/Manifest b/dev-db/cppdb/Manifest new file mode 100644 index 000000000000..20de58c2fd47 --- /dev/null +++ b/dev-db/cppdb/Manifest @@ -0,0 +1 @@ +DIST cppdb-0.3.1.tar.bz2 251449 SHA256 d60eef5a732d8f84ef5e4a2845a8cefc543a6c75bf3782589c2cf6aa150b992e SHA512 19e60becbffef7a252eda5fdd5821b44c2eeb5d69e84cf46e89ed6af3cea315f3cfe7b2cc4f62fbe154be8abdad3363761dd0252f94671421010273eeae65678 WHIRLPOOL 71ab865ef7ffeae43ec8c7278553225ab0b6ccddc8355213a60ab77c835af569d157c77ff417e651754c3f34187b516f6e16fb982321de8701fa60619e19b77d diff --git a/dev-db/cppdb/cppdb-0.3.1-r1.ebuild b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild new file mode 100644 index 000000000000..898c97ded801 --- /dev/null +++ b/dev-db/cppdb/cppdb-0.3.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils multilib + +DESCRIPTION="An SQL connectivity library for platform and database independent connectivity" +HOMEPAGE="http://cppcms.com/sql/cppdb/" +SRC_URI="mirror://sourceforge/cppcms/${P}.tar.bz2" + +LICENSE="|| ( Boost-1.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples mysql mysql_internal odbc odbc_internal postgres postgres_internal sqlite sqlite_internal" + +DEPEND=" + mysql? ( virtual/mysql ) + odbc? ( dev-db/unixODBC ) + postgres? ( dev-db/postgresql ) + sqlite? ( dev-db/sqlite:3 )" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use_disable mysql MYSQL) + $(cmake-utils_use mysql_internal MYSQL_BACKEND_INTERNAL) + $(cmake-utils_use_disable odbc ODBC) + $(cmake-utils_use odbc_internal ODBC_BACKEND_INTERNAL) + $(cmake-utils_use_disable postgres PQ) + $(cmake-utils_use postgres_internal PQ_BACKEND_INTERNAL) + $(cmake-utils_use_disable sqlite SQLITE) + $(cmake-utils_use sqlite_internal SQLITE_BACKEND_INTERNAL) + -DLIBDIR=$(get_libdir)" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use doc; then + rm docs/build.txt || die + dodoc -r docs/* + dohtml -r html/* + fi + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/dev-db/cppdb/metadata.xml b/dev-db/cppdb/metadata.xml new file mode 100644 index 000000000000..9b20d66e9865 --- /dev/null +++ b/dev-db/cppdb/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jauhien@gentoo.org</email> + <name>Jauhien Piatlicki</name> + </maintainer> + <use> + <flag name="mysql_internal">Don't build a separate mysql loadable module but rather build it into the cppdb library itself</flag> + <flag name="odbc_internal">Don't build a separate postgresql loadable module but rather build it into the cppdb library itself</flag> + <flag name="postgres_internal">Don't build a separate odbc loadable module but rather build it into the cppdb library itself</flag> + <flag name="sqlite_internal">Don't build a separate sqlite3 loadable module but rather build it into the cppdb library itself</flag> + </use> + <upstream> + <remote-id type="sourceforge">cppcms</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/ctdb/Manifest b/dev-db/ctdb/Manifest new file mode 100644 index 000000000000..1a26634710b2 --- /dev/null +++ b/dev-db/ctdb/Manifest @@ -0,0 +1 @@ +DIST ctdb-1.13.tar.xz 736004 SHA256 c43693877cbc7d047d8b11b01a101bee69df6a871ab397214cc68d8f6f8c98c7 SHA512 653e1d5c29962810353d6b8c5867d07bef17dd5bf431f7304793f13712bb92379fb1b05b6e461279b08e0a1c9d87951f57fb1e2c35f85392b99baadf7d232ece WHIRLPOOL 9323de35b038a920ed6d5ed3be379c7c2ec93814f0f8c4f304de36e2512f58f7a62578ecd257d4fbe4e856c6d0b196fae88e7fbf673e47bbfd2acf0f2ac13b6b diff --git a/dev-db/ctdb/ctdb-1.13-r1.ebuild b/dev-db/ctdb/ctdb-1.13-r1.ebuild new file mode 100644 index 000000000000..7088d007aa9f --- /dev/null +++ b/dev-db/ctdb/ctdb-1.13-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib-minimal + +DESCRIPTION="A cluster implementation of the TDB database used to store temporary data" +HOMEPAGE="http://ctdb.samba.org/" +# upstream is too sexy for releases, grab tags from: +# http://git.samba.org/?p=ctdb.git;a=summary +SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86" +IUSE="" + +DEPEND=">=dev-libs/popt-1.16-r2[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-ldflags.patch" +) + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + + # custom, broken Makefile + multilib_copy_sources +} + +multilib_src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --localstatedir="${EPREFIX}/var/lib" \ + --with-logdir="${EPREFIX}/var/log/${PN}" +} + +multilib_src_install_all() { + einstalldocs + dohtml web/* doc/*.html +} diff --git a/dev-db/ctdb/ctdb-9999.ebuild b/dev-db/ctdb/ctdb-9999.ebuild new file mode 100644 index 000000000000..1e9d6f4f1775 --- /dev/null +++ b/dev-db/ctdb/ctdb-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="git://git.samba.org/ctdb.git" +inherit autotools eutils git-2 multilib-minimal + +DESCRIPTION="A cluster implementation of the TDB database used to store temporary data" +HOMEPAGE="http://ctdb.samba.org/" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=">=dev-libs/popt-1.16-r2[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +src_prepare() { + AT_M4DIR="-I libreplace -I lib/replace -I ../libreplace -I ../replace" + AT_M4DIR+=" -I lib/talloc -I talloc -I ../talloc" + AT_M4DIR+=" -I lib/tdb -I tdb -I ../tdb" + AT_M4DIR+=" -I lib/popt -I popt -I ../popt" + AT_M4DIR+=" -I lib/tevent" + + rm -rf autom4te.cache + rm -f configure config.h.in + + autotools_run_tool autoheader ${AT_M4DIR} || die "running autoheader failed" + eautoconf ${AT_M4DIR} +} + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + + # custom, broken Makefile + multilib_copy_sources +} + +multilib_src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --localstatedir="${EPREFIX}/var/lib" \ + --with-logdir="${EPREFIX}/var/log/${PN}" +} + +multilib_src_install_all() { + einstalldocs + dohtml web/* doc/*.html +} diff --git a/dev-db/ctdb/files/autoconf-2.62-fix.patch b/dev-db/ctdb/files/autoconf-2.62-fix.patch new file mode 100644 index 000000000000..2f5bc2b77f37 --- /dev/null +++ b/dev-db/ctdb/files/autoconf-2.62-fix.patch @@ -0,0 +1,15 @@ +--- lib/replace/autoconf-2.60.m4.orig 2008-04-19 00:26:33.000000000 -0400 ++++ lib/replace/autoconf-2.60.m4 2008-04-19 00:22:25.000000000 -0400 +@@ -179,6 +179,7 @@ + # ------------------------ + # Enable extensions on systems that normally disable them, + # typically due to standards-conformance issues. ++m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[ + AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], + [ + AC_BEFORE([$0], [AC_COMPILE_IFELSE]) +@@ -208,3 +209,4 @@ + AC_DEFINE([__EXTENSIONS__]) + AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) + ]) ++]) diff --git a/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch b/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch new file mode 100644 index 000000000000..c70350c110ab --- /dev/null +++ b/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch @@ -0,0 +1,77 @@ +diff -Naur ctdb-1.0.114.orig/config/functions ctdb-1.0.114/config/functions +--- ctdb-1.0.114.orig/config/functions 2010-04-04 18:01:18.278707515 +0200 ++++ ctdb-1.0.114/config/functions 2010-04-04 18:08:05.792447032 +0200 +@@ -22,6 +22,8 @@ + . /etc/default/$1 + elif [ -f $CTDB_BASE/sysconfig/$1 ]; then + . $CTDB_BASE/sysconfig/$1 ++ elif [ -f /etc/config.d/$1 ]; then ++ . /etc/config.d/$name + fi + } + +@@ -33,6 +35,8 @@ + + if [ -x /sbin/startproc ]; then + CTDB_INIT_STYLE="suse" ++ elif [ -x /bin/rc-status ] ; then ++ CTDB_INIT_STYLE="gentoo" + elif [ -x /sbin/start-stop-daemon ]; then + CTDB_INIT_STYLE="debian" + else +@@ -356,6 +360,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -380,6 +387,16 @@ + ;; + esac + ;; ++ gentoo) ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS is not supported with ctdb" + exit 1 +@@ -398,6 +415,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -422,6 +442,18 @@ + ;; + esac + ;; ++ gentoo) ++ # for gentoo there is no service for lockmanager ++ # so we instead just shutdown/restart nfs ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS locking is not supported with ctdb" + exit 1 diff --git a/dev-db/ctdb/files/ctdb-1.13-ldflags.patch b/dev-db/ctdb/files/ctdb-1.13-ldflags.patch new file mode 100644 index 000000000000..d5662cadf0c0 --- /dev/null +++ b/dev-db/ctdb/files/ctdb-1.13-ldflags.patch @@ -0,0 +1,21 @@ +diff -urN ctdb-1.13.old/Makefile.in ctdb-1.13/Makefile.in +--- ctdb-1.13.old/Makefile.in 2012-03-23 11:30:03.321735210 +0100 ++++ ctdb-1.13/Makefile.in 2012-03-23 11:37:03.131704144 +0100 +@@ -151,7 +151,7 @@ + + bin/ltdbtool: tools/ltdbtool.o @TDB_OBJ@ + @echo Linking $@ +- @$(CC) $(CFLAGS) -o $@ $+ ++ @$(CC) $(CFLAGS) -o $@ $+ $(LIB_FLAGS) + + bin/smnotify: utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o utils/smnotify/smnotify.o $(POPT_OBJ) + @echo Linking $@ +@@ -173,7 +173,7 @@ + + bin/ping_pong: utils/ping_pong/ping_pong.o + @echo Linking $@ +- @$(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o ++ @$(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o $(LIB_FLAGS) + + bin/pmdactdb: $(CTDB_CLIENT_OBJ) utils/pmda/pmda_ctdb.o + @echo Linking $@ diff --git a/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch b/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch new file mode 100644 index 000000000000..6865d899a12d --- /dev/null +++ b/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch @@ -0,0 +1,13 @@ +--- ./config/events.d/41.httpd 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/events.d/41.httpd 2009-07-28 18:31:48.016042964 +0100 +@@ -19,6 +19,10 @@ + CTDB_SERVICE_HTTP="apache2" + CTDB_CONFIG_HTTP="apache2" + ;; ++ gentoo) ++ CTDB_SERVICE_HTTP="apache2" ++ CTDB_CONFIG_HTTP="apache2" ++ ;; + *) + # should not happen. + # for now use red hat style as default diff --git a/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch b/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch new file mode 100644 index 000000000000..fdd68ffc8d92 --- /dev/null +++ b/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch @@ -0,0 +1,14 @@ +--- ./config/events.d/50.samba 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/events.d/50.samba 2009-07-28 18:27:21.896042994 +0100 +@@ -25,6 +25,11 @@ + CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""} + CTDB_SERVICE_WINBIND=${CTDB_SERVICE_WINBIND:-winbind} + ;; ++ gentoo) ++ CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-samba} ++ CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""} ++ CTDB_SERVICE_WINBIND=${CTDB_SERVICE_WINBIND:-""} ++ ;; + *) + # should not happen, but for now use redhat style as default: + CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-smb} diff --git a/dev-db/ctdb/files/ctdb-functions.patch b/dev-db/ctdb/files/ctdb-functions.patch new file mode 100644 index 000000000000..61eda720d6ae --- /dev/null +++ b/dev-db/ctdb/files/ctdb-functions.patch @@ -0,0 +1,76 @@ +--- ./config/functions 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/functions 2009-07-29 14:15:19.436043164 +0100 +@@ -10,6 +10,8 @@ + . /etc/default/$name + elif [ -f $CTDB_BASE/sysconfig/$name ]; then + . $CTDB_BASE/sysconfig/$name ++ elif [ -f /etc/config.d/$name ]; then ++ . /etc/config.d/$name + fi + } + +@@ -21,6 +23,8 @@ + + if [ -x /sbin/startproc ]; then + CTDB_INIT_STYLE="suse" ++ elif [ -x /bin/rc-status ]; then ++ CTDB_INIT_STYLE="gentoo" + elif [ -x /sbin/start-stop-daemon ]; then + CTDB_INIT_STYLE="ubuntu" + else +@@ -400,6 +404,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -424,6 +431,16 @@ + ;; + esac + ;; ++ gentoo) ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS is not supported with ctdb" + exit 1 +@@ -442,6 +459,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -466,6 +486,18 @@ + ;; + esac + ;; ++ gentoo) ++ # for gentoo there is no service for lockmanager ++ # so we instead just shutdown/restart nfs ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS locking is not supported with ctdb" + exit 1 diff --git a/dev-db/ctdb/files/ctdb.initd b/dev-db/ctdb/files/ctdb.initd new file mode 100644 index 000000000000..ca96019e22b1 --- /dev/null +++ b/dev-db/ctdb/files/ctdb.initd @@ -0,0 +1,81 @@ +#!/sbin/runscript + +depend() { + need localmount + need net + before samba + after bootmisc +} + +start() { + ebegin "Starting ctdb" + + [ -z "$CTDB_RECOVERY_LOCK" ] && { + eerror "You must configure the location of the CTDB_RECOVERY_LOCK in /etc/conf.d/ctdb" + return 1 + } + + [ -z "$CTDB_PUBLIC_ADDRESSES" ] && { + eerror "You must configure the location of the CTDB_PUBLIC_ADDRESSES in /etc/conf.d/ctdb" + return 1 + } + + [ -z "$CTDB_PUBLIC_INTERFACE" ] && { + eerror "You must configure the location of the CTDB_PUBLIC_INTERFACE in /etc/conf.d/ctdb" + return 1 + } + + CTDB_OPTIONS="$CTDB_OPTIONS --reclock=$CTDB_RECOVERY_LOCK" + + # build up CTDB_OPTIONS variable from optional parameters + [ -z "$CTDB_LOGFILE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --logfile=$CTDB_LOGFILE" + [ -z "$CTDB_NODES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --nlist=$CTDB_NODES" + [ -z "$CTDB_SOCKET" ] || CTDB_OPTIONS="$CTDB_OPTIONS --socket=$CTDB_SOCKET" + [ -z "$CTDB_PUBLIC_ADDRESSES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-addresses=$CTDB_PUBLIC_ADDRESSES" + [ -z "$CTDB_PUBLIC_INTERFACE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-interface=$CTDB_PUBLIC_INTERFACE" + [ -z "$CTDB_SINGLE_PUBLIC_IP" ] || CTDB_OPTIONS="$CTDB_OPTIONS --single-public-ip=$CTDB_SINGLE_PUBLIC_IP" + [ -z "$CTDB_DBDIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir=$CTDB_DBDIR" + [ -z "$CTDB_DBDIR_PERSISTENT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir-persistent=$CTDB_DBDIR_PERSISTENT" + [ -z "$CTDB_EVENT_SCRIPT_DIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --event-script-dir $CTDB_EVENT_SCRIPT_DIR" + [ -z "$CTDB_TRANSPORT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --transport $CTDB_TRANSPORT" + [ -z "$CTDB_DEBUGLEVEL" ] || CTDB_OPTIONS="$CTDB_OPTIONS -d $CTDB_DEBUGLEVEL" + [ -z "$CTDB_START_AS_DISABLED" ] || [ "$CTDB_START_AS_DISABLED" != "yes" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --start-as-disabled" + } + [ -z "$CTDB_CAPABILITY_RECMASTER" ] || [ "$CTDB_CAPABILITY_RECMASTER" != "no" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --no-recmaster" + } + [ -z "$CTDB_CAPABILITY_LMASTER" ] || [ "$CTDB_CAPABILITY_LMASTER" != "no" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --no-lmaster" + } + [ -z "$CTDB_LVS_PUBLIC_IP" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --lvs" + } + [ -z "$CTDB_SCRIPT_LOG_LEVEL" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --script-log-level=$CTDB_SCRIPT_LOG_LEVEL" + } + + # check all persistent databases that they look ok + PERSISTENT_DB_DIR="/var/ctdb/persistent" + [ -z "$CTDB_DBDIR" ] || { + PERSISTENT_DB_DIR="$CTDB_DBDIR/persistent" + } + mkdir -p $PERSISTENT_DB_DIR 2>/dev/null + for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do + /usr/bin/tdbdump $PDBASE >/dev/null 2>/dev/null || { + eerror "Persistent database $PDBASE is corrupted! CTDB will not start." + return 1 + } + done + + start-stop-daemon --start --background --exec /usr/sbin/ctdbd \ + --pidfile /var/run/ctdbd.pid -- $CTDB_OPTIONS + eend $? + +} + +stop() { + start-stop-daemon --stop --exec /usr/sbin/ctdbd \ + --pidfile /var/run/ctdbd.pid +} + diff --git a/dev-db/ctdb/metadata.xml b/dev-db/ctdb/metadata.xml new file mode 100644 index 000000000000..587dabd73f1d --- /dev/null +++ b/dev-db/ctdb/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>samba</herd> +</pkgmetadata> diff --git a/dev-db/datadraw/Manifest b/dev-db/datadraw/Manifest new file mode 100644 index 000000000000..5d8cca4454db --- /dev/null +++ b/dev-db/datadraw/Manifest @@ -0,0 +1 @@ +DIST datadraw3.1.1.tar.gz 607914 SHA256 11186bbf37f9b5bb11d7a21bc5ce6c45496b24dfa62a064d57d3ad414f4a9c04 SHA512 64773b984cb9d6928ec486833ee03f07c6c5f21dcfcc446e21fe90eb432b7a09459ea65e24c46df70bc6b791dfc640caf16b6f6cdd8a35319969bb8ec7e65009 WHIRLPOOL e4af7bcf81cf52c1743273ca2c09de7435066fd194a0ee5235171de2876acf865db951fe432e7e0cefd34af98902a242fa9906054d4b5fe9df6b7daa890128dc diff --git a/dev-db/datadraw/datadraw-3.1.1.ebuild b/dev-db/datadraw/datadraw-3.1.1.ebuild new file mode 100644 index 000000000000..d5938f24b1be --- /dev/null +++ b/dev-db/datadraw/datadraw-3.1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib toolchain-funcs + +DESCRIPTION="feature rich database generator for high performance C applications" +HOMEPAGE="http://datadraw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}${PV}/${PN}${PV}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR}/${PN}${PV} + +src_prepare() { + tc-export CC + sed -e "/^CFLAGS=/s:-g -Wall:${CFLAGS}:" \ + -i configure \ + -i dataview/configure \ + -i util/configure || die + + sed -e '/^datadraw:/,+2s:\\$(CFLAGS):\\$(CFLAGS) \\$(LDFLAGS):' \ + -i configure || die +} + +src_install() { + dobin ${PN} + + insinto /usr/$(get_libdir) + for lib in util/*.a ; do + newins ${lib} lib$(basename ${lib}) + done + insinto /usr/include + + doins util/*.h + + dodoc README + if use doc ; then + dodoc manual.pdf + dohtml -r www/index.html www/images + fi + use examples && dodoc -r examples +} diff --git a/dev-db/datadraw/metadata.xml b/dev-db/datadraw/metadata.xml new file mode 100644 index 000000000000..d2893a9317a8 --- /dev/null +++ b/dev-db/datadraw/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-electronics</herd> +<maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> +</maintainer> +<upstream> + <remote-id type="sourceforge">datadraw</remote-id> +</upstream> +<longdescription lang="en"> +DataDraw is a feature rich database generator for high performance C applications. DataDraw gives your C application a high performance object-oriented framework at speeds that beat hand coded C. +</longdescription> +</pkgmetadata> + diff --git a/dev-db/db-je/Manifest b/dev-db/db-je/Manifest new file mode 100644 index 000000000000..c563a83e11d2 --- /dev/null +++ b/dev-db/db-je/Manifest @@ -0,0 +1 @@ +DIST je-3.3.75.tar.gz 5179709 SHA256 98bb5b374eac336329e4bb87f537355ba5128e697f2bfea5904eba46a5f1ee08 SHA512 e28648459a3a7dcf98e8865e6859544c656c3b58688b244df568cc8c006a74dda79aadfbfb279e099c1376914cca064734da490998a864c1bd2cc3209bc64ae4 WHIRLPOOL a86747a5a30444847e666fd82bd397ead06b4597200b82ce7e88301e6e8531faf267b1cebf2850bfc072916a3a1b903fe35012466a44a5c6bd5311cbce43455b diff --git a/dev-db/db-je/db-je-3.3.75.ebuild b/dev-db/db-je/db-je-3.3.75.ebuild new file mode 100644 index 000000000000..2fa03b917ce8 --- /dev/null +++ b/dev-db/db-je/db-je-3.3.75.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Berkeley DB JE is a high performance, transactional storage engine written entirely in Java" +HOMEPAGE="http://www.oracle.com/database/berkeley-db/je/index.html" +SRC_URI="http://download.oracle.com/berkeley-db/${P/db-/}.tar.gz" + +LICENSE="Sleepycat BSD" +SLOT="3.3" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.5" +RDEPEND=">=virtual/jre-1.5" +S=${WORKDIR}/${P/db-/} + +src_unpack() { + unpack ${A} + cd "${S}" || die + epatch "${FILESDIR}"/${P}-optional-test.patch + rm -rf docs + cd lib || die + rm -v *jar || die + java-pkg_jar-from --build-only ant-core ant.jar +} + +EANT_DOC_TARGET="javadoc-all" +EANT_EXTRA_ARGS="-Dnotest=true" + +src_install() { + java-pkg_dojar build/lib/je.jar + use doc && java-pkg_dojavadoc docs + use source && java-pkg_dosrc src/com +} diff --git a/dev-db/db-je/files/db-je-3.3.75-optional-test.patch b/dev-db/db-je/files/db-je-3.3.75-optional-test.patch new file mode 100644 index 000000000000..e8f7600398e2 --- /dev/null +++ b/dev-db/db-je/files/db-je-3.3.75-optional-test.patch @@ -0,0 +1,45 @@ +--- build.xml 2008-06-11 05:25:20.000000000 +0200 ++++ build.xml.new 2008-08-22 15:59:53.000000000 +0200 +@@ -102,6 +102,7 @@ + <path id="empty.classpath"/> + + <path id="class.path"> ++ <fileset dir="lib" includes="*.jar"/> + <pathelement location="${specificjar}"/> + <pathelement location="."/> + </path> +@@ -487,14 +488,14 @@ + <!-- JUnit unit tests --> + <!-- ============================================================ --> + +- <target name="init-unittest" depends="init"> ++ <target name="init-unittest" depends="init" unless="notest"> + <delete dir="${unittest.datadir}"/> + <delete dir="${unittest.reportsdir}"/> + <mkdir dir="${unittest.datadir}"/> + <mkdir dir="${unittest.reportsdir}"/> + </target> + +- <target name="clean-unittest" depends="init-unittest"> ++ <target name="clean-unittest" depends="init-unittest" unless="notest"> + <delete dir="${unittest.destdir}"/> + <mkdir dir="${unittest.destdir}"/> + <delete dir="${unittest.testserialdir}"/> +@@ -503,7 +504,7 @@ + <mkdir dir="${unittest.testevolvedir}"/> + </target> + +- <target name="compile-unittest" depends="compile-src"> ++ <target name="compile-unittest" depends="compile-src" unless="notest"> + <ant antfile="ant/compile.xml" dir="." inheritall="false"> + <property name="srcdir" value="${unittest.srcdir}"/> + <property name="destdir" value="${unittest.destdir}"/> +@@ -597,7 +598,7 @@ + </path> + + <target name="test" +- depends="compile-unittest, init-unittest, jar"> ++ depends="compile-unittest, init-unittest, jar" unless="notest"> + + <!-- Determine which tests to run. --> + <condition property="alltests"> diff --git a/dev-db/db-je/metadata.xml b/dev-db/db-je/metadata.xml new file mode 100644 index 000000000000..59b15e8a41aa --- /dev/null +++ b/dev-db/db-je/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tommy@gentoo.org</email> + <name>Thomas Sachau (Tommy[D])</name> + </maintainer> +<herd>java</herd> +</pkgmetadata> + diff --git a/dev-db/dbmodel/Manifest b/dev-db/dbmodel/Manifest new file mode 100644 index 000000000000..bdd0b42f9ee1 --- /dev/null +++ b/dev-db/dbmodel/Manifest @@ -0,0 +1 @@ +DIST dbmodel-0.3.tar.gz 71581 SHA256 2e44e33690c1f290a7ed0cab86b51804fd09862332de1dae909149c9b1b1a6b2 SHA512 61c7b39bd57c1d6ff49961b35073c7205862b2e1d6a93b3c8950a62ce6c0e1ce8f39a38ed729174714f719cd92d0e6deba51c68b20ba22888f7d7f7096c05f62 WHIRLPOOL 72d1c09e7e62867a99e95c737cf8c02b6e22902df343c57f2859f08cc7ddbe39d952b04e897fd2d34790e973b9c6689647bc0aa04868a347cd68e070d8ab0cb8 diff --git a/dev-db/dbmodel/dbmodel-0.3.ebuild b/dev-db/dbmodel/dbmodel-0.3.ebuild new file mode 100644 index 000000000000..8c8f74663b58 --- /dev/null +++ b/dev-db/dbmodel/dbmodel-0.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit qt4-r2 + +DESCRIPTION="Qt4 tool for drawing entity-relational diagrams" +HOMEPAGE="http://oxygene.sk/lukas/dbmodel/" +SRC_URI="http://launchpad.net/dbmodel/trunk/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +DEPEND="dev-qt/qtgui:4 + dev-qt/qtsvg:4" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS CHANGES" + +src_configure() { + eqmake4 ${PN}.pro PREFIX=/usr +} diff --git a/dev-db/dbmodel/metadata.xml b/dev-db/dbmodel/metadata.xml new file mode 100644 index 000000000000..28176899696a --- /dev/null +++ b/dev-db/dbmodel/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>qt</herd> + <longdescription lang="en"> +</longdescription> + <upstream> + <remote-id type="launchpad">dbmodel</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/derby/Manifest b/dev-db/derby/Manifest new file mode 100644 index 000000000000..5ae34c8f65f8 --- /dev/null +++ b/dev-db/derby/Manifest @@ -0,0 +1 @@ +DIST db-derby-10.10.1.1-src.tar.gz 24152897 SHA256 4e5d5ec1389ab8ff7425d2e4ade4c16d47e433d8bd50c3aedbe4de26a31f0cc5 SHA512 0e8ac005d8e18d7615515bf1928e8fefd2547017923084c06647d27f20d5599985b03c52e77856fe2db08e78f103dbe695820145a3f4358527512d050da06dde WHIRLPOOL 9f62165ab05c64ccfb4306fe38370d2800bbdd16eef677f2cc8c6365f984f765e7cfe785676caf6a3b4e6d6628de52ba6b8bcc96254a24ba102817a914fc8650 diff --git a/dev-db/derby/derby-10.10.1.1.ebuild b/dev-db/derby/derby-10.10.1.1.ebuild new file mode 100644 index 000000000000..84169884615b --- /dev/null +++ b/dev-db/derby/derby-10.10.1.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" +JAVA_PKG_BSFIX="off" + +inherit java-pkg-2 java-ant-2 + +MY_P=db-${P} +DESCRIPTION="An embeddable relational database implemented entirely in Java" +HOMEPAGE="http://db.apache.org/derby/" +SRC_URI="mirror://apache/db/${PN}/${MY_P}/${MY_P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="linguas_de linguas_es linguas_fr linguas_hu linguas_it linguas_ja linguas_ko linguas_pl linguas_pt linguas_ru linguas_zh" + +LANGS="de es fr hu it ja ko pl pt ru zh" + +# see https://issues.apache.org/jira/browse/DERBY-5125 +DEPEND=">=virtual/jdk-1.6 + <dev-java/javacc-4.2:0 + test? ( dev-java/jakarta-oro:2.0 ) + " +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}-src" + +EANT_BUILD_TARGET="buildsource buildjars" +EANT_TEST_TARGET="testing" + +java_prepare() { + find tools/java -name "*.jar" -exec rm -v {} \; || die + cd tools/java || die + + java-pkg_jar-from --build-only javacc + use test && java-pkg_jar-from --build-only jakarta-oro:2.0 jakarta-oro.jar jakarta-oro-2.0.8.jar +} + +src_install() { + strip-linguas ${LANGS} + local LOCALE_JARS="${LINGUAS// /,}" + + java-pkg_dojar jars/sane/derby{,run,net,tools,client}.jar + + for x in ${LINGUAS}; do + java-pkg_dojar jars/sane/derbyLocale_${x}*.jar + done + + java-pkg_dowar jars/sane/derby.war + + dodoc README STATUS KEYS NOTICE || die "docs failed" + dohtml -r {RELEASE-NOTES,published_api_overview}.html || die "docs failed" + + use doc && java-pkg_dojavadoc javadoc + use source && java-pkg_dosrc java/ +} + +src_test() { + java-pkg-2_src_test +} diff --git a/dev-db/derby/metadata.xml b/dev-db/derby/metadata.xml new file mode 100644 index 000000000000..4128863055b4 --- /dev/null +++ b/dev-db/derby/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ercpe@gentoo.org</email> + <name>Johann Schmitz (ercpe)</name> + </maintainer> +</pkgmetadata> + diff --git a/dev-db/drizzle/Manifest b/dev-db/drizzle/Manifest new file mode 100644 index 000000000000..684b6fc0ca74 --- /dev/null +++ b/dev-db/drizzle/Manifest @@ -0,0 +1 @@ +DIST drizzle-7.2.4-alpha.tar.gz 20075673 SHA256 dddc58949c28ccbdd8351b25540858235a7d98efb634e7bc98abd4f5ab034677 SHA512 1053c9b73588542b32398168fc4aae96a19479222571fb4ba35feb1fa6e99961366fc63a4141bf86bdba7f5db1960ed895b3a688789d05ee8d4bd46d0ab681cd WHIRLPOOL 4b2e97f7276eb447f27bc5b0244e31d47cba2acc0fde16d6e10dc0d47ba680885e035b9cf9dda8dff171279a76fbd24f34d2754ac1342b203d56316bb4d34233 diff --git a/dev-db/drizzle/drizzle-7.2.4.ebuild b/dev-db/drizzle/drizzle-7.2.4.ebuild new file mode 100644 index 000000000000..d7eb1687552f --- /dev/null +++ b/dev-db/drizzle/drizzle-7.2.4.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit python flag-o-matic libtool autotools eutils pam user versionator + +MY_P="${P}-alpha" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Database optimized for Cloud and Net applications" +HOMEPAGE="http://drizzle.org" +SRC_URI="http://launchpad.net/drizzle/$(get_version_component_range 1-2)/${PV}/+download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug tcmalloc doc memcache curl pam gearman +md5 ldap v8" + +RDEPEND="tcmalloc? ( dev-util/google-perftools ) + sys-libs/readline + sys-apps/util-linux + dev-libs/libpcre + dev-libs/openssl + >=dev-libs/libevent-1.4 + >=dev-libs/protobuf-2.1.0 + dev-libs/libaio + >=dev-libs/boost-1.52.0-r1:=[threads] + gearman? ( >=sys-cluster/gearmand-0.12 ) + pam? ( sys-libs/pam ) + curl? ( net-misc/curl ) + memcache? ( >=dev-libs/libmemcached-0.39 ) + md5? ( >=dev-libs/libgcrypt-1.4.2:0 ) + ldap? ( net-nds/openldap ) + v8? ( dev-lang/v8 ) + !dev-db/libdrizzle" + +DEPEND="${RDEPEND} + =dev-lang/python-2* + sys-devel/gettext + dev-util/intltool + dev-util/gperf + sys-devel/flex + dev-python/sphinx + doc? ( app-doc/doxygen )" + +pkg_setup() { + enewuser drizzle -1 -1 /dev/null nogroup + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}/${PN}-7.2.3-libtool.patch" \ + "${FILESDIR}/${PN}-7.2.3+automake-1.12.patch" \ + "${FILESDIR}/${PN}-7.2.4+boost-1.50.patch" \ + "${FILESDIR}/${P}-fix-boost_thread-detection.patch" + + python_convert_shebangs -r 2 . + + epatch_user + eautoreconf +} + +src_configure() { + local myconf= + + if use debug; then + append-cppflags -DDEBUG + fi + + # while I applaud upstreams goal of 0 compiler warnings + # the 1412 release didn't achieve it. + append-flags -Wno-error + + # NOTE disable-all and without-all no longer recognized options + # NOTE using --enable on some plugins can cause test failures. + # --with should be used instead. A discussion about this here: + # https://bugs.launchpad.net/drizzle/+bug/598659 + # TODO (upstream) + # $(use_with memcache memcached-stats-plugin) \ + # $(use_with memcache memcached-functions-plugin) \ + + econf \ + --disable-static \ + --disable-dependency-tracking \ + --disable-mtmalloc \ + --without-hello-world-plugin \ + --disable-rabbitmq-plugin --without-rabbitmq-plugin \ + --disable-zeromq-plugin --without-zeromq-plugin \ + --with-auth-test-plugin \ + --with-auth-file-plugin \ + --with-simple-user-policy-plugin \ + --enable-logging-stats-plugin \ + --with-logging-stats-plugin \ + --enable-console-plugin \ + $(use_enable gearman libgearman) \ + $(use_enable ldap libldap) \ + $(use_enable memcache libmemcached) \ + $(use_enable tcmalloc) \ + $(use_with curl auth-http-plugin) \ + $(use_with gearman gearman-udf-plugin) \ + $(use_with gearman logging-gearman-plugin) \ + $(use_with ldap auth-ldap-plugin) \ + $(use_with md5 md5-plugin) \ + $(use_with pam auth-pam-plugin) \ + $(use_with v8 js-plugin) \ + ${myconf} +} + +src_compile() { + emake V=1 all $(use doc && echo doxygen) +} + +# currently not working as of 7.2.3 +RESTRICT=test + +src_test() { + if [[ ${EUID} == 0 ]]; then + eerror "You cannot run tests as root." + eerror "Please enable FEATURES=userpriv before proceeding." + return 1 + fi + + default +} + +DOCS=( AUTHORS NEWS README ) + +src_install() { + default + + find "${D}" -name '*.la' -delete || die + + if use doc; then + docinto apidoc + pushd docs/html + dohtml -r . + popd + fi + + newinitd "${FILESDIR}"/drizzle.init.d.2 drizzled + newconfd "${FILESDIR}"/drizzle.conf.d drizzled + + if ! use gearman; then + sed -i -e '/need gearmand/d' "${D}"/etc/init.d/drizzled \ + || die "unable to sed init script (gearman)" + fi + + if ! use memcache; then + sed -i -e '/need memcached/d' "${D}"/etc/init.d/drizzled \ + || die "unable to sed init script (memcache)" + fi + + keepdir /var/log/drizzle + keepdir /var/lib/drizzle/drizzled + keepdir /etc/drizzle + + fperms 0755 /var/log/drizzle + fperms -R 0700 /var/lib/drizzle + + fowners drizzle:nogroup /var/log/drizzle + fowners -R drizzle:nogroup /var/lib/drizzle + + pamd_mimic system-auth drizzle auth account session +} diff --git a/dev-db/drizzle/files/drizzle-7.2.3+automake-1.12.patch b/dev-db/drizzle/files/drizzle-7.2.3+automake-1.12.patch new file mode 100644 index 000000000000..4f33dc557a5a --- /dev/null +++ b/dev-db/drizzle/files/drizzle-7.2.3+automake-1.12.patch @@ -0,0 +1,33 @@ +Index: drizzle-7.2.3/m4/pandora_canonical.m4 +=================================================================== +--- drizzle-7.2.3.orig/m4/pandora_canonical.m4 ++++ drizzle-7.2.3/m4/pandora_canonical.m4 +@@ -98,9 +98,9 @@ AC_DEFUN([PANDORA_CANONICAL_TARGET],[ + AC_CANONICAL_TARGET + + m4_if(PCT_DONT_SUPRESS_INCLUDE,yes,[ +- AM_INIT_AUTOMAKE(-Wall -Werror -Wno-portability subdir-objects foreign tar-ustar) ++ AM_INIT_AUTOMAKE(-Wall -Wno-portability subdir-objects foreign tar-ustar) + ],[ +- AM_INIT_AUTOMAKE(-Wall -Werror -Wno-portability nostdinc subdir-objects foreign tar-ustar) ++ AM_INIT_AUTOMAKE(-Wall -Wno-portability nostdinc subdir-objects foreign tar-ustar) + ]) + + m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +Index: drizzle-7.2.3/tests/include.am +=================================================================== +--- drizzle-7.2.3.orig/tests/include.am ++++ drizzle-7.2.3/tests/include.am +@@ -101,10 +101,10 @@ EXTRA_DIST += \ + check-local: tests/var/drizzle test-drizzle + + tests/var: +- $(mkdir_p) tests/var ++ $(MKDIR_P) tests/var + + tests/var/drizzle: tests/var +- $(mkdir_p) tests/var/drizzle ++ $(MKDIR_P) tests/var/drizzle + + + # dtr - a shortcut for executing test-run.pl diff --git a/dev-db/drizzle/files/drizzle-7.2.3-libtool.patch b/dev-db/drizzle/files/drizzle-7.2.3-libtool.patch new file mode 100644 index 000000000000..609b8adfd67e --- /dev/null +++ b/dev-db/drizzle/files/drizzle-7.2.3-libtool.patch @@ -0,0 +1,13 @@ +Index: drizzle-7.2.3/libdrizzle-1.0/include.am +=================================================================== +--- drizzle-7.2.3.orig/libdrizzle-1.0/include.am ++++ drizzle-7.2.3/libdrizzle-1.0/include.am +@@ -48,7 +48,7 @@ libdrizzle_1_0_libdrizzle_la_LDFLAGS= \ + -version-info \ + $(LIBDRIZZLE_LIBRARY_VERSION) + +-libdrizzle_1_0_libdrizzle_la_LIBADD= $(LIBSSL) ++libdrizzle_1_0_libdrizzle_la_LIBADD= $(LTLIBSSL) + + libdrizzle_1_0_libdrizzle_la_SOURCES= \ + libdrizzle/column.cc \ diff --git a/dev-db/drizzle/files/drizzle-7.2.4+boost-1.50.patch b/dev-db/drizzle/files/drizzle-7.2.4+boost-1.50.patch new file mode 100644 index 000000000000..0b10d74020cd --- /dev/null +++ b/dev-db/drizzle/files/drizzle-7.2.4+boost-1.50.patch @@ -0,0 +1,90 @@ +Index: drizzle-7.2.4-alpha/client/drizzleslap.cc +=================================================================== +--- drizzle-7.2.4-alpha.orig/client/drizzleslap.cc ++++ drizzle-7.2.4-alpha/client/drizzleslap.cc +@@ -1934,7 +1934,7 @@ static void timer_thread() + boost::mutex::scoped_lock scopedLock(timer_alarm_mutex); + + boost::xtime xt; +- xtime_get(&xt, boost::TIME_UTC); ++ xtime_get(&xt, boost::TIME_UTC_); + xt.sec += opt_timer_length; + + (void)timer_alarm_threshold.timed_wait(scopedLock, xt); +Index: drizzle-7.2.4-alpha/configure.ac +=================================================================== +--- drizzle-7.2.4-alpha.orig/configure.ac ++++ drizzle-7.2.4-alpha/configure.ac +@@ -111,7 +111,6 @@ PANDORA_DRIZZLE_BUILD + PANDORA_HAVE_BOOST_TEST + PANDORA_HAVE_LIBSQLITE3 + +- + ######################################################################### + + +Index: drizzle-7.2.4-alpha/drizzled/drizzled.cc +=================================================================== +--- drizzle-7.2.4-alpha.orig/drizzled/drizzled.cc ++++ drizzle-7.2.4-alpha/drizzled/drizzled.cc +@@ -460,7 +460,7 @@ void close_connections() + while (select_thread_in_use) + { + boost::xtime xt; +- xtime_get(&xt, boost::TIME_UTC); ++ xtime_get(&xt, boost::TIME_UTC_); + xt.sec += 2; + + for (uint32_t tmp=0 ; tmp < 10 && select_thread_in_use; tmp++) +Index: drizzle-7.2.4-alpha/drizzled/table/cache.cc +=================================================================== +--- drizzle-7.2.4-alpha.orig/drizzled/table/cache.cc ++++ drizzle-7.2.4-alpha/drizzled/table/cache.cc +@@ -263,7 +263,7 @@ bool Cache::removeTable(Session& session + table::Cache::removeTable routine. + */ + boost::xtime xt; +- xtime_get(&xt, boost::TIME_UTC); ++ xtime_get(&xt, boost::TIME_UTC_); + xt.sec += 10; + boost::mutex::scoped_lock scoped(table::Cache::mutex(), boost::adopt_lock_t()); + COND_refresh.timed_wait(scoped, xt); +Index: drizzle-7.2.4-alpha/drizzled/thr_lock.cc +=================================================================== +--- drizzle-7.2.4-alpha.orig/drizzled/thr_lock.cc ++++ drizzle-7.2.4-alpha/drizzled/thr_lock.cc +@@ -170,7 +170,7 @@ static enum enum_thr_lock_result wait_fo + if (can_deadlock) + { + boost::xtime xt; +- xtime_get(&xt, boost::TIME_UTC); ++ xtime_get(&xt, boost::TIME_UTC_); + xt.sec += table_lock_wait_timeout; + if (not cond->timed_wait(scoped, xt)) + { +Index: drizzle-7.2.4-alpha/plugin/sleep/sleep.cc +=================================================================== +--- drizzle-7.2.4-alpha.orig/plugin/sleep/sleep.cc ++++ drizzle-7.2.4-alpha/plugin/sleep/sleep.cc +@@ -98,7 +98,7 @@ int64_t Item_func_sleep::val_int() + + try { + boost::xtime xt; +- xtime_get(&xt, boost::TIME_UTC); ++ xtime_get(&xt, boost::TIME_UTC_); + xt.nsec += (uint64_t)(dtime * 1000000000ULL); + session.getThread()->sleep(xt); + } +Index: drizzle-7.2.4-alpha/drizzled/message/include.am +=================================================================== +--- drizzle-7.2.4-alpha.orig/drizzled/message/include.am ++++ drizzle-7.2.4-alpha/drizzled/message/include.am +@@ -40,7 +40,7 @@ lib_LTLIBRARIES += drizzled/message/libd + drizzled_message_libdrizzledmessage_la_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR} + + drizzled_message_libdrizzledmessage_la_SOURCES = drizzled/message/statement_transform.cc +-drizzled_message_libdrizzledmessage_la_LIBADD= ${LTLIBPROTOBUF} $(GCOV_LIBS) drizzled/libcharset.la ++drizzled_message_libdrizzledmessage_la_LIBADD= ${LTLIBPROTOBUF} $(GCOV_LIBS) $(BOOST_LIBS) drizzled/libcharset.la + + nobase_dist_pkginclude_HEADERS+= \ + drizzled/message/statement_transform.h diff --git a/dev-db/drizzle/files/drizzle-7.2.4-fix-boost_thread-detection.patch b/dev-db/drizzle/files/drizzle-7.2.4-fix-boost_thread-detection.patch new file mode 100644 index 000000000000..e33e6e59afd1 --- /dev/null +++ b/dev-db/drizzle/files/drizzle-7.2.4-fix-boost_thread-detection.patch @@ -0,0 +1,18 @@ +--- m4/pandora_have_libboost_thread.m4.orig 2014-02-12 13:52:43.580001598 +0400 ++++ m4/pandora_have_libboost_thread.m4 2014-02-12 13:53:24.288002974 +0400 +@@ -17,13 +17,13 @@ + CXXFLAGS="${PTHREAD_CFLAGS} ${CXXFLAGS}" + + AC_LANG_PUSH(C++) +- AC_LIB_HAVE_LINKFLAGS(boost_thread-mt,,[ ++ AC_LIB_HAVE_LINKFLAGS(boost_thread-mt,boost_system-mt,[ + #include <boost/thread.hpp> + ],[ + boost::thread id; + ]) + AS_IF([test "x${ac_cv_libboost_thread_mt}" = "xno"],[ +- AC_LIB_HAVE_LINKFLAGS(boost_thread,,[ ++ AC_LIB_HAVE_LINKFLAGS(boost_thread,boost_system,[ + #include <boost/thread.hpp> + ],[ + boost::thread id; diff --git a/dev-db/drizzle/files/drizzle.conf.d b/dev-db/drizzle/files/drizzle.conf.d new file mode 100644 index 000000000000..c8a797897a56 --- /dev/null +++ b/dev-db/drizzle/files/drizzle.conf.d @@ -0,0 +1 @@ +DRIZZLE_EXTRA="" diff --git a/dev-db/drizzle/files/drizzle.init.d b/dev-db/drizzle/files/drizzle.init.d new file mode 100644 index 000000000000..e3185ae0863b --- /dev/null +++ b/dev-db/drizzle/files/drizzle.init.d @@ -0,0 +1,134 @@ +#!/sbin/runscript +# Copyright 1999-2011 Pavel Stratil, senbonzakura.eu +# Some functions were taken from debian init script. Licensed under GPL-2 +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +######################### +### Construct vars ###### +######################### + + +SUFFIX=".${SVCNAME#*.}" +[ "${SUFFIX}" == ".drizzled" ] && SUFFIX='' + +BASE_CNF="/etc/drizzle/drizzled" +BASE_PID="/var/run/drizzle/drizzled" +BASE_LOG="/var/log/drizzle/drizzled" +BASE_DIR="/var/lib/drizzle/drizzled" + +PIDFILE="${BASE_PID}${SUFFIX}.pid" +CNFFILE="${BASE_CNF}${SUFFIX}.cnf" +LOGFILE="${BASE_LOG}${SUFFIX}.log" +DATADIR="${BASE_DIR}${SUFFIX}" +DRIZZLE="/usr/bin/drizzle" +DRIZZLE_USER="drizzle" +DRIZZLE_DAEMON="/usr/sbin/drizzled" +DRIZZLE_EXTRA="" + +######################### +### Helper functions #### +######################### + + +# +# drizzle_status() checks if there is a server running and if it is accessible. +# "check_alive" insists on a pingable server, "check_dead" also fails +# if there is a lost drizzled in the process list +# Usage: boolean drizzle_status [check_alive|check_dead] [warn|nowarn] +# +drizzle_status() { + ping_output=`$DRIZZLE --ping 2>&1`; ping_alive=$(( ! $? )) + ps_alive=0 + if [ -f "$PIDFILE" ] && ps `cat $PIDFILE` >/dev/null 2>&1; then ps_alive=1; fi + + if [ "$1" = "check_alive" -a $ping_alive = 1 ] || + [ "$1" = "check_dead" -a $ping_alive = 0 -a $ps_alive = 0 ]; then + return 0 # EXIT_SUCCESS + else + if [ "$2" = "warn" ]; then + echo -e "$ps_alive processes alive and '$DRIZZLE --ping' resulted in\n$ping_output\n" + fi + return 1 # EXIT_FAILURE + fi +} + +######################### +### Main ################ +######################### + +checkconfig() { + # TODO: --print-defaults no longer a valid option. Needs to be rewritten. + #CNFDATADIR=`drizzle_get_param datadir` + #if [ -z "${CNFDATADIR}" ] ; then + # ewarn "Datadir not set in ${CNFFILE}." + # ewarn "Trying to use ${DATADIR}" + #else + DATADIR="${CNFDATADIR}" + #fi + + if [[ ! -d "${DATADIR}" ]] ; then + eerror "Drizzle datadir is empty or invalid." + eerror "Please check your configuration ${CNFFILE} and DRIZZLE_EXTRA" + return 1 + fi + + if [ ! -f "${CNFFILE}" ]; then + eerror "The configuration file $CNFFILE was not found!" + fi +} + +depend() { + use localmount + use gearmand + use memcached + + # TODO use drizzle_get_param() to decide if gearmand and memcached + # are needed. Then the useflag based sed-ing of this script + # can be removed from the ebuild. +} + + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --pidfile ${PIDFILE} --stop \ + --exec ${DRIZZLE_DAEMON} + eend $? + drizzle_status check_dead warn +} + +start() { + #checkconfig + ebegin "Starting ${SVCNAME}" + # Test if ${BASE_PID}, ${BASE_LOG} and ${LOG_FILE} exist, create if not. + [ ! -e ${BASE_PID} ] && mkdir -p ${BASE_PID} && chown ${DRIZZLE_USER}:nogroup ${BASE_PID} + [ ! -e ${BASE_LOG} ] && mkdir -p ${BASE_LOG} && chown ${DRIZZLE_USER}:nogroup ${BASE_LOG} + [ ! -e ${LOGFILE} ] && touch ${LOGFILE} && chown ${DRIZZLE_USER}:nogroup ${LOGFILE} + start-stop-daemon --background --pidfile ${PIDFILE} --stderr ${LOGFILE} \ + --user ${DRIZZLE_USER} --start --exec ${DRIZZLE_DAEMON} -- \ + --datadir=${DATADIR} --pid-file=${PIDFILE} --user=${DRIZZLE_USER} \ + ${DRIZZLE_EXTRA} + eend $? + + # TODO in order to have replication always working we should add the + # --server-id=# option. AFAIK only integers are allowed, though + # ${HOSTNAME}${SVCNAME}${SUFFIX} whould be much easier to handle. + + for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do + sleep 1 + if drizzle_status check_alive nowarn ; then break ; fi + done + if drizzle_status check_alive warn ; then + einfo "${SVCNAME} is alive!" + else + eerror "${SVCNAME} died!" + fi +} + +status() { + if drizzle_status check_alive nowarn; then + einfo "status: started" + else + einfo "status: stopped" + fi +} diff --git a/dev-db/drizzle/files/drizzle.init.d.2 b/dev-db/drizzle/files/drizzle.init.d.2 new file mode 100644 index 000000000000..4b44ec0d51e9 --- /dev/null +++ b/dev-db/drizzle/files/drizzle.init.d.2 @@ -0,0 +1,127 @@ +#!/sbin/runscript +# Copyright 1999-2012 Pavel Stratil, senbonzakura.eu +# Some functions were taken from debian init script. Licensed under GPL-2 +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +######################### +### Construct vars ###### +######################### + + +SUFFIX=".${SVCNAME#*.}" +[ "${SUFFIX}" == ".drizzled" ] && SUFFIX='' + +DIR_PID="/run/drizzle" +DIR_LOG="/var/log/drizzle" + +BASE_CNF="/etc/drizzle/drizzled" +BASE_PID="${DIR_PID}/drizzled" +BASE_LOG="${DIR_LOG}/drizzled" +BASE_DIR="/var/lib/drizzle/drizzled" + +CNFFILE="${BASE_CNF}${SUFFIX}.cnf" +LOGFILE="${BASE_LOG}${SUFFIX}.log" +DATADIR="${BASE_DIR}${SUFFIX}" +DRIZZLE="/usr/bin/drizzle" +DRIZZLE_USER="drizzle" + +pidfile="${BASE_PID}${SUFFIX}.pid" +command="/usr/sbin/drizzled" +command_args="--daemon --datadir=${DATADIR} --pid-file=${pidfile} --user=${DRIZZLE_USER} --syslog.errmsg-enable ${DRIZZLE_EXTRA}" + +start_stop_daemon_args="--user ${DRIZZLE_USER} --wait 5000" + +######################### +### Helper functions #### +######################### + + +# +# drizzle_status() checks if there is a server running and if it is accessible. +# "check_alive" insists on a pingable server, "check_dead" also fails +# if there is a lost drizzled in the process list +# Usage: boolean drizzle_status [check_alive|check_dead] [warn|nowarn] +# +drizzle_status() { + ping_output=`$DRIZZLE --ping 2>&1`; ping_alive=$(( ! $? )) + ps_alive=0 + if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi + + if [ "$1" = "check_alive" -a $ping_alive = 1 ] || + [ "$1" = "check_dead" -a $ping_alive = 0 -a $ps_alive = 0 ]; then + return 0 # EXIT_SUCCESS + else + if [ "$2" = "warn" ]; then + echo -e "$ps_alive processes alive and '$DRIZZLE --ping' resulted in\n$ping_output\n" + fi + return 1 # EXIT_FAILURE + fi +} + +######################### +### Main ################ +######################### + +checkconfig() { + # TODO: --print-defaults no longer a valid option. Needs to be rewritten. + #CNFDATADIR=`drizzle_get_param datadir` + #if [ -z "${CNFDATADIR}" ] ; then + # ewarn "Datadir not set in ${CNFFILE}." + # ewarn "Trying to use ${DATADIR}" + #else + DATADIR="${CNFDATADIR}" + #fi + + if [[ ! -d "${DATADIR}" ]] ; then + eerror "Drizzle datadir is empty or invalid." + eerror "Please check your configuration ${CNFFILE} and DRIZZLE_EXTRA" + return 1 + fi + + if [ ! -f "${CNFFILE}" ]; then + eerror "The configuration file $CNFFILE was not found!" + fi +} + +depend() { + use localmount + use logger + use gearmand + use memcached + + # TODO use drizzle_get_param() to decide if gearmand and memcached + # are needed. Then the useflag based sed-ing of this script + # can be removed from the ebuild. +} + +start_pre() { + checkpath -d -o ${DRIZZLE_USER}:nogroup ${DIR_PID} ${DIR_LOG} + checkpath -f -o ${DRIZZLE_USER}:nogroup ${LOGFILE} +} + +start_post() { + for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do + sleep 1 + if drizzle_status check_alive nowarn ; then break ; fi + done + if drizzle_status check_alive warn ; then + einfo "${SVCNAME} is alive!" + else + eerror "${SVCNAME} died!" + fi +} + +stop_post() { + drizzle_status check_dead warn +} + +status() { + if drizzle_status check_alive nowarn; then + mark_service_started drizzled + einfo "status: started" + else + mark_service_stopped drizzled + einfo "status: stopped" + fi +} diff --git a/dev-db/drizzle/metadata.xml b/dev-db/drizzle/metadata.xml new file mode 100644 index 000000000000..ed2cb0bbc5fa --- /dev/null +++ b/dev-db/drizzle/metadata.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>pavel.stratil-jun@fenix.cz</email> + <description>Proxied co-maintainer, assign bugs to him</description> + </maintainer> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <use> + <flag name="doc"> + Build the API documentation for the package, using + <pkg>app-doc/doxygen</pkg>. Warning, this might take over an + hour on slower machines. + </flag> + <flag name="memcache"> + Enable the memcache plugin for user-defined functions and + statistics in I_S tables (using + <pkg>dev-libs/libmemcached</pkg>). + + Currently restricts tests because of an upstream testsuite bug. + </flag> + <flag name="gearman"> + Enable the gearman plugins for user-defined functions and + logging (using <pkg>sys-cluster/gearman</pkg>). + </flag> + <flag name="curl"> + Enable the HTTP authentication plugin (using + <pkg>net-misc/curl</pkg>). This is needed for the tests to apply + properly. + </flag> + <flag name="pam"> + Enable the PAM authentication plugin (using + <pkg>sys-libs/pam</pkg>). The configuration file created will be + /etc/pam.d/drizzle. + </flag> + <flag name="md5"> + Enable the MD5 plugin, using <pkg>dev-libs/libgcrypt</pkg>; this + replaces the older openssl and gnutls USE flags. + </flag> + <flag name="v8"> + Use <pkg>dev-lang/v8</pkg>. + </flag> + </use> + <upstream> + <remote-id type="launchpad">drizzle</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest new file mode 100644 index 000000000000..72c81762dc89 --- /dev/null +++ b/dev-db/etcd/Manifest @@ -0,0 +1,2 @@ +DIST etcd-0.4.6.zip 3184823 SHA256 9134701506a6e9f569ef62d3bb4c43f594f30d66ce67060403998233dbfc0ed6 SHA512 5c25b99c826daa20493645e0e2bec38fd06c17029c3677f65f451fe132441d19e00eebd04c462936c22caeaf327b56cf47027ca8080508dc742a5e6a7d3f89c6 WHIRLPOOL 5ab7fb2d51ca1be4c2a54a37953a0154e06eb094d81ebb94f9260c0f786104d273e214f1ee20cd4a46018e6323d23fe697d54f2903c1acadac9ec2c34611abd6 +DIST etcd-2.0.10.tar.gz 450581 SHA256 6029113d9870e5c6f0d10adbd2b6670958a46575114a094b86b607771a0e5ff3 SHA512 825524ee4c435b8f369970cfe39158443b8e29f6fba5ab86ae8be2d91f6faa0674d15f311bc863092fb6c77b054b8f3b69e163610b546e3c5cf59a111b38a3ed WHIRLPOOL a2b4c160cbc9cde5ebf64fa2fe41f6bc6ac5dc851551778b681d658e511f0dbc7241a4c74a6b520d43fe8e9cee65fa28f94655d64caf6f3c99cbd4ba84a57b65 diff --git a/dev-db/etcd/etcd-0.4.6.ebuild b/dev-db/etcd/etcd-0.4.6.ebuild new file mode 100644 index 000000000000..3d72d5e4415e --- /dev/null +++ b/dev-db/etcd/etcd-0.4.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit user systemd + +KEYWORDS="~amd64" +DESCRIPTION="A highly-available key value store for shared configuration and service discovery" +HOMEPAGE="https://github.com/coreos/etcd/" +SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.zip -> ${P}.zip" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc" +DEPEND=">=dev-lang/go-1.2" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} +} + +src_prepare() { + sed -e "s:^\(go install\)\(.*\)$:\\1 -x -ldflags=\"-v -linkmode=external -extldflags '${LDFLAGS}'\" \\2:" \ + -i build || die +} + +src_compile() { + CGO_CFLAGS="${CFLAGS}" ./build || die +} + +src_install() { + insinto /etc/${PN} + doins "${FILESDIR}/${PN}.conf" + dobin bin/${PN} + newbin bin/bench ${PN}-bench + dodoc CHANGELOG README.md + use doc && dodoc -r Documentation + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + dodir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 755 /var/lib/${PN} + dodir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + fperms 755 /var/log/${PN} +} diff --git a/dev-db/etcd/etcd-2.0.10-r1.ebuild b/dev-db/etcd/etcd-2.0.10-r1.ebuild new file mode 100644 index 000000000000..2b7d67d64aab --- /dev/null +++ b/dev-db/etcd/etcd-2.0.10-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit user systemd + +KEYWORDS="~amd64" +DESCRIPTION="A highly-available key value store for shared configuration and service discovery" +HOMEPAGE="https://github.com/coreos/etcd/" +SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc" +DEPEND=">=dev-lang/go-1.2:=" +RDEPEND="!dev-db/etcdctl" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} +} + +src_prepare() { + sed -e "s|-ldflags '-s'|-x|" \ + -i build || die +} + +src_compile() { + ./build || die +} + +src_install() { + insinto /etc/${PN} + doins "${FILESDIR}/${PN}.conf" + dobin bin/* + dodoc README.md + use doc && dodoc -r Documentation + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + dodir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 755 /var/lib/${PN} + dodir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + fperms 755 /var/log/${PN} +} + +src_test() { + local x + for x in bin/*; do + ebegin "running ${x##*/} --help" + ${x} --help >/dev/null || die "${x##*/} --help failed" + eend + done +} diff --git a/dev-db/etcd/etcd-2.0.10.ebuild b/dev-db/etcd/etcd-2.0.10.ebuild new file mode 100644 index 000000000000..a805bdf41ac6 --- /dev/null +++ b/dev-db/etcd/etcd-2.0.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit user systemd + +KEYWORDS="~amd64" +DESCRIPTION="A highly-available key value store for shared configuration and service discovery" +HOMEPAGE="https://github.com/coreos/etcd/" +SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc" +DEPEND=">=dev-lang/go-1.2" +RDEPEND="!dev-db/etcdctl" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} +} + +src_prepare() { + sed -e "s|-ldflags '-s'|-x|" \ + -i build || die +} + +src_compile() { + ./build || die +} + +src_install() { + insinto /etc/${PN} + doins "${FILESDIR}/${PN}.conf" + dobin bin/* + dodoc README.md + use doc && dodoc -r Documentation + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + dodir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 755 /var/lib/${PN} + dodir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + fperms 755 /var/log/${PN} +} + +src_test() { + local x + for x in bin/*; do + ebegin "running ${x##*/} --help" + ${x} --help >/dev/null || die "${x##*/} --help failed" + eend + done +} diff --git a/dev-db/etcd/files/etcd.conf b/dev-db/etcd/files/etcd.conf new file mode 100644 index 000000000000..3f34434e8e7c --- /dev/null +++ b/dev-db/etcd/files/etcd.conf @@ -0,0 +1,39 @@ +# For an explanation of the options please see: +# https://github.com/coreos/etcd/blob/master/Documentation/configuration.md#etcd-configuration +# +# The directory to store log and snapshot. +# If you change this you have to make sure the directory exists at +# the new path and has the correct permissions. +# data_dir = "/var/lib/etcd" + +# name = "default-name" +# addr = "127.0.0.1:4001" +# bind_addr = "127.0.0.1:4001" +# ca_file = "" +# cert_file = "" +# cors = [] +# cpu_profile_file = "" +# discovery = "http://etcd.local:4001/v2/keys/_etcd/registry/examplecluster" +# http_read_timeout = 10 +# http_write_timeout = 10 +# key_file = "" +# peers = [] +# peers_file = "" +# max_cluster_size = 9 +# max_result_buffer = 1024 +# max_retry_attempts = 3 +# snapshot = true +# verbose = false +# very_verbose = false + +[peer] +addr = "127.0.0.1:7001" +bind_addr = "127.0.0.1:7001" +# ca_file = "" +# cert_file = "" +# key_file = "" + +#[cluster] +# active_size = 9 +# remove_delay = 1800.0 +# sync_interval = 5.0 diff --git a/dev-db/etcd/files/etcd.confd b/dev-db/etcd/files/etcd.confd new file mode 100644 index 000000000000..4592dac08d56 --- /dev/null +++ b/dev-db/etcd/files/etcd.confd @@ -0,0 +1,7 @@ +# Name of this node in the etcd cluster. +ETCD_NAME=etcd + +# Path to the data directory. +ETCD_DATA_DIR=/var/lib/etcd + +ETCD_OPTS="" diff --git a/dev-db/etcd/files/etcd.initd b/dev-db/etcd/files/etcd.initd new file mode 100644 index 000000000000..d8134438c856 --- /dev/null +++ b/dev-db/etcd/files/etcd.initd @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +SVCNAME=etcd +PIDPATH=/var/run/${SVCNAME} +PIDFILE=${PIDPATH}/${SVCNAME}.pid +LOGPATH=/var/log/${SVCNAME} +DATADIR=/var/lib/${SVCNAME} +USER=$SVCNAME + +depend() { + need net + need localmount + after bootmisc +} + +start() { + if [ ! -d "$PIDPATH" ] ; then + mkdir -p "$PIDPATH" + chown $USER:$USER "$PIDPATH" + fi + if [ ! -d "$LOGPATH" ] ; then + mkdir -p "$LOGPATH" + chown $USER:$USER "$LOGPATH" + fi + if [ ! -d "$ETCD_DATA_DIR" ] ; then + mkdir -p "$ETCD_DATA_DIR" + chown $USER:$USER "$ETCD_DATA_DIR" + fi + + ebegin "Starting $SVCNAME" + start-stop-daemon --start \ + --pidfile "$PIDFILE" \ + --user $USER \ + --chdir "$ETCD_DATA_DIR" \ + -1 "$LOGPATH/$SVCNAME.log" \ + -2 "$LOGPATH/$SVCNAME.err" \ + --background \ + --make-pidfile \ + --exec /usr/bin/etcd -- \ + -name=$ETCD_NAME \ + -data-dir="$ETCD_DATA_DIR" \ + $ETCD_OPTS + eend $? "Failed to start $SVCNAME" +} + +stop() { + ebegin "Stopping $SVCNAME" + start-stop-daemon --stop --pidfile $PIDFILE + eend $? "Failed to stop $SVCNAME" + rm -f "$PIDFILE" +} diff --git a/dev-db/etcd/files/etcd.service b/dev-db/etcd/files/etcd.service new file mode 100644 index 000000000000..8c4663d03234 --- /dev/null +++ b/dev-db/etcd/files/etcd.service @@ -0,0 +1,11 @@ +[Unit] +Description=etcd + +[Service] +User=etcd +PermissionsStartOnly=true +Environment=ETCD_DATA_DIR=/var/lib/etcd +Environment=ETCD_NAME=%m +ExecStart=/usr/bin/etcd +Restart=always +RestartSec=10s diff --git a/dev-db/etcd/files/etcd.tmpfiles.d.conf b/dev-db/etcd/files/etcd.tmpfiles.d.conf new file mode 100644 index 000000000000..721e9c9161a3 --- /dev/null +++ b/dev-db/etcd/files/etcd.tmpfiles.d.conf @@ -0,0 +1,2 @@ +d /var/lib/etcd 0755 etcd etcd - - +d /var/run/etcd 0755 etcd etcd - - diff --git a/dev-db/etcd/metadata.xml b/dev-db/etcd/metadata.xml new file mode 100644 index 000000000000..82f2214aa78f --- /dev/null +++ b/dev-db/etcd/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <bugs-to>https://github.com/coreos/etcd/issues</bugs-to> + <changelog>https://raw.githubusercontent.com/coreos/etcd/master/CHANGELOG</changelog> + <doc>https://github.com/coreos/etcd/blob/master/README.md/</doc> + <remote-id type="github">coreos/etcd</remote-id> + </upstream> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/etcdctl/Manifest b/dev-db/etcdctl/Manifest new file mode 100644 index 000000000000..da679aceb949 --- /dev/null +++ b/dev-db/etcdctl/Manifest @@ -0,0 +1 @@ +DIST etcdctl-0.4.6.zip 62437 SHA256 b57c463bfc65114b3f78406409edf693af6f79fa3d2937470081355d629121a7 SHA512 b47c3a0e2071e0352226e91f344839f1dfcd75dc8d11ca6b73c33a0570aabe94f557c3ed79ec9da9e0005656d8da49468c3df4a82df61c823cb1902b6e09bddd WHIRLPOOL a630d2d21956221363c292c37dd996a6fc0986eced0a58ec0703eabcd10b36106dd53f5a708b4aedb8158330f70e853c1228d611564d56b56838aa9d4a9342b4 diff --git a/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild new file mode 100644 index 000000000000..8fb38cbcca19 --- /dev/null +++ b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +KEYWORDS="~amd64" +DESCRIPTION="A simple command line client for etcd" +HOMEPAGE="https://github.com/coreos/etcdctl/" +SRC_URI="https://github.com/coreos/etcdctl/archive/v${PV}.zip -> ${P}.zip" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="examples" + +DEPEND=">=dev-lang/go-1.2:=" +RDEPEND="" + +src_prepare() { + sed -e "s:^\(go install\)\(.*\)$:\\1 -x -ldflags=\"-v -linkmode=external -extldflags '${LDFLAGS}'\" \\2:" \ + -i build || die +} + +src_compile() { + CGO_CFLAGS="${CFLAGS}" ./build || die +} + +src_test() { + ./test || die +} + +src_install() { + dobin bin/${PN} + dodoc README.md + use examples && dodoc -r examples +} diff --git a/dev-db/etcdctl/etcdctl-0.4.6.ebuild b/dev-db/etcdctl/etcdctl-0.4.6.ebuild new file mode 100644 index 000000000000..45973eade0d4 --- /dev/null +++ b/dev-db/etcdctl/etcdctl-0.4.6.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +KEYWORDS="~amd64" +DESCRIPTION="A simple command line client for etcd" +HOMEPAGE="https://github.com/coreos/etcdctl/" +SRC_URI="https://github.com/coreos/etcdctl/archive/v${PV}.zip -> ${P}.zip" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="examples" + +DEPEND=">=dev-lang/go-1.2" +RDEPEND="" + +src_prepare() { + sed -e "s:^\(go install\)\(.*\)$:\\1 -x -ldflags=\"-v -linkmode=external -extldflags '${LDFLAGS}'\" \\2:" \ + -i build || die +} + +src_compile() { + CGO_CFLAGS="${CFLAGS}" ./build || die +} + +src_test() { + ./test || die +} + +src_install() { + dobin bin/${PN} + dodoc README.md + use examples && dodoc -r examples +} diff --git a/dev-db/etcdctl/metadata.xml b/dev-db/etcdctl/metadata.xml new file mode 100644 index 000000000000..928c51782818 --- /dev/null +++ b/dev-db/etcdctl/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <bugs-to>https://github.com/coreos/etcdctl/issues</bugs-to> + <changelog>https://github.com/coreos/etcdctl/commits/master</changelog> + <doc>https://github.com/coreos/etcdctl/blob/master/README.md</doc> + <remote-id type="github">coreos/etcdctl</remote-id> + </upstream> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/firebird/Manifest b/dev-db/firebird/Manifest new file mode 100644 index 000000000000..bdb486cf2179 --- /dev/null +++ b/dev-db/firebird/Manifest @@ -0,0 +1,2 @@ +DIST Firebird-2.5.3.26780-0.tar.bz2 13798872 SHA256 0c4b500d189aa9b4c12a7d2cf310a0b770118967c37ebe0edf8581cbcdad7aad SHA512 b8a0bef492d15739ea9a156225ac738687241a11571ce52ee6c644e5017dcff03007945aeb19b0537aadd1de01b339645871ff1905edf41c65679db377c69e98 WHIRLPOOL 0321763e79882dcdd2175191e1cbf6c82d656bb16e5ebd4a3bf0f08c77ee0494f06ffb08205b583c4a9990c33d652ac2fa73683e4c7ccebe900236975c8d60a5 +DIST ib_b60_doc.zip 10530848 SHA256 8c0158678b2a2fe3ba3abfea1f5487fc5af2644d66837ab8a558f5ad6b6cfd6d SHA512 59eccf1d6b1f0410eddbc5967fd77a3d00e09749640b3f81e2f8b624f5a45461dffad4af5ec61488e941fb3d3af266fe86c0b56e6b7e023239537cb6557a145a WHIRLPOOL 5c3e17eec64d835bac8832a51acefe04c3a5ff818d1d1e69a032bae1a730fd73996a2be073d2e22bcd4ad4ee1ba2247da8271cd3a03c0326acf46eef1073033f diff --git a/dev-db/firebird/files/firebird-2.5.1.26351.0-client.patch b/dev-db/firebird/files/firebird-2.5.1.26351.0-client.patch new file mode 100644 index 000000000000..8331c8122faf --- /dev/null +++ b/dev-db/firebird/files/firebird-2.5.1.26351.0-client.patch @@ -0,0 +1,12 @@ +diff -Naur orig/builds/posix/Makefile.in.firebird builds/posix/Makefile.in.firebird +--- orig/builds/posix/Makefile.in.firebird 2010-11-12 15:46:22.000000000 -0500 ++++ builds/posix/Makefile.in.firebird 2010-11-12 16:36:22.000000000 -0500 +@@ -145,7 +145,7 @@ + + firebird : firebird_@FIREBIRD_ARCH_TYPE@ $(PLATFORM_POSTBUILD_TARGET) + +-firebird_classic firebird_embedded: firebird_basic classic_targets fbtrace ++firebird_classic firebird_embedded: firebird_boot libfbclient includes + firebird_super firebird_server: firebird_basic super_targets fbtrace + + diff --git a/dev-db/firebird/files/firebird-2.5.1.26351.0-deps-flags.patch b/dev-db/firebird/files/firebird-2.5.1.26351.0-deps-flags.patch new file mode 100644 index 000000000000..8be521cc0fac --- /dev/null +++ b/dev-db/firebird/files/firebird-2.5.1.26351.0-deps-flags.patch @@ -0,0 +1,59 @@ +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird +--- Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird 2011-03-28 15:10:09.814370706 -0400 +@@ -158,7 +158,7 @@ + # some complications particularly for super in needing to start the server + # that you are currently building. MOD 28-July-2002 + +-firebird_basic: btyacc_binary external_libraries firebird_boot basic_targets ++firebird_basic: firebird_boot basic_targets + + firebird_boot: updateBuildNum boot_phase1 boot_phase2 + +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults +--- Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults 2011-03-28 15:21:26.904370708 -0400 +@@ -138,7 +138,7 @@ + AR= ar @AR_OPTIONS@ crsu + LN= @LN_S@ + RANLIB= @RANLIB@ +-BTYACC=$(ROOT)/extern/btyacc/btyacc ++BTYACC=/usr/bin/btyacc + + CC = @CC@ + CXX = @CXX@ +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux +--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux 2011-03-25 21:38:29.031037374 -0400 +@@ -18,11 +18,10 @@ + # + # 2 Oct 2002, Nickolay Samofatov - Major cleanup + +-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 +-OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer ++COMMON_FLAGS=-DLINUX -MMD -fPIC -fmessage-length=0 + WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable + +-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) ++PROD_FLAGS=$(COMMON_FLAGS) + #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS) + DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS) + +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 +--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 2011-03-25 21:39:15.134370707 -0400 +@@ -18,12 +18,11 @@ + # + # 2 Oct 2002, Nickolay Samofatov - Major cleanup + +-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 +-OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer ++COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 + WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable + CXXFLAGS:= $(CXXFLAGS) -fno-rtti + +-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) ++PROD_FLAGS=$(COMMON_FLAGS) + #DEV_FLAGS=-DUSE_VALGRIND $(COMMON_FLAGS) $(WARN_FLAGS) + DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) + diff --git a/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch b/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch new file mode 100644 index 000000000000..3891cc776fae --- /dev/null +++ b/dev-db/firebird/files/firebird-2.5.1.26351.0-superclassic.patch @@ -0,0 +1,12 @@ +diff -Naur orig/builds/posix/Makefile.in.firebird builds/posix/Makefile.in.firebird +--- orig/builds/posix/Makefile.in.firebird 2010-11-09 12:42:45.000000000 -0500 ++++ builds/posix/Makefile.in.firebird 2011-03-07 20:26:56.612573632 -0500 +@@ -332,7 +332,7 @@ + .PHONY: libfbembed inet_server fb_smp_server embed_gfix embed_gbak embed_isql + .PHONY: embed_gpre embed_util + +-classic_targets: $(PLAT_CLASSIC_PRE_TARGET) libfbembed inet_server fb_smp_server embed_gfix embed_gbak embed_isql \ ++classic_targets: $(PLAT_CLASSIC_PRE_TARGET) libfbembed fbserver fb_smp_server embed_gfix embed_gbak embed_isql \ + embed_gpre libfbclient embed_util embed_gdef embed_qli embed_fbudf $(PLAT_CLASSIC_POST_TARGET) + + libfbembed: diff --git a/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch b/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch new file mode 100644 index 000000000000..506a6c07a79c --- /dev/null +++ b/dev-db/firebird/files/firebird-2.5.3.26780.0-deps-flags.patch @@ -0,0 +1,59 @@ +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird +--- Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird 2011-03-28 15:10:09.814370706 -0400 +@@ -158,7 +158,7 @@ + # some complications particularly for super in needing to start the server + # that you are currently building. MOD 28-July-2002 + +-firebird_basic: btyacc_binary external_libraries firebird_boot basic_targets ++firebird_basic: firebird_boot basic_targets + + firebird_boot: updateBuildNum boot_phase1 boot_phase2 + +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults +--- Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults 2011-03-28 15:21:26.904370708 -0400 +@@ -138,7 +138,7 @@ + AR= ar @AR_OPTIONS@ crsu + LN= @LN_S@ + RANLIB= @RANLIB@ +-BTYACC=$(ROOT)/extern/btyacc/btyacc ++BTYACC=/usr/bin/btyacc + + CC = @CC@ + CXX = @CXX@ +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux +--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux 2011-03-25 21:38:29.031037374 -0400 +@@ -18,11 +18,10 @@ + # + # 2 Oct 2002, Nickolay Samofatov - Major cleanup + +-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0 +-OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer ++COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -MMD -fPIC -fmessage-length=0 + WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable + +-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) ++PROD_FLAGS=$(COMMON_FLAGS) + #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS) + DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS) + +diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 +--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 2010-11-09 12:42:45.000000000 -0500 ++++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64 2011-03-25 21:39:15.134370707 -0400 +@@ -18,12 +18,11 @@ + # + # 2 Oct 2002, Nickolay Samofatov - Major cleanup + +-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 +-OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer ++COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 + WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable + CXXFLAGS:= $(CXXFLAGS) -fno-rtti + +-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS) ++PROD_FLAGS=$(COMMON_FLAGS) + #DEV_FLAGS=-DUSE_VALGRIND $(COMMON_FLAGS) $(WARN_FLAGS) + DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS) + diff --git a/dev-db/firebird/files/firebird.conf.d.2.5 b/dev-db/firebird/files/firebird.conf.d.2.5 new file mode 100644 index 000000000000..625963d0c13b --- /dev/null +++ b/dev-db/firebird/files/firebird.conf.d.2.5 @@ -0,0 +1,7 @@ +FBUSER=firebird +FBGROUP=firebird +FIREBIRD=/usr/lib/firebird +FBGUARD=/usr/sbin/fbguard +PIDFILE=/var/run/firebird/firebird.pid +FB_OPTS="-forever -daemon -pidfile $PIDFILE" +LD_LIBRARY_PATH=/usr/lib/:/usr/lib/firebird/intl/:/usr/lib/firebird/plugins/:/usr/lib/firebird/UDF/ diff --git a/dev-db/firebird/files/firebird.init.d.2.5 b/dev-db/firebird/files/firebird.init.d.2.5 new file mode 100644 index 000000000000..cb4dddcb4ba6 --- /dev/null +++ b/dev-db/firebird/files/firebird.init.d.2.5 @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start_pre() { + checkpath -d -o $FBUSER "$(dirname $PIDFILE)" +} + +start(){ + ebegin "Starting Firebird server" + start-stop-daemon --start --pidfile $PIDFILE --user $FBUSER --group $FBGROUP --exec $FBGUARD -- $FB_OPTS + eend $? +} + +stop(){ + ebegin "Stopping Firebird server" + start-stop-daemon --stop --name fbguard + eend $? +} + +restart(){ + svc_stop + sleep 1 + svc_start +} + diff --git a/dev-db/firebird/files/firebird.logrotate b/dev-db/firebird/files/firebird.logrotate new file mode 100644 index 000000000000..c87cd43f30f8 --- /dev/null +++ b/dev-db/firebird/files/firebird.logrotate @@ -0,0 +1,10 @@ +/var/log/firebird/firebird.log { + compress + weekly + missingok + rotate 52 + size=+1024k + delaycompress + notifempty + create 644 firebird + } diff --git a/dev-db/firebird/files/firebird.xinetd b/dev-db/firebird/files/firebird.xinetd new file mode 100644 index 000000000000..01fc102ee3a8 --- /dev/null +++ b/dev-db/firebird/files/firebird.xinetd @@ -0,0 +1,11 @@ +service gds_db +{ + flags = REUSE + socket_type = stream + wait = no + user = firebird + log_on_success += USERID + log_on_failure += USERID + server = /usr/bin/fb_inet_server + disable = yes +} diff --git a/dev-db/firebird/firebird-2.5.3.26780.0-r1.ebuild b/dev-db/firebird/firebird-2.5.3.26780.0-r1.ebuild new file mode 100644 index 000000000000..9fe14f665cb1 --- /dev/null +++ b/dev-db/firebird/firebird-2.5.3.26780.0-r1.ebuild @@ -0,0 +1,286 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic eutils autotools multilib user readme.gentoo versionator + +MY_P=${PN/f/F}-$(replace_version_separator 4 -) +#MY_P=${PN/f/F}-${PV/_rc/-ReleaseCandidate} + +DESCRIPTION="A relational database offering many ANSI SQL:2003 and some SQL:2008 features" +HOMEPAGE="http://www.firebirdsql.org/" +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 client superserver xinetd examples debug" +REQUIRED_USE=" + client? ( !superserver ) + client? ( !xinetd ) + superserver? ( !xinetd ) +" + +CDEPEND=" + dev-libs/libedit + dev-libs/icu:= +" +DEPEND="${CDEPEND} + >=dev-util/btyacc-3.0-r2 + doc? ( app-arch/unzip ) +" +RDEPEND="${CDEPEND} + xinetd? ( virtual/inetd ) + !sys-cluster/ganglia +" + +RESTRICT="userpriv" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup firebird 450 + enewuser firebird 450 /bin/bash /usr/$(get_libdir)/firebird firebird +} + +function check_sed() { + MSG="sed of $3, required $2 lines modified $1" + einfo "${MSG}" + [[ $1 -ge $2 ]] || die "${MSG}" +} + +src_unpack() { + unpack "${MY_P}.tar.bz2" + if use doc; then + # Unpack docs + mkdir "${WORKDIR}/manuals" && cd "${WORKDIR}/manuals" || die + unpack ib_b60_doc.zip + fi +} + +src_prepare() { + # This patch might be portable, and not need to be duplicated per version + # also might no longer be necessary to patch deps or libs, just flags + epatch "${FILESDIR}"/${PN}-2.5.3.26780.0-deps-flags.patch + + use client && epatch "${FILESDIR}"/${PN}-2.5.1.26351.0-client.patch + use superserver || epatch "${FILESDIR}"/${PN}-2.5.1.26351.0-superclassic.patch + + # Rename references to isql to fbsql + # sed vs patch for portability and addtional location changes + 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/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' \ + -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 || die + rm -rf "${S}"/extern/{btyacc,editline,icu} || die + + eautoreconf +} + +src_configure() { + filter-flags -fprefetch-loop-arrays + filter-mfpmath sse + + econf \ + --prefix=/usr/$(get_libdir)/firebird \ + $(use_enable superserver superserver) \ + $(use_enable debug) \ + --with-editline \ + --with-system-editline \ + --with-system-icu \ + --with-fbbin=/usr/bin \ + --with-fbsbin=/usr/sbin \ + --with-fbconf=/etc/${PN} \ + --with-fblib=/usr/$(get_libdir) \ + --with-fbinclude=/usr/include \ + --with-fbdoc=/usr/share/doc/${P} \ + --with-fbudf=/usr/$(get_libdir)/${PN}/UDF \ + --with-fbsample=/usr/share/doc/${P}/examples \ + --with-fbsample-db=/usr/share/doc/${P}/examples/db \ + --with-fbhelp=/usr/$(get_libdir)/${PN}/help \ + --with-fbintl=/usr/$(get_libdir)/${PN}/intl \ + --with-fbmisc=/usr/share/${PN} \ + --with-fbsecure-db=/etc/${PN} \ + --with-fbmsg=/usr/$(get_libdir)/${PN} \ + --with-fblog=/var/log/${PN}/ \ + --with-fbglock=/var/run/${PN} \ + --with-fbplugins=/usr/$(get_libdir)/${PN}/plugins \ + --with-gnu-ld \ + ${myconf} +} + +src_compile() { + MAKEOPTS="${MAKEOPTS/-j*/-j1} ${MAKEOPTS/-j/CPU=}" + emake +} + +src_install() { + cd "${S}/gen/${PN}" || die + + if use doc; then + dodoc "${S}"/doc/*.pdf + find "${WORKDIR}"/manuals -type f -iname "*.pdf" -exec dodoc '{}' + || die + fi + + doheader include/* + + rm lib/libfbstatic.a + + insinto /usr/$(get_libdir) + dolib.so lib/*.so* + + # links for backwards compatibility + dosym libfbclient.so /usr/$(get_libdir)/libgds.so + dosym libfbclient.so /usr/$(get_libdir)/libgds.so.0 + dosym libfbclient.so /usr/$(get_libdir)/libfbclient.so.1 + + insinto /usr/$(get_libdir)/${PN} + doins *.msg + + use client && return + + einfo "Renaming isql -> fbsql" + mv bin/isql bin/fbsql + + local bins="fbsql fbsvcmgr fbtracemgr gbak gdef gfix gpre gsec gstat nbackup qli" + for bin in ${bins[@]}; do + dobin bin/${bin} + done + + dosbin bin/fb_lock_print + # SuperServer + if use superserver ; then + dosbin bin/{fbguard,fbserver} + # ClassicServer + elif use xinetd ; then + dosbin bin/fb_inet_server + # SuperClassic + else + dosbin bin/{fbguard,fb_smp_server} + + #Temp should not be necessary, need to patch/fix + dosym "${D}"/usr/$(get_libdir)/libib_util.so /usr/$(get_libdir)/${PN}/lib/libib_util.so + fi + + exeinto /usr/bin/${PN} + exeopts -m0755 + doexe bin/{changeRunUser,restoreRootRunUser,changeDBAPassword}.sh + + insinto /usr/$(get_libdir)/${PN}/help + doins help/help.fdb + + exeinto /usr/$(get_libdir)/firebird/intl + dolib.so intl/libfbintl.so + dosym "${D}"/usr/$(get_libdir)/libfbintl.so /usr/$(get_libdir)/${PN}/intl/fbintl + dosym "${D}"/etc/firebird/fbintl.conf /usr/$(get_libdir)/${PN}/intl/fbintl.conf + + exeinto /usr/$(get_libdir)/${PN}/plugins + dolib.so plugins/libfbtrace.so + dosym "${D}"/usr/$(get_libdir)/libfbtrace.so /usr/$(get_libdir)/${PN}/plugins/libfbtrace.so + + exeinto /usr/$(get_libdir)/${PN}/UDF + doexe UDF/*.so + + insinto /usr/share/${PN}/upgrade + doins "${S}"/src/misc/upgrade/v2/* + + insinto /etc/${PN} + insopts -m0644 -o firebird -g firebird + doins ../install/misc/*.conf + insopts -m0660 -o firebird -g firebird + doins security2.fdb + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/${PN}.xinetd" ${PN} + else + newinitd "${FILESDIR}/${PN}.init.d.2.5" ${PN} + newconfd "${FILESDIR}/${PN}.conf.d.2.5" ${PN} + fperms 640 /etc/conf.d/${PN} + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + diropts -m 755 -o firebird -g firebird + dodir /var/log/${PN} + dodir /var/run/${PN} + keepdir /var/log/${PN} + keepdir /var/run/${PN} + + use examples && docinto examples +} + +pkg_postinst() { + use client && return + + # Hack to fix ownership/perms + chown -fR firebird:firebird "${ROOT}/etc/${PN}" "${ROOT}/usr/$(get_libdir)/${PN}" + chmod 750 "${ROOT}/etc/${PN}" +} + +pkg_config() { + use client && return + + # 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.*}" + + echo + 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)." + echo + 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" +} diff --git a/dev-db/firebird/metadata.xml b/dev-db/firebird/metadata.xml new file mode 100644 index 000000000000..118ac1e3f864 --- /dev/null +++ b/dev-db/firebird/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + Firebird is a relational database offering many ANSI SQL standard + features that runs on Linux, Windows, and a variety of Unix platforms. + Firebird offers excellent concurrency, high performance, and powerful + language support for stored procedures and triggers. It has been used + in production systems, under a variety of names, since 1981. + </longdescription> + <use> + <flag name="client">Install client library and header files only</flag> + <flag name="superserver">Install SuperServer</flag> + <flag name="xinetd">Install ClassicServer</flag> + </use> + <upstream> + <remote-id type="sourceforge">firebird</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/flamerobin/Manifest b/dev-db/flamerobin/Manifest new file mode 100644 index 000000000000..83abf8e284c3 --- /dev/null +++ b/dev-db/flamerobin/Manifest @@ -0,0 +1 @@ +DIST flamerobin-0.9.2-src.tar.gz 901908 SHA256 b674a1de1c632c834e904a17e576498850e7b81cc5c4d42e8cafd8a6dd020c90 SHA512 76eeecae759ab7aec817a4775fe185f982f6f50f5dec850b1fbb00b56239807867fe36568592e313315c0f02364c1986d9691e84d5fced2aedd85571d239f2be WHIRLPOOL 224481502e893be06236f685c71f15848f9aab372a6adbb91db9f95fc5978f76fe2879c823b3f6ff64cea4bff5269df34475978a7602a47a43bb5146f5182b9a diff --git a/dev-db/flamerobin/files/flamerobin-0.9.2-gcc46.patch b/dev-db/flamerobin/files/flamerobin-0.9.2-gcc46.patch new file mode 100644 index 000000000000..0701a0fa5906 --- /dev/null +++ b/dev-db/flamerobin/files/flamerobin-0.9.2-gcc46.patch @@ -0,0 +1,503 @@ +Index: src/databasehandler.cpp +=================================================================== +--- src/databasehandler.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/databasehandler.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -46,6 +46,7 @@ + class DatabaseInfoHandler: public URIHandler + { + public: ++ DatabaseInfoHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/RestoreFrame.cpp +=================================================================== +--- src/gui/RestoreFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/RestoreFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -258,7 +258,7 @@ + sizerFilename->Add(styleguide().getBrowseButtonMargin(), 0); + sizerFilename->Add(button_browse, 0, wxALIGN_CENTER_VERTICAL); + +- wxGridSizer* sizerChecks = new wxGridSizer(2, 2, ++ wxGridSizer* sizerChecks = new wxGridSizer(3, 2, + styleguide().getCheckboxSpacing(), + styleguide().getUnrelatedControlMargin(wxHORIZONTAL)); + sizerChecks->Add(checkbox_replace, 0, wxEXPAND); +Index: src/gui/ReorderFieldsDialog.cpp +=================================================================== +--- src/gui/ReorderFieldsDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/ReorderFieldsDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -215,6 +215,7 @@ + class ReorderFieldsHandler: public URIHandler + { + public: ++ ReorderFieldsHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/FieldPropertiesDialog.cpp +=================================================================== +--- src/gui/FieldPropertiesDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/FieldPropertiesDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -690,7 +690,7 @@ + + wxT(" IF (NEW.") + fNameSql + wxT(" IS NULL) THEN\n") + + wxT(" NEW.") + fNameSql + wxT(" = GEN_ID(") + + generator.getQuoted() + wxT(", 1);\n") +- + wxT(" ELSE\n BEGIN\n tmp = GEN_ID(") + ++ + wxT(" ELSE\n BEGIN\n tmp = GEN_ID(") + + generator.getQuoted() + wxT(", 0);\n if (tmp < new.") + + fNameSql + wxT(") then\n tmp = GEN_ID(") + + generator.getQuoted() + wxT(", new.") + fNameSql +@@ -816,6 +816,7 @@ + class ColumnPropertiesHandler: public URIHandler + { + public: ++ ColumnPropertiesHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/controls/DBHTreeControl.cpp +=================================================================== +--- src/gui/controls/DBHTreeControl.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/controls/DBHTreeControl.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -261,6 +261,8 @@ + id = ART_View; break; + case ntViews: + id = ART_Views; break; ++ default: ++ break; + } + return getImageIndex(id); + } +Index: src/gui/controls/TextControl.cpp +=================================================================== +--- src/gui/controls/TextControl.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/controls/TextControl.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -40,8 +40,8 @@ + + #include "gui/controls/TextControl.h" + //----------------------------------------------------------------------------- +-TextControl::TextControl(wxWindow *parent, wxWindowID id, long style) +- : wxStyledTextCtrl(parent, id, wxDefaultPosition, wxDefaultSize, style) ++TextControl::TextControl(wxWindow *parent, wxWindowID id) ++ : wxStyledTextCtrl(parent, id) + { + SetWrapMode(wxSTC_WRAP_WORD); + // wxStyledTextCtrl uses black on white initially -> use system defaults +Index: src/gui/controls/LogTextControl.cpp +=================================================================== +--- src/gui/controls/LogTextControl.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/controls/LogTextControl.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -40,8 +40,8 @@ + + #include "gui/controls/LogTextControl.h" + //----------------------------------------------------------------------------- +-LogTextControl::LogTextControl(wxWindow *parent, wxWindowID id, long style) +- : TextControl(parent, id, style) ++LogTextControl::LogTextControl(wxWindow *parent, wxWindowID id) ++ : TextControl(parent, id) + { + setDefaultStyles(); + } +Index: src/gui/controls/TextControl.h +=================================================================== +--- src/gui/controls/TextControl.h (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/controls/TextControl.h (.../rel_0_9_2-1/src) (révision 2085) +@@ -61,8 +61,7 @@ + + DECLARE_EVENT_TABLE() + public: +- TextControl(wxWindow *parent, wxWindowID id = wxID_ANY, +- long style = wxSUNKEN_BORDER); ++ TextControl(wxWindow *parent, wxWindowID id = wxID_ANY); + }; + //----------------------------------------------------------------------------- + #endif +Index: src/gui/controls/LogTextControl.h +=================================================================== +--- src/gui/controls/LogTextControl.h (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/controls/LogTextControl.h (.../rel_0_9_2-1/src) (révision 2085) +@@ -38,8 +38,7 @@ + enum LogStyle { logStyleDefault, logStyleImportant, logStyleError }; + void addStyledText(const wxString& message, LogStyle style); + public: +- LogTextControl(wxWindow *parent, wxWindowID id = wxID_ANY, +- long style = wxSUNKEN_BORDER); ++ LogTextControl(wxWindow *parent, wxWindowID id = wxID_ANY); + + void logErrorMsg(const wxString& message); + void logImportantMsg(const wxString& message); +Index: src/gui/UserDialog.cpp +=================================================================== +--- src/gui/UserDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/UserDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -222,6 +222,7 @@ + class UserPropertiesHandler: public URIHandler + { + public: ++ UserPropertiesHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -300,6 +301,7 @@ + class DropUserHandler: public URIHandler + { + public: ++ DropUserHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/CreateIndexDialog.cpp +=================================================================== +--- src/gui/CreateIndexDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/CreateIndexDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -209,6 +209,7 @@ + class TableIndicesHandler: public URIHandler + { + public: ++ TableIndicesHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/BackupFrame.cpp +=================================================================== +--- src/gui/BackupFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/BackupFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -241,7 +241,7 @@ + sizerFilename->Add(styleguide().getBrowseButtonMargin(), 0); + sizerFilename->Add(button_browse, 0, wxALIGN_CENTER_VERTICAL); + +- wxGridSizer* sizerChecks = new wxGridSizer(2, 2, ++ wxGridSizer* sizerChecks = new wxGridSizer(3, 2, + styleguide().getCheckboxSpacing(), + styleguide().getUnrelatedControlMargin(wxHORIZONTAL)); + sizerChecks->Add(checkbox_checksum, 0, wxEXPAND); +Index: src/gui/PrivilegesDialog.cpp +=================================================================== +--- src/gui/PrivilegesDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/PrivilegesDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -583,6 +583,7 @@ + class ManagePrivilegesHandler: public URIHandler + { + public: ++ ManagePrivilegesHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/gui/MainFrame.cpp +=================================================================== +--- src/gui/MainFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/MainFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -380,6 +380,7 @@ + EVT_MENU(Cmds::Menu_Reconnect, MainFrame::OnMenuReconnect) + EVT_UPDATE_UI(Cmds::Menu_Reconnect, MainFrame::OnMenuUpdateIfDatabaseConnected) + EVT_MENU(Cmds::Menu_RecreateDatabase, MainFrame::OnMenuRecreateDatabase) ++ EVT_UPDATE_UI(Cmds::Menu_RecreateDatabase, MainFrame::OnMenuUpdateIfDatabaseConnected) + EVT_MENU(Cmds::Menu_DropDatabase, MainFrame::OnMenuDropDatabase) + EVT_UPDATE_UI(Cmds::Menu_DropDatabase, MainFrame::OnMenuUpdateIfDatabaseConnected) + EVT_MENU(Cmds::Menu_Query, MainFrame::OnMenuQuery) +@@ -540,8 +541,10 @@ + } + //----------------------------------------------------------------------------- + //! handle double-click on item (or press Enter) +-void MainFrame::OnTreeItemActivate(wxTreeEvent& WXUNUSED(event)) ++void MainFrame::OnTreeItemActivate(wxTreeEvent& event) + { ++ event.Skip(); ++ + wxTreeItemId item = treeMainM->GetSelection(); + if (!item.IsOk()) + return; +Index: src/gui/TriggerWizardDialog.cpp +=================================================================== +--- src/gui/TriggerWizardDialog.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/TriggerWizardDialog.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -178,6 +178,7 @@ + class CreateTriggerHandler: public URIHandler + { + public: ++ CreateTriggerHandler() {}; + bool handleURI(URI& uri); + private: + static const CreateTriggerHandler handlerInstance; +Index: src/gui/EventWatcherFrame.cpp +=================================================================== +--- src/gui/EventWatcherFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/EventWatcherFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -55,15 +55,13 @@ + class EventLogControl: public LogTextControl + { + public: +- EventLogControl(wxWindow* parent, wxWindowID id = wxID_ANY, +- long style = wxSUNKEN_BORDER); ++ EventLogControl(wxWindow* parent, wxWindowID id = wxID_ANY); + void logAction(const wxString& action); + void logEvent(const wxString& name, int count); + }; + //----------------------------------------------------------------------------- +-EventLogControl::EventLogControl(wxWindow* parent, wxWindowID id, +- long style) +- : LogTextControl(parent, id, style) ++EventLogControl::EventLogControl(wxWindow* parent, wxWindowID id) ++ : LogTextControl(parent, id) + { + } + //----------------------------------------------------------------------------- +Index: src/gui/MetadataItemPropertiesFrame.cpp +=================================================================== +--- src/gui/MetadataItemPropertiesFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/MetadataItemPropertiesFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -360,6 +360,8 @@ + case ntDatabase: + case ntRole: + pages.push_back(wxT("DDL")); ++ default: ++ break; + }; + wxString page = loadEntireFile(config().getHtmlTemplatesPath() + + wxT("header.html")); +@@ -1290,6 +1292,7 @@ + class PageHandler: public URIHandler + { + public: ++ PageHandler() {}; + bool handleURI(URI& uri); + private: + static const PageHandler handlerInstance; // singleton; registers itself on creation. +@@ -1327,6 +1330,7 @@ + class PropertiesHandler: public URIHandler + { + public: ++ PropertiesHandler() {}; + bool handleURI(URI& uri); + private: + static const PropertiesHandler handlerInstance; // singleton; registers itself on creation. +Index: src/gui/ExecuteSqlFrame.cpp +=================================================================== +--- src/gui/ExecuteSqlFrame.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/gui/ExecuteSqlFrame.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -2749,6 +2749,7 @@ + class DropColumnHandler: public URIHandler + { + public: ++ DropColumnHandler() {}; + bool handleURI(URI& uri); + private: + static const DropColumnHandler handlerInstance; +@@ -2806,6 +2807,7 @@ + class DropColumnsHandler: public URIHandler + { + public: ++ DropColumnsHandler() {}; + bool handleURI(URI& uri); + private: + static const DropColumnsHandler handlerInstance; +@@ -2842,6 +2844,7 @@ + class DropObjectHandler: public URIHandler + { + public: ++ DropObjectHandler() {}; + bool handleURI(URI& uri); + private: + static const DropObjectHandler handlerInstance; +@@ -2878,6 +2881,7 @@ + class EditDDLHandler: public URIHandler + { + public: ++ EditDDLHandler() {}; + bool handleURI(URI& uri); + private: + static const EditDDLHandler handlerInstance; +@@ -2919,6 +2923,7 @@ + class EditProcedureHandler: public URIHandler + { + public: ++ EditProcedureHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -2947,6 +2952,7 @@ + class AlterViewHandler: public URIHandler + { + public: ++ AlterViewHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -2973,6 +2979,7 @@ + class EditTriggerHandler: public URIHandler + { + public: ++ EditTriggerHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -2999,6 +3006,7 @@ + class EditGeneratorValueHandler: public URIHandler + { + public: ++ EditGeneratorValueHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -3041,6 +3049,7 @@ + class EditExceptionHandler: public URIHandler + { + public: ++ EditExceptionHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -3067,6 +3076,7 @@ + class IndexActionHandler: public URIHandler + { + public: ++ IndexActionHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +@@ -3113,6 +3123,7 @@ + class ActivateTriggersHandler: public URIHandler + { + public: ++ ActivateTriggersHandler() {}; + bool handleURI(URI& uri); + private: + static const ActivateTriggersHandler handlerInstance; +@@ -3160,6 +3171,7 @@ + class ActivateTriggerHandler: public URIHandler + { + public: ++ ActivateTriggerHandler() {}; + bool handleURI(URI& uri); + private: + static const ActivateTriggerHandler handlerInstance; +Index: src/images.cpp +=================================================================== +--- src/images.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/images.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -68,6 +68,8 @@ + return wxArtProvider::GetIcon(ART_Trigger, wxART_OTHER, sz); + case ntView: + return wxArtProvider::GetIcon(ART_View, wxART_OTHER, sz); ++ default: ++ break; + } + return wxArtProvider::GetIcon(ART_FlameRobin, wxART_OTHER, sz); + } +Index: src/objectdescriptionhandler.cpp +=================================================================== +--- src/objectdescriptionhandler.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/objectdescriptionhandler.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -46,6 +46,7 @@ + class ObjectDescriptionHandler: public URIHandler + { + public: ++ ObjectDescriptionHandler() {}; + bool handleURI(URI& uri); + private: + // singleton; registers itself on creation. +Index: src/addconstrainthandler.cpp +=================================================================== +--- src/addconstrainthandler.cpp (.../rel_0_9_2/src) (révision 2085) ++++ src/addconstrainthandler.cpp (.../rel_0_9_2-1/src) (révision 2085) +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2004-2009 The FlameRobin Development Team ++ Copyright (c) 2004-2011 The FlameRobin Development Team + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the +@@ -51,6 +51,8 @@ + class AddConstraintHandler: public URIHandler + { + public: ++ AddConstraintHandler() {}; ++ + bool handleURI(URI& uri); + private: + static const AddConstraintHandler handlerInstance; // singleton; registers itself on creation. diff --git a/dev-db/flamerobin/flamerobin-0.9.2.ebuild b/dev-db/flamerobin/flamerobin-0.9.2.ebuild new file mode 100644 index 000000000000..7e92ac8b3949 --- /dev/null +++ b/dev-db/flamerobin/flamerobin-0.9.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +WX_GTK_VER="2.8" +inherit eutils wxwidgets + +DESCRIPTION="A database administration tool for Firebird DBMS" +HOMEPAGE="http://www.flamerobin.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" + +LICENSE="MIT IBPP-1.1 LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="x11-libs/wxGTK:2.8[X] + dev-db/firebird" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P}-src" + +src_prepare() { + epatch "${FILESDIR}/${P}-gcc46.patch" +} + +src_configure() { + # temp hack since configure is not executable + chmod +x configure + + local myconf + myconf="${myconf} \ + --disable-shared \ + --disable-debug \ + --with-wx=yes \ + --with-wx-config=${WX_CONFIG}" + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc devdocs/* docs/* docs-src/* +} diff --git a/dev-db/flamerobin/metadata.xml b/dev-db/flamerobin/metadata.xml new file mode 100644 index 000000000000..676780a80213 --- /dev/null +++ b/dev-db/flamerobin/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + FlameRobin is a database administration tool for Firebird DBMS. + FlameRobin is lightweight (small footprint, fast execution) and + dependent only on other Open Source software + </longdescription> + <upstream> + <remote-id type="sourceforge">flamerobin</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/freetds/Manifest b/dev-db/freetds/Manifest new file mode 100644 index 000000000000..d848f3a2118c --- /dev/null +++ b/dev-db/freetds/Manifest @@ -0,0 +1 @@ +DIST freetds-0.91.tar.gz 2136329 SHA256 6a8148bd803aebceac6862b0dead1c5d9659f7e1038993abfe0ce8febb322465 SHA512 4dadafe49848ab5505b0fa5bd650e19e7652c3e1181d3c49f087c50ed055f395eaf5917a99744ed3594e4af9032c4e18f397af58fb1010e695ac2c0bc601b5e3 WHIRLPOOL 63662b56011edb6d22ce28cc7bad3af272ff81862f0d8ff65b113af260e3c8d05a9d941c1cf4b8039b99f460c3a5c8364dd69d42d8e98c0c92530462f732dec2 diff --git a/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch b/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch new file mode 100644 index 000000000000..c5699af5d1d9 --- /dev/null +++ b/dev-db/freetds/files/freetds-0.91-fix_field_aliases.patch @@ -0,0 +1,21 @@ +Gentoo bug: 498374 + +diff -Nru freetds-0.91/src/odbc/odbc.c freetds-0.91/src/odbc/odbc.c +--- freetds-0.91/src/odbc/odbc.c.orig 2010-03-22 09:42:16.000000000 -0500 ++++ freetds-0.91/src/odbc/odbc.c 2010-05-06 16:00:00.000000000 -0500 +@@ -3012,12 +3012,9 @@ + + odbc_set_sql_type_info(col, drec, stmt->dbc->env->attr.odbc_version); + +- if (!col->table_column_name) { +- if (!tds_dstr_copyn(&drec->sql_desc_name, col->column_name, col->column_namelen)) +- return SQL_ERROR; +- } else { +- if (!tds_dstr_copy(&drec->sql_desc_name, col->table_column_name)) +- return SQL_ERROR; ++ if (!tds_dstr_copyn(&drec->sql_desc_name, col->column_name, col->column_namelen)) ++ return SQL_ERROR; ++ if (col->table_column_name) { + if (!tds_dstr_copy(&drec->sql_desc_base_column_name, col->table_column_name)) + return SQL_ERROR; + } diff --git a/dev-db/freetds/freetds-0.91-r1.ebuild b/dev-db/freetds/freetds-0.91-r1.ebuild new file mode 100644 index 000000000000..868c23521774 --- /dev/null +++ b/dev-db/freetds/freetds-0.91-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +SRC_URI="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" +IUSE="kerberos odbc iodbc mssql" +RESTRICT="test" + +DEPEND=" + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + odbc? ( dev-db/unixODBC )" +RDEPEND="${DEPEND}" + +src_prepare() { + config_rpath_update + sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' configure.ac || die + epatch ${FILESDIR}/freetds-0.91-fix_field_aliases.patch + eautoreconf +} + +src_configure() { + local myconf="--with-tdsver=7.0 $(use_enable mssql msdblib)" + + if use iodbc ; then + myconf="${myconf} --enable-odbc --with-iodbc=${EPREFIX}/usr" + elif use odbc ; then + myconf="${myconf} --enable-odbc --with-unixodbc=${EPREFIX}/usr" + fi + if use kerberos ; then + myconf="${myconf} --enable-krb5" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" DOCDIR="doc/${PF}" install +} diff --git a/dev-db/freetds/freetds-0.91.ebuild b/dev-db/freetds/freetds-0.91.ebuild new file mode 100644 index 000000000000..76d8f6241265 --- /dev/null +++ b/dev-db/freetds/freetds-0.91.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +SRC_URI="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" +IUSE="kerberos odbc iodbc mssql" +RESTRICT="test" + +DEPEND=" + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + odbc? ( dev-db/unixODBC )" +RDEPEND="${DEPEND}" + +src_prepare() { + config_rpath_update + sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' configure.ac || die + eautoreconf +} + +src_configure() { + local myconf="--with-tdsver=7.0 $(use_enable mssql msdblib)" + + if use iodbc ; then + myconf="${myconf} --enable-odbc --with-iodbc=${EPREFIX}/usr" + elif use odbc ; then + myconf="${myconf} --enable-odbc --with-unixodbc=${EPREFIX}/usr" + fi + if use kerberos ; then + myconf="${myconf} --enable-krb5" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" DOCDIR="doc/${PF}" install +} diff --git a/dev-db/freetds/metadata.xml b/dev-db/freetds/metadata.xml new file mode 100644 index 000000000000..746c6938cae7 --- /dev/null +++ b/dev-db/freetds/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>olemarkus@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/gigabase/Manifest b/dev-db/gigabase/Manifest new file mode 100644 index 000000000000..d3d9a462147e --- /dev/null +++ b/dev-db/gigabase/Manifest @@ -0,0 +1 @@ +DIST gigabase-3.83.tar.gz 1746301 SHA256 0d627fa41ce0b3336b08738bf00cfc41ef5ddc8eb91c11f6a621d0e6f2e65607 SHA512 df2eab9b8ceae831c24a25f010cf06ebdd38fdf2f7478116b0d769092d6e4575c5c95222562410752df462a8bf3cc2f205c05d3adfaeb1634e82f443529957e5 WHIRLPOOL 4be91ddc164b96346e8d69c00f1467c2c90676e5c3225f54a8d7d2436f59d5ef3cd41658e7061a41945e1a29c86bea5f33731c13df1442320210b1905f7d1778 diff --git a/dev-db/gigabase/files/gigabase-3.83-fix-dereferencing.patch b/dev-db/gigabase/files/gigabase-3.83-fix-dereferencing.patch new file mode 100644 index 000000000000..b96f47bc2130 --- /dev/null +++ b/dev-db/gigabase/files/gigabase-3.83-fix-dereferencing.patch @@ -0,0 +1,188 @@ +Index: session.cpp +=================================================================== +--- session.cpp (revision 15) ++++ session.cpp (revision 16) +@@ -131,7 +131,7 @@ + throw CursorException("Cursor is not opened"); + } + fillBuffer(sizeof(oid_t)); +- oid_t currOid = *(oid_t*)&sockBuf[bufPos]; ++ oid_t currOid = *(oid_t*)(sockBuf + bufPos); + bufPos += sizeof(oid_t); + if (currObj != NULL) { + delete[] currObj; +@@ -139,7 +139,7 @@ + } + if (currOid != 0) { + fillBuffer(sizeof(int)); +- size_t size = *(int*)&sockBuf[bufPos]; ++ size_t size = *(int*)(sockBuf + bufPos); + if (size <= SOCKET_BUFFER_SIZE) { + fillBuffer(size); + if (record != NULL) { +Index: database.cpp +=================================================================== +--- database.cpp (revision 15) ++++ database.cpp (revision 16) +@@ -739,40 +739,55 @@ + return; + + case dbvmInvokeMethodBool: +- execute(expr->ref.base, iattr, sattr); +- expr->ref.field->method->invoke(sattr.base, &sattr.bvalue); +- sattr.bvalue = *(bool*)&sattr.bvalue; +- iattr.free(sattr); +- return; ++ { ++ bool val; ++ execute(expr->ref.base, iattr, sattr); ++ expr->ref.field->method->invoke(sattr.base, &val); ++ sattr.bvalue = val; ++ iattr.free(sattr); ++ return; ++ } + case dbvmInvokeMethodInt1: +- execute(expr->ref.base, iattr, sattr); +- expr->ref.field->method->invoke(sattr.base, &sattr.ivalue); +- sattr.ivalue = *(int1*)&sattr.ivalue; +- iattr.free(sattr); +- return; ++ { ++ int1 val; ++ execute(expr->ref.base, iattr, sattr); ++ expr->ref.field->method->invoke(sattr.base, &val); ++ sattr.ivalue = val; ++ iattr.free(sattr); ++ return; ++ } + case dbvmInvokeMethodInt2: +- execute(expr->ref.base, iattr, sattr); +- expr->ref.field->method->invoke(sattr.base, &sattr.ivalue); +- sattr.ivalue = *(int2*)&sattr.ivalue; +- iattr.free(sattr); +- return; ++ { ++ int2 val; ++ execute(expr->ref.base, iattr, sattr); ++ expr->ref.field->method->invoke(sattr.base, &val); ++ sattr.ivalue = val; ++ iattr.free(sattr); ++ return; ++ } + case dbvmInvokeMethodInt4: +- execute(expr->ref.base, iattr, sattr); +- expr->ref.field->method->invoke(sattr.base, &sattr.ivalue); +- sattr.ivalue = *(int4*)&sattr.ivalue; +- iattr.free(sattr); +- return; ++ { ++ int4 val; ++ execute(expr->ref.base, iattr, sattr); ++ expr->ref.field->method->invoke(sattr.base, &val); ++ sattr.ivalue = val; ++ iattr.free(sattr); ++ return; ++ } + case dbvmInvokeMethodInt8: + execute(expr->ref.base, iattr, sattr); + expr->ref.field->method->invoke(sattr.base, &sattr.ivalue); + iattr.free(sattr); + return; + case dbvmInvokeMethodReal4: +- execute(expr->ref.base, iattr, sattr); +- expr->ref.field->method->invoke(sattr.base, &sattr.fvalue); +- sattr.fvalue = *(real4*)&sattr.fvalue; +- iattr.free(sattr); +- return; ++ { ++ real4 val; ++ execute(expr->ref.base, iattr, sattr); ++ expr->ref.field->method->invoke(sattr.base, &val); ++ sattr.fvalue = val; ++ iattr.free(sattr); ++ return; ++ } + case dbvmInvokeMethodReal8: + execute(expr->ref.base, iattr, sattr); + expr->ref.field->method->invoke(sattr.base, &sattr.fvalue); +@@ -792,28 +807,43 @@ + return; + + case dbvmInvokeSelfMethodBool: +- expr->ref.field->method->invoke(iattr.record, &sattr.bvalue); +- sattr.bvalue = *(bool*)&sattr.bvalue; +- return; ++ { ++ bool val; ++ expr->ref.field->method->invoke(iattr.record, &val); ++ sattr.bvalue = val; ++ return; ++ } + case dbvmInvokeSelfMethodInt1: +- expr->ref.field->method->invoke(iattr.record, &sattr.ivalue); +- sattr.ivalue = *(int1*)&sattr.ivalue; +- return; ++ { ++ int1 val; ++ expr->ref.field->method->invoke(iattr.record, &val); ++ sattr.ivalue = val; ++ return; ++ } + case dbvmInvokeSelfMethodInt2: +- expr->ref.field->method->invoke(iattr.record, &sattr.ivalue); +- sattr.ivalue = *(int2*)&sattr.ivalue; +- return; ++ { ++ int2 val; ++ expr->ref.field->method->invoke(iattr.record, &val); ++ sattr.ivalue = val; ++ return; ++ } + case dbvmInvokeSelfMethodInt4: +- expr->ref.field->method->invoke(iattr.record, &sattr.ivalue); +- sattr.ivalue = *(int4*)&sattr.ivalue; +- return; ++ { ++ int4 val; ++ expr->ref.field->method->invoke(iattr.record, &val); ++ sattr.ivalue = val; ++ return; ++ } + case dbvmInvokeSelfMethodInt8: + expr->ref.field->method->invoke(iattr.record, &sattr.ivalue); + return; + case dbvmInvokeSelfMethodReal4: +- expr->ref.field->method->invoke(iattr.record, &sattr.fvalue); +- sattr.fvalue = *(real4*)&sattr.fvalue; +- return; ++ { ++ real4 val; ++ expr->ref.field->method->invoke(iattr.record, &val); ++ sattr.fvalue = *(real4*)&sattr.fvalue; ++ return; ++ } + case dbvmInvokeSelfMethodReal8: + expr->ref.field->method->invoke(iattr.record, &sattr.fvalue); + return; +Index: server.cpp +=================================================================== +--- server.cpp (revision 15) ++++ server.cpp (revision 16) +@@ -2097,7 +2097,7 @@ + bufUsed = 0; + } + oid_t oid = cursor.getOid(); +- *(oid_t*)&buf[bufUsed] = oid; ++ *(oid_t*)(buf + bufUsed) = oid; + bufUsed += sizeof(oid_t); + dbRecord* record = db->getRow(tie, oid); + size_t size = record->size; +@@ -2129,7 +2129,7 @@ + bufUsed = 0; + } + } +- *(oid_t*)&buf[bufUsed] = 0; ++ *(oid_t*)(buf + bufUsed) = 0; + return session->sock->write(buf, bufUsed + sizeof(oid_t)); + } + diff --git a/dev-db/gigabase/gigabase-3.83-r1.ebuild b/dev-db/gigabase/gigabase-3.83-r1.ebuild new file mode 100644 index 000000000000..671323a643bc --- /dev/null +++ b/dev-db/gigabase/gigabase-3.83-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils multilib + +DESCRIPTION="OO-DBMS with interfaces for C/C++/Java/PHP/Perl" +HOMEPAGE="http://www.garret.ru/~knizhnik/gigabase.html" +SRC_URI="mirror://sourceforge/gigabase/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc static-libs" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${P}-fix-dereferencing.patch" +} + +src_configure() { + mf="${S}/Makefile" + + econf $(use_enable static-libs static) + sed -r -i -e 's/subsql([^\.]|$)/subsql-gdb\1/' ${mf} || die +} + +src_compile() { + emake + use doc && { doxygen doxygen.cfg || die; } +} + +src_test() { + pwd + cd "${S}" + local TESTS + local -i failcnt=0 + TESTS="testddl testidx testidx2 testiref testleak testperf testperf2 testspat testtl testsync testtimeseries" + + for t in ${TESTS}; do + ./${t} || { ewarn "$t fails"; failcnt+=1; } + done + [[ $failcnt != 0 ]] && die "See warnings above for tests that failed" +} + +src_install() { + einstall + prune_libtool_files + + dodoc CHANGES + use doc && dohtml GigaBASE.htm + use doc && dohtml -r docs/html/* +} + +pkg_postinst() { + elog "The subsql binary has been renamed to subsql-gdb," + elog "to avoid a name clash with the FastDB version of subsql" +} diff --git a/dev-db/gigabase/metadata.xml b/dev-db/gigabase/metadata.xml new file mode 100644 index 000000000000..54fa7cc408be --- /dev/null +++ b/dev-db/gigabase/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + Object-Relational Database Management System GigaBASE inherits most of the + features of FastDB, but uses page pool instead of direct mapping of file on + virtual memory. So GigaBASE is able to handle database, which size + significantly exceeds size of computer physical memory. Convenient and + flexible C++ interface makes development of application for GigaBASE very + easy and automatic scheme evaluation simplifies maintenance and modification + of the system. GigaBASE merges best features of relational (simple data + structure and non-procedural query language) and object-oriented (direct + object references, user defined types and methods) databases. GigaBASE is + primary oriented on application requiring fast data retrieving by means of + indices and direct object references, such as Web Server databases + applications. SUBSQL utility can be used for database browsing and + inspection, performing online backups, database recovery, importing data to + and exporting data from database. GigaBASE will perform automatic recovery + after system or application crash, you should not worry about it. The only + thing you can have to do manually is stopping all database application if + one of them is crashed leaving database blocked. + </longdescription> + <upstream> + <remote-id type="sourceforge">gigabase</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/go-etcd/Manifest b/dev-db/go-etcd/Manifest new file mode 100644 index 000000000000..f33f5b54a665 --- /dev/null +++ b/dev-db/go-etcd/Manifest @@ -0,0 +1,2 @@ +DIST go-etcd-0_p20141013.tar.gz 18214 SHA256 1f23919939588fbdc76dc40977f20d47fe67e633be24f53e4042122a942f867e SHA512 af07b2434bbad219962e989ca1d6ccb86bb40f698aa3f2b681ac04094dc7e878593af6a54e9c1e976d1aeb451661d8100295b0637291b46bafa45452537f1575 WHIRLPOOL 6cfb874e90bc43d643eb9b3db59e9d7c914614adfcb34db642b794c645823863cdab70c72b0e60abda2dc97dc1c526bc2d8c4c28d7c32811fcc9798744b4beaa +DIST go-etcd-2.0.0.tar.gz 18214 SHA256 1f23919939588fbdc76dc40977f20d47fe67e633be24f53e4042122a942f867e SHA512 af07b2434bbad219962e989ca1d6ccb86bb40f698aa3f2b681ac04094dc7e878593af6a54e9c1e976d1aeb451661d8100295b0637291b46bafa45452537f1575 WHIRLPOOL 6cfb874e90bc43d643eb9b3db59e9d7c914614adfcb34db642b794c645823863cdab70c72b0e60abda2dc97dc1c526bc2d8c4c28d7c32811fcc9798744b4beaa diff --git a/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild new file mode 100644 index 000000000000..8ea0f6d7fd64 --- /dev/null +++ b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +KEYWORDS="~amd64" +DESCRIPTION="Go client library for etcd" +GO_PN=github.com/coreos/${PN} +HOMEPAGE="https://${GO_PN}" +EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4" +RDEPEND="" +S=${WORKDIR} + +src_unpack() { + default_src_unpack + mkdir -p src/${GO_PN%/*} || die + mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die +} + +src_compile() { + # Create a filtered GOROOT tree out of symlinks, + # excluding go-etcd, for bug #503324. + cp -sR /usr/lib/go goroot || die + rm -rf goroot/src/${GO_PN} || die + rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die + GOROOT=${WORKDIR}/goroot GOPATH=${WORKDIR} \ + go install -x ${GO_PN}/etcd || die +} + +src_install() { + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go + doins -r pkg + insinto /usr/lib/go/src + find src/${GO_PN} -name .gitignore -delete + doins -r src/* +} diff --git a/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild new file mode 100644 index 000000000000..79358b57b672 --- /dev/null +++ b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +KEYWORDS="~amd64" +DESCRIPTION="Go client library for etcd" +GO_PN=github.com/coreos/${PN} +HOMEPAGE="https://${GO_PN}" +EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4:=" +RDEPEND="" +S=${WORKDIR} + +src_unpack() { + default_src_unpack + mkdir -p src/${GO_PN%/*} || die + mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die +} + +src_compile() { + # Create a filtered GOROOT tree out of symlinks, + # excluding go-etcd, for bug #503324. + cp -sR /usr/lib/go goroot || die + rm -rf goroot/src/${GO_PN} || die + rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die + GOROOT=${WORKDIR}/goroot GOPATH=${WORKDIR} \ + go install -x ${GO_PN}/etcd || die +} + +src_install() { + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go + doins -r pkg + insinto /usr/lib/go/src + find src/${GO_PN} -name .gitignore -delete + doins -r src/* +} diff --git a/dev-db/go-etcd/go-etcd-2.0.0.ebuild b/dev-db/go-etcd/go-etcd-2.0.0.ebuild new file mode 100644 index 000000000000..8ea0f6d7fd64 --- /dev/null +++ b/dev-db/go-etcd/go-etcd-2.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +KEYWORDS="~amd64" +DESCRIPTION="Go client library for etcd" +GO_PN=github.com/coreos/${PN} +HOMEPAGE="https://${GO_PN}" +EGIT_COMMIT="25e2c63be8e8ab405014a78879e0992ae5ff55e8" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4" +RDEPEND="" +S=${WORKDIR} + +src_unpack() { + default_src_unpack + mkdir -p src/${GO_PN%/*} || die + mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die +} + +src_compile() { + # Create a filtered GOROOT tree out of symlinks, + # excluding go-etcd, for bug #503324. + cp -sR /usr/lib/go goroot || die + rm -rf goroot/src/${GO_PN} || die + rm -rf goroot/pkg/linux_${ARCH}/${GO_PN} || die + GOROOT=${WORKDIR}/goroot GOPATH=${WORKDIR} \ + go install -x ${GO_PN}/etcd || die +} + +src_install() { + insopts -m0644 -p # preserve timestamps for bug 551486 + insinto /usr/lib/go + doins -r pkg + insinto /usr/lib/go/src + find src/${GO_PN} -name .gitignore -delete + doins -r src/* +} diff --git a/dev-db/go-etcd/metadata.xml b/dev-db/go-etcd/metadata.xml new file mode 100644 index 000000000000..2d6fe69da263 --- /dev/null +++ b/dev-db/go-etcd/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <bugs-to>https://github.com/coreos/go-etcd/issues</bugs-to> + <changelog>https://github.com/coreos/go-etcd/commits/master</changelog> + <doc>https://godoc.org/github.com/coreos/go-etcd/etcd</doc> + <remote-id type="github">coreos/go-etcd</remote-id> + </upstream> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/haildb/Manifest b/dev-db/haildb/Manifest new file mode 100644 index 000000000000..2d449395fe32 --- /dev/null +++ b/dev-db/haildb/Manifest @@ -0,0 +1 @@ +DIST haildb-2.3.2.tar.gz 1687216 SHA256 4dff658c27d68c1c72b8e985fa9c20ad0e2095a573cca13c77c7ffb582f8c0af SHA512 4e3cf9a90242c27a61b4aa93903ee2e2e329613ae939332ae969901409824eb185310e0145c5728aca058af664f95bb7ffa60448ede9b8c216318db9f9ce49fd WHIRLPOOL 81a3abe16e8447964d898417a7f565adf41de02725f88bc1e085c5c298f172821348ecdd2f7eaf0a6fb024c0894461b0a3ff83f0d1f47abb8ada76ad46fecb96 diff --git a/dev-db/haildb/haildb-2.3.2.ebuild b/dev-db/haildb/haildb-2.3.2.ebuild new file mode 100644 index 000000000000..852ecc584d5e --- /dev/null +++ b/dev-db/haildb/haildb-2.3.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit versionator flag-o-matic + +DESCRIPTION="a relational database in shared library form" +HOMEPAGE="http://www.haildb.com/" +SRC_URI="http://launchpad.net/haildb/$(get_version_component_range 1-2)/cairo/+download/${P}.tar.gz" +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug tcmalloc zlib" + +RDEPEND="tcmalloc? ( dev-util/google-perftools ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + sys-devel/bison" + +src_configure() { + local myconf + + if use debug; then + # Since --with-debug would turn off optimisations as well as + # enabling debug, we just enable debug through the + # preprocessor then. + append-flags -DDEBUG + else + myconf="${myconf} --disable-assert" + fi + + # never allow it to find valgrind, easier this way + export ac_cv_header_valgrind_memcheck_h=no + + econf \ + --disable-static \ + --disable-dependency-tracking \ + --enable-fast-install \ + --disable-silent-rules \ + --disable-mtmalloc \ + $(use_enable zlib compression) \ + $(use_enable tcmalloc) \ + ${myconf} \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dodoc ChangeLog README || die + + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-db/haildb/metadata.xml b/dev-db/haildb/metadata.xml new file mode 100644 index 000000000000..7a25688345ec --- /dev/null +++ b/dev-db/haildb/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>pavel.stratil-jun@fenix.cz</email> + <description>Proxied co-maintainer, assign bugs to him</description> + </maintainer> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <use> + <flag name="zlib"> + Add support for compressed tables through + <pkg>sys-libs/zlib</pkg>. + </flag> + <flag name="debug"> + Enable extra debug codepaths and assertions. If disabled, both + the debug code and assertions are removed from the resulting + binaries. Optimisations are untouched. + </flag> + </use> + <upstream> + <remote-id type="launchpad">haildb</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/henplus/Manifest b/dev-db/henplus/Manifest new file mode 100644 index 000000000000..b913ec27c6ec --- /dev/null +++ b/dev-db/henplus/Manifest @@ -0,0 +1 @@ +DIST henplus-0.9.8.tar.gz 233035 SHA256 ea7ca363d0503317235e97f66aa0efefe44463d8445e88b304ec0ac1748fe1ff SHA512 a22fc847f4441f627c1fa12f4f365c38d0c8ddfc205758d044e797e83f8d37032995666c2ee3dbb68d0a5f563fa5d574886e85757b1faa0acfc055e92b2fad0b WHIRLPOOL 82236dcde4865049b97d89dc02bbe062e74fbb002bdebd301400fbb84d28a4a196c7bf206fe279c881e47661216c18e5356fe6ff7170f46c6ee1c01cdb61f42e diff --git a/dev-db/henplus/files/0.9.8-build.xml.patch b/dev-db/henplus/files/0.9.8-build.xml.patch new file mode 100644 index 000000000000..e2763978080e --- /dev/null +++ b/dev-db/henplus/files/0.9.8-build.xml.patch @@ -0,0 +1,23 @@ +diff -ur henplus-0.9.8.old/build.xml henplus-0.9.8/build.xml +--- henplus-0.9.8.old/build.xml 2009-05-01 23:51:41.000000000 +0300 ++++ henplus-0.9.8/build.xml 2009-05-01 23:52:31.000000000 +0300 +@@ -33,13 +33,13 @@ + <pathelement path="${classes}" /> + </path> + +- <taskdef name="ant-server" classname="net.sweetohm.ant.server.ServerTask"> +- <classpath> +- <pathelement location="${lib}/build/sat-0.7.jar" /> +- </classpath> +- </taskdef> +- + <target name="server"> ++ <taskdef name="ant-server" classname="net.sweetohm.ant.server.ServerTask"> ++ <classpath> ++ <pathelement location="${lib}/build/sat-0.7.jar" /> ++ </classpath> ++ </taskdef> ++ + <ant-server/> + </target> + diff --git a/dev-db/henplus/files/henplus-0.9.7-build.xml.patch b/dev-db/henplus/files/henplus-0.9.7-build.xml.patch new file mode 100644 index 000000000000..2e4a43a039e3 --- /dev/null +++ b/dev-db/henplus/files/henplus-0.9.7-build.xml.patch @@ -0,0 +1,34 @@ +--- build.xml.orig 2006-10-17 22:25:57.000000000 +0200 ++++ build.xml 2006-10-17 22:27:34.000000000 +0200 +@@ -21,26 +21,26 @@ + <property name="libreadline-java" value="libreadline-java-0.8.0.jar"/> + + <path id="compile.classpath"> +- <fileset dir="${lib}"> +- <include name="${libreadline-java}"/> +- <include name="${commons-cli}"/> +- </fileset> ++ <fileset dir="${lib}" includes="**/*.jar"/> + </path> + + <path id="run.classpath"> + <path refid="compile.classpath" /> + <pathelement path="${classes}" /> + </path> +- ++ ++ <!-- + <taskdef name="ant-server" classname="net.sweetohm.ant.server.ServerTask"> + <classpath> + <pathelement location="${lib}/build/sat-0.7.jar" /> + </classpath> + </taskdef> ++ + + <target name="server"> + <ant-server/> + </target> ++ --> + + <target name="prepare"> + <tstamp> diff --git a/dev-db/henplus/files/henplus.patch b/dev-db/henplus/files/henplus.patch new file mode 100644 index 000000000000..abc92d364d70 --- /dev/null +++ b/dev-db/henplus/files/henplus.patch @@ -0,0 +1,42 @@ +--- a/bin/henplus 2004-02-02 14:53:28.000000000 +0100 ++++ b/bin/henplus 2004-07-23 11:21:11.518166136 +0200 +@@ -2,6 +2,7 @@ + # $Id$ + ## + ++echo $(dirname $0) + # additional flags you might want to pass to the java interpreter + # like -Dfile.encoding=ISO-8859-1 + JAVA_FLAGS= +@@ -13,20 +14,8 @@ + JAVA=$JAVA_HOME/bin/java + fi + +-##------------------ +-THISDIR=`dirname $0` +-HENPLUSDIR=$THISDIR/../share/henplus +- +-# not yet installed ? Then look in the build directory +-if [ ! -d "$HENPLUSDIR" ] ; then +- HENPLUSDIR=$THISDIR/../build +-fi +- +-# location of the readline lib. +-# Modify this, if you installation stores this at a different +-# position. +-LD_LIBRARY_PATH=$THISDIR/../lib:/usr/lib/jni:$LD_LIBRARY_PATH +-CLASSPATH=$CLASSPATH:$THISDIR/../share/java/libreadline-java.jar ++HENPLUSDIR=$(dirname $(java-config -p henplus)) ++CLASSPATH=$CLASSPATH:$(java-config -p libreadline-java) + + # you may just throw your own jar files in this dir. + # (like additional JDBC-drivers, that are not in default +@@ -65,7 +54,4 @@ + CLASSPATH=$CLASSPATH:$f + fi + done +- +-export CLASSPATH LD_LIBRARY_PATH +- +-exec $JAVA $JAVA_FLAGS henplus.HenPlus "$@" ++LD_LIBRARY_PATH="$(java-config -i libreadline-java):$LD_LIBRARY_PATH" exec $JAVA -cp $CLASSPATH $JAVA_FLAGS henplus.HenPlus "$@" diff --git a/dev-db/henplus/files/henplus.pre b/dev-db/henplus/files/henplus.pre new file mode 100755 index 000000000000..c29585e369fa --- /dev/null +++ b/dev-db/henplus/files/henplus.pre @@ -0,0 +1,51 @@ +# +# Based on the upstream script but parts not relevant to Gentoo +# stripped away. We would not need this at all but better to make +# this behave as the upstream docs say and then also have all the +# Gentoo goodies. +# https://bugs.gentoo.org/show_bug.cgi?id=176185 + +##------------------ +THISDIR=`dirname $0` +# install layout is: script in /usr/bin/henplus and libs in /usr/share/henplus +HENPLUSDIR=$THISDIR/../share/henplus + +# you may just throw your own jar files in this dir. +# (like additional JDBC-drivers, that are not in default +# classpath) +for f in $HENPLUSDIR/*.jar $HENPLUSDIR/*.zip ; do + if [ -r "$f" ] ; then + CLASSPATH=$CLASSPATH:$f + fi +done + +# starting at the current directory we look for additional +# JDBC-drivers in .henplus/lib-directories up the path. +# if no directory like that has been found the one in the +# home directory will be used +DIR=`pwd` +CUSTOM_HENPLUSDIR="" + +while [ $DIR != "/" ] ; do + if [ -d $DIR"/.henplus/lib" ]; then + CUSTOM_HENPLUSDIR=$DIR"/.henplus/lib" + break + fi + DIR=`dirname $DIR` +done + +if [ -z $CUSTOM_HENPLUSDIR ]; then + if [ -d "/.henplus/lib" ]; then + CUSTOM_HENPLUSDIR="/.henplus/lib" + else + CUSTOM_HENPLUSDIR=$HOME/.henplus/lib + fi +fi + +for f in $CUSTOM_HENPLUSDIR/*.jar $CUSTOM_HENPLUSDIR/*.zip ; do + if [ -r "$f" ] ; then + CLASSPATH=$CLASSPATH:$f + fi +done + +export CLASSPATH diff --git a/dev-db/henplus/henplus-0.9.8-r1.ebuild b/dev-db/henplus/henplus-0.9.8-r1.ebuild new file mode 100644 index 000000000000..20cd62e2a6a3 --- /dev/null +++ b/dev-db/henplus/henplus-0.9.8-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 eutils java-ant-2 + +DESCRIPTION="Java-based multisession SQL shell for databases with JDBC support" +HOMEPAGE="http://henplus.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +COMMON_DEPEND="dev-java/commons-cli:1 + dev-java/libreadline-java:0" +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.6 + ${COMMON_DEPEND}" + +java_prepare() { + epatch "${FILESDIR}/0.9.8-build.xml.patch" + rm -v lib/*.jar lib/*/*.jar || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-cli-1,libreadline-java" + +src_install () { + java-pkg_dojar "build/${PN}.jar" + + java-pkg_dolauncher ${PN} -pre "${FILESDIR}/${PN}.pre" \ + --main henplus.HenPlus + + dodoc README || die + dohtml doc/HenPlus.html || die + + use doc && java-pkg_dojavadoc javadoc/api + use source && java-pkg_dosrc "src/${PN}" +} diff --git a/dev-db/henplus/henplus-0.9.8.ebuild b/dev-db/henplus/henplus-0.9.8.ebuild new file mode 100644 index 000000000000..52df2f721b98 --- /dev/null +++ b/dev-db/henplus/henplus-0.9.8.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 eutils java-ant-2 + +DESCRIPTION="Java-based multisession SQL shell for databases with JDBC support" +HOMEPAGE="http://henplus.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +COMMON_DEPEND="dev-java/commons-cli:1 + dev-java/libreadline-java:0" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND}" + +java_prepare() { + epatch "${FILESDIR}/0.9.8-build.xml.patch" + rm -v lib/*.jar lib/*/*.jar || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-cli-1,libreadline-java" + +src_install () { + java-pkg_dojar "build/${PN}.jar" + + java-pkg_dolauncher ${PN} -pre "${FILESDIR}/${PN}.pre" \ + --main henplus.HenPlus + + dodoc README || die + dohtml doc/HenPlus.html || die + use doc && java-pkg_dojavadoc javadoc/api + + use source && java-pkg_dosrc "src/${PN}" +} diff --git a/dev-db/henplus/metadata.xml b/dev-db/henplus/metadata.xml new file mode 100644 index 000000000000..8b2106471033 --- /dev/null +++ b/dev-db/henplus/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="sourceforge">henplus</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/hsqldb/Manifest b/dev-db/hsqldb/Manifest new file mode 100644 index 000000000000..2dcbc156c14f --- /dev/null +++ b/dev-db/hsqldb/Manifest @@ -0,0 +1 @@ +DIST hsqldb_1_8_1_3.zip 3170550 SHA256 c3669bbebcb5c722b273f20c316af744d4e263bc90cc20fd1e6296dff7cc3d07 SHA512 0483ca3299b63b4931b07d49588c729231efca76a317b9620abbd5039127f3f79449eaa1e9d29c52782c58bdb0cc4879b1e3f30f669d2c02c880818f531a8442 WHIRLPOOL ae025d408ee78683133a7bcb1ea6cc130844abc837abe408fe0ea4cf885e082080cb926fabb47ecc59a0f64463e2f969ce51a9e5acc802bdc4e7ba9a62f9756d diff --git a/dev-db/hsqldb/files/StringComparator.java b/dev-db/hsqldb/files/StringComparator.java new file mode 100644 index 000000000000..ae0f7b0fb979 --- /dev/null +++ b/dev-db/hsqldb/files/StringComparator.java @@ -0,0 +1,53 @@ +/* Copyright (c) 2001-2008, The HSQL Development Group + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * Neither the name of the HSQL Development Group nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +package org.hsqldb.lib; + +public class StringComparator implements ObjectComparator { + + public int compare(Object a, Object b) { + + // handle nulls + if (a == b) { + return 0; + } + + if (a == null) { + return -1; + } + + if (b == null) { + return 1; + } + + return ((String) a).compareTo((String) b); + } +} diff --git a/dev-db/hsqldb/files/TestBug1191815.java b/dev-db/hsqldb/files/TestBug1191815.java new file mode 100644 index 000000000000..06c606401cdd --- /dev/null +++ b/dev-db/hsqldb/files/TestBug1191815.java @@ -0,0 +1,129 @@ +/* Copyright (c) 2001-2009, The HSQL Development Group + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * Neither the name of the HSQL Development Group nor the names of its + * contributors may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +package org.hsqldb.test; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.Statement; +import java.sql.Timestamp; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import junit.framework.TestCase; +import junit.framework.TestResult; + +/** + * Created on Apr 28, 2005 + * @author Antranig Basman (antranig@caret.cam.ac.uk) + */ +public class TestBug1191815 extends TestBase { + + public TestBug1191815(String name) { + super(name); + } + + public void test() throws Exception { + + try { + Connection conn = newConnection(); + Statement stmt = conn.createStatement(); + + stmt.executeUpdate("drop table testA if exists;"); + stmt.executeUpdate("create table testA(data timestamp);"); + + TimeZone pst = TimeZone.getTimeZone("PST"); + Calendar cal = new GregorianCalendar(pst); + + cal.clear(); + cal.set(2005, 0, 1, 0, 0, 0); + + + // yyyy-mm-dd hh:mm:ss.fffffffff + Timestamp ts = new Timestamp(cal.getTimeInMillis()); + ts.setNanos(1000); + PreparedStatement ps = + conn.prepareStatement("insert into testA values(?)"); + + ps.setTimestamp(1, ts, cal); + ps.execute(); + ps.setTimestamp(1, ts, null); + ps.execute(); + + String sql = "select * from testA"; + + stmt = conn.createStatement(); + + ResultSet rs = stmt.executeQuery(sql); + + rs.next(); + + Timestamp returned = rs.getTimestamp(1, cal); + + rs.next(); + + Timestamp def = rs.getTimestamp(1, null); + + assertEquals(ts, returned); + assertEquals(ts, def); + } catch (Exception e) { + e.printStackTrace(); + fail(); + } + } + + public static void main(String[] args) throws Exception { + + TestResult result; + TestCase test; + java.util.Enumeration exceptions; + java.util.Enumeration failures; + int count; + + result = new TestResult(); + test = new TestBug1191815("test"); + + test.run(result); + + count = result.failureCount(); + + System.out.println("TestBug1192000 failure count: " + count); + + failures = result.failures(); + + while (failures.hasMoreElements()) { + System.out.println(failures.nextElement()); + } + } +} + diff --git a/dev-db/hsqldb/files/hsqldb b/dev-db/hsqldb/files/hsqldb new file mode 100644 index 000000000000..19249038e21e --- /dev/null +++ b/dev-db/hsqldb/files/hsqldb @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net +} + +start() { + ebegin "Starting HSQL Database" + hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb start + eend $? +} + +stop() { + ebegin "Stopping HSQL Database" + hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb stop + eend $? +} diff --git a/dev-db/hsqldb/files/hsqldb-1.8.1.3-java7.patch b/dev-db/hsqldb/files/hsqldb-1.8.1.3-java7.patch new file mode 100644 index 000000000000..7f9245597182 --- /dev/null +++ b/dev-db/hsqldb/files/hsqldb-1.8.1.3-java7.patch @@ -0,0 +1,380 @@ +diff --git a/build/build.xml b/build/build.xml +index 68c446f..e82f00f 100644 +--- a/build/build.xml ++++ b/build/build.xml +@@ -98,16 +98,24 @@ examples: + <echo message="ant.java.hasjsse=${ant.java.hasjsse}" /> + </target> + +- <target name="javaversion6"> ++ <target name="javaversion7" unless="ant.java.iscjavaset"> ++ <available classname="java.util.Objects" property="ant.java.iscjava17"/> ++ <available classname="java.util.Objects" property="ant.java.iscjavaset"/> ++ </target> ++ ++ <target name="javaversion6" depends="javaversion7" unless="ant.java.iscjavaset"> + <available classname="java.net.IDN" property="ant.java.iscjava16"/> ++ <available classname="java.net.IDN" property="ant.java.iscjavaset"/> + </target> + +- <target name="javaversion4" depends="javaversion6" unless="ant.java.iscjava16"> ++ <target name="javaversion4" depends="javaversion6" unless="ant.java.iscjavaset"> + <available classname="java.nio.Buffer" property="ant.java.iscjava14"/> ++ <available classname="java.nio.Buffer" property="ant.java.iscjavaset"/> + </target> + +- <target name="javaversion2" depends="javaversion4" unless="ant.java.iscjava14"> ++ <target name="javaversion2" depends="javaversion4" unless="ant.java.iscjavaset"> + <available classname="java.lang.ref.Reference" property="ant.java.iscjava12"/> ++ <available classname="java.lang.ref.Reference" property="ant.java.iscjavaset"/> + </target> + + <target name="-prepare" depends="init,javaversion2"> +@@ -166,6 +174,7 @@ examples: + <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" > + <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/> + <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/> ++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcStatement.java"/> + <arg file="${src}/org/hsqldb/persist/LockFile.java"/> + <arg file="${src}/org/hsqldb/persist/Logger.java"/> +@@ -183,6 +192,7 @@ examples: + <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" > + <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/> + <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/> ++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcBlob.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDatabaseMetaData.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDataSource.java"/> +@@ -210,6 +220,7 @@ examples: + <arg value="+JAVA2FULL"/> + <arg value="-JAVA4"/> + <arg value="-JAVA6"/> ++ <arg value="-JAVA7"/> + </java> + </target> + +@@ -218,6 +229,7 @@ examples: + <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" > + <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/> + <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/> ++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcBlob.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDatabaseMetaData.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDataSource.java"/> +@@ -244,6 +256,7 @@ examples: + <arg value="+JAVA2FULL"/> + <arg value="+JAVA4"/> + <arg value="-JAVA6"/> ++ <arg value="-JAVA7"/> + </java> + </target> + +@@ -253,6 +266,43 @@ examples: + <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" > + <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/> + <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/> ++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcBlob.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcDatabaseMetaData.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcDataSource.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcCallableStatement.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcClob.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcConnection.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcParameterMetaData.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcPreparedStatement.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcResultSet.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcResultSetMetaData.java"/> ++ <arg file="${src}/org/hsqldb/jdbc/jdbcStatement.java"/> ++ <arg file="${src}/org/hsqldb/persist/LockFile.java"/> ++ <arg file="${src}/org/hsqldb/persist/Logger.java"/> ++ <arg file="${src}/org/hsqldb/persist/ScaledRAFile.java"/> ++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/> ++ <arg file="${src}/org/hsqldb/util/DatabaseManager.java"/> ++ <arg file="${src}/org/hsqldb/util/ConnectionDialogCommon.java"/> ++ <arg file="${src}/org/hsqldb/lib/SimpleLog.java"/> ++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/> ++ <arg file="${src}/org/hsqldb/lib/SimpleLog.java"/> ++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/> ++ <arg file="${src}/org/hsqldb/HsqlDateTime.java"/> ++ <arg value="+JAVA2"/> ++ <arg value="+JAVA2FULL"/> ++ <arg value="+JAVA4"/> ++ <arg value="+JAVA6"/> ++ <arg value="-JAVA7"/> ++ </java> ++ </target> ++ ++ <target name="switchtojdk17" depends="switchtojdk16" ++ description="self explanatory" if="ant.java.iscjava17"> ++ <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" > ++ <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/> ++ <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/> ++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcBlob.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDatabaseMetaData.java"/> + <arg file="${src}/org/hsqldb/jdbc/jdbcDataSource.java"/> +@@ -279,10 +329,11 @@ examples: + <arg value="+JAVA2FULL"/> + <arg value="+JAVA4"/> + <arg value="+JAVA6"/> ++ <arg value="+JAVA7"/> + </java> + </target> + +- <target name="store" depends="switchtojdk16" ++ <target name="store" depends="switchtojdk17" + description="compiles the /store folder"> + <javac srcdir="${src}" + destdir="classes" +diff --git a/src/org/hsqldb/jdbc/jdbcCallableStatement.java b/src/org/hsqldb/jdbc/jdbcCallableStatement.java +index 3779094..d2131ed 100644 +--- a/src/org/hsqldb/jdbc/jdbcCallableStatement.java ++++ b/src/org/hsqldb/jdbc/jdbcCallableStatement.java +@@ -3106,7 +3106,6 @@ implements CallableStatement { +
+ //#endif JAVA4
+ //#ifdef JAVA6
+-/*
+ public void setPoolable(boolean poolable) throws SQLException
+ {
+ throw new UnsupportedOperationException("Not supported yet.");
+@@ -3376,7 +3375,20 @@ implements CallableStatement { + {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+-*/
+
+ //#endif JAVA6
++ ++//#ifdef JAVA7 ++ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public <T> T getObject(int ColumnIndex, Class<T> type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ ++//#endif JAVA7 + }
+diff --git a/src/org/hsqldb/jdbc/jdbcConnection.java b/src/org/hsqldb/jdbc/jdbcConnection.java +index 5d59464..0c7e08a 100644 +--- a/src/org/hsqldb/jdbc/jdbcConnection.java ++++ b/src/org/hsqldb/jdbc/jdbcConnection.java +@@ -43,13 +43,17 @@ import java.sql.Connection; + import java.sql.DatabaseMetaData;
+
+ //#ifdef JAVA6
+-/*
+ import java.sql.NClob;
+ import java.sql.SQLClientInfoException;
+ import java.sql.SQLXML;
+-*/
+
+ //#endif JAVA6
++ ++//#ifdef JAVA7 ++import java.util.concurrent.Executor; ++ ++//#endif JAVA7 ++ + import java.sql.PreparedStatement;
+ import java.sql.SQLException;
+ import java.sql.SQLWarning;
+@@ -2794,4 +2798,31 @@ public class jdbcConnection implements Connection { + */
+
+ //#endif JAVA6
++ ++//#ifdef JAVA7 ++ public int getNetworkTimeout() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void setNetworkTimeout(Executor executor, int millis) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void abort(Executor executor) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public String getSchema() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void setSchema(String schema) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++//#endif JAVA7 + }
+diff --git a/src/org/hsqldb/jdbc/jdbcDataSource.java b/src/org/hsqldb/jdbc/jdbcDataSource.java +index 9f79a37..d0ab49b 100644 +--- a/src/org/hsqldb/jdbc/jdbcDataSource.java ++++ b/src/org/hsqldb/jdbc/jdbcDataSource.java +@@ -47,6 +47,11 @@ import javax.sql.DataSource; + //#endif JAVA4
+ import org.hsqldb.jdbcDriver;
+
++//#ifdef JAVA7 ++import java.sql.SQLFeatureNotSupportedException; ++import java.util.logging.Logger; ++//#endif JAVA7 ++ + // boucherb@users 20040411 - doc 1.7.2 - javadoc updates toward 1.7.2 final
+
+ /**
+@@ -312,7 +317,6 @@ public class jdbcDataSource implements Serializable { + }
+
+ //#ifdef JAVA6
+-/*
+ public <T> T unwrap(Class<T> iface) throws SQLException
+ {
+ throw new UnsupportedOperationException("Not supported yet.");
+@@ -322,7 +326,14 @@ public class jdbcDataSource implements Serializable { + {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+-*/
+
+ //#endif JAVA6
++ ++//#ifdef JAVA7 ++ public Logger getParentLogger() throws SQLFeatureNotSupportedException ++ { ++ throw new SQLFeatureNotSupportedException("Not supported yet."); ++ } ++ ++//#endif JAVA7 + }
+diff --git a/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java b/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java +index ffa238d..0480228 100644 +--- a/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java ++++ b/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java +@@ -5650,7 +5650,6 @@ public class jdbcDatabaseMetaData implements DatabaseMetaData { + }
+
+ //#ifdef JAVA6
+-/*
+ public RowIdLifetime getRowIdLifetime() throws SQLException
+ {
+ throw new UnsupportedOperationException("Not supported yet.");
+@@ -5694,7 +5693,23 @@ public class jdbcDatabaseMetaData implements DatabaseMetaData { + {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+-*/
+
+ //#endif JAVA6
++ ++ ++//#ifdef JAVA7 ++ public boolean generatedKeyAlwaysReturned() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public ResultSet getPseudoColumns(String catalog, String schemaPattern, ++ String tableNamePattern, String columnNamePattern) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ ++//#endif JAVA7 ++ + }
+diff --git a/src/org/hsqldb/jdbc/jdbcResultSet.java b/src/org/hsqldb/jdbc/jdbcResultSet.java +index 2a6567e..81aecf3 100644 +--- a/src/org/hsqldb/jdbc/jdbcResultSet.java ++++ b/src/org/hsqldb/jdbc/jdbcResultSet.java +@@ -5332,4 +5332,19 @@ public class jdbcResultSet implements ResultSet { + */ + + //#endif JAVA6 ++ ++//#ifdef JAVA7 ++ ++ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public <T> T getObject(int columnNum, Class<T> type) throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++//#endif JAVA7 ++ + } +diff --git a/src/org/hsqldb/jdbc/jdbcStatement.java b/src/org/hsqldb/jdbc/jdbcStatement.java +index f84f2e2..38bf8d0 100644 +--- a/src/org/hsqldb/jdbc/jdbcStatement.java ++++ b/src/org/hsqldb/jdbc/jdbcStatement.java +@@ -1588,7 +1588,6 @@ public class jdbcStatement implements Statement { + }
+ }
+ //#ifdef JAVA6
+-/*
+ public void setPoolable(boolean poolable) throws SQLException
+ {
+ throw new UnsupportedOperationException("Not supported yet.");
+@@ -1608,6 +1607,17 @@ public class jdbcStatement implements Statement { + {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+-*/
+ //#endif JAVA6
++ ++//#ifdef JAVA7 ++ public boolean isCloseOnCompletion() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ ++ public void closeOnCompletion() throws SQLException ++ { ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++//#endif JAVA7 + }
+diff --git a/src/org/hsqldb/jdbcDriver.java b/src/org/hsqldb/jdbcDriver.java +index a377b36..361c074 100644 +--- a/src/org/hsqldb/jdbcDriver.java ++++ b/src/org/hsqldb/jdbcDriver.java +@@ -42,6 +42,11 @@ import org.hsqldb.jdbc.jdbcConnection; + import org.hsqldb.persist.HsqlDatabaseProperties; + import org.hsqldb.persist.HsqlProperties; + ++//#ifdef JAVA7 ++import java.sql.SQLFeatureNotSupportedException; ++import java.util.logging.Logger; ++//#endif JAVA7 ++ + // fredt@users 20011220 - patch 1.7.0 by fredt + // new version numbering scheme + // fredt@users 20020320 - patch 1.7.0 - JDBC 2 support and error trapping +@@ -321,4 +326,12 @@ public class jdbcDriver implements Driver { + DriverManager.registerDriver(new jdbcDriver()); + } catch (Exception e) {} + } ++ ++//#ifdef JAVA7 ++ public Logger getParentLogger() throws SQLFeatureNotSupportedException ++ { ++ throw new SQLFeatureNotSupportedException("Not supported yet."); ++ } ++ ++//#endif JAVA7 + } diff --git a/dev-db/hsqldb/files/resolve-config-softlinks.patch b/dev-db/hsqldb/files/resolve-config-softlinks.patch new file mode 100644 index 000000000000..5a716e6dc3a2 --- /dev/null +++ b/dev-db/hsqldb/files/resolve-config-softlinks.patch @@ -0,0 +1,22 @@ +diff -urpN hsqldb.orig/bin/hsqldb hsqldb/bin/hsqldb +--- hsqldb.orig/bin/hsqldb 2006-07-08 15:55:55.000000000 +0200 ++++ hsqldb/bin/hsqldb 2006-07-08 16:03:28.000000000 +0200 +@@ -282,6 +282,18 @@ else + echo "Auth file '$_AUTH_TEST_PATH' not readable" 1>&2 + exit 2 + } ++ ++ # resolve links - $_AUTH_TEST_PATH may be a softlink ++ while [ -h "$_AUTH_TEST_PATH" ]; do ++ ls=`ls -ld "$_AUTH_TEST_PATH"` ++ link=`expr "$ls" : '.*-> \(.*\)$'` ++ if expr "$link" : '.*/.*' > /dev/null; then ++ _AUTH_TEST_PATH="$link" ++ else ++ _AUTH_TEST_PATH=`dirname "$_AUTH_TEST_PATH"`/"$link" ++ fi ++ done ++ + ls -ld "$_AUTH_TEST_PATH" | grep '^-..------' > /dev/null 2>&1 || { + echo "Fix permissions on '$_AUTH_TEST_PATH' like 'chmod 600 $_AUTH_TEST_PATH'" 1>&2 + exit 2 diff --git a/dev-db/hsqldb/files/server.properties b/dev-db/hsqldb/files/server.properties new file mode 100644 index 000000000000..4827d1cb6ec0 --- /dev/null +++ b/dev-db/hsqldb/files/server.properties @@ -0,0 +1,20 @@ +# Hsqldb Server cfg file. +# See the UNIX Quick Start and the Advanced Topics chapters +# of the Hsqldb User Guide. + +server.database.0=file:/var/lib/hsqldb/db1 +server.urlid.0=localhost + +# Warning! +# When running hsqldb in Server mode, for each additional database +# the server.urlid.X entry must have a proper corresponding urlid +# section in the 'sqltool.rc' file. +# Otherwise you may have problems with shutting down the server. +# +# Note that each server can serve only up to 10 different +# databases simultaneously (with consecutive {0-9} suffixes). + +# An example of additional database. +#server.database.1=file:/var/lib/hsqldb/newdb/newdb +#server.dbname.1=newdb +#server.urlid.1=newdb diff --git a/dev-db/hsqldb/files/sqltool.rc b/dev-db/hsqldb/files/sqltool.rc new file mode 100644 index 000000000000..09480f747fef --- /dev/null +++ b/dev-db/hsqldb/files/sqltool.rc @@ -0,0 +1,20 @@ +# $Id$ + +# This is a sample SqlTool configuration file, a.k.a. rc file. + +# This is for a hsqldb Server running with default settings on your local +# computer (and for which you have not changed the password for "sa"). +urlid localhost +url jdbc:hsqldb:hsql://localhost +username sa +password + +# Each urlid section in this file corresponds to one of the +# server.urlid.X entries in the 'server.properties' file. +# This is required by the hsqldb init script. + +# An example of additional database. +#urlid newdb +#url jdbc:hsqldb:hsql://localhost/newdb +#username sa +#password diff --git a/dev-db/hsqldb/hsqldb-1.8.1.3-r1.ebuild b/dev-db/hsqldb/hsqldb-1.8.1.3-r1.ebuild new file mode 100644 index 000000000000..2040c5f98f46 --- /dev/null +++ b/dev-db/hsqldb/hsqldb-1.8.1.3-r1.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit eutils user versionator java-pkg-2 java-ant-2 + +MY_PV=$(replace_all_version_separators _ ) +MY_P="${PN}_${MY_PV}" + +DESCRIPTION="The leading SQL relational database engine written in Java" +HOMEPAGE="http://hsqldb.org" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +CDEPEND=" + java-virtuals/servlet-api:2.5" +RDEPEND="${CDEPEND} + >=virtual/jre-1.5" +DEPEND="${CDEPEND} + >=virtual/jdk-1.5 + app-arch/unzip + test? ( dev-java/junit:0 )" + +S="${WORKDIR}/${PN}" + +HSQLDB_JAR=/usr/share/hsqldb/lib/hsqldb.jar +HSQLDB_HOME=/var/lib/hsqldb + +pkg_setup() { + enewgroup hsqldb + enewuser hsqldb -1 /bin/sh /dev/null hsqldb + + java-pkg-2_pkg_setup +} + +java_prepare() { + rm -v lib/*.jar || die + + sed -i -r \ + -e "s#/etc/sysconfig#${EPREFIX}/etc/conf.d#g" \ + bin/hsqldb || die + + java-pkg_filter-compiler jikes + + eant -q -f "${EANT_BUILD_XML}" cleanall > /dev/null + + epatch "${FILESDIR}/resolve-config-softlinks.patch" + epatch "${FILESDIR}/${P}-java7.patch" + + mkdir conf + sed -e "s/^HSQLDB_JAR_PATH=.*$/HSQLDB_JAR_PATH=${EPREFIX//\//\\/}${HSQLDB_JAR//\//\\/}/g" \ + -e "s/^SERVER_HOME=.*$/SERVER_HOME=${EPREFIX//\//\\/}\/var\/lib\/hsqldb/g" \ + -e "s/^HSQLDB_OWNER=.*$/HSQLDB_OWNER=hsqldb/g" \ + -e 's/^#AUTH_FILE=.*$/AUTH_FILE=${SERVER_HOME}\/sqltool.rc/g' \ + src/org/hsqldb/sample/sample-hsqldb.cfg > conf/hsqldb || die + cp "${FILESDIR}/server.properties" conf/ || die + cp "${FILESDIR}/sqltool.rc" conf/ || die + + # Missing source file - needed for tests + # http://hsqldb.cvs.sourceforge.net/*checkout*/hsqldb/hsqldb-dev/src/org/hsqldb/lib/StringComparator.java?revision=1.1&pathrev=hsqldb_1_8_0_10 + # http://sourceforge.net/tracker/index.php?func=detail&aid=2008754&group_id=23316&atid=378131 + cp "${FILESDIR}/StringComparator.java" src/org/hsqldb/lib || die + cp "${FILESDIR}/TestBug1191815.java" src/org/hsqldb/test/ || die +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" + +# EANT_BUILD_XML used also in src_prepare +EANT_BUILD_XML="build/build.xml" +EANT_BUILD_TARGET="jar jarclient jarsqltool jarutil" +EANT_DOC_TARGET="javadocdev" +EANT_GENTOO_CLASSPATH="servlet-api-2.5" + +src_test() { + java-pkg_jar-from --into lib junit + eant -f ${EANT_BUILD_XML} jartest + cd testrun/hsqldb || die + ./runTest.sh TestSelf || die "TestSelf hsqldb tests failed" + # TODO. These fail. Investigate why. + #cd "${S}/testrun/sqltool" || die + #CLASSPATH="${S}/lib/hsqldb.jar" ./runtests.bash || die "sqltool test failed" +} + +src_install() { + java-pkg_dojar lib/hsql*.jar + + if use doc; then + dodoc doc/*.txt + dohtml -r doc/zaurus + dohtml -r doc/src + fi + use source && java-pkg_dosrc src/* + + echo "CONFIG_PROTECT=\"${HSQLDB_HOME}\"" > "${T}"/35hsqldb || die + doenvd "${T}"/35hsqldb + + # Put init, configuration and authorization files in /etc + doinitd "${FILESDIR}/hsqldb" + doconfd conf/hsqldb + dodir /etc/hsqldb + insinto /etc/hsqldb + # Change the ownership of server.properties and sqltool.rc + # files to hsqldb:hsqldb. (resolves Bug #111963) + use prefix || insopts -m0600 -o hsqldb -g hsqldb + doins conf/server.properties + use prefix || insopts -m0600 -o hsqldb -g hsqldb + doins conf/sqltool.rc + + # Install init script + dodir "${HSQLDB_HOME}/bin" + keepdir "${HSQLDB_HOME}" + exeinto "${HSQLDB_HOME}/bin" + doexe bin/hsqldb + + # Make sure that files have correct permissions + use prefix || chown -R hsqldb:hsqldb "${ED}${HSQLDB_HOME}" + chmod o-rwx "${ED}${HSQLDB_HOME}" + + # Create symlinks to authorization files in the server home dir + # (required by the hqldb init script) + insinto "${HSQLDB_HOME}" + dosym /etc/hsqldb/server.properties "${HSQLDB_HOME}/server.properties" + dosym /etc/hsqldb/sqltool.rc "${HSQLDB_HOME}/sqltool.rc" +} + +pkg_postinst() { + ewarn "If you intend to run Hsqldb in Server mode and you want to create" + ewarn "additional databases, remember to put correct information in both" + ewarn "'server.properties' and 'sqltool.rc' files." + ewarn "(read the 'Init script Setup Procedure' section of the 'Chapter 3." + ewarn "UNIX Quick Start' in the Hsqldb docs for more information)" + echo + elog "Example:" + echo + elog "${EPREFIX}/etc/hsqldb/server.properties" + elog "=============================" + elog "server.database.1=file:xdb/xdb" + elog "server.dbname.1=xdb" + elog "server.urlid.1=xdb" + elog + elog "${EPREFIX}/etc/hsqldb/sqltool.rc" + elog "======================" + elog "urlid xdb" + elog "url jdbc:hsqldb:hsql://localhost/xdb" + elog "username sa" + elog "password " + echo + elog "Also note that each hsqldb server can serve only up to 10" + elog "different databases simultaneously (with consecutive {0-9}" + elog "suffixes in the 'server.properties' file)." + echo + ewarn "For data manipulation use:" + ewarn + ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.DatabaseManager" + ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.DatabaseManagerSwing" + ewarn "# java -classpath ${EPREFIX}${HSQLDB_JAR} org.hsqldb.util.SqlTool \\" + ewarn " --rcFile ${EPREFIX}/var/lib/hsqldb/sqltool.rc <dbname>" + echo + elog "The Hsqldb can be run in multiple modes - read 'Chapter 1. Running'" + elog "and Using Hsqldb' in the Hsqldb docs at:" + elog " http://hsqldb.org/web/hsqlDocsFrame.html" + elog "If you intend to run it in the Server mode, it is suggested to add the" + elog "init script to your start-up scripts, this should be done like this:" + elog " \`rc-update add hsqldb default\`" + echo +} diff --git a/dev-db/hsqldb/metadata.xml b/dev-db/hsqldb/metadata.xml new file mode 100644 index 000000000000..6e04a17bee48 --- /dev/null +++ b/dev-db/hsqldb/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="sourceforge">hsqldb</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/hyperdex/Manifest b/dev-db/hyperdex/Manifest new file mode 100644 index 000000000000..5ad1288c9874 --- /dev/null +++ b/dev-db/hyperdex/Manifest @@ -0,0 +1,5 @@ +DIST autotools-java.tar 2770 SHA256 b74a069cf94d05cfbfe3eb65d42603d9a9d46a130044d76ffbf55ae822b62b3d SHA512 a193c3c3f8cc654967905c9ab559098425f1688a75c21a4207959fbe13572b4dba3e5c21e04913f20e5aa1b1c2fd2b13dcef91cc4f031b06884ac3130edc5757 WHIRLPOOL 3fbf5f0ab1a4bd231e69f924442f047c1e872f04c85afc46dca423c93641264347dc2d2c2a8b1cca740bf349d4db02594144c3797eb1c4bd649a35c169f7c86e +DIST hyperdex-1.6.0.tar.gz 1490273 SHA256 1a29ef60b2416b078cf82f120386e4fda53fc40ef613653d6c1b8a46ef4167c0 SHA512 44e1c5fa1e0e2158bf3eb72dc94681f8aaf3a804ce7b2df05461c1f4c9f0e3e71ee7f0503c25ee9e00701ba9444df18ecbe427606de4ddd3b1f31d382b037272 WHIRLPOOL f52494148800b16cb663dc137c54beca61010a0a279d7a4fbefb0a3b149963437600808aa7d2efab5015c2c03efc544fb2ee6ecc1ad05da205a026b9dec1d1c0 +DIST hyperdex-1.7.1.tar.gz 1517677 SHA256 db3857aa74795698e50c6a9abdc6a0570c67e701b5213c803d5fba16b45cf1a4 SHA512 41bf8cc49081ba41917c737facfa7b5e29bcf73f510ae5743356828643bd7292ac8c610915985e52f6609c4a80cf70e7d515504bbe0a85383c74d7e288f2dc5b WHIRLPOOL 8bfd39e9e3aea7eae5a85ab64f583f5689add551c86a6c3bf40557ebb9fff0dbfec91bb1c0eb3f812be7f35d044ba16872eae850bc9127b56aff21168e66ead2 +DIST hyperdex-1.8.0.tar.gz 1516389 SHA256 5717fa3775dd28c996805ee7b48afd1bbf64868a6cf271c8e96928addebcd968 SHA512 e667552f16899edf57a08f3704e762e33b33aa9508ee486187b5c6fd6f01ab9cb61cd65444a676386554cebb2e4d191b4181df4c9b399821e5d244791bf3cb12 WHIRLPOOL 151d560e30135349be07b5f543c435f36ab839576f84d994742b9e1423174fd211761f84146acea7e847ff7e3e27688c42fb276c5b4f681a2bef7b37337e6aea +DIST hyperdex-1.8.1.tar.gz 1516446 SHA256 b62e9dc5c6bda115869b35213b221b2483d43a64de8356c028b49a748eb76d26 SHA512 28a9b1a1f99d4159fb2d453fb7f740d4926ac2275488c8676a70d45879be5b1ef9b1e84720f86ef4f058706558899f2e3229fc7140349dadc3974754a03ac13e WHIRLPOOL d62b1d4562f89a5818d57514e079f7a749315068dfd5cbd99aca71d996969ae32e2e776e1b934a33d78ba15d6f9013719aeac80484f614dd2f466c5486a2bb31 diff --git a/dev-db/hyperdex/files/hyperdex.confd b/dev-db/hyperdex/files/hyperdex.confd new file mode 100644 index 000000000000..d7bab25e5c9d --- /dev/null +++ b/dev-db/hyperdex/files/hyperdex.confd @@ -0,0 +1,4 @@ +# /etc/conf.d/hyperdex: config file for /etc/init.d/hyperdex + +# see documentation for HyperDex for help +#HYPERDEX_OPTS="" diff --git a/dev-db/hyperdex/files/hyperdex.initd b/dev-db/hyperdex/files/hyperdex.initd new file mode 100755 index 000000000000..d06244027169 --- /dev/null +++ b/dev-db/hyperdex/files/hyperdex.initd @@ -0,0 +1,11 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/bin/hyperdex-daemon" +command_args="--daemon ${HYPERDEX_OPTS}" + +depend() { + use net +} diff --git a/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild b/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild new file mode 100644 index 000000000000..9ce94cf7ded0 --- /dev/null +++ b/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +# Tests fail, again +RESTRICT="test" + +PYTHON_COMPAT=( python2_7) +inherit eutils python-single-r1 autotools + +DESCRIPTION="A searchable distributed Key-Value Store" + +HOMEPAGE="http://hyperdex.org" +SRC_URI="http://hyperdex.org/src/${P}.tar.gz + http://dev.gentooexperimental.org/~patrick/autotools-java.tar" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test +python" +# need to add ruby and java useflags too + +DEPEND="dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + dev-libs/libpo6 + dev-libs/libe + dev-libs/busybee + dev-libs/popt + dev-libs/replicant + dev-libs/libmacaroons + dev-libs/libtreadstone + dev-libs/json-c" +RDEPEND="${DEPEND}" + +REQUIRED_USE="test? ( python )" + +src_prepare() { + cp "${WORKDIR}/"*.m4 m4/ + sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!" + eautoreconf + use python && python-single-r1_pkg_setup +} +src_configure() { + econf --disable-static \ + $(use_enable python python-bindings) +} + +src_install() { + emake DESTDIR="${D}" install || die "Failed to install" + newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" + newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" + find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad! +} diff --git a/dev-db/hyperdex/hyperdex-1.7.1.ebuild b/dev-db/hyperdex/hyperdex-1.7.1.ebuild new file mode 100644 index 000000000000..9ce94cf7ded0 --- /dev/null +++ b/dev-db/hyperdex/hyperdex-1.7.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +# Tests fail, again +RESTRICT="test" + +PYTHON_COMPAT=( python2_7) +inherit eutils python-single-r1 autotools + +DESCRIPTION="A searchable distributed Key-Value Store" + +HOMEPAGE="http://hyperdex.org" +SRC_URI="http://hyperdex.org/src/${P}.tar.gz + http://dev.gentooexperimental.org/~patrick/autotools-java.tar" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test +python" +# need to add ruby and java useflags too + +DEPEND="dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + dev-libs/libpo6 + dev-libs/libe + dev-libs/busybee + dev-libs/popt + dev-libs/replicant + dev-libs/libmacaroons + dev-libs/libtreadstone + dev-libs/json-c" +RDEPEND="${DEPEND}" + +REQUIRED_USE="test? ( python )" + +src_prepare() { + cp "${WORKDIR}/"*.m4 m4/ + sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!" + eautoreconf + use python && python-single-r1_pkg_setup +} +src_configure() { + econf --disable-static \ + $(use_enable python python-bindings) +} + +src_install() { + emake DESTDIR="${D}" install || die "Failed to install" + newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" + newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" + find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad! +} diff --git a/dev-db/hyperdex/hyperdex-1.8.0.ebuild b/dev-db/hyperdex/hyperdex-1.8.0.ebuild new file mode 100644 index 000000000000..788abe841d3b --- /dev/null +++ b/dev-db/hyperdex/hyperdex-1.8.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +# Tests fail, still +RESTRICT="test" + +PYTHON_COMPAT=( python2_7) +inherit eutils python-single-r1 autotools + +DESCRIPTION="A searchable distributed Key-Value Store" + +HOMEPAGE="http://hyperdex.org" +SRC_URI="http://hyperdex.org/src/${P}.tar.gz + http://dev.gentooexperimental.org/~patrick/autotools-java.tar" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test +python" +# need to add ruby and java useflags too + +DEPEND="dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + >=dev-libs/hyperleveldb-1.2 + >=dev-libs/libpo6-0.8 + >=dev-libs/libe-0.11 + >=dev-libs/busybee-0.7 + dev-libs/popt + >=dev-libs/replicant-0.8 + >=dev-libs/libmacaroons-0.3 + >=dev-libs/libtreadstone-0.2 + dev-libs/json-c" +RDEPEND="${DEPEND}" + +REQUIRED_USE="test? ( python )" + +src_prepare() { + cp "${WORKDIR}/"*.m4 m4/ + sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!" + eautoreconf + use python && python-single-r1_pkg_setup +} +src_configure() { + econf --disable-static \ + $(use_enable python python-bindings) +} + +src_install() { + emake DESTDIR="${D}" install || die "Failed to install" + newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" + newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" + find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad! +} + +src_test() { + emake -j1 check +} diff --git a/dev-db/hyperdex/hyperdex-1.8.1.ebuild b/dev-db/hyperdex/hyperdex-1.8.1.ebuild new file mode 100644 index 000000000000..788abe841d3b --- /dev/null +++ b/dev-db/hyperdex/hyperdex-1.8.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +# Tests fail, still +RESTRICT="test" + +PYTHON_COMPAT=( python2_7) +inherit eutils python-single-r1 autotools + +DESCRIPTION="A searchable distributed Key-Value Store" + +HOMEPAGE="http://hyperdex.org" +SRC_URI="http://hyperdex.org/src/${P}.tar.gz + http://dev.gentooexperimental.org/~patrick/autotools-java.tar" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test +python" +# need to add ruby and java useflags too + +DEPEND="dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + >=dev-libs/hyperleveldb-1.2 + >=dev-libs/libpo6-0.8 + >=dev-libs/libe-0.11 + >=dev-libs/busybee-0.7 + dev-libs/popt + >=dev-libs/replicant-0.8 + >=dev-libs/libmacaroons-0.3 + >=dev-libs/libtreadstone-0.2 + dev-libs/json-c" +RDEPEND="${DEPEND}" + +REQUIRED_USE="test? ( python )" + +src_prepare() { + cp "${WORKDIR}/"*.m4 m4/ + sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!" + eautoreconf + use python && python-single-r1_pkg_setup +} +src_configure() { + econf --disable-static \ + $(use_enable python python-bindings) +} + +src_install() { + emake DESTDIR="${D}" install || die "Failed to install" + newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" + newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" + find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad! +} + +src_test() { + emake -j1 check +} diff --git a/dev-db/hyperdex/hyperdex-9999.ebuild b/dev-db/hyperdex/hyperdex-9999.ebuild new file mode 100644 index 000000000000..7640e8869c46 --- /dev/null +++ b/dev-db/hyperdex/hyperdex-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 + +PYTHON_COMPAT=( python2_7) +inherit eutils python-r1 autotools git-r3 + +DESCRIPTION="A searchable distributed Key-Value Store" + +HOMEPAGE="http://hyperdex.org" +LICENSE="BSD" +SLOT="0" +KEYWORDS="" + +EGIT_REPO_URI="https://github.com/rescrv/HyperDex.git" + +SRC_URI="http://dev.gentooexperimental.org/~patrick/autotools-java.tar" + +IUSE="+python" +# need to add ruby and java useflags too + +DEPEND="dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + dev-libs/libpo6 + dev-libs/libe + dev-libs/busybee + dev-libs/popt + dev-libs/replicant + dev-libs/json-c" +RDEPEND="${DEPEND}" + +src_prepare() { + cd m4; tar xf "${DISTDIR}/autotools-java.tar" + cd .. + sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!" + eautoreconf +} +src_configure() { + econf --disable-static \ + $(use_enable python python-bindings) +} + +src_install() { + emake DESTDIR="${D}" install || die "Failed to install" + newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" + newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" + find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad! +} diff --git a/dev-db/hyperdex/metadata.xml b/dev-db/hyperdex/metadata.xml new file mode 100644 index 000000000000..f90563e3cfde --- /dev/null +++ b/dev-db/hyperdex/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> + diff --git a/dev-db/innotop/Manifest b/dev-db/innotop/Manifest new file mode 100644 index 000000000000..6ba004e157bc --- /dev/null +++ b/dev-db/innotop/Manifest @@ -0,0 +1,2 @@ +DIST innotop-1.9.0.tar.gz 143179 SHA256 bc2669ea88fb728c6c4ed9c695c4d0b7b9ae5df0f158ef23e8853694bf4f240a SHA512 a3fe26b7e9e4a4608f6ef68e8cfefca080fd5799cc7780ffadd0b6bd0a0cfd035561bf6c10436f556b8fc79726304cae408343a231a57d02c74e3bd29b941a17 WHIRLPOOL 76226828f8c91608b03d49802cc082a77b552f7a482ab2186e71a4f9fb56662d17d4ee04c5187df78ca68a733ca4a710b3d6156e0b028375576c8abb9b7effd8 +DIST innotop-1.9.1.tar.gz 147677 SHA256 117e5af58a83af79b6cf99877b25b1479197597be5a7d51b245a0ad9c69f4d3d SHA512 5c19891fc8df2cbf15f0df1af68501624ccb9d79c22a786e3a5fa4aa527be964392131da095a529f628c50528b196070f35009a49c9a87ae9f8bb2f4062e5ab5 WHIRLPOOL b06b4c720333f433408d3f97355ad319aa3897bffa3f71da18462eb74e1d2065a60a0e91f55c26f37bb624530e18cf3e9acf4fdf7bb245e8555987eab3dee617 diff --git a/dev-db/innotop/innotop-1.9.0-r1.ebuild b/dev-db/innotop/innotop-1.9.0-r1.ebuild new file mode 100644 index 000000000000..a5f4aa4b2860 --- /dev/null +++ b/dev-db/innotop/innotop-1.9.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit perl-module + +DESCRIPTION="innotop - A text-mode MySQL and InnoDB monitor like mytop, but with many more features" +HOMEPAGE="http://code.google.com/p/innotop/" +SRC_URI="http://innotop.googlecode.com/files/${P}.tar.gz" + +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +SLOT="0" +IUSE="" + +DEPEND="dev-perl/DBD-mysql + dev-perl/TermReadKey + virtual/perl-Term-ANSIColor + virtual/perl-Time-HiRes" +SRC_TEST="do" + +src_install() { + perl-module_src_install +} diff --git a/dev-db/innotop/innotop-1.9.1.ebuild b/dev-db/innotop/innotop-1.9.1.ebuild new file mode 100644 index 000000000000..a26e025ee205 --- /dev/null +++ b/dev-db/innotop/innotop-1.9.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit perl-module + +DESCRIPTION="innotop - A text-mode MySQL and InnoDB monitor like mytop, but with many more features" +HOMEPAGE="http://code.google.com/p/innotop/" +SRC_URI="http://innotop.googlecode.com/files/${P}.tar.gz" + +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +SLOT="0" +IUSE="" + +DEPEND="dev-perl/DBD-mysql + dev-perl/TermReadKey + virtual/perl-Term-ANSIColor + virtual/perl-Time-HiRes" +SRC_TEST="do" + +src_install() { + perl-module_src_install +} diff --git a/dev-db/innotop/metadata.xml b/dev-db/innotop/metadata.xml new file mode 100644 index 000000000000..44b249080ca5 --- /dev/null +++ b/dev-db/innotop/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mysql</herd> + <longdescription>innotop - A text-mode MySQL and InnoDB monitor like mytop, +but with many more features</longdescription> + <upstream> + <remote-id type="google-code">innotop</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/jxtray/Manifest b/dev-db/jxtray/Manifest new file mode 100644 index 000000000000..614eddc03297 --- /dev/null +++ b/dev-db/jxtray/Manifest @@ -0,0 +1 @@ +DIST jxtray-src-0.5.tgz 2476739 SHA256 ddb5d2b2399d1440d84b144fce4ef4f7ff865081745057e101deff3a38f0a849 SHA512 11af9c74a12786b7e34890ae3ebfc3f5631c247cf693add5884db05bd63ccd021f613f696ecbcaff606e2567d43070baf73197fb7675e7a15fe45923773ebe6f WHIRLPOOL 3a5b32545a22061a7691faf45ce0a542691bb67f0e8299937bd032a46f9b71dcda1cd5ad6c4343954a4dfddd76bf7a6630a679f04b42fff3e5c7a84b50abde34 diff --git a/dev-db/jxtray/files/build.xml b/dev-db/jxtray/files/build.xml new file mode 100644 index 000000000000..4d4fadf5974d --- /dev/null +++ b/dev-db/jxtray/files/build.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> + +<project name="jxtray" default="jar" basedir="."> + + <property file="${basedir}/build.properties"/> + <property file="${basedir}/default.properties"/> + <property name="jxtray.version" value="0.5"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${javadoc}"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${srcdir}" + destdir="${build}" + classpath="${classpath}" + source="1.4" + target="1.4"/> + + <copy toDir="${build}/images"> + <fileset dir="images" includes="**/*.*"/> + </copy> + + <copy toDir="${build}/share"> + <fileset dir="share" includes="**/*.*"/> + </copy> + + <copy toDir="${build}/doc"> + <fileset dir="doc" includes="**/*.*"/> + </copy> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${srcdir}" + destdir="${javadoc}" + packagenames="${packages}"/> + </target> + + <target name="jar" depends="compile"> + + <!-- + <unjar dest="${build}"> + <fileset dir="${basedir}/lib" includes="**/*.jar"/> + </unjar> + --> + + <jar jarfile="${dist}/jxtray-${jxtray.version}.jar" basedir="${build}"> + <manifest> + <attribute name="Main-Class" value="jxtray.Jxtray"/> + </manifest> + </jar> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + <delete dir="${javadoc}"/> + </target> +</project> diff --git a/dev-db/jxtray/files/default.properties b/dev-db/jxtray/files/default.properties new file mode 100644 index 000000000000..fbcf7c235c99 --- /dev/null +++ b/dev-db/jxtray/files/default.properties @@ -0,0 +1,9 @@ + +build=${basedir}/build +dist=${basedir}/dist + +javadoc=${build}/doc +packages=jxtray.* + +srcdir=${basedir}/src + diff --git a/dev-db/jxtray/jxtray-0.5-r4.ebuild b/dev-db/jxtray/jxtray-0.5-r4.ebuild new file mode 100644 index 000000000000..7eca64eacc26 --- /dev/null +++ b/dev-db/jxtray/jxtray-0.5-r4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java based Database Explorer" +HOMEPAGE="http://jxtray.sourceforge.net" +SRC_URI="mirror://sourceforge/jxtray/${PN}-src-${PV}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc firebird mssql mysql postgres" + +COMMON_DEP=" + >=dev-java/jdom-1.0:1.0 + >=dev-java/kunststoff-2.0.2:2.0 + dev-java/poi:0 + dev-java/sax:0 + >=dev-java/xerces-2.7:2 + dev-java/xml-commons:0 + firebird? ( dev-java/jdbc-jaybird:0 ) + mssql? ( >=dev-java/jtds-1.2:1.2 ) + mysql? ( dev-java/jdbc-mysql:0 ) + postgres? ( dev-java/jdbc-postgresql:0 ) + !firebird? ( !mssql? ( !postgres? ( dev-java/jdbc-mysql:0 ) ) )" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" + +S="${WORKDIR}/${PN}-src-${PV}" + +src_unpack() { + unpack ${A} + cp "${FILESDIR}"/build.xml "${FILESDIR}"/default.properties "${S}" + local cp="" + + cd "${S}"/lib + rm *.jar + cp="${cp}:$(java-pkg_getjars jdom-1.0)" + cp="${cp}:$(java-pkg_getjars xerces-2)" + cp="${cp}:$(java-pkg_getjars xml-commons)" + cp="${cp}:$(java-pkg_getjars sax)" + cp="${cp}:$(java-pkg_getjars poi)" + + cd "${S}"/lib/lookandfeel + rm *.jar + cp="${cp}:$(java-pkg_getjars kunststoff-2.0)" + + cd "${S}"/lib/drivers + rm *.jar + use firebird && cp="${cp}:$(java-pkg_getjars jdbc-jaybird)" + use mssql && cp="${cp}:$(java-pkg_getjars jtds-1.2)" + use mysql && cp="${cp}:$(java-pkg_getjars jdbc-mysql)" + use postgres && cp="${cp}:$(java-pkg_getjars jdbc-postgresql)" + + echo "classpath=${cp}" > "${S}"/build.properties +} + +src_compile() { + eant jar $(use_doc javadoc) +} + +src_install() { + java-pkg_newjar dist/${P}.jar ${PN}.jar + + java-pkg_dolauncher jxtray --main jxtray.Jxtray + + dodoc CHANGELOG.txt README.txt + use doc && java-pkg_dojavadoc javadoc +} diff --git a/dev-db/jxtray/metadata.xml b/dev-db/jxtray/metadata.xml new file mode 100644 index 000000000000..5b60948a443d --- /dev/null +++ b/dev-db/jxtray/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription> + Jxtray is a database explorer written in Java. Jxtray can be used to + connect to any type of database with suitable JDBC drivers. It can + provide you with information regarding your data bases, carry out SQL + queries and extract data in the following formats: CSV, SQL, HTML, + XML. The name jxtray comes from the French word j'extrait, which means + the function of retrieval of data. + </longdescription> + <upstream> + <remote-id type="sourceforge">jxtray</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/kyotocabinet/Manifest b/dev-db/kyotocabinet/Manifest new file mode 100644 index 000000000000..1a8124d6b967 --- /dev/null +++ b/dev-db/kyotocabinet/Manifest @@ -0,0 +1 @@ +DIST kyotocabinet-1.2.76.tar.gz 951930 SHA256 812a2d3f29c351db4c6f1ff29d94d7135f9e601d7cc1872ec1d7eed381d0d23c SHA512 278db7b327eb4c21bf0137d9aa14fb67d74d5ce7ed1cb29fc9120d157a60de165ec0cf842903eb7952e8f998045ae585b958977fa973ba0e0773381de71d9f6a WHIRLPOOL db984a6dcef0e3f313e56e5398a0fe75d1014e02dce04c4837d0aa01c0e97eb04eac728f4e9b600acec22a098a1f19ba33d8abb2ee50a8a60ba64afcd6d9c873 diff --git a/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch b/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch new file mode 100644 index 000000000000..622b7fd52792 --- /dev/null +++ b/dev-db/kyotocabinet/files/fix_configure-1.2.62.patch @@ -0,0 +1,51 @@ +diff --git a/configure.in b/configure.in +index 94e9d29..6999615 100644 +--- a/configure.in ++++ b/configure.in +@@ -35,27 +35,18 @@ MYDOCUMENTFILES="COPYING FOSSEXCEPTION ChangeLog doc kyotocabinet.idl" + MYPCFILES="kyotocabinet.pc" + + # Building flags +-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0 -O2" +-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0 -O2" +-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include" ++MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char" ++MYCXXFLAGS="-Wall -fPIC -fsigned-char" ++MYCPPFLAGS="-I. -I\$(INCLUDEDIR)" + MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1" + MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__" +-MYLDFLAGS="-L. -L\$(LIBDIR) -L/usr/local/lib" ++MYLDFLAGS="-L. -L\$(LIBDIR)" + MYCMDLDFLAGS="" + MYCMDLIBS="" + MYLDLIBPATH="" + MYLDLIBPATHENV="LD_LIBRARY_PATH" + MYPOSTCMD="true" + +-# Building paths +-PATH=".:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH" +-CPATH=".:/usr/local/include:$CPATH" +-LIBRARY_PATH=".:/usr/local/lib:$LIBRARY_PATH" +-LD_LIBRARY_PATH=".:/usr/local/lib:$LD_LIBRARY_PATH" +-PKG_CONFIG_PATH=".:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH +- +- + + #================================================================ + # Options +@@ -285,14 +276,6 @@ then + MYCMDLIBS="$MYCMDLIBS $LIBS" + fi + +-# As-needed linking +-if uname | grep Linux >config.tmp +-then +- MYLDFLAGS="$MYLDFLAGS -Wl,-rpath-link,.:/usr/local/lib:$MYLDLIBPATH" +- MYLDFLAGS="$MYLDFLAGS -Wl,--as-needed" +-else +- MYCMDLIBS="$MYCMDLIBS $LIBS" +-fi + + # Shared libraries + if test "$enable_shared" != "no" && test "$enable_profile" != "yes" diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch new file mode 100644 index 000000000000..729efc083ba5 --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-configure-8-byte-atomics.patch @@ -0,0 +1,44 @@ +From: Shawn Landden <shawnlandden@gmail.com> +Date: Thu, 21 Jun 2012 20:34:28 -0700 +Subject: configure: 8 byte atomics + +fix up configure test to handle lack of 8 byte atomics correctly + +as is the case with all ARM targets currently +--- + configure | 29 +++++++++++++---------------- + configure.in | 19 ++++++++++++++++--- + 2 files changed, 29 insertions(+), 19 deletions(-) + +index a07063d..bfc6df0 100755 +--- a/configure.in ++++ b/configure.in +@@ -238,9 +238,22 @@ fi + # Atomic operations + if test "$enable_atomic" != "no" + then +- printf 'checking for atomic operations... ' +- AC_TRY_COMPILE([], [__sync_fetch_and_add], [MYGCCATOMIC=yes], [MYGCCATOMIC=no]) +- if test "$MYGCCATOMIC" = "yes" ++ printf 'checking for 8 byte atomic operations... ' ++ if printf ' ++/* Some targets support 4 byte atomics, but not 8 byte atomics, ++ * and will fail at link time if they are used. ++ * ++ * http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Atomic-Builtins.html ++ * http://gcc.gnu.org/wiki/Atomic ++ */ ++#include <stdint.h> ++int ++main () ++{ ++uint64_t n = 0xdeadbeaf; ++__sync_bool_compare_and_swap(&n, 0xdeadbeaf, 0); ++return n; ++}' | $CC -xc -o config.tmp - >/dev/null 2>&1 + then + MYCPPFLAGS="$MYCPPFLAGS -D_MYGCCATOMIC" + printf 'yes\n' +-- +1.7.9.5 + diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch new file mode 100644 index 000000000000..931e8c3f7bbe --- /dev/null +++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-flags.patch @@ -0,0 +1,31 @@ +--- a/configure.in ++++ b/configure.in +@@ -193,28 +193,6 @@ + # Byte order + AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND") + +-# System-depending optimization +-printf 'checking for 64-bit availability... ' +-if printf 'main() {}' | $CC -xc -m64 -o config.tmp - >config.tmp 2>&1 +-then +- MYCFLAGS="-m64 $MYCFLAGS" +- MYCXXFLAGS="-m64 $MYCXXFLAGS" +- printf 'yes\n' +-else +- printf 'no\n' +-fi +-if test "$enable_opt" != "no" +-then +- printf 'checking for CPU optimization availability... ' +- if printf 'main() {}' | $CC -xc -march=native -o config.tmp - >config.tmp 2>&1 +- then +- MYCFLAGS="-march=native $MYCFLAGS" +- MYCXXFLAGS="-march=native $MYCXXFLAGS" +- printf 'yes\n' +- else +- printf 'no\n' +- fi +-fi + printf 'checking for useless warnings... ' + if printf 'main() {}' | $CC -xc \ + -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o config.tmp - >config.tmp 2>&1 diff --git a/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild new file mode 100644 index 000000000000..ea29c3c6f97f --- /dev/null +++ b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs + +DESCRIPTION="A straightforward implementation of DBM" +HOMEPAGE="http://fallabs.com/kyotocabinet/" +SRC_URI="${HOMEPAGE}pkg/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="debug doc examples static-libs" + +DEPEND="sys-libs/zlib + app-arch/xz-utils" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/fix_configure-1.2.62.patch + epatch "${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch + epatch "${FILESDIR}"/${PN}-1.2.76-flags.patch + sed -i -e "/DOCDIR/d" Makefile.in || die + tc-export AR + + eautoreconf +} + +src_configure() { + econf $(use_enable debug) \ + $(use_enable static-libs static) \ + $(use_enable !static-libs shared) \ + --enable-lzma --docdir=/usr/share/doc/${PF} +} + +src_test() { + emake -j1 check +} + +src_install() { + emake DESTDIR="${D}" install + + prune_libtool_files + + if use examples; then + insinto /usr/share/${PF}/example + doins example/* + fi + + if use doc; then + insinto /usr/share/doc/${PF} + doins -r doc/* + fi +} diff --git a/dev-db/kyotocabinet/metadata.xml b/dev-db/kyotocabinet/metadata.xml new file mode 100644 index 000000000000..35319898fd0a --- /dev/null +++ b/dev-db/kyotocabinet/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_fPROJ4/Manifest b/dev-db/lib_mysqludf_fPROJ4/Manifest new file mode 100644 index 000000000000..e824128c52e5 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_fPROJ4-0.1.0.tar.gz 2573 SHA256 22ec139f1652040828da18a4b3a469355486d459f8000d25381422b9c9e45cdd SHA512 cc0307bcbdf15a37f77fced46b262783327fbd1e9883bd2d3f55c005bc5948ea7d2b7afa98a75390045636abbb04bb22aeaafdbe670e5642710a6a4a785fd3b3 WHIRLPOOL 8294e54ccae4028796db1efa58a2c9a83625df11a158382ea096aa713d79cda1dbab993926d3b00604e5edca80c27771ba11f5e9b3da719fea69c63cabb1b493 diff --git a/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch b/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch new file mode 100644 index 000000000000..0b9669991cb3 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/files/lib_mysqludf_fPROJ4-warnings.patch @@ -0,0 +1,35 @@ +--- lib_mysqludf_fPROJ4.c.orig 2010-05-09 13:46:12.000000000 +0200 ++++ lib_mysqludf_fPROJ4.c 2011-10-19 02:32:48.000000000 +0200 +@@ -1,5 +1,3 @@ +-/*
+-
+ /*
+ lib_mysqludf_fPROJ4 - An extended set of scientific functions which
+ converts geographic longitude and latitude coordinates into cartesian
+@@ -178,7 +176,7 @@ + }
+ double fPROJ4_transform(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
+ {
+- projPJ pj_in, pj_out;
++ projPJ pj_in=NULL, pj_out=NULL;
+ double x, y,z;
+ int p,t;
+
+@@ -248,7 +246,7 @@ + }
+ double fPROJ4_Geo2UTM(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
+ {
+- projPJ pj_in, pj_out;
++ projPJ pj_in=NULL, pj_out=NULL;
+ double x, y;
+ int p,t,zone;
+ char *tmp;
+@@ -323,7 +321,7 @@ + }
+ double fPROJ4_UTM2Geo(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
+ {
+- projPJ pj_in, pj_out;
++ projPJ pj_in=NULL, pj_out=NULL;
+ double x, y;
+ int p,t,zone;
+ char *tmp;
diff --git a/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild b/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild new file mode 100644 index 000000000000..f7d8d6e6e98a --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/lib_mysqludf_fPROJ4-0.1.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs which converts geographic/cartesian coordinates" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_fPROJ4/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + sci-libs/proj" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}-src" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-warnings.patch" + + # fix doc (BOM, CR/LF, soname) + sed -i -e '1 s|^\xEF\xBB\xBF||' \ + -e "s|'\(${PN}\).*'|'\1.so'|g" ${PN}.sql + echo >> ${PN}.sql # add LF + edos2unix ${PN}.sql +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} -lproj \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_fPROJ4/metadata.xml b/dev-db/lib_mysqludf_fPROJ4/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_fPROJ4/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_json/Manifest b/dev-db/lib_mysqludf_json/Manifest new file mode 100644 index 000000000000..21896873d3a4 --- /dev/null +++ b/dev-db/lib_mysqludf_json/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_json_0.0.2.tar.gz 18177 SHA256 bed11c73d1e5d23669051b8a430f5c17b961e462ee82612b7dcdbceba47052b5 SHA512 04cc299498e7a7c40d2d181649e433c48be29f5dab2f46b64930f415060c3e05065d0d44d28ce0b35d190f3544687aa7e2ea66a69decc12609ec949bd78b8e05 WHIRLPOOL c0084c9f9c35717bbf5b76c311c357bd14dc160c5061bc09b34cd1ddec112c51548b5ca94c1078bd62121f197994de501b478f40c67cc40722817aedd1f86eed diff --git a/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild b/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild new file mode 100644 index 000000000000..b8b6c29a97e4 --- /dev/null +++ b/dev-db/lib_mysqludf_json/lib_mysqludf_json-0.0.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs to map relational data to the JSON format" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_json/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # remove precompiled object + rm -f -- ${PN}.so +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql + dohtml ${PN}.html +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_json/metadata.xml b/dev-db/lib_mysqludf_json/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_json/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_log/Manifest b/dev-db/lib_mysqludf_log/Manifest new file mode 100644 index 000000000000..705874adfc1a --- /dev/null +++ b/dev-db/lib_mysqludf_log/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_log_0.0.2.tar.gz 1892 SHA256 4291dcca238129c93169b6351349c252af591de5b7e90424b0de6c690a8c3d6d SHA512 674395c145260122bd14055a838b82d69217841364a496a518eb08860ba0beabe35627fe42108663caaf4a8c461d27551de43942ffd4c724d5ab912a2e74474d WHIRLPOOL d495f2e8b7306a84a6752e069457ba269123992b047414bbb4c67c9aecfe59f3b910e56d4fe79b7b14a964c0b0e577bc3edb423d2541f8f82b8f4aaa241f5e95 diff --git a/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch b/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch new file mode 100644 index 000000000000..64b59639a328 --- /dev/null +++ b/dev-db/lib_mysqludf_log/files/lib_mysqludf_log-warnings.patch @@ -0,0 +1,11 @@ +--- lib_mysqludf_log.c.orig 2008-07-07 01:17:06.000000000 +0200 ++++ lib_mysqludf_log.c 2011-10-18 12:50:52.000000000 +0200 +@@ -159,7 +159,7 @@ + } else { + fmt = (char *)initid->ptr; + memcpy(fmt, "%0.", 3); +- sprintf(fmt+3, "%d", args->lengths[0]<=9999? args->lengths[0]: 9999); ++ sprintf(fmt+3, "%d", (int)(args->lengths[0]<=9999? args->lengths[0]: 9999)); + numDigits = strlen(fmt + 4); + memcpy(fmt + 4 + numDigits, "s\n\0", 3); + fprintf(stderr, fmt, args->args[0]); diff --git a/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild b/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild new file mode 100644 index 000000000000..a21f93f9c5ae --- /dev/null +++ b/dev-db/lib_mysqludf_log/lib_mysqludf_log-0.0.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDF to write to log files" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_log/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-warnings.patch" +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_log/metadata.xml b/dev-db/lib_mysqludf_log/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_log/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_preg/Manifest b/dev-db/lib_mysqludf_preg/Manifest new file mode 100644 index 000000000000..2e1f9807b4f2 --- /dev/null +++ b/dev-db/lib_mysqludf_preg/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_preg-1.0.1.tar.gz 321868 SHA256 50c7179b354148d66a2324f1a8ed918b133924c8fc0cd53c28afda70e1768daa SHA512 36bb9c412d5f69040e5d4b3325a4b95e5e165010daea240c96611135b2c74dddb3e36bb6938c0684ecc30ff08151ce7543167a9e3a05e3e5cd0361102b1b083d WHIRLPOOL 72a0ff7ad9a9e0ff5e1beac108fcbbe8d312268740eb4341eecd4f2eacdbab1bd2fcb20f9770bcbdfe6a6d7d183b11be35cb9ea15f876551c7b0365d48da3812 diff --git a/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild b/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild new file mode 100644 index 000000000000..88d9d1d7bad6 --- /dev/null +++ b/dev-db/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs that provide access to the PCRE library for pattern matching" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_preg/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + dev-libs/libpcre" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix README + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_preg/metadata.xml b/dev-db/lib_mysqludf_preg/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_preg/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_stat/Manifest b/dev-db/lib_mysqludf_stat/Manifest new file mode 100644 index 000000000000..7b4c132981c8 --- /dev/null +++ b/dev-db/lib_mysqludf_stat/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_stat_0.0.3.tar.gz 7325 SHA256 23925494d486ca142a33a5a5766e861d8964772e962f711496f86e19e917fa70 SHA512 553a5f112c67fe773b27ca57c15611b5534ddc7babc0fff6e8771b106dc3037b9ca1459f9d2b201c53161037dc1e909b2a492fc0380340daddee098b5d82bd30 WHIRLPOOL dbe0e2b260f375078ea8ce4901287fea6f088d339b4a0d95e4beda1c88197872df32caa6a8e6265b27a4107097c01ec359dbd31a2c25d2e2359eb121b6f70630 diff --git a/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch b/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch new file mode 100644 index 000000000000..5447356fea2d --- /dev/null +++ b/dev-db/lib_mysqludf_stat/files/lib_mysqludf_stat-warnings.patch @@ -0,0 +1,20 @@ +--- lib_mysqludf_stat.c.orig 2011-10-19 04:30:24.000000000 +0200 ++++ lib_mysqludf_stat.c 2011-10-19 04:31:21.000000000 +0200 +@@ -550,7 +550,7 @@ + , char *error
+ ){
+ PEARSON* pearson_struct = (PEARSON *)initid->ptr;
+- double result;
++ double result=0.0;
+ if (pearson_struct->n==0){
+ *is_null = 1;
+ } else if (
+@@ -700,7 +700,7 @@ + POINT_BISERIAL_GROUP* X0;
+ POINT_BISERIAL_GROUP* X1;
+ double s;
+- double result;
++ double result=0.0;
+
+ point_biserial_struct = (POINT_BISERIAL *)initid->ptr;
+ X = &point_biserial_struct->X;
diff --git a/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild b/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild new file mode 100644 index 000000000000..4037d8e76ffc --- /dev/null +++ b/dev-db/lib_mysqludf_stat/lib_mysqludf_stat-0.0.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs with statistical functions" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_stat/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-warnings.patch" + + # remove precompiled object + rm -f -- ${PN}.so +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_stat/metadata.xml b/dev-db/lib_mysqludf_stat/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_stat/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_stem/Manifest b/dev-db/lib_mysqludf_stem/Manifest new file mode 100644 index 000000000000..7fcfd104bb8e --- /dev/null +++ b/dev-db/lib_mysqludf_stem/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_stem-0.9.1.tar.gz 953171 SHA256 a98394b8275ea91eae0bd34703c0a686c5b8c3df039128b0487db757646d1f37 SHA512 d15736da91dc5a6f2b0289694efeb531337ff6a001d39aafca02c9f165ba5901163855b8f03d13a50c2ab9bee58e7fc03d19e893d086ec0022de9dd6921f93b7 WHIRLPOOL 26c670424a092052d0ce33b25ba094afa67bb9e1fc6609a3467778f498bf15c0dfe59ce54c29f056a0c33785a32ff36b643217f1768acf624f304e5ef0c79f59 diff --git a/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch new file mode 100644 index 000000000000..c12d1f7d39a9 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch @@ -0,0 +1,71 @@ +--- config/ax_lib_mysql.m4.orig 2008-05-28 17:31:47.000000000 +0200 ++++ config/ax_lib_mysql.m4 2008-11-26 22:43:48.000000000 +0100 +@@ -87,10 +87,9 @@ + MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`" + + MYSQL_VERSION=`$MYSQL_CONFIG --version` +- +- if test `$MYSQL_CONFIG | /usr/bin/awk '{if ($1 == "--plugindir") print 1}'` == "1"; then +- MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` +- fi ++ if $MYSQL_CONFIG --plugindir > /dev/null; then ++ MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` ++ fi + + AC_DEFINE([HAVE_MYSQL], [1], + [Define to 1 if MySQL libraries are available]) +--- config/ax_mysql_bin.m4.orig 2007-08-15 02:22:37.000000000 +0200 ++++ config/ax_mysql_bin.m4 2008-11-26 22:55:40.000000000 +0100 +@@ -43,35 +43,36 @@ + fi + + if test -z "$withmysqlbin" -o "$withmysqlbin" = "yes"; then +- for i in /usr/bin /usr/local/bin ; do +- if test -f "$i/mysql" ; then +- MYSQL="$i/mysql $MYSQL_ARGS" +- fi +- done ++ MYSQL=`which mysql`; ++ if test -n "$MYSQL"; then MYSQL="$MYSQL $MYSQL_ARGS"; fi + elif test "$withmysqlbin" != "no"; then + MYSQL="$withmysqlbin" + fi + + if test -n "$MYSQL" ; then +- MYSQLBIN_PATH = `dirname "$MYSQL"` ++ MYSQLBIN_PATH=`dirname "$MYSQL"` + fi + + if test -z "$withmysqladmin" -o "$withmysqladmin" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqladmin" ; then +- MYSQLADMIN="$i/mysqladmin $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqladmin"; then ++ MYSQLADMIN="$MYSQLBIN_PATH/mysqladmin"; ++ else ++ MYSQLADMIN=`which mysqladmin`; ++ fi ++ ++ if test -n "$MYSQLADMIN"; then MYSQLADMIN="$MYSQLADMIN $MYSQL_ARGS"; fi + elif test "$withmysqladmin" != "no"; then + MYSQLADMIN="$withmysqladmin" + fi + + if test -z "$withmysqltest" -o "$withmysqltest" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqltest" ; then +- MYSQLTEST="$i/mysqltest $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqltest"; then ++ MYSQLTEST="$MYSQLBIN_PATH/mysqltest"; ++ else ++ MYSQLTEST=`which mysqltest`; ++ fi ++ ++ if test -n "$MYSQLTEST"; then MYSQLTEST="$MYSQLTEST $MYSQL_ARGS"; fi + elif test "$withmysqltest" != "no"; then + MYSQLTEST="$withmysqltest" + fi diff --git a/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild new file mode 100644 index 000000000000..657736503664 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs which provides stemming capability for a variety of languages" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_stem/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # add AC_PROG_CXX to configure.ac + sed -i -e 's|\(AC_PROG_CC\)|\1\nAC_PROG_CXX|g' configure.ac + + # fix ax_lib_mysql.m4 + ax_mysql_bin.m4 + epatch "${FILESDIR}/${PN}-mysql_m4.patch" + + # fix and clean libstemmer_c + sed -i -e 's|^\(CFLAGS\)=|\1+=-fPIC |g' libstemmer_c/Makefile + rm -f -- libstemmer_c/stemwords libstemmer_c/*.{o,a} libstemmer_c/*/*.o + + edos2unix installdb.sql + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + dodoc libstemmer_c/libstemmer/*.txt + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_stem/metadata.xml b/dev-db/lib_mysqludf_stem/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_str/Manifest b/dev-db/lib_mysqludf_str/Manifest new file mode 100644 index 000000000000..de4f60392fa7 --- /dev/null +++ b/dev-db/lib_mysqludf_str/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_str-0.3.tar.gz 353717 SHA256 6a11bcfba19f97dfc696d0871779eba67e2a6badc20364403a9f68a9bb8a398b SHA512 a63ffbfd352db087da5a3e70f713845a88c6f4db47511a5b359bb8bcb466070d34b5e2b16d2bde38bd617ed209e2dc4553bbccfb406820e7669aa688652332b8 WHIRLPOOL 42712c9dc2948819680b1afb8f76f3ac3ad1b644c2215ae245afdc94c9f0be0eae5c27e799a336000a6865ac40cd467bf3e49b728ec27373698532b21416fb85 diff --git a/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild b/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild new file mode 100644 index 000000000000..7da3f82dc2e8 --- /dev/null +++ b/dev-db/lib_mysqludf_str/lib_mysqludf_str-0.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs of string functions that complement the set of native ones" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_str/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix README + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_str/metadata.xml b/dev-db/lib_mysqludf_str/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_str/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_sys/Manifest b/dev-db/lib_mysqludf_sys/Manifest new file mode 100644 index 000000000000..7a99237b4058 --- /dev/null +++ b/dev-db/lib_mysqludf_sys/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_sys_0.0.3.tar.gz 9136 SHA256 174f43d1df5372c84d98981031f02a2b9e090954ac473f543bff79f9a87c2c4d SHA512 17154007bc315b7f5c98ed4eb0f6305a1c2bbd4a66a3b6985ed4547baddffcaac71a384fcce0780e26968021439f32534160661a5db756a012763b2ac74a3060 WHIRLPOOL 5c4a626a12507af799c8b54c457d01556b80c91582aa22668e733ca6013ea70693feeaade8908ab3650cb84db7f0997df5b102ec5eb75b0eb0353c9e970639a6 diff --git a/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.3.ebuild b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.3.ebuild new file mode 100644 index 000000000000..ca363b97ff7c --- /dev/null +++ b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs that allows one to interact with the operating system" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_sys/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # remove precompiled object + rm -f -- ${PN}.so +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql + dohtml ${PN}.html +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_sys/metadata.xml b/dev-db/lib_mysqludf_sys/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_sys/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_ta/Manifest b/dev-db/lib_mysqludf_ta/Manifest new file mode 100644 index 000000000000..df37fbf1cbea --- /dev/null +++ b/dev-db/lib_mysqludf_ta/Manifest @@ -0,0 +1 @@ +DIST joaocosta-lib_mysqludf_ta-a8e623c.tar.gz 932876 SHA256 6f1b728018f1bae276ce6d6722263fa07c8a864752b8906a030e3830e6321069 SHA512 4e8422067a055b55bdd1e7103f925f47b8174a83bd20d337d3f39479eebba3de9da0dc8a382441c090c6ef86b03e965d34a38b4c0f3ecc14ad0408aa2cdf511a WHIRLPOOL a4b6b644d01ca23708166307533ae5ea3b26da70728c1a08d2fb1f74b28d567c5a724ce1b036d82c80e5591247addcfed1e554ebfba33e0b69e47d0017b6e08b diff --git a/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild b/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild new file mode 100644 index 000000000000..c369e882397f --- /dev/null +++ b/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +MY_REV="a8e623c" # checkout revision +MY_USR="joaocosta" # user name + +MY_P="${MY_USR}-${PN}-${MY_REV}" + +DESCRIPTION="MySQL UDFs with technical analysis functions" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_ta/" +SRC_URI="https://github.com/${MY_USR}/${PN}/tarball/${MY_REV} -> ${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + + # fix Makefile.am + sed -i -e "s|\(-shared\)|\1 -avoid-version|g" Makefile.am + + # convert to UTF-8 + iconv -f LATIN1 -t UTF-8 < README > README~ + mv -f README~ README + + edos2unix README + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc README sampledb.sql + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_ta/metadata.xml b/dev-db/lib_mysqludf_ta/metadata.xml new file mode 100644 index 000000000000..4ac18c38ace4 --- /dev/null +++ b/dev-db/lib_mysqludf_ta/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">joaocosta/lib_mysqludf_ta</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_udf/Manifest b/dev-db/lib_mysqludf_udf/Manifest new file mode 100644 index 000000000000..15c3abe29586 --- /dev/null +++ b/dev-db/lib_mysqludf_udf/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_udf_0.0.3.tar.gz 2516 SHA256 47b46f6112d8d69798904f4bd33f703b4af47e6e13fecd2d1ca546322356b895 SHA512 5fdaa12b3846eb3921f8fbdf9001706155287066dd488fff2bb8419b306b20cad24e677224368c80e3f3af0379a4038e5a532d855ce16366c7a152cd1127c162 WHIRLPOOL 694910134dc11644d8e85fd51481f38644603810a8ee136e2e56e08d593551cd1582647297c61ae4768b5833e42d634dcf12b1c40cbbbcc089b866c7122f1123 diff --git a/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild b/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild new file mode 100644 index 000000000000..8bb33bcce7be --- /dev/null +++ b/dev-db/lib_mysqludf_udf/lib_mysqludf_udf-0.0.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="MySQL UDFs for reporting internals from the udf interface" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_udf/" +SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o ${PN}.so ${PN}.c +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe ${PN}.so + dodoc ${PN}.sql +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_udf/metadata.xml b/dev-db/lib_mysqludf_udf/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_udf/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lib_mysqludf_xql/Manifest b/dev-db/lib_mysqludf_xql/Manifest new file mode 100644 index 000000000000..81fa34125725 --- /dev/null +++ b/dev-db/lib_mysqludf_xql/Manifest @@ -0,0 +1 @@ +DIST lib_mysqludf_xql-1.0.0.tar.gz 328273 SHA256 f992fcd77f7596aee32ddeccbd9b31aa67c9cf2cd04f84959db63f87e1ca0321 SHA512 3f9e9d4234c0f991a176dd9b1bf3be7edbec19c9df9fe79ce4897eeb5c4528faf0a942866e67f934d1e151732552493f3a5a57acb3db43094d2295e0cafc886b WHIRLPOOL 6bf3138e2ec5184fe0bf184f12a98abfc5d9b21e6830a57e63fd5858a96fd7885c07c4a90dc41236f255dcacec72e015378a4cf029e0daf2974ac49fbef93932 diff --git a/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild b/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild new file mode 100644 index 000000000000..b8a9097c3f6a --- /dev/null +++ b/dev-db/lib_mysqludf_xql/lib_mysqludf_xql-1.0.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs which can be used to create XML output directly from MySQL" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_xql/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1 + dev-libs/libxml2" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + edos2unix API installdb.sql + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_xql/metadata.xml b/dev-db/lib_mysqludf_xql/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/dev-db/lib_mysqludf_xql/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/libdbi-drivers/Manifest b/dev-db/libdbi-drivers/Manifest new file mode 100644 index 000000000000..8187cca2d4c6 --- /dev/null +++ b/dev-db/libdbi-drivers/Manifest @@ -0,0 +1 @@ +DIST libdbi-drivers-0.9.0.tar.gz 1829864 SHA256 43d2eacd573a4faff296fa925dd97fbf2aedbf1ae35c6263478210c61004c854 SHA512 f4d3aaa71014697c53012a10bf9f0af398bcf5ee5872af165f8f43a682d2fb3045a9172ffea0e068dcbfcad52494878c037d8d90fadfaf176936e42f7f1e85c1 WHIRLPOOL 6ed745a19afe4b6b5d51f7730ca9698e645fac529051aeaae886938e063f8fcd3357c2f24913a5428db4847de1de38e931acc1e3e20aeed3e6d71b6877a104d6 diff --git a/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-doc-build-fix.patch b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-doc-build-fix.patch new file mode 100644 index 000000000000..d0d74221fdb0 --- /dev/null +++ b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-doc-build-fix.patch @@ -0,0 +1,22 @@ +diff -Nuar libdbi-drivers-0.9.0.orig/configure.in libdbi-drivers-0.9.0/configure.in +--- libdbi-drivers-0.9.0.orig/configure.in 2013-03-11 23:41:05.000000000 +0000 ++++ libdbi-drivers-0.9.0/configure.in 2013-08-29 15:52:57.632105403 +0000 +@@ -165,14 +165,13 @@ + dnl See whether to build the docs + dnl ============================== + +-ac_docs="YES" ++ac_docs="yes" + AC_ARG_ENABLE(docs, + [ --disable-docs do not build and install the documentation.], +- [ if test "$enable_docs" = "no"; then +- ac_docs="NO" +- fi]) ++ [ ac_docs="$enableval" ], ++ [ ac_docs="no" ]) + +-if test "$ac_docs" = "YES"; then ++if test "$ac_docs" = "yes"; then + docs_subdirs="doc" + else + docs_subdirs="" diff --git a/dev-db/libdbi-drivers/libdbi-drivers-0.9.0.ebuild b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0.ebuild new file mode 100644 index 000000000000..ebfa017ffc80 --- /dev/null +++ b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils autotools + +DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz" +HOMEPAGE="http://libdbi-drivers.sourceforge.net/" +LICENSE="LGPL-2.1" + +IUSE="doc firebird mysql oci8 postgres +sqlite static-libs" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +SLOT=0 +REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )" +RESTRICT="firebird? ( bindist )" + +RDEPEND=" + >=dev-db/libdbi-0.9.0 + firebird? ( dev-db/firebird ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( dev-db/sqlite:3 ) +" +DEPEND="${RDEPEND} + doc? ( app-text/openjade ) +" + +DOCS="AUTHORS ChangeLog NEWS README README.osx TODO" + +pkg_setup() { + use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" +} + +src_prepare() { + #"${FILESDIR}"/${P}-fix-ac-macro.patch \ + #"${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch \ + #"${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch + epatch \ + "${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch + eautoreconf +} + +src_configure() { + local myconf="" + # WARNING: the configure script does NOT work correctly + # --without-$driver does NOT work + # so do NOT use `use_with...` + # Future additions: + # msql + # freetds + # ingres + # db2 + use mysql && myconf+=" --with-mysql" + use postgres && myconf+=" --with-pgsql" + use sqlite && myconf+=" --with-sqlite3" + use firebird && myconf+=" --with-firebird" + if use oci8; then + [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" + myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle" + fi + + econf \ + $(use_enable doc docs) \ + $(use_enable static-libs static) \ + ${myconf} +} + +src_test() { + if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then + ewarn "Tests disabled due to interactivity." + ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them." + return 0 + fi + einfo "Running interactive tests" + emake check +} + +src_install() { + default + + prune_libtool_files --all +} diff --git a/dev-db/libdbi-drivers/metadata.xml b/dev-db/libdbi-drivers/metadata.xml new file mode 100644 index 000000000000..dfe597613c3d --- /dev/null +++ b/dev-db/libdbi-drivers/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">libdbi-drivers</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/libdbi/Manifest b/dev-db/libdbi/Manifest new file mode 100644 index 000000000000..bc30e36d9b42 --- /dev/null +++ b/dev-db/libdbi/Manifest @@ -0,0 +1 @@ +DIST libdbi-0.9.0.tar.gz 1194284 SHA256 dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503 SHA512 ee8777195af43057409d051a6055ec0467cd926d48da076458b09f91d2f0995a1cc4bc071762e401b7bdcd8a4173fd8ea3472db3a1518e34b4c5b5ed24e4e2ce WHIRLPOOL 32770a9247670f30cd280a7c2111239d251e09d7c72e6b3890d02fdf3db7384de88e899431999e1b476ac099d4b8cd9f4d727d9610d47d62dccb9229bcdb36b7 diff --git a/dev-db/libdbi/files/dbi.pc.in b/dev-db/libdbi/files/dbi.pc.in new file mode 100644 index 000000000000..a0144549db9b --- /dev/null +++ b/dev-db/libdbi/files/dbi.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/dbi + +Name: libdbi +Description: database-independent abstraction layer in C +Version: @VERSION@ +Libs: -L${libdir} -ldbi +Cflags: -I${includedir} -I${includedir}/dbi diff --git a/dev-db/libdbi/files/libdbi-0.9.0-doc-build-fix.patch b/dev-db/libdbi/files/libdbi-0.9.0-doc-build-fix.patch new file mode 100644 index 000000000000..c0818b9c295b --- /dev/null +++ b/dev-db/libdbi/files/libdbi-0.9.0-doc-build-fix.patch @@ -0,0 +1,22 @@ +diff -Nuar libdbi-0.9.0.orig/configure.in libdbi-0.9.0/configure.in +--- libdbi-0.9.0.orig/configure.in 2013-08-29 15:34:54.883102666 +0000 ++++ libdbi-0.9.0/configure.in 2013-08-29 15:36:07.827905613 +0000 +@@ -201,14 +201,13 @@ + dnl See whether to build the docs + dnl ============================== + +-ac_docs="YES" ++ac_docs="yes" + AC_ARG_ENABLE(docs, + [ --disable-docs do not build and install the documentation.], +- [ if test "$enable_docs" = "no"; then +- ac_docs="NO" +- fi]) ++ [ ac_docs="$enableval" ], ++ [ ac_docs="no" ]) + +-if test "$ac_docs" = "YES"; then ++if test "$ac_docs" = "yes"; then + docs_subdirs="doc" + else + docs_subdirs="" diff --git a/dev-db/libdbi/libdbi-0.9.0.ebuild b/dev-db/libdbi/libdbi-0.9.0.ebuild new file mode 100644 index 000000000000..f4a26ba90390 --- /dev/null +++ b/dev-db/libdbi/libdbi-0.9.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils autotools multilib + +DESCRIPTION="libdbi is a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://libdbi.sourceforge.net/" +LICENSE="LGPL-2.1" + +IUSE="doc static-libs" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +SLOT=0 + +DOCS="AUTHORS ChangeLog README README.osx TODO" + +RDEPEND="" +DEPEND="${RDEPEND} + >=sys-apps/sed-4 + virtual/pkgconfig + doc? ( app-text/openjade ) +" +PDEPEND=">=dev-db/libdbi-drivers-0.9.0" # On purpose, libdbi-drivers 0.8.4 does not exist + +src_unpack() { + unpack ${A} + chown -R portage:portage "${S}" +} + +src_prepare() { + #epatch "${FILESDIR}"/${PN}-0.9.0-fix-ac-macro.patch + #epatch "${FILESDIR}"/libdbi-0.8.1-pkg-config.patch + #cp -f "${FILESDIR}"/dbi.pc.in "${S}"/dbi.pc.in + epatch "${FILESDIR}"/libdbi-0.9.0-doc-build-fix.patch + + # configure.in has been changed + eautoreconf + # should append CFLAGS, not replace them + sed -i.orig -e 's/^CFLAGS = /CFLAGS += /g' src/Makefile.in +} + +src_configure() { + econf \ + $(use_enable doc docs) \ + $(use_enable static-libs static) +} + +src_install () { + default + + prune_libtool_files --all + + # syslog-ng requires dbi.pc + insinto /usr/$(get_libdir)/pkgconfig/ + doins dbi.pc +} diff --git a/dev-db/libdbi/metadata.xml b/dev-db/libdbi/metadata.xml new file mode 100644 index 000000000000..f3e9046633f0 --- /dev/null +++ b/dev-db/libdbi/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">libdbi</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/libiodbc/Manifest b/dev-db/libiodbc/Manifest new file mode 100644 index 000000000000..c74ce7e0c469 --- /dev/null +++ b/dev-db/libiodbc/Manifest @@ -0,0 +1 @@ +DIST libiodbc-3.52.8.zip 1188493 SHA256 f96cee2f04ab01b3c32297262ebf97b3faed1e49688399e656e8e4743ed72a0c SHA512 76da1e69a6e7ab1b7ba103547070c5dfe7c40fa88d82c243640d862c93c19e731d5a35d0575038491a148bb1d1cb7c5168dc30bf3f9600b31f4e014350f16551 WHIRLPOOL b6dafe709c3dff771ef43f023e62f528d92f9f9b05f0b986942826a2ded16e3cc2ccdae1606b2c31931ee487d01c25a173488c5e6d6c1ddafddb8f6be7dd326b diff --git a/dev-db/libiodbc/files/fix-runpaths.patch b/dev-db/libiodbc/files/fix-runpaths.patch new file mode 100644 index 000000000000..e913b4c7c4cc --- /dev/null +++ b/dev-db/libiodbc/files/fix-runpaths.patch @@ -0,0 +1,15 @@ +--- samples/Makefile.am 2012-03-27 05:15:02.000000000 +0200 ++++ samples/Makefile.am.new 2013-04-09 14:07:48.303789999 +0200 +@@ -78,12 +78,10 @@ + # + iodbctest_SOURCES = iodbctest.c + iodbctest_LDADD = ../iodbc/libiodbc.la +-iodbctest_LDFLAGS = -static + + iodbctestw_CFLAGS = -DUNICODE + iodbctestw_SOURCES = iodbctest.c + iodbctestw_LDADD = ../iodbc/libiodbc.la +-iodbctestw_LDFLAGS = -static + + EXTRA_DIST = $(srcdir)/Makefile.sample + diff --git a/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug501100.patch b/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug501100.patch new file mode 100644 index 000000000000..5e19d1e68094 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug501100.patch @@ -0,0 +1,14 @@ +Index: libiodbc2-3.52.7/include/sqltypes.h +=================================================================== +--- libiodbc2-3.52.7.orig/include/sqltypes.h 2010-06-26 21:15:00.000000000 +0200 ++++ libiodbc2-3.52.7/include/sqltypes.h 2010-06-26 21:15:36.000000000 +0200 +@@ -96,6 +96,9 @@ + extern "C" { + #endif + ++#ifndef _IODBCUNIX_H ++#include <iodbcunix.h> ++#endif + + /* + * Environment specific definitions diff --git a/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug508480.patch b/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug508480.patch new file mode 100644 index 000000000000..d1e80184e5b1 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.7-debian_bug508480.patch @@ -0,0 +1,14 @@ +Index: libiodbc2-3.52.7/iodbcinst/inifile.c +=================================================================== +--- libiodbc2-3.52.7.orig/iodbcinst/inifile.c 2010-06-26 21:29:43.000000000 +0200 ++++ libiodbc2-3.52.7/iodbcinst/inifile.c 2010-06-26 21:30:07.000000000 +0200 +@@ -1023,7 +1023,8 @@ + + if (!_iodbcdm_cfg_find (pCfg, lpszSection, NULL)) + { +- while (curr < cbRetBuffer && 0 == _iodbcdm_cfg_nextentry (pCfg)) ++ while (curr < cbRetBuffer && 0 == _iodbcdm_cfg_nextentry (pCfg) ++ && pCfg->section) + { + if (_iodbcdm_cfg_section (pCfg)) + break; diff --git a/dev-db/libiodbc/files/libiodbc-3.52.7-gtk.patch b/dev-db/libiodbc/files/libiodbc-3.52.7-gtk.patch new file mode 100644 index 000000000000..83fc954d46c9 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.7-gtk.patch @@ -0,0 +1,16 @@ +diff -pruN 3.52.6-1/configure.in 3.52.6-1ubuntu1/configure.in +--- 3.52.6-1/configure.in 2007-10-08 14:04:32.000000000 +0100 ++++ 3.52.6-1ubuntu1/configure.in 2007-12-06 00:12:00.000000000 +0000 +@@ -315,12 +315,6 @@ then + no_gtk="" + # Check for GTK+ 2.x + AM_PATH_GTK_2_0(2.0.0) +- if test x$no_gtk != x +- then +- # Try GTK 1.2.x instead +- no_gtk="" +- AM_PATH_GTK(1.2.3) +- fi + if test x$no_gtk = x + then + USE_GTK=true diff --git a/dev-db/libiodbc/files/libiodbc-3.52.7-multilib.patch b/dev-db/libiodbc/files/libiodbc-3.52.7-multilib.patch new file mode 100644 index 000000000000..73e81d30aec0 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.7-multilib.patch @@ -0,0 +1,35 @@ +--- bin/iodbc-config.in.orig 2006-01-23 11:29:22.000000000 +0100 ++++ bin/iodbc-config.in 2009-06-04 17:48:19.000000000 +0200 +@@ -145,10 +145,10 @@ + echo_libs=yes + ;; + --static-libs) +- echo_staticlibs=yes ++ echo_libs=yes + ;; + --libtool-libs) +- echo_libtoollibs=yes ++ echo_libs=yes + ;; + --data-dir) + echo_data_dir=yes +@@ -196,19 +196,5 @@ + if test "$lib_iodbc" = "yes"; then + libs="$libs -liodbc -liodbcinst" + fi +- echo "-L@libdir@ $libs" +-fi +-if test "$echo_staticlibs" = "yes"; then +- libs="" +- if test "$lib_iodbc" = "yes"; then +- libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a @LIBADD_DL@" +- fi +- echo "$libs" +-fi +-if test "$echo_libtoollibs" = "yes"; then +- libs="" +- if test "$lib_iodbc" = "yes"; then +- libs="@libdir@/libiodbc.la @libdir@/libiodbcinst.la" +- fi + echo "$libs" + fi diff --git a/dev-db/libiodbc/files/libiodbc-3.52.7-unicode_includes.patch b/dev-db/libiodbc/files/libiodbc-3.52.7-unicode_includes.patch new file mode 100644 index 000000000000..67730ec65556 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.7-unicode_includes.patch @@ -0,0 +1,12 @@ +Index: libiodbc2-3.52.7/iodbcinst/unicode.h +=================================================================== +--- libiodbc2-3.52.7.orig/iodbcinst/unicode.h 2009-09-09 14:13:17.000000000 +0200 ++++ libiodbc2-3.52.7/iodbcinst/unicode.h 2010-06-26 21:16:26.000000000 +0200 +@@ -76,6 +76,7 @@ + + #ifndef _UNICODE_H + #define _UNICODE_H ++#include <iodbc.h> + + + #if defined (__APPLE__) && !defined (MACOSX102) && !defined (HAVE_CONFIG_H) diff --git a/dev-db/libiodbc/files/libiodbc-3.52.8-gtk-parallel-make.patch b/dev-db/libiodbc/files/libiodbc-3.52.8-gtk-parallel-make.patch new file mode 100644 index 000000000000..7278499aff35 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.8-gtk-parallel-make.patch @@ -0,0 +1,23 @@ +diff -u -r iODBC-3.52.8.orig/iodbcadm/Makefile.am iODBC-3.52.8/iodbcadm/Makefile.am +--- iODBC-3.52.8.orig/iodbcadm/Makefile.am 2012-03-27 05:15:02.000000000 -0500 ++++ iODBC-3.52.8/iodbcadm/Makefile.am 2013-01-08 08:12:58.639414826 -0600 +@@ -96,7 +96,7 @@ + + if GTK + libiodbcadm_la_LIBADD = \ +- ../iodbcadm/gtk/libiodbcadm-gtk.la \ ++ gtk/libiodbcadm-gtk.la \ + $(LIBADD_DL) \ + @GTK_LIBS@ \ + ../iodbcinst/libiodbc_common.la \ +@@ -117,8 +117,8 @@ + + iodbcadm_gtk_SOURCES = + iodbcadm_gtk_LDADD = \ +- ../iodbcadm/gtk/main.lo \ +- ../iodbcadm/libiodbcadm.la \ ++ gtk/main.lo \ ++ libiodbcadm.la \ + ../iodbcinst/libiodbcinst.la \ + ../iodbc/libiodbc.la \ + @GTK_LIBS@ diff --git a/dev-db/libiodbc/files/libiodbc-3.52.8-runtime-failures.patch b/dev-db/libiodbc/files/libiodbc-3.52.8-runtime-failures.patch new file mode 100644 index 000000000000..50724ba46b48 --- /dev/null +++ b/dev-db/libiodbc/files/libiodbc-3.52.8-runtime-failures.patch @@ -0,0 +1,56 @@ +diff -u -r iODBC-3.52.8.orig/configure.in iODBC-3.52.8/configure.in +--- iODBC-3.52.8.orig/configure.in 2012-03-27 05:15:02.000000000 -0500 ++++ iODBC-3.52.8/configure.in 2013-01-08 10:31:39.740041040 -0600 +@@ -87,7 +87,7 @@ + AC_CONFIG_SRCDIR([include/isql.h]) + AC_CONFIG_AUX_DIR(admin) + AC_CONFIG_MACRO_DIR(admin) +-AM_CONFIG_HEADER(include/config.h) ++AC_CONFIG_HEADER(include/config.h) + AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION) + AC_CANONICAL_HOST + AM_MAINTAINER_MODE +diff -u -r iODBC-3.52.8.orig/iodbcadm/gtk/administrator.c iODBC-3.52.8/iodbcadm/gtk/administrator.c +--- iODBC-3.52.8.orig/iodbcadm/gtk/administrator.c 2012-03-27 05:15:02.000000000 -0500 ++++ iODBC-3.52.8/iodbcadm/gtk/administrator.c 2013-01-08 10:29:51.758462953 -0600 +@@ -72,6 +72,13 @@ + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#ifdef __linux ++# ifndef _GNU_SOURCE ++# define _GNU_SOURCE /* make sure dladdr is declared */ ++# endif ++# define HAVE_DL_INFO 1 ++#endif ++ + #include <iodbc.h> + #include <dlfcn.h> + #include <sys/stat.h> +@@ -82,7 +89,7 @@ + #include "odbc4.xpm" + + +-#if !defined(HAVE_DL_INFO) ++#if defined (HAVE_DLADDR) && !defined(HAVE_DL_INFO) + typedef struct + { + const char *dli_fname; /* File name of defining object. */ +@@ -90,6 +97,7 @@ + const char *dli_sname; /* Name of nearest symbol. */ + void *dli_saddr; /* Exact value of nearest symbol. */ + } Dl_info; ++ + #endif /* HAVE_DL_INFO */ + + static char *szDriverButtons[] = { +diff -u -r iODBC-3.52.8.orig/iodbcadm/gtk/gui.h iODBC-3.52.8/iodbcadm/gtk/gui.h +--- iODBC-3.52.8.orig/iodbcadm/gtk/gui.h 2012-03-27 05:15:02.000000000 -0500 ++++ iODBC-3.52.8/iodbcadm/gtk/gui.h 2013-01-08 10:30:48.124240299 -0600 +@@ -219,5 +219,6 @@ + void addlistofdir_to_optionmenu(GtkWidget* widget, LPCSTR path, TDSNCHOOSER *choose_t); + LPSTR create_keyval (HWND wnd, LPCSTR attrs, BOOL *verify_conn); + LPSTR create_fgensetup (HWND hwnd, LPCSTR dsn, LPCSTR attrs, BOOL add, BOOL *verify_conn); ++void create_message (HWND hwnd, LPCSTR dsn, LPCSTR text); + + #endif diff --git a/dev-db/libiodbc/libiodbc-3.52.8-r2.ebuild b/dev-db/libiodbc/libiodbc-3.52.8-r2.ebuild new file mode 100644 index 000000000000..20769287343a --- /dev/null +++ b/dev-db/libiodbc/libiodbc-3.52.8-r2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils multilib-minimal + +MY_PN="iODBC" + +DESCRIPTION="ODBC Interface for Linux" +HOMEPAGE="http://www.iodbc.org/" +SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.zip -> ${P}.zip" + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +LICENSE="|| ( LGPL-2 BSD )" +SLOT="0" +IUSE="gtk" + +RDEPEND="gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )" + +DEPEND="${RDEPEND}" + +DOCS="AUTHORS ChangeLog NEWS README" + +S="${WORKDIR}/${MY_PN}-${PV}" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/iodbc-config +) + +src_prepare() { + sed -i.orig \ + -e '/^cd "$PREFIX"/,/^esac/d' \ + iodbc/install_libodbc.sh || die "sed failed" + epatch \ + "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch \ + "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch \ + "${FILESDIR}"/libiodbc-3.52.7-gtk.patch \ + "${FILESDIR}"/libiodbc-3.52.7-multilib.patch \ + "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch \ + "${FILESDIR}"/libiodbc-3.52.8-gtk-parallel-make.patch \ + "${FILESDIR}"/libiodbc-3.52.8-runtime-failures.patch \ + "${FILESDIR}"/fix-runpaths.patch + chmod -x include/*.h || die + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + --disable-static \ + --enable-odbc3 \ + --enable-pthreads \ + --with-layout=gentoo \ + --with-iodbc-inidir=yes \ + $(use_enable gtk gui) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files + + # Install lintian overrides + insinto /usr/share/lintian/overrides + newins debian/iodbc.lintian-overrides iodbc + newins debian/libiodbc2.lintian-overrides libiodbc2 +} diff --git a/dev-db/libiodbc/metadata.xml b/dev-db/libiodbc/metadata.xml new file mode 100644 index 000000000000..ccf439c60983 --- /dev/null +++ b/dev-db/libiodbc/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>olemarkus@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">openlink/iODBC</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/libodbc++/Manifest b/dev-db/libodbc++/Manifest new file mode 100644 index 000000000000..91af151f77de --- /dev/null +++ b/dev-db/libodbc++/Manifest @@ -0,0 +1 @@ +DIST libodbc++-0.2.5.tar.bz2 362310 SHA256 ba3030a27b34e4aafbececa2ddbbf42a38815e9534f34c051620540531b5e23e SHA512 cc2485a0dae8a3f548a26a759f1421133a0a23715296f632067f5967b61778ca64e1339e19a4de15d06fb80b4e43ec8ddb13ba170b70dd7202c4d07b5669c2c7 WHIRLPOOL e39b35d288f6a37ea84815346540f07f39ed30fca3cdf9ce768ef48a3133301364a45fc2495daf11d6655d3d7748a7b9ab833b16213e67bce92c403dfdc9806f diff --git a/dev-db/libodbc++/files/libodbc++-0.2.3-doxygen.patch b/dev-db/libodbc++/files/libodbc++-0.2.3-doxygen.patch new file mode 100644 index 000000000000..e750c198123f --- /dev/null +++ b/dev-db/libodbc++/files/libodbc++-0.2.3-doxygen.patch @@ -0,0 +1,12 @@ +diff -ur libodbc++-0.2.3-orig/doc/progref/Doxyfile libodbc++-0.2.3/doc/progref/Doxyfile +--- libodbc++-0.2.3-orig/doc/progref/Doxyfile 2006-04-08 01:03:20.000000000 -0400 ++++ libodbc++-0.2.3/doc/progref/Doxyfile 2006-04-08 01:06:03.000000000 -0400 +@@ -256,7 +256,7 @@ + # each generated HTML page. If it is left blank doxygen will generate a + # standard footer. + +-HTML_FOOTER = footer ++HTML_FOOTER = + + # The HTML_STYLESHEET tag can be used to specify a user defined cascading + # style sheet that is used by each HTML page. It can be used to diff --git a/dev-db/libodbc++/files/libodbc++-0.2.3-gcc41.patch b/dev-db/libodbc++/files/libodbc++-0.2.3-gcc41.patch new file mode 100644 index 000000000000..089277fbd722 --- /dev/null +++ b/dev-db/libodbc++/files/libodbc++-0.2.3-gcc41.patch @@ -0,0 +1,12 @@ +diff -ur libodbc++-0.2.3-orig/include/odbc++/drivermanager.h libodbc++-0.2.3/include/odbc++/drivermanager.h +--- libodbc++-0.2.3-orig/include/odbc++/drivermanager.h 2006-04-08 00:54:19.000000000 -0400 ++++ libodbc++-0.2.3/include/odbc++/drivermanager.h 2006-04-08 00:56:15.000000000 -0400 +@@ -26,6 +26,8 @@ + + #include <odbc++/types.h> + ++#include <odbc++/errorhandler.h> ++ + /** The namespace where all <b>libodbc++</b> classes reside */ + namespace odbc { + diff --git a/dev-db/libodbc++/files/libodbc++-0.2.3-gcc44.patch b/dev-db/libodbc++/files/libodbc++-0.2.3-gcc44.patch new file mode 100644 index 000000000000..415ae0185e08 --- /dev/null +++ b/dev-db/libodbc++/files/libodbc++-0.2.3-gcc44.patch @@ -0,0 +1,11 @@ +--- libodbc++-0.2.3-orig/src/datastream.h 2009-06-12 13:31:54.000000000 +0200 ++++ libodbc++-0.2.3/src/datastream.h 2009-06-12 13:32:11.000000000 +0200 +@@ -25,6 +25,7 @@ + #include <odbc++/types.h> + + #if defined(ODBCXX_HAVE_ISO_CXXLIB) ++# include <cstdio> + # include <istream> + # include <streambuf> + #else + diff --git a/dev-db/libodbc++/libodbc++-0.2.5-r2.ebuild b/dev-db/libodbc++/libodbc++-0.2.5-r2.ebuild new file mode 100644 index 000000000000..3d5b2f54e6b8 --- /dev/null +++ b/dev-db/libodbc++/libodbc++-0.2.5-r2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic + +DESCRIPTION="C++ class library that provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC" +SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.bz2" +HOMEPAGE="http://libodbcxx.sourceforge.net/" + +LICENSE="LGPL-2.1" +SLOT=0 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86" + +IUSE="static-libs" + +DEPEND="dev-db/unixODBC + sys-libs/ncurses" +RDEPEND="${DEPEND}" + +SB="${S}-build" +SB_MT="${S}-build-mt" +# QT3 is no longer supported in Gentoo. +#SB_QT="${S}-build_qt" +#SB_QT_MT="${S}-build_qt-mt" + +src_prepare() { + #epatch "${FILESDIR}"/${PN}-0.2.3-std-streamsize.patch + epatch "${FILESDIR}"/${PN}-0.2.3-doxygen.patch + epatch "${FILESDIR}"/${PN}-0.2.3-gcc41.patch + #epatch "${FILESDIR}"/${PN}-0.2.3-gcc43.patch + #epatch "${FILESDIR}"/${PN}-0.2.3-typecast.patch + epatch "${FILESDIR}"/${PN}-0.2.3-gcc44.patch + + # Fix configure to use ncurses instead of termcap (bug #103105) + sed -i -e 's~termcap~ncurses~g' configure + + # Fix undeclared ODBCXX_STRING_PERCENT symbol, bug #532356 + sed -i -e 's/ODBCXX_STRING_PERCENT/"%"/' src/dtconv.h || die + + epatch_user +} + +src_configure() { + local commonconf buildlist + commonconf="--with-odbc=/usr --without-tests" + commonconf="${commonconf} $(use_enable static-libs static) --enable-shared" + # " --enable-threads" + + export ECONF_SOURCE="${S}" + append-flags -DODBCXX_DISABLE_READLINE_HACK + + buildlist="${SB} ${SB_MT}" + #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT" + + for sd in ${buildlist}; do + einfo "Doing configure pass for $sd" + mkdir -p "${sd}" + cd "${sd}" + commonconf2='' + LIBS='' + [ "${sd}" == "${SB_MT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --enable-threads" + [ "${sd}" == "${SB_QT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --with-qt" + # isql++ tool fails to compile: + #libodbc++-0.2.5/isql++/isql++.cpp: In constructor 'Isql::Isql(odbc::Connection*)': + #libodbc++-0.2.5/isql++/isql++.cpp:275: error: invalid cast to function type 'char** ()()' + #[ "${sd}" == "${SB}" ] && commonconf2="${commonconf2} --with-isqlxx" + # Upstream configure is broken as well, passing --without or + # --with-isqlxx=no will turn it ON instead of forcing it off. + #commonconf2="${commonconf2} _-without-isqlxx" + [ "${sd}" == "${SB_QT}" ] && commonconf2="${commonconf2} --with-qtsqlxx" + export LIBS + # using without-qt breaks the build + #--without-qt \ + econf \ + ${commonconf} \ + ${commonconf2} \ + || die "econf failed" + done +} + +src_compile() { + local buildlist failures + buildlist="${SB} ${SB_MT}" + #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT" + for sd in ${buildlist}; do + einfo "Doing compile pass for $sd" + cd "${sd}" + emake LIBS='' || failures="${failures} ${sd//${S}-}" + done + [ -n "${failures}" ] && die "Failures: ${failures}" +} + +src_install () { + dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO + + buildlist="${SB} ${SB_MT}" + #use qt3 && buildlist="${buildlist} $SB_QT $SB_QT_MT" + for sd in ${buildlist}; do + einfo "Doing install pass for $sd" + cd ${sd} + emake DESTDIR="${D}" install + done + if [[ "${P}" != "${PF}" ]]; then + mv "${D}"/usr/share/doc/${P}/* "${D}"/usr/share/doc/${PF}/ + rmdir "${D}"/usr/share/doc/${P} + fi +} diff --git a/dev-db/libodbc++/metadata.xml b/dev-db/libodbc++/metadata.xml new file mode 100644 index 000000000000..9dcf9557004e --- /dev/null +++ b/dev-db/libodbc++/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>cpp</herd> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">libodbcxx</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/libzdb/Manifest b/dev-db/libzdb/Manifest new file mode 100644 index 000000000000..ff9cff8735c5 --- /dev/null +++ b/dev-db/libzdb/Manifest @@ -0,0 +1,5 @@ +DIST libzdb-2.11.1.tar.gz 599354 SHA256 390cdee70dcdd77f4ae113949564056b7a0648a931a918c0b626fa7e6d820c8c SHA512 b630c8ce8ee9eaee53cd801cca08af543faaf7f945c9bfd2721bba0a5569980949ab8212c4bf17fec56b5c5c107cef17cfa893e293444a39bd32116d47edb2c5 WHIRLPOOL 1fca845c84c7f5a867f6de7e5e3cae28e73a2ff0b7f261d385a87893c716b8640a60d262aaaedc5cd36f91dfbabfb818f820906d3e1eefcebc9e20928d3b66c7 +DIST libzdb-2.11.2.tar.gz 603149 SHA256 23d8cc201f4d4417963a440005bf3a93fc2010032a275056b0970c060910a298 SHA512 482510fcf382e3b235ae7a5615f175d46f2d0244ed2d06c6c2df14ea5cebff5dbf6ac855aedc28a7981b77f3662c505049c5439c33e29a762af2d2a793d959c9 WHIRLPOOL a04cd2c25bfaf7fd899c8d334e8836a3d574b033ba2c5e43986f1d915e3090d1f9b0bb9a3bb7a6f4b6897fda028f143492156081c331b11ad51df3582ff6cfba +DIST libzdb-2.11.3.tar.gz 604720 SHA256 3ad2ffa8533b8b4524104a66345659235cec56211664906eba83134e3b305028 SHA512 89305e5ecfc6a630936268f2b70f417c9a66bcc37063f4d87fcc0d1e6b106f0fec0b299da9c7375087e77de07abf3ae81fb48027fd741f150cffef7027930c66 WHIRLPOOL 449924b519cd84904b72aa9d5a3557489f0c0c62d024ee2cd23b978ea26b2323ee58faa0a55388c48de5bfadb2a5d6a6cdbe9ae5abe69d7190a65329e267689f +DIST libzdb-2.12.tar.gz 599160 SHA256 37e6bd3d8254be7d8fe1419cf0500b9006783d0e3544eeeffc5e6954cbcd07d4 SHA512 d2fbf7e0d7a8f37f8ce3404a0bf249165daafb54dfff31e6c7cea964b8360c1322bcd8cdc97a0ec8fec0a3be5bbe4f1690cb36a956bbcbea7b6a795655089f6f WHIRLPOOL 06449cf801f062dbbd322f95f80027b09f33b6e8a514638988ad33b47ef8d44a83fa31a21b1e561883bf487dfbd0c4196f04bb73ed62ff9924feccac7e9291ff +DIST libzdb-3.0.tar.gz 700284 SHA256 e334bcb9ca1410e863634a164e3b1b5784018eb6e90b6c2b527780fc29a123c8 SHA512 ce29b0b381695b874627c38a12fe808179ed74a07898fce10bbf7db0279256192eba377a89c9daaf3c6981e29aa67f95e0b21615d9a94c36b0e2e90c9ce6e12d WHIRLPOOL a4efb05a761cf8a5dfee390910c0dbdb5e0256e5e9aefd0d2d3ea510eca31435607d27ed03ebc99f80bef6c9b7498a69aec36c853327612605f397c46491162b diff --git a/dev-db/libzdb/files/sqlite_configure.patch b/dev-db/libzdb/files/sqlite_configure.patch new file mode 100644 index 000000000000..5ea7914091bb --- /dev/null +++ b/dev-db/libzdb/files/sqlite_configure.patch @@ -0,0 +1,18 @@ +--- configure.ac_orig 2012-07-14 07:14:19.000000000 +1000 ++++ configure.ac 2012-07-23 14:17:38.702411605 +1000 +@@ -298,12 +298,11 @@ + CPPFLAGS="-I$with_sqlite/include $CPPFLAGS" + AC_CHECK_HEADERS([sqlite3.h], [ + sqlite="yes" +- if test -r "$with_sqlite/lib/libsqlite3.a"; then ++ AC_CHECK_LIB(sqlite3, main,[ ++ + DBCPPFLAGS="$DBCPPFLAGS -I$with_sqlite/include" + DBLDFLAGS="$DBLDFLAGS -L$with_sqlite/lib/ -lsqlite3" +- else +- sqlite="no" +- fi ++ ],[sqlite="no"]) + ], [sqlite="no"]) + LDFLAGS=$svd_LDFLAGS + CPPFLAGS=$svd_CPPFLAGS diff --git a/dev-db/libzdb/libzdb-2.11.1.ebuild b/dev-db/libzdb/libzdb-2.11.1.ebuild new file mode 100644 index 000000000000..d4318ff57c5b --- /dev/null +++ b/dev-db/libzdb/libzdb-2.11.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} diff --git a/dev-db/libzdb/libzdb-2.11.2.ebuild b/dev-db/libzdb/libzdb-2.11.2.ebuild new file mode 100644 index 000000000000..089b7dacff3b --- /dev/null +++ b/dev-db/libzdb/libzdb-2.11.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} diff --git a/dev-db/libzdb/libzdb-2.11.3.ebuild b/dev-db/libzdb/libzdb-2.11.3.ebuild new file mode 100644 index 000000000000..089b7dacff3b --- /dev/null +++ b/dev-db/libzdb/libzdb-2.11.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} diff --git a/dev-db/libzdb/libzdb-2.12.ebuild b/dev-db/libzdb/libzdb-2.12.ebuild new file mode 100644 index 000000000000..d4318ff57c5b --- /dev/null +++ b/dev-db/libzdb/libzdb-2.12.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} diff --git a/dev-db/libzdb/libzdb-3.0.ebuild b/dev-db/libzdb/libzdb-3.0.ebuild new file mode 100644 index 000000000000..089b7dacff3b --- /dev/null +++ b/dev-db/libzdb/libzdb-3.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} diff --git a/dev-db/libzdb/metadata.xml b/dev-db/libzdb/metadata.xml new file mode 100644 index 000000000000..89be866c29bc --- /dev/null +++ b/dev-db/libzdb/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>lordvan@gentoo.org</email> + <name>Thomas Raschbacher</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxy Maintainer. CC on bugs</description> + </maintainer> +</pkgmetadata> diff --git a/dev-db/lmdb++/Manifest b/dev-db/lmdb++/Manifest new file mode 100644 index 000000000000..c403bd5e8fe0 --- /dev/null +++ b/dev-db/lmdb++/Manifest @@ -0,0 +1 @@ +DIST lmdbxx-0.9.14.0.tar.gz 14732 SHA256 f74c55184bff19de607948a5f00fe1073de5b59c4309ab2e8ebc488cf675f419 SHA512 8eff8c89e0cb9989d8a0cedfd483856aeb2fcf810d59cf8afca3086034711ff22f2bb88ba967ef745d36fdaa1b5e79fb75655af764cddcdb2ac59fc255da670d WHIRLPOOL ab023a06e43d8f5189a83dc6eaf04b632eff83c028991ff440fd06a3c7f582f2aa0cf0332ef182837194979fbabb3a4cab6df7252d06455baec498db1941a635 diff --git a/dev-db/lmdb++/lmdb++-0.9.14.0.ebuild b/dev-db/lmdb++/lmdb++-0.9.14.0.ebuild new file mode 100644 index 000000000000..8dc44ea5464d --- /dev/null +++ b/dev-db/lmdb++/lmdb++-0.9.14.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_P="${P/lmdb++/lmdbxx}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="C++11 wrapper for the LMDB database library" +HOMEPAGE="http://lmdbxx.sourceforge.net/" +SRC_URI="mirror://sourceforge/lmdbxx/${PV}/${MY_P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-db/lmdb" + +src_install() { + emake PREFIX="${D}/usr" install + dodoc AUTHORS CREDITS INSTALL README TODO UNLICENSE +} diff --git a/dev-db/lmdb++/metadata.xml b/dev-db/lmdb++/metadata.xml new file mode 100644 index 000000000000..834fd0316544 --- /dev/null +++ b/dev-db/lmdb++/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nicolasbock@gentoo.org</email> + <name>Nicolas Bock</name> + </maintainer> + <longdescription lang="en"> + This is a comprehensive C++ wrapper for the LMDB embedded database + library, offering both an error-checked procedural interface and an + object-oriented resource interface with RAII semantics. + </longdescription> + <upstream> + <remote-id type="sourceforge">lmdbxx</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/lmdb/Manifest b/dev-db/lmdb/Manifest new file mode 100644 index 000000000000..1e01e5b965b3 --- /dev/null +++ b/dev-db/lmdb/Manifest @@ -0,0 +1 @@ +DIST lmdb-0.9.14.tar.gz 128170 SHA256 3b14dfe2134521cfebd98168b925f7327b9bd07c715640b79f3526e54f0ccb1f SHA512 d5bde616fb22631fe1689e2c77babfbf5098833cf313bce59a5daab1e450d2998a65f087929879e73e0a897b934ff40b8e340c79ec7b2b1c1fe7e1eea7da6267 WHIRLPOOL 0ebda52fd50d9d73bc079e6a613b2e2cdaa1032665d91e499dea9dcf1698095bfe84b03a931118baae8048c616e9bae7153972446502d368e7dc9ee33105e777 diff --git a/dev-db/lmdb/lmdb-0.9.14.ebuild b/dev-db/lmdb/lmdb-0.9.14.ebuild new file mode 100644 index 000000000000..63868c2578b1 --- /dev/null +++ b/dev-db/lmdb/lmdb-0.9.14.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" +HOMEPAGE="http://symas.com/mdb/" +SRC_URI="https://gitorious.org/mdb/mdb/archive/2f587ae081d076e3707360c5db086520c219d3ea.tar.gz + -> lmdb-0.9.14.tar.gz" + +LICENSE="OPENLDAP" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="static-libs" + +DEPEND="" +# =net-nds/openldap-2.4.40 installs lmdb files. +RDEPEND="!=net-nds/openldap-2.4.40" + +S="${WORKDIR}/mdb-mdb/libraries/liblmdb" + +src_prepare() { + sed -i -e "s/^CC.*/CC = $(tc-getCC)/" \ + -e "s/^CFLAGS.*/CFLAGS = ${CFLAGS}/" \ + -e "s/ar rs/$(tc-getAR) rs/" \ + -e "s:^prefix.*:prefix = /usr:" \ + -e "s:/man/:/share/man/:" \ + -e "/for f/s:lib:$(get_libdir):" \ + -e "s:shared:shared -Wl,-soname,liblmdb.so.0:" \ + "${S}/Makefile" || die +} + +src_configure() { + : +} + +src_compile() { + emake LDLIBS+=" -pthread" +} + +src_install() { + mkdir -p "${D}"/usr/{bin,$(get_libdir),include,share/man/man1} + default + + mv "${D}"/usr/$(get_libdir)/liblmdb.so{,.0} || die + dosym liblmdb.so.0 /usr/$(get_libdir)/liblmdb.so + + use static-libs || rm -f "${D}"/usr/$(get_libdir)/liblmdb.a +} diff --git a/dev-db/lmdb/metadata.xml b/dev-db/lmdb/metadata.xml new file mode 100644 index 000000000000..02b69a4700a6 --- /dev/null +++ b/dev-db/lmdb/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<longdescription lang="en"> + An ultra-fast, ultra-compact key-value embedded data store +</longdescription> +<herd>ldap</herd> +<maintainer> + <email>eras@gentoo.org</email> + <name>Eray Aslan</name> +</maintainer> +</pkgmetadata> diff --git a/dev-db/m17n-contrib/Manifest b/dev-db/m17n-contrib/Manifest new file mode 100644 index 000000000000..af11f37ea2f3 --- /dev/null +++ b/dev-db/m17n-contrib/Manifest @@ -0,0 +1,2 @@ +DIST m17n-contrib-1.1.13.tar.gz 697293 SHA256 adcf708ea7abd651b4a72562059b4b2408b9729527330a28f1a467168d27de6c SHA512 09b04315162b197bbada94e4213108a7b02e2349e519e311b545faefcb057f0bd5345a18f8eb3e9bb96843c2e8f04f56685e0347ede0ccade1b79caf459cb945 WHIRLPOOL e1bdcf80b41bcacc4717e4c5a364c10c0e857e14528420f3537ed7d76d4ae28daedb98e023433fa192cb78169c1cbdb2d38fd3691f7e5ad7798c5e858ce158b6 +DIST m17n-contrib-1.1.14.tar.gz 698611 SHA256 4f623be23979e2d52c1275621b3d4488c24b9fbd81f5a9d28260d88f93d23d2c SHA512 569149dc4318e033ecde347cd9f935b6e18fefdd8f24d8a447aed3f754a920cec53b5f7a806d93032a45c05a346076c38a3a5b6398cf4caadc7db0e52baf5ced WHIRLPOOL be907582d6774dcc48a94c2bd689dd19a01ffa456cd22728dcdd4ba3b340daa093eca7890b32f88b38e570d9c5b7316e7c7552f547199ff1efd687801549d088 diff --git a/dev-db/m17n-contrib/m17n-contrib-1.1.13.ebuild b/dev-db/m17n-contrib/m17n-contrib-1.1.13.ebuild new file mode 100644 index 000000000000..ae4ce3928278 --- /dev/null +++ b/dev-db/m17n-contrib/m17n-contrib-1.1.13.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Contribution database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +# Strict version to avoid collision +RDEPEND=">=dev-db/m17n-db-1.6.3" + +src_configure() { + # force the script not to test for m17n presence, trust Portage + # dependency handling. + export HAVE_M17N_DB=yes + + econf +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/dev-db/m17n-contrib/m17n-contrib-1.1.14.ebuild b/dev-db/m17n-contrib/m17n-contrib-1.1.14.ebuild new file mode 100644 index 000000000000..77583eae171f --- /dev/null +++ b/dev-db/m17n-contrib/m17n-contrib-1.1.14.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Contribution database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://download.savannah.gnu.org/releases/m17n/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +# Strict version to avoid collision +RDEPEND=">=dev-db/m17n-db-1.6.4" + +src_configure() { + # force the script not to test for m17n presence, trust Portage + # dependency handling. + export HAVE_M17N_DB=yes + + econf +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/dev-db/m17n-contrib/metadata.xml b/dev-db/m17n-contrib/metadata.xml new file mode 100644 index 000000000000..2896f95fba7b --- /dev/null +++ b/dev-db/m17n-contrib/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cjk</herd> +<longdescription lang="en"> +The m17n-contrib is a collection of contributed works to be used with the m17n library. +</longdescription> +</pkgmetadata> + diff --git a/dev-db/m17n-db/Manifest b/dev-db/m17n-db/Manifest new file mode 100644 index 000000000000..ea7740941881 --- /dev/null +++ b/dev-db/m17n-db/Manifest @@ -0,0 +1,5 @@ +DIST m17n-db-1.5.2.tar.gz 1284002 SHA256 d05ecb11faafffbb7f07c6620a75d612bf27009e06da0e71a2163b2292bdd448 SHA512 d24acc5a067d1fefce438c1af4a1a2245f5ec609206226f03cdd3a2af2d32e602c0bec197207fbe89f90748626f2ff064d8dfcdc7690f6801f060ce15f3d0903 WHIRLPOOL bbe70a28ab4cb3ffa7a139d70caadc708c76510b1d5a4803736fbc6cb3025bd7497de32fea1bcb45beafdb55292a242ea6a0256bb3aab0ab38a9eb368a815700 +DIST m17n-db-1.5.5.tar.gz 1322255 SHA256 4f5bb75e3a0252a47b2628a09adf1ff16c4f160a38aea7ac394b74878ceed14f SHA512 40ad61d9843d0ae37744d63dc8835084e4eba55ac41a307cb10d79e0cbeed849fd53cb3ddeab0d234f5c783e04205cb84a75ec093beb2a2eba11c45f0b57b1f7 WHIRLPOOL b3a06c7808e0b98b369308639a01b0f1c16e00b091eaf72d835350d6def3b4dd45f2ffa4fb3db389032babe588d24b4ec30c5f1678dfffc771d7f304d557e892 +DIST m17n-db-1.6.2.tar.gz 1385431 SHA256 757ce99b852cb08867b2027223c5324248f3fab0b81fb71f478f8dfdfb3cfb24 SHA512 89c51eba7d30f284c4e226eff95984f7b736bfb45ef69bf98fbb419c26f8b7bb2d41adf01c6f108c12ffaf2d7d84492edf33c10763dfe4f068e36586b9ac88cf WHIRLPOOL da58f44d3a423c38956bb267c90e8661f00e1fdec94f5234836be758577c72b5404571dea4694f724bd75a124501bbb26a31cc44c7e088057513d721ff70629c +DIST m17n-db-1.6.3.tar.gz 1384587 SHA256 5f1d11b43efa4c1fcc9681d0c0e13f8d241450625f34351a9deb2a7194cac211 SHA512 4a808b7f8298b9c15c479e7e2dbe26dfe39b0756da5f7a5f968700950d5e41527ce935bc6ced6e65d5e0d57c5f8402dba7f6001144f805129def8237d272625f WHIRLPOOL 55657e6fdc47da30de6ec9094b27b861d37b74a65a5d25b5dcd3ccc94a1057692442cdc40f68b0e67e893688aa5eb6fffa8f118d158d3518ae188638c3a26fdc +DIST m17n-db-1.6.4.tar.gz 1390344 SHA256 530ecb1615a9a64d4caca9ffc59c0dd1c551d34e0c19e39694d083db0506d017 SHA512 54016284335630fca5403e540863aaff5f135429c5716c35404fc38d40544c03a213ad26af5ea7eb82567b11f4645608f66cde95036187e6e23ce0dae17e2324 WHIRLPOOL 9eb0d78319b46864f8d7bec05d30299c798153416ac912119f487990fe26540554d41b89cb06ec427161102b8b312a48ff224adcf6e8c2c5268cef00796d1767 diff --git a/dev-db/m17n-db/files/do-not-commit-extra-space.patch b/dev-db/m17n-db/files/do-not-commit-extra-space.patch new file mode 100644 index 000000000000..465078a20119 --- /dev/null +++ b/dev-db/m17n-db/files/do-not-commit-extra-space.patch @@ -0,0 +1,16 @@ +Index: MIM/zh-util.mim +=================================================================== +RCS file: /cvs/m17n/m17n-db/MIM/zh-util.mim,v +retrieving revision 1.3 +diff -u -r1.3 zh-util.mim +--- MIM/zh-util.mim 11 Jul 2008 01:28:53 -0000 1.3 ++++ MIM/zh-util.mim 5 Nov 2010 07:07:48 -0000 +@@ -65,7 +65,7 @@ + ((BackSpace))) + + (commit-preedit +- ((S-\ )))) ++ ((\ )))) + + (state + (check-undo diff --git a/dev-db/m17n-db/m17n-db-1.5.2.ebuild b/dev-db/m17n-db/m17n-db-1.5.2.ebuild new file mode 100644 index 000000000000..021ddf150e73 --- /dev/null +++ b/dev-db/m17n-db/m17n-db-1.5.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86" +IUSE="" + +DEPEND="sys-devel/gettext" +RDEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README + docinto FORMATS; dodoc FORMATS/* + docinto UNIDATA; dodoc UNIDATA/* +} diff --git a/dev-db/m17n-db/m17n-db-1.5.5.ebuild b/dev-db/m17n-db/m17n-db-1.5.5.ebuild new file mode 100644 index 000000000000..a75b46824a07 --- /dev/null +++ b/dev-db/m17n-db/m17n-db-1.5.5.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="sys-devel/gettext" +RDEPEND="virtual/libintl" + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README || die + docinto FORMATS; dodoc FORMATS/* || die + docinto UNIDATA; dodoc UNIDATA/* || die +} diff --git a/dev-db/m17n-db/m17n-db-1.6.2-r1.ebuild b/dev-db/m17n-db/m17n-db-1.6.2-r1.ebuild new file mode 100644 index 000000000000..6f8854f39585 --- /dev/null +++ b/dev-db/m17n-db/m17n-db-1.6.2-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="sys-devel/gettext" +RDEPEND="virtual/libintl" + +src_prepare() { + epatch "${FILESDIR}"/do-not-commit-extra-space.patch +} + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README + docinto FORMATS; dodoc FORMATS/* + docinto UNIDATA; dodoc UNIDATA/* +} diff --git a/dev-db/m17n-db/m17n-db-1.6.3.ebuild b/dev-db/m17n-db/m17n-db-1.6.3.ebuild new file mode 100644 index 000000000000..6fb4bff18cfc --- /dev/null +++ b/dev-db/m17n-db/m17n-db-1.6.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://www.m17n.org/m17n-lib-download/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86" +IUSE="" + +DEPEND="sys-devel/gettext" +RDEPEND="virtual/libintl" + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README + docinto FORMATS; dodoc FORMATS/* + docinto UNIDATA; dodoc UNIDATA/* +} diff --git a/dev-db/m17n-db/m17n-db-1.6.4.ebuild b/dev-db/m17n-db/m17n-db-1.6.4.ebuild new file mode 100644 index 000000000000..1a90500a9ada --- /dev/null +++ b/dev-db/m17n-db/m17n-db-1.6.4.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Database for the m17n library" +HOMEPAGE="https://savannah.nongnu.org/projects/m17n" +SRC_URI="http://download.savannah.gnu.org/releases/m17n/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86" +IUSE="" + +DEPEND="sys-devel/gettext" +RDEPEND="virtual/libintl" + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog NEWS README + docinto FORMATS; dodoc FORMATS/* + docinto UNIDATA; dodoc UNIDATA/* +} diff --git a/dev-db/m17n-db/metadata.xml b/dev-db/m17n-db/metadata.xml new file mode 100644 index 000000000000..2d5852c16c60 --- /dev/null +++ b/dev-db/m17n-db/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cjk</herd> +</pkgmetadata> diff --git a/dev-db/maatkit/Manifest b/dev-db/maatkit/Manifest new file mode 100644 index 000000000000..0bfd7cce09fd --- /dev/null +++ b/dev-db/maatkit/Manifest @@ -0,0 +1 @@ +DIST maatkit-7540.tar.gz 1312812 SHA256 618b8ba8f8df1c8ac04d127986a7bb6a834643523000c9c5ea4ee7d95aeef9a8 SHA512 98cb44a5ebce09322b4d9a8cfa9e14e2ccb54ef9e0e8a95ee92b0fee5277f06157415152566497893488967735049d95c6efadc0d57c8a70060c7bc714afef9a WHIRLPOOL 73685d156a750263ec8d8ba6d22c6e96aa98ed2247523b74a336572ef8e6ae8239f84dd2e7839752c921baca55d911195c0bb1e83d42a87b3a721fa7d0e8439d diff --git a/dev-db/maatkit/maatkit-7540-r1.ebuild b/dev-db/maatkit/maatkit-7540-r1.ebuild new file mode 100644 index 000000000000..a17ea575e367 --- /dev/null +++ b/dev-db/maatkit/maatkit-7540-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit perl-app perl-module toolchain-funcs + +DESCRIPTION="essential command-line utilities for MySQL" +HOMEPAGE="http://www.maatkit.org/" +SRC_URI="http://maatkit.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="udf" + +COMMON_DEPEND="dev-perl/DBI + dev-perl/DBD-mysql + virtual/perl-Time-HiRes" +RDEPEND="${COMMON_DEPEND} + virtual/perl-Getopt-Long + virtual/perl-Time-Local + virtual/perl-Digest-MD5 + virtual/perl-IO-Compress + virtual/perl-File-Temp + virtual/perl-File-Spec + virtual/perl-Time-HiRes + virtual/perl-Scalar-List-Utils + dev-perl/TermReadKey" +DEPEND="${COMMON_DEPEND} + udf? ( dev-db/mysql ) + virtual/perl-ExtUtils-MakeMaker" + +mysql-udf_src_compile() { + local udfdir="${T}/udf/" + mkdir -p "${udfdir}" + + local udfname udffile udfext udfoutpath + udfname="${1}" + udfext=".so" + udffile="${udfname}${udfext}" + udfoutpath="${udfdir}/${udffile}" + shift + CXX="$(tc-getCXX)" + local src="$@" + if [ -z "$@" ]; then + src="${udfname}.cc" + fi + for f in ${src} ; do + [ -f "${f}" ] || \ + die "UDF ${udfname}: Cannot find source file ${f} to compile" + done + einfo "UDF ${udfname}: compiling from ${src}" + ${CXX} \ + ${CXXFLAGS} -I/usr/include/mysql \ + ${LDFLAGS} -fPIC -shared -o "${udfoutpath}" $src \ + || die "UDF ${udfname}: Failed to compile" +} + +mysql-udf_src_install() { + local udfdir="${T}/udf/" + local udfname udfext udffile udfoutpath + udfname="${1}" + udfext=".so" + udffile="${udfname}${udfext}" + udfoutpath="${udfdir}/${udffile}" + insinto /usr/$(get_libdir)/mysql/plugins + doins "${udfoutpath}" +} + +udf_done_intro=0 +mysql-udf_pkg_postinst() { + local udfname udffile udfext udffunc udfreturn + udfname="${1}" + udfext=".so" + udffile="${udfname}${udfext}" + udffunc="${2}" + udfreturn="${3}" + if [ ${udf_done_intro} -eq 0 ]; then + elog "To use the UDFs that were built:" + elog "Update your configuration to include 'plugin_dir=/usr/$(get_libdir)/mysql/plugins'" + elog "Issue the following commands as a user with FUNCTION privileges:" + udf_done_intro=1 + fi + elog "CREATE FUNCTION ${udffunc} RETURNS ${udfreturn} SONAME '${udffile}'" +} + +src_compile() { + perl-app_src_compile + if use udf; then + cd "${S}"/udf + mysql-udf_src_compile murmur_udf + mysql-udf_src_compile fnv_udf + fi +} + +src_install() { + perl-module_src_install + if use udf; then + mysql-udf_src_install murmur_udf + mysql-udf_src_install fnv_udf + fi +} + +pkg_postinst() { + if use udf; then + mysql-udf_pkg_postinst murmur_udf murmur_hash INTEGER + mysql-udf_pkg_postinst fnv_udf fnv_64 INTEGER + fi +} diff --git a/dev-db/maatkit/metadata.xml b/dev-db/maatkit/metadata.xml new file mode 100644 index 000000000000..d9b6d84de617 --- /dev/null +++ b/dev-db/maatkit/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>idl0r@gentoo.org</email> + <name>Christian Ruppert</name> + </maintainer> + <longdescription>maatkit, formerly MySQL Toolkit, is a collection of command-line utilities that +provide missing functionality for MySQL. Some of the tools implement lacking +server functionality, such as online consistency checks for master/slave +replication; others are client-side utilities such as a query profiler.</longdescription> + <use> + <flag name="udf">Build the MySQL UDFs shipped with maatkit, requires non-minimal MySQL</flag> + </use> + <upstream> + <remote-id type="google-code">maatkit</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/mariadb-galera/Manifest b/dev-db/mariadb-galera/Manifest new file mode 100644 index 000000000000..aac69700d298 --- /dev/null +++ b/dev-db/mariadb-galera/Manifest @@ -0,0 +1,4 @@ +DIST mariadb-galera-10.0.19.tar.gz 56520261 SHA256 df5c0e8ff2db0dbf2490c52f5d9b509216e2d89bf6d340920aad2b41d4d1ae75 SHA512 9acba0d851c8bdfe0b28e3ec3dc9a21a41c8f283322d73a3c05ac10b9e9400302b9e6fe47d0d5ef73307254af715bc3ed144acaa325ce6c78841ddd14ee754c7 WHIRLPOOL 2c60ee6a82e8f6effed3b376a7647f0bc804de633d770bb215f37774bd7cd1f38b0ef173b68ec3f3eab9f59ffee77cb05668159873a5ebd863d0d96735f39edb +DIST mariadb-galera-10.0.20.tar.gz 56558895 SHA256 f6b979cbae803d1b33e85407fcd2aaf19b07fb5e183726666e8c990f1f7d5ce8 SHA512 dbae146c798d08f624fcdac86d7f69aea2ebe8540f659004fee11dba4a0a6c234b7235544ae4adf3b58add989649533f86dbe1de4107eb7bbd433add42f55dad WHIRLPOOL 93ad52daae91463772a163a59beab57496102fc2cd23ba7f9b009875ea8cb7b854d8a0d857ddb90d6e3ec3e034ae8403eb7aedba55f9d2a97f72dbc999085f69 +DIST mysql-extras-20141215-0144Z.tar.bz2 1494767 SHA256 4757043858110654d52b0e6dccab064987ab5db8ae4ae99863cf86df0b90f947 SHA512 7a9b733d09f44b1faff19a496a3e820e444b339838665e6f37c4fddc8f2ad67e805082d598c4edc06fda9364f9906e4cf95520552f72d6b6df34413f38e7a2ed WHIRLPOOL 99ea6890a5faf097b941707538b68f62390e1a49ee662a87c27435a317a9a3f37f00802e72f86b52993b3d1674b57645db0f7e73379ab88fbc1d0ef791cf4326 +DIST mysql-extras-20150717-1707Z.tar.bz2 1491956 SHA256 d67cc1e2c581ab7c57122b7d29864643869799893a95a158a18e14201d4ffc10 SHA512 3a7cb07773099e766f8e796d4e555d42874b85285cc2c7c60220370cc6aafc36a60eb340008637298d85d83f529e73392895a81c1438ffccff9eb8f354b29ba9 WHIRLPOOL 11e75f4b696e2547c1da40e69d8ab75df4bf7080426204c040632f24846407b07d71061c09c4ff4a1d21a9d14a94769d8f8ef62421d0aecd99efe832caf4dd22 diff --git a/dev-db/mariadb-galera/files/my.cnf-5.5 b/dev-db/mariadb-galera/files/my.cnf-5.5 new file mode 100644 index 000000000000..08a2060844cd --- /dev/null +++ b/dev-db/mariadb-galera/files/my.cnf-5.5 @@ -0,0 +1,159 @@ +# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/my.cnf: The global mysql configuration file. +# $Id$ + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock + +[mysql] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqladmin] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlcheck] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqldump] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlimport] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlshow] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[myisamchk] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +[myisampack] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +# use [safe_mysqld] with mysql-3 +[mysqld_safe] +err-log = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysql.err + +# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations +[mysqld] +character-set-server = utf8 +user = mysql +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock +pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.pid +log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err +basedir = @GENTOO_PORTAGE_EPREFIX@/usr +datadir = @DATADIR@ +skip-external-locking +key_buffer_size = 16M +max_allowed_packet = 1M +table_open_cache = 64 +sort_buffer_size = 512K +net_buffer_length = 8K +read_buffer_size = 256K +read_rnd_buffer_size = 512K +myisam_sort_buffer_size = 8M +lc_messages_dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql +#Set this to your desired error message language +lc_messages = en_US + +log-bin +server-id = 1 + +# point the following paths to different dedicated disks +tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/ +#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname + +# you need the debug USE flag enabled to use the following directives, +# if needed, uncomment them, start the server and issue +# #tail -f @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.trace +# this will show you *exactly* what's happening in your server ;) + +#log = @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql +#gdb +#debug = d:t:i:o,/tmp/mysqld.trace +#one-thread + +# the following is the InnoDB configuration +# if you wish to disable innodb instead +# uncomment just the next line +#skip-innodb +# +# the rest of the innodb config follows: +# don't eat too much memory, we're trying to be safe on 64Mb boxes +# you might want to bump this up a bit on boxes with more RAM +innodb_buffer_pool_size = 16M +# this is the default, increase it if you have lots of tables +innodb_additional_mem_pool_size = 2M +# +# i'd like to use @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/innodb, but that is seen as a database :-( +# and upstream wants things to be under @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/, so that's the route +# we have to take for the moment +#innodb_data_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_arch_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_group_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +# you may wish to change this size to be more suitable for your system +# the max is there to avoid run-away growth on your machine +innodb_data_file_path = ibdata1:10M:autoextend:max:128M +# we keep this at around 25% of of innodb_buffer_pool_size +# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) +innodb_log_file_size = 5M +# this is the default, increase it if you have very large transactions going on +innodb_log_buffer_size = 8M +# this is the default and won't hurt you +# you shouldn't need to tweak it +innodb_log_files_in_group=2 +# see the innodb config docs, the other options are not always safe +innodb_flush_log_at_trx_commit = 1 +innodb_lock_wait_timeout = 50 +innodb_file_per_table + +# Uncomment this to get FEDERATED engine support +#plugin-load=federated=ha_federated.so +loose-federated + +# These settings are required for Galera clustering +#mysql settings +binlog_format=ROW +default-storage-engine=innodb +innodb_autoinc_lock_mode=2 +query_cache_size=0 +query_cache_type=0 +bind-address=0.0.0.0 +# Uncomment this section to activate Galera clustering +#wsrep_provider=@GENTOO_PORTAGE_EPREFIX@/usr/lib/galera/libgalera_smm.so +# You should change this name to something meaningful +#wsrep_cluster_name="my_wsrep_cluster" +# List all nodes of the cluster including this one +#wsrep_cluster_address="gcomm://172.16.8.5,172.16.8.6,172.16.8.4" +#wsrep_sst_method=rsync + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +# uncomment the next directive if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer_size = 2M +write_buffer_size = 2M + +[mysqlhotcopy] +interactive-timeout diff --git a/dev-db/mariadb-galera/files/my.cnf-5.6 b/dev-db/mariadb-galera/files/my.cnf-5.6 new file mode 100644 index 000000000000..c0b221c22792 --- /dev/null +++ b/dev-db/mariadb-galera/files/my.cnf-5.6 @@ -0,0 +1,159 @@ +# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/my.cnf: The global mysql configuration file. +# $Id$ + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock + +[mysql] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqladmin] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlcheck] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqldump] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlimport] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlshow] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[myisamchk] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +[myisampack] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +# use [safe_mysqld] with mysql-3 +[mysqld_safe] +err-log = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysql.err + +# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations +[mysqld] +character-set-server = utf8 +user = mysql +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock +pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.pid +log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err +basedir = @GENTOO_PORTAGE_EPREFIX@/usr +datadir = @DATADIR@ +skip-external-locking +key_buffer_size = 16M +max_allowed_packet = 4M +table_open_cache = 400 +sort_buffer_size = 512K +net_buffer_length = 16K +read_buffer_size = 256K +read_rnd_buffer_size = 512K +myisam_sort_buffer_size = 8M +lc_messages_dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql +#Set this to your desired error message language +lc_messages = en_US + +# security: +# using "localhost" in connects uses sockets by default +# skip-networking +bind-address = 127.0.0.1 + +log-bin +server-id = 1 + +# point the following paths to different dedicated disks +tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/ +#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname + +# you need the debug USE flag enabled to use the following directives, +# if needed, uncomment them, start the server and issue +# #tail -f @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.trace +# this will show you *exactly* what's happening in your server ;) + +#log = @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql +#gdb +#debug = d:t:i:o,/tmp/mysqld.trace +#one-thread + +# the rest of the innodb config follows: +# don't eat too much memory, we're trying to be safe on 64Mb boxes +# you might want to bump this up a bit on boxes with more RAM +innodb_buffer_pool_size = 128M +# +# i'd like to use @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/innodb, but that is seen as a database :-( +# and upstream wants things to be under @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/, so that's the route +# we have to take for the moment +#innodb_data_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_arch_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_group_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +# you may wish to change this size to be more suitable for your system +# the max is there to avoid run-away growth on your machine +innodb_data_file_path = ibdata1:10M:autoextend:max:128M +# we keep this at around 25% of of innodb_buffer_pool_size +# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) +innodb_log_file_size = 48M +# this is the default, increase it if you have very large transactions going on +innodb_log_buffer_size = 8M +# this is the default and won't hurt you +# you shouldn't need to tweak it +innodb_log_files_in_group=2 +# see the innodb config docs, the other options are not always safe +innodb_flush_log_at_trx_commit = 1 +innodb_lock_wait_timeout = 50 +innodb_file_per_table + +# Uncomment this to get FEDERATED engine support +#plugin-load=federated=ha_federated.so +loose-federated + +# These settings are required for Galera clustering +#mysql settings +binlog_format=ROW +default-storage-engine=innodb +innodb_autoinc_lock_mode=2 +query_cache_size=0 +query_cache_type=0 +bind-address=0.0.0.0 +# Uncomment this section to activate Galera clustering +#wsrep_provider=@GENTOO_PORTAGE_EPREFIX@/usr/lib/galera/libgalera_smm.so +# You should change this name to something meaningful +#wsrep_cluster_name="my_wsrep_cluster" +# List all nodes of the cluster including this one +#wsrep_cluster_address="gcomm://172.16.8.5,172.16.8.6,172.16.8.4" +#wsrep_sst_method=rsync + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +# uncomment the next directive if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer_size = 2M +write_buffer_size = 2M + +[mysqlhotcopy] +interactive-timeout + +[mariadb] diff --git a/dev-db/mariadb-galera/mariadb-galera-10.0.19.ebuild b/dev-db/mariadb-galera/mariadb-galera-10.0.19.ebuild new file mode 100644 index 000000000000..8082cb43d0f6 --- /dev/null +++ b/dev-db/mariadb-galera/mariadb-galera-10.0.19.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +MY_EXTRAS_VER="20141215-0144Z" +WSREP_REVISION="25" + +inherit toolchain-funcs mysql-multilib +# only to make repoman happy. it is really set in the eclass +IUSE="$IUSE" + +# REMEMBER: also update eclass/mysql*.eclass before committing! +KEYWORDS="~amd64 ~x86" + +# When MY_EXTRAS is bumped, the index should be revised to exclude these. +EPATCH_EXCLUDE='' + +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" +RDEPEND="${RDEPEND}" + +# Please do not add a naive src_unpack to this ebuild +# If you want to add a single patch, copy the ebuild to an overlay +# and create your own mysql-extras tarball, looking at 000_index.txt + +# Official test instructions: +# USE='embedded extraengine perl ssl static-libs community' \ +# FEATURES='test userpriv -usersandbox' \ +# ebuild mariadb-galera-X.X.XX.ebuild \ +# digest clean package +multilib_src_test() { + + if ! multilib_is_native_abi ; then + einfo "Server tests not available on non-native abi". + return 0; + fi + + local TESTDIR="${BUILD_DIR}/mysql-test" + local retstatus_unit + local retstatus_tests + + # Bug #213475 - MySQL _will_ object strenously if your machine is named + # localhost. Also causes weird failures. + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" + + if ! use "minimal" ; then + + if [[ $UID -eq 0 ]]; then + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." + fi + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" + addpredict /this-dir-does-not-exist/t9.MYI + + # Run CTest (test-units) + cmake-utils_src_test + retstatus_unit=$? + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" + + # Ensure that parallel runs don't die + export MTR_BUILD_THREAD="$((${RANDOM} % 100))" + # Enable parallel testing, auto will try to detect number of cores + # You may set this by hand. + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased + export MTR_PARALLEL="${MTR_PARALLEL:-auto}" + + # create directories because mysqladmin might right out of order + mkdir -p "${T}"/var-tests{,/log} + + # These are failing in MariaDB 10.0 for now and are believed to be + # false positives: + # + # main.information_schema, binlog.binlog_statement_insert_delayed, + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, + # funcs_1.is_columns_mysql, main.bootstrap + # fails due to USE=-latin1 / utf8 default + # + # main.mysql_client_test, main.mysql_client_test_nonblock + # main.mysql_client_test_comp: + # segfaults at random under Portage only, suspect resource limits. + # + # wsrep.variables: + # Expects the sys-cluster/galera library to be installed and configured + # + # wsrep.foreign_key: + # Issues a configuration deprecation warning which does not affect data + # + + for t in main.mysql_client_test main.mysql_client_test_nonblock \ + main.mysql_client_test_comp main.bootstrap \ + binlog.binlog_statement_insert_delayed main.information_schema \ + main.mysqld--help wsrep.variables wsrep.foreign_key \ + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do + mysql-multilib_disable_test "$t" "False positives in Gentoo" + done + + # Run mysql tests + pushd "${TESTDIR}" + + # run mysql-test tests + # The PATH addition is required for the galera suite to find the sst scripts + # Skipping galera tests for now until MDEV-7544 is resovled + WSREP_LOG_DIR="${T}/var-tests/wsrep" \ + PATH="${BUILD_DIR}/scripts:${PATH}" \ + perl mysql-test-run.pl --force --vardir="${T}/var-tests" --skip-test=galera + retstatus_tests=$? + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + popd + + # Cleanup is important for these testcases. + pkill -9 -f "${S}/ndb" 2>/dev/null + pkill -9 -f "${S}/sql" 2>/dev/null + + failures="" + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + [[ -z "$failures" ]] || die "Test failures: $failures" + einfo "Tests successfully completed" + else + + einfo "Skipping server tests due to minimal build." + fi +} diff --git a/dev-db/mariadb-galera/mariadb-galera-10.0.20-r1.ebuild b/dev-db/mariadb-galera/mariadb-galera-10.0.20-r1.ebuild new file mode 100644 index 000000000000..ca543de4bbe8 --- /dev/null +++ b/dev-db/mariadb-galera/mariadb-galera-10.0.20-r1.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +MY_EXTRAS_VER="20150717-1707Z" +WSREP_REVISION="25" +HAS_TOOLS_PATCH="1" +SUBSLOT="18" + +inherit toolchain-funcs mysql-multilib +# only to make repoman happy. it is really set in the eclass +IUSE="$IUSE" + +# REMEMBER: also update eclass/mysql*.eclass before committing! +KEYWORDS="~amd64 ~x86" + +# When MY_EXTRAS is bumped, the index should be revised to exclude these. +EPATCH_EXCLUDE='' + +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" +RDEPEND="${RDEPEND}" + +# Please do not add a naive src_unpack to this ebuild +# If you want to add a single patch, copy the ebuild to an overlay +# and create your own mysql-extras tarball, looking at 000_index.txt + +# Official test instructions: +# USE='embedded extraengine perl ssl static-libs community' \ +# FEATURES='test userpriv -usersandbox' \ +# ebuild mariadb-galera-X.X.XX.ebuild \ +# digest clean package +multilib_src_test() { + + if ! multilib_is_native_abi ; then + einfo "Server tests not available on non-native abi". + return 0; + fi + + local TESTDIR="${BUILD_DIR}/mysql-test" + local retstatus_unit + local retstatus_tests + + # Bug #213475 - MySQL _will_ object strenously if your machine is named + # localhost. Also causes weird failures. + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" + + if use server ; then + + if [[ $UID -eq 0 ]]; then + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." + fi + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" + addpredict /this-dir-does-not-exist/t9.MYI + + # Run CTest (test-units) + cmake-utils_src_test + retstatus_unit=$? + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" + + # Ensure that parallel runs don't die + export MTR_BUILD_THREAD="$((${RANDOM} % 100))" + # Enable parallel testing, auto will try to detect number of cores + # You may set this by hand. + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased + export MTR_PARALLEL="${MTR_PARALLEL:-auto}" + + # create directories because mysqladmin might right out of order + mkdir -p "${T}"/var-tests{,/log} + + # Create a symlink to provided binaries so the tests can find them when client-libs is off + if ! use client-libs ; then + ln -srf /usr/bin/my_print_defaults "${BUILD_DIR}/client/my_print_defaults" || die + ln -srf /usr/bin/perror "${BUILD_DIR}/client/perror" || die + mysql-multilib_disable_test main.perror "String mismatch due to not building local perror" + fi + + # These are failing in MariaDB 10.0 for now and are believed to be + # false positives: + # + # main.information_schema, binlog.binlog_statement_insert_delayed, + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, + # funcs_1.is_columns_mysql, main.bootstrap + # fails due to USE=-latin1 / utf8 default + # + # main.mysql_client_test, main.mysql_client_test_nonblock + # main.mysql_client_test_comp: + # segfaults at random under Portage only, suspect resource limits. + # + # wsrep.variables: + # Expects the sys-cluster/galera library to be installed and configured + # + # wsrep.foreign_key: + # Issues a configuration deprecation warning which does not affect data + # + + for t in main.mysql_client_test main.mysql_client_test_nonblock \ + main.mysql_client_test_comp main.bootstrap \ + binlog.binlog_statement_insert_delayed main.information_schema \ + main.mysqld--help wsrep.variables wsrep.foreign_key \ + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do + mysql-multilib_disable_test "$t" "False positives in Gentoo" + done + + # Run mysql tests + pushd "${TESTDIR}" + + # run mysql-test tests + # The PATH addition is required for the galera suite to find the sst scripts + # Skipping galera tests for now until MDEV-7544 is resovled + WSREP_LOG_DIR="${T}/var-tests/wsrep" \ + PATH="${BUILD_DIR}/scripts:${PATH}" \ + perl mysql-test-run.pl --force --vardir="${T}/var-tests" --skip-test=galera + retstatus_tests=$? + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + popd + + # Cleanup is important for these testcases. + pkill -9 -f "${S}/ndb" 2>/dev/null + pkill -9 -f "${S}/sql" 2>/dev/null + + failures="" + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + [[ -z "$failures" ]] || die "Test failures: $failures" + einfo "Tests successfully completed" + else + + einfo "Skipping server tests due to minimal build." + fi +} diff --git a/dev-db/mariadb-galera/mariadb-galera-10.0.20.ebuild b/dev-db/mariadb-galera/mariadb-galera-10.0.20.ebuild new file mode 100644 index 000000000000..8082cb43d0f6 --- /dev/null +++ b/dev-db/mariadb-galera/mariadb-galera-10.0.20.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +MY_EXTRAS_VER="20141215-0144Z" +WSREP_REVISION="25" + +inherit toolchain-funcs mysql-multilib +# only to make repoman happy. it is really set in the eclass +IUSE="$IUSE" + +# REMEMBER: also update eclass/mysql*.eclass before committing! +KEYWORDS="~amd64 ~x86" + +# When MY_EXTRAS is bumped, the index should be revised to exclude these. +EPATCH_EXCLUDE='' + +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" +RDEPEND="${RDEPEND}" + +# Please do not add a naive src_unpack to this ebuild +# If you want to add a single patch, copy the ebuild to an overlay +# and create your own mysql-extras tarball, looking at 000_index.txt + +# Official test instructions: +# USE='embedded extraengine perl ssl static-libs community' \ +# FEATURES='test userpriv -usersandbox' \ +# ebuild mariadb-galera-X.X.XX.ebuild \ +# digest clean package +multilib_src_test() { + + if ! multilib_is_native_abi ; then + einfo "Server tests not available on non-native abi". + return 0; + fi + + local TESTDIR="${BUILD_DIR}/mysql-test" + local retstatus_unit + local retstatus_tests + + # Bug #213475 - MySQL _will_ object strenously if your machine is named + # localhost. Also causes weird failures. + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" + + if ! use "minimal" ; then + + if [[ $UID -eq 0 ]]; then + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." + fi + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" + addpredict /this-dir-does-not-exist/t9.MYI + + # Run CTest (test-units) + cmake-utils_src_test + retstatus_unit=$? + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" + + # Ensure that parallel runs don't die + export MTR_BUILD_THREAD="$((${RANDOM} % 100))" + # Enable parallel testing, auto will try to detect number of cores + # You may set this by hand. + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased + export MTR_PARALLEL="${MTR_PARALLEL:-auto}" + + # create directories because mysqladmin might right out of order + mkdir -p "${T}"/var-tests{,/log} + + # These are failing in MariaDB 10.0 for now and are believed to be + # false positives: + # + # main.information_schema, binlog.binlog_statement_insert_delayed, + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, + # funcs_1.is_columns_mysql, main.bootstrap + # fails due to USE=-latin1 / utf8 default + # + # main.mysql_client_test, main.mysql_client_test_nonblock + # main.mysql_client_test_comp: + # segfaults at random under Portage only, suspect resource limits. + # + # wsrep.variables: + # Expects the sys-cluster/galera library to be installed and configured + # + # wsrep.foreign_key: + # Issues a configuration deprecation warning which does not affect data + # + + for t in main.mysql_client_test main.mysql_client_test_nonblock \ + main.mysql_client_test_comp main.bootstrap \ + binlog.binlog_statement_insert_delayed main.information_schema \ + main.mysqld--help wsrep.variables wsrep.foreign_key \ + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do + mysql-multilib_disable_test "$t" "False positives in Gentoo" + done + + # Run mysql tests + pushd "${TESTDIR}" + + # run mysql-test tests + # The PATH addition is required for the galera suite to find the sst scripts + # Skipping galera tests for now until MDEV-7544 is resovled + WSREP_LOG_DIR="${T}/var-tests/wsrep" \ + PATH="${BUILD_DIR}/scripts:${PATH}" \ + perl mysql-test-run.pl --force --vardir="${T}/var-tests" --skip-test=galera + retstatus_tests=$? + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + popd + + # Cleanup is important for these testcases. + pkill -9 -f "${S}/ndb" 2>/dev/null + pkill -9 -f "${S}/sql" 2>/dev/null + + failures="" + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + [[ -z "$failures" ]] || die "Test failures: $failures" + einfo "Tests successfully completed" + else + + einfo "Skipping server tests due to minimal build." + fi +} diff --git a/dev-db/mariadb-galera/metadata.xml b/dev-db/mariadb-galera/metadata.xml new file mode 100644 index 000000000000..e0a0598ce6ff --- /dev/null +++ b/dev-db/mariadb-galera/metadata.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mysql</herd> +<!-- +Please note that this list is shared between the following packages: +dev-db/mysql +dev-db/mariadb +--> +<use> + <flag name='client-libs'>Build the libmysqlclient libraries</flag> + <flag name='cluster'>Add support for NDB clustering (deprecated)</flag> + <flag name='community'>Enables the community features from upstream.</flag> + <flag name='embedded'>Build embedded server (libmysqld)</flag> + <flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag> + <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag> + <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag> + <flag name='minimal'>Install client programs only, no server</flag> + <flag name='oqgraph'>Add support for the Open Query GRAPH engine</flag> + <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag> + <flag name='server'>Build the server program</flag> + <flag name='sst-rsync'>Add tools needed to support the rsync SST method</flag> + <flag name='sst-xtrabackup'>Add tools needed to support the xtrabackup and xtrabackup-v2 SST methods</flag> + <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag> + <flag name='sphinx'>Add suport for the sphinx full-text search engine</flag> + <flag name='test'>Install upstream testsuites for end use.</flag> + <flag name='tokudb'>Add support for TokuDB storage engine</flag> + <flag name='tools'>Build the command line tools (mysql, mysqldump, mysqladmin, etc)</flag> +</use> +</pkgmetadata> diff --git a/dev-db/mariadb/Manifest b/dev-db/mariadb/Manifest new file mode 100644 index 000000000000..982a907949f6 --- /dev/null +++ b/dev-db/mariadb/Manifest @@ -0,0 +1,7 @@ +DIST mariadb-10.0.19.tar.gz 56224123 SHA256 2fbf5e5d7d8094691601ece8ae60b941478d73c98a58a960aeebfa021091a132 SHA512 bfb2a3e9225b3dd7481c0240143346f38be80c426887e05ec2b8eeab251991e2a5f74788f421322342a0fa8f85294cf4c7f5d4fd10d7bc6b9da720f6168003f3 WHIRLPOOL d08c53228c40df18793316dd0eddb160ce5b67a853f16c4ddcdcedb049833b35b9ae9d0763e1fcc1e447e3528ae9a7ab2e6587dd2e2c0a225224f28a951dc3dd +DIST mariadb-10.0.20.tar.gz 56241178 SHA256 3a4f6963c794977af5d5fd9ec06a337a2ad556b3a287196fddbd2243c1388b7b SHA512 40214e29ec3fd6402b6e075644ab3fc3acd080e9e0d6e77db83c14d928f69a9af366c5df715d3d52692b90259c6b6d28160376a4d6e05811ed9973741a3ba445 WHIRLPOOL 5a5dfa7a53254a22fc4540aa78a6ac3704e17e90b22d1bae32f40bddd906e6e9409161c973e9229d48af27419df410c7214859bd979137221ba394d37cf1bbbb +DIST mariadb-10.0.21.tar.gz 56216903 SHA256 4b9a32e15ceadefdb1057a02eb3e0addf702b75aef631a3c9194b832ecfa3545 SHA512 75aa4b019f3432a61483bb325a0f088ea92d6fede44d7a300c15659411c8927fa2a0586182226315b6d6796641ca1d8746f7fd49e21fe21505adec1fc38ae32f WHIRLPOOL b086fb34363b2426f5e91c14916b747787feadf37c609f4aea1f08bd235e9e97df17f5bfa0eb9e65e93fbed3df5eb6c021287c4eb987a3362ea87cf96eaf268e +DIST mariadb-5.5.45.tar.gz 45686618 SHA256 4dc3aff6941ef1068412002915d795bcf67db0eaa38a5c6f3af57474c4226fb0 SHA512 57501670605cfcdd231ef57d2db7ac9bf460856e63c0660d050ad11aa0392d3d6ce6730ae119dca5d00847c9170990f375c8499593bf0d02c1995395191236ba WHIRLPOOL e5ef471c097c2b8921596b88f26df6914e031daafdcd878d79a16c20be6ba8c97fb79069e48d7d1b9aa405ced063f66feac1c52503907e06ee4b577def2c57fa +DIST mysql-extras-20141215-0144Z.tar.bz2 1494767 SHA256 4757043858110654d52b0e6dccab064987ab5db8ae4ae99863cf86df0b90f947 SHA512 7a9b733d09f44b1faff19a496a3e820e444b339838665e6f37c4fddc8f2ad67e805082d598c4edc06fda9364f9906e4cf95520552f72d6b6df34413f38e7a2ed WHIRLPOOL 99ea6890a5faf097b941707538b68f62390e1a49ee662a87c27435a317a9a3f37f00802e72f86b52993b3d1674b57645db0f7e73379ab88fbc1d0ef791cf4326 +DIST mysql-extras-20150509-1847Z.tar.bz2 1494301 SHA256 de9c9fbb67998604cb3c0409842e4601646c8ad17f2aa301f55ffd4aed7a483d SHA512 f87d96ab8c35236d4453182c49f87f6e703af9dc217916546e4dd7368caa18a2340c9063decd96c22251d1097d7e2cac58bef30e6ff75c23aedf8926dbc3d3b4 WHIRLPOOL f60297c8ee1dfd9867ed6b29a8b04a002f23bc36b1e8d9b5db30e1e454a49fe06ffc37b10d934b11235364eecdc62beb50ce24690ab3d07a50056357906fa0fa +DIST mysql-extras-20150717-1707Z.tar.bz2 1491956 SHA256 d67cc1e2c581ab7c57122b7d29864643869799893a95a158a18e14201d4ffc10 SHA512 3a7cb07773099e766f8e796d4e555d42874b85285cc2c7c60220370cc6aafc36a60eb340008637298d85d83f529e73392895a81c1438ffccff9eb8f354b29ba9 WHIRLPOOL 11e75f4b696e2547c1da40e69d8ab75df4bf7080426204c040632f24846407b07d71061c09c4ff4a1d21a9d14a94769d8f8ef62421d0aecd99efe832caf4dd22 diff --git a/dev-db/mariadb/files/my.cnf-5.1 b/dev-db/mariadb/files/my.cnf-5.1 new file mode 100644 index 000000000000..a5e8bb0fc57a --- /dev/null +++ b/dev-db/mariadb/files/my.cnf-5.1 @@ -0,0 +1,146 @@ +# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/my.cnf: The global mysql configuration file. +# $Id$ + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock + +[mysql] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqladmin] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlcheck] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqldump] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlimport] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlshow] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[myisamchk] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +[myisampack] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +# use [safe_mysqld] with mysql-3 +[mysqld_safe] +err-log = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysql.err + +# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations +[mysqld] +character-set-server = utf8 +user = mysql +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock +pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.pid +log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err +basedir = @GENTOO_PORTAGE_EPREFIX@/usr +datadir = @DATADIR@ +skip-external-locking +key_buffer = 16M +max_allowed_packet = 1M +table_open_cache = 64 +sort_buffer_size = 512K +net_buffer_length = 8K +read_buffer_size = 256K +read_rnd_buffer_size = 512K +myisam_sort_buffer_size = 8M +language = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/english + +# security: +# using "localhost" in connects uses sockets by default +# skip-networking +bind-address = 127.0.0.1 + +log-bin +server-id = 1 + +# point the following paths to different dedicated disks +tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/ +#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname + +# you need the debug USE flag enabled to use the following directives, +# if needed, uncomment them, start the server and issue +# #tail -f @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.trace +# this will show you *exactly* what's happening in your server ;) + +#log = @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql +#gdb +#debug = d:t:i:o,/tmp/mysqld.trace +#one-thread + +# uncomment the following directives if you are using BDB tables +#bdb_cache_size = 4M +#bdb_max_lock = 10000 + +# the following is the InnoDB configuration +# if you wish to disable innodb instead +# uncomment just the next line +#skip-innodb +# +# the rest of the innodb config follows: +# don't eat too much memory, we're trying to be safe on 64Mb boxes +# you might want to bump this up a bit on boxes with more RAM +innodb_buffer_pool_size = 16M +# this is the default, increase it if you have lots of tables +innodb_additional_mem_pool_size = 2M +# +# i'd like to use @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/innodb, but that is seen as a database :-( +# and upstream wants things to be under @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/, so that's the route +# we have to take for the moment +#innodb_data_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_arch_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_group_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +# you may wish to change this size to be more suitable for your system +# the max is there to avoid run-away growth on your machine +innodb_data_file_path = ibdata1:10M:autoextend:max:128M +# we keep this at around 25% of of innodb_buffer_pool_size +# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) +innodb_log_file_size = 5M +# this is the default, increase it if you have very large transactions going on +innodb_log_buffer_size = 8M +# this is the default and won't hurt you +# you shouldn't need to tweak it +innodb_log_files_in_group=2 +# see the innodb config docs, the other options are not always safe +innodb_flush_log_at_trx_commit = 1 +innodb_lock_wait_timeout = 50 +innodb_file_per_table + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +# uncomment the next directive if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[mysqlhotcopy] +interactive-timeout diff --git a/dev-db/mariadb/files/my.cnf-5.5 b/dev-db/mariadb/files/my.cnf-5.5 new file mode 100644 index 000000000000..221edcb91765 --- /dev/null +++ b/dev-db/mariadb/files/my.cnf-5.5 @@ -0,0 +1,150 @@ +# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/my.cnf: The global mysql configuration file. +# $Id$ + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock + +[mysql] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqladmin] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlcheck] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqldump] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlimport] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlshow] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[myisamchk] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +[myisampack] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +# use [safe_mysqld] with mysql-3 +[mysqld_safe] +err-log = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysql.err + +# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations +[mysqld] +character-set-server = utf8 +user = mysql +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock +pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.pid +log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err +basedir = @GENTOO_PORTAGE_EPREFIX@/usr +datadir = @DATADIR@ +skip-external-locking +key_buffer_size = 16M +max_allowed_packet = 1M +table_open_cache = 64 +sort_buffer_size = 512K +net_buffer_length = 8K +read_buffer_size = 256K +read_rnd_buffer_size = 512K +myisam_sort_buffer_size = 8M +lc_messages_dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql +#Set this to your desired error message language +lc_messages = en_US + +# security: +# using "localhost" in connects uses sockets by default +# skip-networking +bind-address = 127.0.0.1 + +log-bin +server-id = 1 + +# point the following paths to different dedicated disks +tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/ +#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname + +# you need the debug USE flag enabled to use the following directives, +# if needed, uncomment them, start the server and issue +# #tail -f @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.trace +# this will show you *exactly* what's happening in your server ;) + +#log = @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql +#gdb +#debug = d:t:i:o,/tmp/mysqld.trace +#one-thread + +# the following is the InnoDB configuration +# if you wish to disable innodb instead +# uncomment just the next line +#skip-innodb +# +# the rest of the innodb config follows: +# don't eat too much memory, we're trying to be safe on 64Mb boxes +# you might want to bump this up a bit on boxes with more RAM +innodb_buffer_pool_size = 16M +# this is the default, increase it if you have lots of tables +innodb_additional_mem_pool_size = 2M +# +# i'd like to use @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/innodb, but that is seen as a database :-( +# and upstream wants things to be under @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/, so that's the route +# we have to take for the moment +#innodb_data_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_arch_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_group_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +# you may wish to change this size to be more suitable for your system +# the max is there to avoid run-away growth on your machine +innodb_data_file_path = ibdata1:10M:autoextend:max:128M +# we keep this at around 25% of of innodb_buffer_pool_size +# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) +innodb_log_file_size = 5M +# this is the default, increase it if you have very large transactions going on +innodb_log_buffer_size = 8M +# this is the default and won't hurt you +# you shouldn't need to tweak it +innodb_log_files_in_group=2 +# see the innodb config docs, the other options are not always safe +innodb_flush_log_at_trx_commit = 1 +innodb_lock_wait_timeout = 50 +innodb_file_per_table + +# Uncomment this to get FEDERATED engine support +#plugin-load=federated=ha_federated.so +loose-federated + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +# uncomment the next directive if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer_size = 2M +write_buffer_size = 2M + +[mysqlhotcopy] +interactive-timeout + +[mariadb] diff --git a/dev-db/mariadb/files/my.cnf-5.6 b/dev-db/mariadb/files/my.cnf-5.6 new file mode 100644 index 000000000000..7374a81ff3d3 --- /dev/null +++ b/dev-db/mariadb/files/my.cnf-5.6 @@ -0,0 +1,143 @@ +# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/my.cnf: The global mysql configuration file. +# $Id$ + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock + +[mysql] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqladmin] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlcheck] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqldump] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlimport] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[mysqlshow] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets +default-character-set=utf8 + +[myisamchk] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +[myisampack] +character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets + +# use [safe_mysqld] with mysql-3 +[mysqld_safe] +err-log = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysql.err + +# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations +[mysqld] +character-set-server = utf8 +user = mysql +port = 3306 +socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock +pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.pid +log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err +basedir = @GENTOO_PORTAGE_EPREFIX@/usr +datadir = @DATADIR@ +skip-external-locking +key_buffer_size = 16M +max_allowed_packet = 4M +table_open_cache = 400 +sort_buffer_size = 512K +net_buffer_length = 16K +read_buffer_size = 256K +read_rnd_buffer_size = 512K +myisam_sort_buffer_size = 8M +lc_messages_dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql +#Set this to your desired error message language +lc_messages = en_US + +# security: +# using "localhost" in connects uses sockets by default +# skip-networking +bind-address = 127.0.0.1 + +log-bin +server-id = 1 + +# point the following paths to different dedicated disks +tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/ +#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname + +# you need the debug USE flag enabled to use the following directives, +# if needed, uncomment them, start the server and issue +# #tail -f @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.trace +# this will show you *exactly* what's happening in your server ;) + +#log = @GENTOO_PORTAGE_EPREFIX@/tmp/mysqld.sql +#gdb +#debug = d:t:i:o,/tmp/mysqld.trace +#one-thread + +# the rest of the innodb config follows: +# don't eat too much memory, we're trying to be safe on 64Mb boxes +# you might want to bump this up a bit on boxes with more RAM +innodb_buffer_pool_size = 128M +# +# i'd like to use @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/innodb, but that is seen as a database :-( +# and upstream wants things to be under @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/, so that's the route +# we have to take for the moment +#innodb_data_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_arch_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +#innodb_log_group_home_dir = @GENTOO_PORTAGE_EPREFIX@/var/lib/mysql/ +# you may wish to change this size to be more suitable for your system +# the max is there to avoid run-away growth on your machine +innodb_data_file_path = ibdata1:10M:autoextend:max:128M +# we keep this at around 25% of of innodb_buffer_pool_size +# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) +innodb_log_file_size = 48M +# this is the default, increase it if you have very large transactions going on +innodb_log_buffer_size = 8M +# this is the default and won't hurt you +# you shouldn't need to tweak it +innodb_log_files_in_group=2 +# see the innodb config docs, the other options are not always safe +innodb_flush_log_at_trx_commit = 1 +innodb_lock_wait_timeout = 50 +innodb_file_per_table + +# Uncomment this to get FEDERATED engine support +#plugin-load=federated=ha_federated.so +loose-federated + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +# uncomment the next directive if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer_size = 2M +write_buffer_size = 2M + +[mysqlhotcopy] +interactive-timeout + +[mariadb] diff --git a/dev-db/mariadb/mariadb-10.0.19.ebuild b/dev-db/mariadb/mariadb-10.0.19.ebuild new file mode 100644 index 000000000000..6a68b6e795b2 --- /dev/null +++ b/dev-db/mariadb/mariadb-10.0.19.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +MY_EXTRAS_VER="20141215-0144Z" + +inherit toolchain-funcs mysql-multilib +# only to make repoman happy. it is really set in the eclass +IUSE="$IUSE" + +# REMEMBER: also update eclass/mysql*.eclass before committing! +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" + +# When MY_EXTRAS is bumped, the index should be revised to exclude these. +EPATCH_EXCLUDE='' + +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" +RDEPEND="${RDEPEND}" + +# Official test instructions: +# USE='embedded extraengine perl ssl static-libs community' \ +# FEATURES='test userpriv -usersandbox' \ +# ebuild mariadb-X.X.XX.ebuild \ +# digest clean package +multilib_src_test() { + + if ! multilib_is_native_abi ; then + einfo "Server tests not available on non-native abi". + return 0; + fi + + local TESTDIR="${BUILD_DIR}/mysql-test" + local retstatus_unit + local retstatus_tests + + # Bug #213475 - MySQL _will_ object strenously if your machine is named + # localhost. Also causes weird failures. + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" + + if ! use "minimal" ; then + + if [[ $UID -eq 0 ]]; then + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." + fi + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" + addpredict /this-dir-does-not-exist/t9.MYI + + # Run CTest (test-units) + cmake-utils_src_test + retstatus_unit=$? + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" + + # Ensure that parallel runs don't die + export MTR_BUILD_THREAD="$((${RANDOM} % 100))" + # Enable parallel testing, auto will try to detect number of cores + # You may set this by hand. + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased + export MTR_PARALLEL="${MTR_PARALLEL:-auto}" + + # create directories because mysqladmin might right out of order + mkdir -p "${T}"/var-tests{,/log} + + # These are failing in MariaDB 10.0 for now and are believed to be + # false positives: + # + # main.information_schema, binlog.binlog_statement_insert_delayed, + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, + # funcs_1.is_columns_mysql main.bootstrap + # fails due to USE=-latin1 / utf8 default + # + # main.mysql_client_test, main.mysql_client_test_nonblock + # main.mysql_client_test_comp: + # segfaults at random under Portage only, suspect resource limits. + # + + for t in main.mysql_client_test main.mysql_client_test_nonblock \ + main.mysql_client_test_comp \ + binlog.binlog_statement_insert_delayed main.information_schema \ + main.mysqld--help main.bootstrap \ + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do + mysql-multilib_disable_test "$t" "False positives in Gentoo" + done + + # Run mysql tests + pushd "${TESTDIR}" + + # run mysql-test tests + perl mysql-test-run.pl --force --vardir="${T}/va |