summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2006-01-25 19:27:31 +0000
committerFabian Groffen <grobian@gentoo.org>2006-01-25 19:27:31 +0000
commit60efe2811983d471c9167c355b1ed8e30cd15827 (patch)
tree26e86cb38e71e188e610c86f97a135077cf3e034 /dev-db/monetdb
parent(#120324) Missed a couple of build-time modular X deps. (diff)
downloadhistorical-60efe2811983d471c9167c355b1ed8e30cd15827.tar.gz
historical-60efe2811983d471c9167c355b1ed8e30cd15827.tar.bz2
historical-60efe2811983d471c9167c355b1ed8e30cd15827.zip
New upstream release: MonetDB 4.10.0 "Earth"
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'dev-db/monetdb')
-rw-r--r--dev-db/monetdb/ChangeLog13
-rw-r--r--dev-db/monetdb/Manifest10
-rw-r--r--dev-db/monetdb/files/digest-monetdb-4.10.03
-rw-r--r--dev-db/monetdb/files/monetdb-4.10.0-darwin.patch22
-rw-r--r--dev-db/monetdb/files/monetdb-4.10.0-gentoo-MapiClient.patch11
-rw-r--r--dev-db/monetdb/files/monetdb-4.10.0-gentoo-conf.patch51
-rw-r--r--dev-db/monetdb/files/monetdb-start.sh2
-rw-r--r--dev-db/monetdb/files/monetdb.JdbcClient-4.10.02
-rw-r--r--dev-db/monetdb/monetdb-4.10.0.ebuild236
9 files changed, 345 insertions, 5 deletions
diff --git a/dev-db/monetdb/ChangeLog b/dev-db/monetdb/ChangeLog
index 6549f2c483c6..7d1b7cf4573b 100644
--- a/dev-db/monetdb/ChangeLog
+++ b/dev-db/monetdb/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-db/monetdb
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/ChangeLog,v 1.3 2005/09/16 22:08:49 grobian Exp $
+# 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 $
+
+*monetdb-4.10.0 (25 Jan 2006)
+
+ 25 Jan 2006; Fabian Groffen <grobian@gentoo.org>
+ +files/monetdb.JdbcClient-4.10.0, +files/monetdb-4.10.0-darwin.patch,
+ +files/monetdb-4.10.0-gentoo-MapiClient.patch,
+ +files/monetdb-4.10.0-gentoo-conf.patch, files/monetdb-start.sh,
+ +monetdb-4.10.0.ebuild:
+ New upstream release: MonetDB 4.10.0 "Earth"
*monetdb-4.8.2-r1 (16 Sep 2005)
diff --git a/dev-db/monetdb/Manifest b/dev-db/monetdb/Manifest
index 3cf5bbd215e9..d02db32caf16 100644
--- a/dev-db/monetdb/Manifest
+++ b/dev-db/monetdb/Manifest
@@ -1,14 +1,20 @@
+MD5 de9150442c9d7cae3fbfe1ac6fcbb250 monetdb-4.10.0.ebuild 7506
MD5 5b401347bd869ace7230323503aa0662 monetdb-4.8.2-r1.ebuild 6937
MD5 74ff565ca22df33485befde441d66bd8 monetdb-4.8.2.ebuild 6331
-MD5 52e68e41d4b9946f7e7adebb69d98d98 ChangeLog 1011
+MD5 434e0b2a29505175085ed68eecd4c32b ChangeLog 1355
MD5 ca9ff61fbe7d29f666c1ffdc61bb168d metadata.xml 801
+MD5 3af6d54d8dda2e91b05c85b1cb02a716 files/monetdb-4.10.0-gentoo-MapiClient.patch 272
MD5 a9a2dbac1941306b506077c635415e7e files/monetdb_config.sh 653
MD5 739a372d2ff096d674002e3253eb4dad files/monetdb-4.8.2-startup.mil 929
-MD5 e97ba2fc5180dac248822b8264841013 files/monetdb-start.sh 379
+MD5 5b76112b87c278c7fed8e5d1ea998a06 files/monetdb-start.sh 382
MD5 be0eaed8b26f07c98efcbb9d59e15a64 files/monetdb-4.8.2-gentoo-conf.patch 1038
MD5 cae0e46fdfa11ea1f0be120005076b83 files/monetdb.init-4.8.2 328
MD5 09aa9eafe8a4c3073b669baa9ea6ea6d files/monetdb.conf-4.8.2 768
MD5 d952989ef380ae6c092f7ad1da16e77d files/digest-monetdb-4.8.2 299
+MD5 da448c75e375ac0c3b5c20ef580214b4 files/monetdb.JdbcClient-4.10.0 65
MD5 324a083e56c76f02a3ba9ac34c188066 files/monetdb-4.8.2-gentoo-MapiClient.patch 311
MD5 07e71d02ee02ca4ebfbc4db68fa4f40e files/monetdb-stop.sh 626
MD5 d952989ef380ae6c092f7ad1da16e77d files/digest-monetdb-4.8.2-r1 299
+MD5 53322611b7f167b64ce3f3d51c5eb3ec files/monetdb-4.10.0-darwin.patch 672
+MD5 62e9f38efbb9920c6a631dd0879e198b files/monetdb-4.10.0-gentoo-conf.patch 1610
+MD5 e2af0d3b334f83320053b7c871f9b112 files/digest-monetdb-4.10.0 213
diff --git a/dev-db/monetdb/files/digest-monetdb-4.10.0 b/dev-db/monetdb/files/digest-monetdb-4.10.0
new file mode 100644
index 000000000000..47ac95efe8b2
--- /dev/null
+++ b/dev-db/monetdb/files/digest-monetdb-4.10.0
@@ -0,0 +1,3 @@
+MD5 ae0b8ac2c14c5e5621eb5d27faf4c6c4 MonetDB-4.10.0.tar.gz 6502266
+MD5 8c32a8f8e872e85c492f72e6d167257c MonetDB-SQL-2.10.0.tar.gz 13129999
+MD5 9f39bb4559e779fabc72d48c74c9a4b6 MonetDB-XQuery-0.10.0.tar.gz 5040976
diff --git a/dev-db/monetdb/files/monetdb-4.10.0-darwin.patch b/dev-db/monetdb/files/monetdb-4.10.0-darwin.patch
new file mode 100644
index 000000000000..5c838da096b5
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb-4.10.0-darwin.patch
@@ -0,0 +1,22 @@
+--- pathfinder-0.10.0/compiler/core/simplify.c
++++ pathfinder-0.10.0/compiler/core/simplify.c
+@@ -109,7 +109,7 @@
+ * process the function bodies. Hence, they will be replaced
+ * there as well.
+ */
+-PFarray_t *var_env[HASH_BUCKETS];
++static PFarray_t *var_env[HASH_BUCKETS];
+
+ #ifndef PFsimplify_PANIC
+ #define PFsimplify_PANIC PANIC
+--- pathfinder-0.10.0/compiler/core/coreopt.c
++++ pathfinder-0.10.0/compiler/core/coreopt.c
+@@ -100,7 +100,7 @@
+ * process the function bodies. Hence, they will be replaced
+ * there as well.
+ */
+-PFarray_t *var_env[HASH_BUCKETS];
++static PFarray_t *var_env[HASH_BUCKETS];
+
+ #ifndef PFcoreopt_PANIC
+ #define PFcoreopt_PANIC PANIC
diff --git a/dev-db/monetdb/files/monetdb-4.10.0-gentoo-MapiClient.patch b/dev-db/monetdb/files/monetdb-4.10.0-gentoo-MapiClient.patch
new file mode 100644
index 000000000000..0adb5d24d3e8
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb-4.10.0-gentoo-MapiClient.patch
@@ -0,0 +1,11 @@
+--- MonetDB-4.10.0/src/mapi/clients/C/MapiClient.c
++++ MonetDB-4.10.0/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.0-gentoo-conf.patch b/dev-db/monetdb/files/monetdb-4.10.0-gentoo-conf.patch
new file mode 100644
index 000000000000..7afc1e4442a4
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb-4.10.0-gentoo-conf.patch
@@ -0,0 +1,51 @@
+--- MonetDB-4.10.0/conf/MonetDB.conf.in
++++ MonetDB-4.10.0/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/files/monetdb-start.sh b/dev-db/monetdb/files/monetdb-start.sh
index b43f4d924e3b..6381e3aed6ec 100644
--- a/dev-db/monetdb/files/monetdb-start.sh
+++ b/dev-db/monetdb/files/monetdb-start.sh
@@ -8,7 +8,7 @@ echo `date` Mserver started, PID: $MPID >> $LOG
rm -f ~monetdb/Mserver.pid > /dev/null
sleep 2
ALIVE=`ps --no-heading --format pid -p $MPID`
-if [ $ALIVE -eq $MPID ]; then
+if [ "$ALIVE" == "$MPID" ]; then
echo $MPID > ~monetdb/Mserver.pid
else
echo Mserver died immediately
diff --git a/dev-db/monetdb/files/monetdb.JdbcClient-4.10.0 b/dev-db/monetdb/files/monetdb.JdbcClient-4.10.0
new file mode 100644
index 000000000000..22ba9a3836a8
--- /dev/null
+++ b/dev-db/monetdb/files/monetdb.JdbcClient-4.10.0
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/MonetDB/lib/jdbcclient-1.3.jar $*
diff --git a/dev-db/monetdb/monetdb-4.10.0.ebuild b/dev-db/monetdb/monetdb-4.10.0.ebuild
new file mode 100644
index 000000000000..795e65fece4c
--- /dev/null
+++ b/dev-db/monetdb/monetdb-4.10.0.ebuild
@@ -0,0 +1,236 @@
+# 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.0.ebuild,v 1.1 2006/01/25 19:27:31 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.0
+PV_XQ=0.10.0
+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-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`" != "4.10.0" ];
+ 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
+ epatch "${FILESDIR}/${PN}-${PV_M}"-darwin.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-${PV_M}" "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
+}