summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2006-02-24 21:33:50 +0000
committerFabian Groffen <grobian@gentoo.org>2006-02-24 21:33:50 +0000
commit0d4280dff3445d6d20d3b762fed273200fe4713f (patch)
treeeaed2be43eed793912adbc994a99792343a0f88a /dev-db
parentStable on amd64. (diff)
downloadhistorical-0d4280dff3445d6d20d3b762fed273200fe4713f.tar.gz
historical-0d4280dff3445d6d20d3b762fed273200fe4713f.tar.bz2
historical-0d4280dff3445d6d20d3b762fed273200fe4713f.zip
New version upstream: bugfix release
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/monetdb/ChangeLog9
-rw-r--r--dev-db/monetdb/Manifest18
-rw-r--r--dev-db/monetdb/files/digest-monetdb-4.10.29
-rw-r--r--dev-db/monetdb/files/monetdb-4.10.2-gentoo-MapiClient.patch11
-rw-r--r--dev-db/monetdb/files/monetdb-4.10.2-gentoo-conf.patch51
-rw-r--r--dev-db/monetdb/monetdb-4.10.2.ebuild235
6 files changed, 329 insertions, 4 deletions
diff --git a/dev-db/monetdb/ChangeLog b/dev-db/monetdb/ChangeLog
index 7d1b7cf4573b..086f0dbeab63 100644
--- a/dev-db/monetdb/ChangeLog
+++ b/dev-db/monetdb/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-db/monetdb
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/ChangeLog,v 1.4 2006/01/25 19:27:31 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/ChangeLog,v 1.5 2006/02/24 21:33:50 grobian Exp $
+
+*monetdb-4.10.2 (24 Feb 2006)
+
+ 24 Feb 2006; Fabian Groffen <grobian@gentoo.org>
+ +files/monetdb-4.10.2-gentoo-MapiClient.patch,
+ +files/monetdb-4.10.2-gentoo-conf.patch, +monetdb-4.10.2.ebuild:
+ New version upstream: bugfix release
*monetdb-4.10.0 (25 Jan 2006)
diff --git a/dev-db/monetdb/Manifest b/dev-db/monetdb/Manifest
index 7d9d8e9ea43d..f89e534c96d2 100644
--- a/dev-db/monetdb/Manifest
+++ b/dev-db/monetdb/Manifest
@@ -1,9 +1,12 @@
-MD5 434e0b2a29505175085ed68eecd4c32b ChangeLog 1355
-RMD160 563a2aaad304dac191ca127c5eb6e4d863ea2c20 ChangeLog 1355
-SHA256 aa483c336c1f67688ce8e9b3c76d7db3b518d3262d0daa1ea2342b5a6e3e65d8 ChangeLog 1355
+MD5 605094b5bc4f7b6f28aa31f1d9d11ee4 ChangeLog 1593
+RMD160 f032359b024a9354994b068d765f3d88a3f11cc9 ChangeLog 1593
+SHA256 a4002131732776b767ab8ec4b53f3423920597db9c5c30fdfa25cdf26fe0a885 ChangeLog 1593
MD5 e2af0d3b334f83320053b7c871f9b112 files/digest-monetdb-4.10.0 213
RMD160 610eaaa062883ebc87f9ec16bbf6336806017697 files/digest-monetdb-4.10.0 213
SHA256 12b23e0fa6e9f0f295c5e3f11e4d8d587c6d60349b2278b808e295c36564ed79 files/digest-monetdb-4.10.0 213
+MD5 3d705a95cba837486ab5a1b2bf33072f files/digest-monetdb-4.10.2 777
+RMD160 6b5baa7b82c285447fbbaf3c37bf4b6d619884a2 files/digest-monetdb-4.10.2 777
+SHA256 a6d5e64d76927480e4f8d551e3333ec97a4ceef8c50310c53314422c6224ee6e files/digest-monetdb-4.10.2 777
MD5 d952989ef380ae6c092f7ad1da16e77d files/digest-monetdb-4.8.2 299
RMD160 f4c22d870f25d39629b040a02b8b933ae2032920 files/digest-monetdb-4.8.2 299
SHA256 9e1def9d08cf104f04d73d8c1d503fa070588661b4a8aaa58bb8500858040e80 files/digest-monetdb-4.8.2 299
@@ -19,6 +22,12 @@ SHA256 fbb6295f2755676fe5451eca1c5c176f4a76a54cd31b09e034753bab913c9d96 files/mo
MD5 62e9f38efbb9920c6a631dd0879e198b files/monetdb-4.10.0-gentoo-conf.patch 1610
RMD160 0b362566f481797551408491cfc761af5fc46929 files/monetdb-4.10.0-gentoo-conf.patch 1610
SHA256 ba78fba1ff865851f6b5efb53711aa5594d864e3bddf288c862d3a65d804458c files/monetdb-4.10.0-gentoo-conf.patch 1610
+MD5 2a5b0e0bef93cf69a675b8f5699db95c files/monetdb-4.10.2-gentoo-MapiClient.patch 272
+RMD160 34d0fc956c871bb2afeabff7c999189d1086a80c files/monetdb-4.10.2-gentoo-MapiClient.patch 272
+SHA256 21835c605f614ce1c81a25b31f23568b16a991cd4abb2d870f70b26541dcde88 files/monetdb-4.10.2-gentoo-MapiClient.patch 272
+MD5 d51a694bff2b2f046fc9098db708af13 files/monetdb-4.10.2-gentoo-conf.patch 1610
+RMD160 44424a75de608305496c86b42dbd931feb35e8b0 files/monetdb-4.10.2-gentoo-conf.patch 1610
+SHA256 b30630a1904622d45f04e49925be73aa9a2dac4d34ea84ad190f2b8eaf1d835e files/monetdb-4.10.2-gentoo-conf.patch 1610
MD5 324a083e56c76f02a3ba9ac34c188066 files/monetdb-4.8.2-gentoo-MapiClient.patch 311
RMD160 f6ab8f95bfda4810fb2ce0a6717d8615a06c20a8 files/monetdb-4.8.2-gentoo-MapiClient.patch 311
SHA256 4a3be92dcafc18374fc4fae497e87f0478949cd1af99484e7dcec3a42c57c848 files/monetdb-4.8.2-gentoo-MapiClient.patch 311
@@ -52,6 +61,9 @@ SHA256 08df50f2635f4fd653ea0b292d4c7c53e12ea61e8f8e8b5684dedcdc812513ff metadata
MD5 ea344d17968816fd9cfa298f5a29fe5e monetdb-4.10.0.ebuild 7511
RMD160 0805a1a1d887aeffc326d6beaf155e666e174173 monetdb-4.10.0.ebuild 7511
SHA256 9fe377a9076727d5a069e7a1aa7c6314269bb97ea2dcc82f1f62a27810d36b5b monetdb-4.10.0.ebuild 7511
+MD5 2198aaed7e69773951129f753f9bf42d monetdb-4.10.2.ebuild 7462
+RMD160 e893f32237ee8085929887c5b38a246954aa0195 monetdb-4.10.2.ebuild 7462
+SHA256 409c6ecd7ed2831cf2a11ecf1838c7b69bd480063b8e52515d24e59ebf4a682e monetdb-4.10.2.ebuild 7462
MD5 5b401347bd869ace7230323503aa0662 monetdb-4.8.2-r1.ebuild 6937
RMD160 b257f1e98278ca238c9a8fef32b9996edf6dce06 monetdb-4.8.2-r1.ebuild 6937
SHA256 89666bcbe7c5ff505ea33c4bb0c5aca8051063a3f1aafe40438ad83db084692a monetdb-4.8.2-r1.ebuild 6937
diff --git a/dev-db/monetdb/files/digest-monetdb-4.10.2 b/dev-db/monetdb/files/digest-monetdb-4.10.2
new file mode 100644
index 000000000000..79893d270cbe
--- /dev/null
+++ b/dev-db/monetdb/files/digest-monetdb-4.10.2
@@ -0,0 +1,9 @@
+MD5 855e17f84fac0fbe345131009f168fda MonetDB-4.10.2.tar.gz 6505286
+RMD160 84882bdac8987497e1357a74f7746964fac40e13 MonetDB-4.10.2.tar.gz 6505286
+SHA256 e66dfb81b9fd5c222c2ec846a21a966bbd8cd9e78321467319d4b68ccd97764b MonetDB-4.10.2.tar.gz 6505286
+MD5 cfc2605e25a965c0a7ffab70d7ade322 MonetDB-SQL-2.10.2.tar.gz 13129287
+RMD160 cb1dc3e600293c13ca49421fad58089608dcca86 MonetDB-SQL-2.10.2.tar.gz 13129287
+SHA256 08d5f1d973445060e5fe6041fb7fb33109e6880aa21383922c5b032b34c822ad MonetDB-SQL-2.10.2.tar.gz 13129287
+MD5 fc86e09a7067ea2ee97c8dc3b7395e23 MonetDB-XQuery-0.10.2.tar.gz 5039724
+RMD160 15825aebf9af51a18f886643899809580ed59f6c MonetDB-XQuery-0.10.2.tar.gz 5039724
+SHA256 fe5ba620a0fc5ecee0a1a468f2efaf3aa75c469dc2a65528b85ee0ff5e1360b2 MonetDB-XQuery-0.10.2.tar.gz 5039724
diff --git a/dev-db/monetdb/files/monetdb-4.10.2-gentoo-MapiClient.patch b/dev-db/monetdb/files/monetdb-4.10.2-gentoo-MapiClient.patch
new file mode 100644
index 000000000000..7f1d2ed8cb2d
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb-4.10.2-gentoo-MapiClient.patch
@@ -0,0 +1,11 @@
+--- MonetDB-4.10.2/src/mapi/clients/C/MapiClient.c
++++ MonetDB-4.10.2/src/mapi/clients/C/MapiClient.c
+@@ -1175,7 +1175,7 @@
+ {
+ opt *set = NULL;
+ int setlen;
+- char *language = "mil";
++ char *language = "sql";
+ int port = 0;
+ char *user = NULL;
+ char *passwd = NULL;
diff --git a/dev-db/monetdb/files/monetdb-4.10.2-gentoo-conf.patch b/dev-db/monetdb/files/monetdb-4.10.2-gentoo-conf.patch
new file mode 100644
index 000000000000..1c8fab677d23
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb-4.10.2-gentoo-conf.patch
@@ -0,0 +1,51 @@
+--- MonetDB-4.10.2/conf/MonetDB.conf.in
++++ MonetDB-4.10.2/conf/MonetDB.conf.in
+@@ -20,7 +20,7 @@
+ # the name of the database to use below. Note that you can use
+ # multiple databases, but that you have to edit the database name
+ # and restart MonetDB.
+-gdk_dbname=demo
++gdk_dbname=default
+
+ # The options below deal with various aspects of memory usage behaviour.
+ # If you don't know what these values mean, you should leave them alone.
+@@ -72,11 +72,6 @@
+ #
+ #gdk_version <ver> create BATs in old formats[out of date?]
+
+-
+-# General client Section
+-#=======================
+-#host=localhost #the host the server runs on
+-
+ # MonetDB Section
+ #================
+ # Administrator user name
+@@ -89,7 +84,7 @@
+ # Where do the MonetDB modules reside? The second path is for windows dlls.
+ monet_mod_path=@Xlibdir@@DIRSEP@@PACKAGE@@PATHSEP@@Xlibdir@@DIRSEP@bin
+ # Start Mserver in daemon mode, or start with MIL interactive interface?
+-monet_daemon=no
++monet_daemon=yes
+
+ # Monet Application Interface Section
+ #====================================
+@@ -101,7 +96,7 @@
+ mapi_debug=0
+ # The number of concurrent clients can be set using mapi_clients
+ # (smaller than 1 is not very useful)
+-#mapi_clients=2
++mapi_clients=10
+
+ # SQL Interface Section
+ #======================
+@@ -118,9 +113,6 @@
+ # default port to address an Mserver for an XQuery session
+ xquery_port=45789
+
+-# default port to address the HTTP server for pathfinder
+-pf_httpd_port=8080
+-
+ #output mode "dm" = pretty printed,
+ # "xml" = enforce XML with enclosing <XQueryResult> tags
+ xquery_output=dm
diff --git a/dev-db/monetdb/monetdb-4.10.2.ebuild b/dev-db/monetdb/monetdb-4.10.2.ebuild
new file mode 100644
index 000000000000..5c2104adf8a2
--- /dev/null
+++ b/dev-db/monetdb/monetdb-4.10.2.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/monetdb-4.10.2.ebuild,v 1.1 2006/02/24 21:33:50 grobian Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="A main-memory relational database for SQL, XQuery and MIL"
+HOMEPAGE="http://monetdb.cwi.nl/"
+IUSE="java readline debug static"
+PV_SQL=2.10.2
+PV_XQ=0.10.2
+PV_M=${PV}
+SRC_URI="mirror://sourceforge/monetdb/MonetDB-${PV_M}.tar.gz
+ mirror://sourceforge/monetdb/MonetDB-SQL-${PV_SQL}.tar.gz
+ mirror://sourceforge/monetdb/MonetDB-XQuery-${PV_XQ}.tar.gz"
+LICENSE="MonetDBPL-1.1 PathfinderPL-1.1"
+SLOT="0"
+KEYWORDS="~ppc ~ppc-macos ~x86"
+
+DEPEND="virtual/libc
+ >=sys-devel/gcc-3.3
+ java? ( >=virtual/jdk-1.4 )
+ java? ( dev-java/ant-core )
+ readline? ( >=sys-libs/readline-4.1 )
+ dev-libs/libxml2
+ >=dev-libs/libpcre-5"
+
+DATA_DIR="/var/lib/MonetDB"
+
+pkg_setup() {
+ # see if we have a dbfarm, and whether there is a version of monetdb
+ # installed which is not a version that we can 'upgrade' to.
+ if [ -x "${DATA_DIR}/dbfarm" ] || [ -x "${DATA_DIR}/log" ];
+ then
+ if [ -x "/usr/bin/monetdb-config" ] && \
+ [ "`/usr/bin/monetdb-config --version`" != "${PV_M}" ];
+ then
+ while read line; do eerror "${line}"; done <<EOF
+MonetDB ${MY_PV} cannot upgrade your existing SQL databases. You must
+export your existing SQL databases to a file using "JdbcClient -D" and
+then restore them when you have upgraded completey using
+"JdbcClient -f". Dumping and restoring of MIL and XQuery databases
+unfortunately is not possible at the moment.
+
+You must remove your entire database directory to continue.
+(database directory = ${DATA_DIR}).
+See the following url for more information on dumping and
+restoring your database:
+http://monetdb.cwi.nl/TechDocs/FrontEnds/SQL/upgrade/
+EOF
+ die "Cannot upgrade automatically."
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A} || die
+
+ epatch "${FILESDIR}/${PN}-${PV_M}"-gentoo-MapiClient.patch
+ epatch "${FILESDIR}/${PN}-${PV_M}"-gentoo-conf.patch
+}
+
+src_compile() {
+ # The tar has capitals, the ebuild doesn't...
+ cd "${WORKDIR}/MonetDB-${PV_M}"
+
+ local myconf=""
+
+ if use debug;
+ then
+ myconf="${myconf} --enable-debug"
+ else
+ myconf="${myconf} --enable-optimize --disable-assert"
+ fi
+
+ # Gentoo's amd64 doesn't allow 32-bits monetdb to compile, hence we switch
+ # to 64-bits Mserver here. Note that this also gives 64-bits OIDs.
+ use amd64 && myconf="${myconf} --enable-bits=64"
+
+ myconf="${myconf} $(use_with java)"
+ myconf="${myconf} $(use_with readline)"
+ myconf="${myconf} $(use_enable static)"
+
+ econf ${myconf} || die "econf monetdb failed"
+
+ # NOTE: the Makefiles have serious issues with parallel builds.
+ # Nothing is guaranteed to work but a single process build.
+ emake -j1 || die "emake monetdb failed"
+
+ # make the header files available to the sql and xquery compilation
+ mkdir include
+ cd include
+ ln -s ../src/common
+ ln -s ../src/gdk
+ ln -s ../src/monet
+ ln -s ../src/modules/plain
+ ln -s ../src/modules/contrib
+ ln -s ../src/mapi
+ ln -s ../src/mapi/clients/C
+ ln -s ../monetdb_config.h
+ ln -s ../sysdefs.h
+
+ cd "${WORKDIR}/MonetDB-${PV_M}"
+ mkdir -p lib/MonetDB
+ cd lib/MonetDB
+ find ../.. -name "lib_*" -exec ln -s {} ';' >& /dev/null
+ ln -s . .libs
+
+ cd "${WORKDIR}/MonetDB-${PV_M}/lib"
+ find .. -name "lib*" -exec ln -s {} ';' >& /dev/null
+ ln -s . .libs
+
+ # enable the fool-script
+ mkdir -p "${WORKDIR}/MonetDB-${PV_M}/bin"
+ MYWD=`echo ${WORKDIR} | sed -re 's/\//\\\\\//g'`
+ sed -r \
+ -e "s/\\$\_MONETDB\_INCLUDEDIR/${MYWD}\/MonetDB-${PV_M}\/include/g" \
+ -e "s/\\$\_MONETDB\_VERSION/${PV_M}/g" \
+ -e "s/\\$\_MONETDB\_LIBS/-L${MYWD}\/MonetDB-${PV_M}\/lib\/MonetDB -L${MYWD}\/MonetDB-${PV_M}\/lib/g" \
+ -e "s/\\$\_MONETDB\_MOD_PATH/${MYWD}\/MonetDB-${PV_M}\/include/g" \
+ -e "s/\\$\_MONETDB\_PREFIX/${MYWD}\/MonetDB-${PV_M}/g" \
+ -e "s/\\$\_MONETDB\_CLASSPATH/${MYWD}\/MonetDB-${PV_M}\/src\/mapi\/clients\/java\/mapi.jar/g" \
+ "${FILESDIR}/monetdb_config.sh" > \
+ "${WORKDIR}/MonetDB-${PV_M}/bin/monetdb-config"
+ chmod 744 "${WORKDIR}/MonetDB-${PV_M}/bin/monetdb-config"
+
+ # configure and make SQL
+ cd "${WORKDIR}/sql-${PV_SQL}"
+ econf MONETDB_CONFIG="${WORKDIR}/MonetDB-${PV_M}/bin/monetdb-config" \
+ "--with-monet=${WORKDIR}/MonetDB-${PV_M}" \
+ ${myconf} \
+ || die
+ emake -j1 || die "emake sql failed"
+
+ # configure and make XQuery
+ cd "${WORKDIR}/pathfinder-${PV_XQ}"
+ econf MONETDB_CONFIG="${WORKDIR}/MonetDB-${PV_M}/bin/monetdb-config" \
+ "--with-monet=${WORKDIR}/MonetDB-${PV_M} " \
+ ${myconf} || die
+ emake -j1 || die "emake xquery failed"
+}
+
+src_install() {
+ # The tar has capitals, the ebuild doesn't...
+ cd "${WORKDIR}/MonetDB-${PV_M}"
+ make DESTDIR="${D}" install || die "failed to install monetdb"
+
+ cd "${WORKDIR}/sql-${PV_SQL}"
+ make DESTDIR="${D}" install || die "failed to install sql"
+
+ cd "${WORKDIR}/pathfinder-${PV_XQ}"
+ make DESTDIR="${D}" install || die "failed to install xquery"
+
+ exeinto /etc/init.d/
+ newexe "${FILESDIR}/${PN}.init-4.8.2" monetdb || die "init.d script"
+
+ insinto /etc/conf.d/
+ newins "${FILESDIR}/${PN}.conf-4.8.2" monetdb || die "conf.d file"
+
+ diropts -m750
+ dodir "${DATA_DIR}" "/var/log/${PN}"
+
+ exeinto "${DATA_DIR}"
+ newexe "${FILESDIR}/${PN}-start.sh" "${PN}-start.sh" || die "start script"
+ newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" || die "stop script"
+
+ insinto "${DATA_DIR}"
+ newins "${FILESDIR}/${PN}-4.8.2-startup.mil" "${PN}-startup.mil" || die "startup MIL script"
+
+ if use java;
+ then
+ exeinto /usr/bin
+ newexe "${FILESDIR}/${PN}.JdbcClient-4.10.0" "JdbcClient" \
+ || die "JdbcClient alias"
+ fi
+
+ # set right permissions
+ chown -R monetdb:monetdb "${D}/${DATA_DIR}"
+ fowners monetdb:monetdb "/var/log/${PN}"
+
+ # remove testing framework and compiled tests
+ rm -f \
+ "${D}/usr/bin/Mapprove.py" \
+ "${D}/usr/bin/Mdiff" \
+ "${D}/usr/bin/Mfilter.py" \
+ "${D}/usr/bin/MkillUsers" \
+ "${D}/usr/bin/Mlog" \
+ "${D}/usr/bin/Mprofile.py" \
+ "${D}/usr/bin/Mtest.py" \
+ "${D}/usr/bin/Mtimeout" \
+ "${D}/usr/bin/prof.py" \
+ "${D}/usr/share/MonetDB/Mprofile-commands.lst" \
+ || die "removing testing tools"
+ rm -Rf \
+ "${D}/usr/lib/MonetDB/Tests" \
+ "${D}/usr/lib/sql/Tests" \
+ "${D}/usr/share/MonetDB/Tests" \
+ "${D}/usr/share/sql/Tests" \
+ || die "removing tests"
+ # remove pf_burk, upstream only compiles it, but doesn't use it
+ rm -f \
+ "${D}/usr/lib/MonetDB/pf_burk.mil" \
+ "${D}/usr/lib/MonetDB/lib_pf_burk.so.0.0.0" \
+ "${D}/usr/lib/MonetDB/lib_pf_burk.so.0" \
+ "${D}/usr/lib/MonetDB/lib_pf_burk.so" \
+ "${D}/usr/lib/MonetDB/lib_pf_burk.la" \
+ || die "removing incomplete Burkowski step support"
+ # remove windows cruft
+ find "${D}" -name "*.bat" | xargs rm -f || die "removing windows stuff"
+ # remove perl DBD on ppc-macos, since it gets installed in the wrong
+ # location and getting it right is not just a simple thing
+ use ppc-macos && rm -Rf "${D}/usr/Network" > /dev/null
+}
+
+src_test() {
+ # Upstream has tests that work in their "lab-setting". They prefer to wait
+ # using it when they provide a set of tests that is meant to be used
+ # outside their "labs". Those tests will also be supposed not to fail...
+ true
+}
+
+pkg_preinst() {
+ enewgroup monetdb
+ enewuser monetdb -1 /bin/bash "${DATA_DIR}" monetdb
+}
+
+pkg_postinst() {
+ while read line; do einfo "${line}"; done <<EOF
+MonetDB has been installed on your system, using data directory
+${DATA_DIR}.
+To get started using SQL, XQuery or MIL see:
+
+http://monetdb.cwi.nl/GettingStarted/
+EOF
+}