diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-22 18:39:03 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-22 18:39:03 +0000 |
commit | b7683cd809e15d0bf6d3a7911502c84922cacc0c (patch) | |
tree | 1830d4462cd7fcb31f36eb41cb36b236c92be1e5 /dev-db | |
parent | added examples useflag to dev-db/c-jdbc (diff) | |
download | historical-b7683cd809e15d0bf6d3a7911502c84922cacc0c.tar.gz historical-b7683cd809e15d0bf6d3a7911502c84922cacc0c.tar.bz2 historical-b7683cd809e15d0bf6d3a7911502c84922cacc0c.zip |
Initial import, fixes #62512
Package-Manager: portage-2.0.51-r14
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/c-jdbc/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/c-jdbc/Manifest | 9 | ||||
-rw-r--r-- | dev-db/c-jdbc/c-jdbc-1.0.4.ebuild | 147 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/c-jdbc-1.0.4-gentoo.patch | 121 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/cjdbc-conf | 6 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/cjdbc-init | 37 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/console.sh | 14 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/controller.sh | 23 | ||||
-rw-r--r-- | dev-db/c-jdbc/files/digest-c-jdbc-1.0.4 | 1 | ||||
-rw-r--r-- | dev-db/c-jdbc/metadata.xml | 5 |
10 files changed, 374 insertions, 0 deletions
diff --git a/dev-db/c-jdbc/ChangeLog b/dev-db/c-jdbc/ChangeLog new file mode 100644 index 000000000000..ca03f1f55d5e --- /dev/null +++ b/dev-db/c-jdbc/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/c-jdbc +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/c-jdbc/ChangeLog,v 1.1 2005/01/22 18:39:03 luckyduck Exp $ + +*c-jdbc-1.0.4 (22 Jan 2005) + + 22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml, + +files/c-jdbc-1.0.4-gentoo.patch, +files/cjdbc-conf, +files/cjdbc-init, + +files/console.sh, +files/controller.sh, +c-jdbc-1.0.4.ebuild: + Initial import. Fixes #62512 + diff --git a/dev-db/c-jdbc/Manifest b/dev-db/c-jdbc/Manifest new file mode 100644 index 000000000000..ad007a225205 --- /dev/null +++ b/dev-db/c-jdbc/Manifest @@ -0,0 +1,9 @@ +MD5 87c9c52963cacba618b863f8f01cca38 c-jdbc-1.0.4.ebuild 3756 +MD5 d8812af612325ff1cf4014b7881a4829 ChangeLog 469 +MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158 +MD5 62ac24f25532a4183e3ed1e1480878e7 files/console.sh 606 +MD5 a8d6fd20a9ab0d2f3d6b8c626cf6cf8b files/controller.sh 1118 +MD5 6f7e7b9ace7df13d6bab70f487a31189 files/c-jdbc-1.0.4-gentoo.patch 5047 +MD5 599e87927c86dfe53eaf0415b5bae480 files/digest-c-jdbc-1.0.4 70 +MD5 c366d1203f27f5438c29bc3a5724ab73 files/cjdbc-conf 313 +MD5 9c7589e63d5760dde9a3d56fdc58e6a7 files/cjdbc-init 926 diff --git a/dev-db/c-jdbc/c-jdbc-1.0.4.ebuild b/dev-db/c-jdbc/c-jdbc-1.0.4.ebuild new file mode 100644 index 000000000000..52a13dadb34e --- /dev/null +++ b/dev-db/c-jdbc/c-jdbc-1.0.4.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/c-jdbc/c-jdbc-1.0.4.ebuild,v 1.1 2005/01/22 18:39:03 luckyduck Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Transparent Database Clustering Middleware" +HOMEPAGE="http://c-jdbc.objectweb.org" +SRC_URI="http://download.forge.objectweb.org/${PN}/${P}-src.tar.gz" +LICENSE="BSD" +SLOT="1" +KEYWORDS="~amd64 ~x86" +IUSE="doc jikes examples" +DEPEND=">=virtual/jdk-1.3 + jikes?( >=dev-java/jikes-1.21 )" +RDEPEND=">=virtual/jre-1.3 + dev-java/ant + =dev-java/commons-cli-1* + =dev-java/crimson-1* + =dev-java/dom4j-1.5* + =dev-java/dtdparser-1.21* + =dev-java/jaxen-1.1_beta2* + >=dev-java/jcommon-0.9.7 + >=dev-java/jdepend-2.6 + >=dev-java/jdbc2-stdext-2.0* + >=dev-java/jgroups-2.2.7 + =dev-java/jfreechart-0.9.21* + >=dev-java/kunststoff-2.0.2 + >=dev-java/log4j-1.2.8 + =dev-java/mx4j-2.1* + >=dev-java/regexp-1.3 + >=dev-java/xalan-2.5.2 + >=dev-java/xml-commons-1.0_beta2 + =dev-db/octopus-3.0*" + +S=${WORKDIR}/${P}-src + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/c-jdbc-1.0.4-gentoo.patch + + cd ${S}/lib + for i in `find . -name "*.jar"` + do + rm -f *.jar + done + + java-pkg_jar-from ant-core ant.jar + java-pkg_jar-from commons-cli-1 + java-pkg_jar-from crimson-1 + java-pkg_jar-from dtdparser-1.21 + java-pkg_jar-from regexp + java-pkg_jar-from jaxen-1.1 + java-pkg_jar-from jcommon + java-pkg_jar-from jdbc2-stdext + java-pkg_jar-from jfreechart + java-pkg_jar-from kunststoff-2.0 + java-pkg_jar-from log4j + java-pkg_jar-from jgroups + java-pkg_jar-from dom4j-1 + + cd ${S}/lib/jmx + java-pkg_jar-from mx4j-2.1 + java-pkg_jar-from xalan + java-pkg_jar-from xml-commons xml-apis.jar + + cd ${S}/lib/other + java-pkg_jar-from jdepend + + cd ${S}/lib/octopus + java-pkg_jar-from octopus-3.0 +} + +src_compile() { + local antflags="jar" + use doc && antflags="${antflags} javadoc" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "compilation failed" +} + +src_install() { + # install the jar file + java-pkg_dojar build/jar/*.jar + dodoc README.txt doc/HISTORY.txt doc/LICENSE.txt + + # install the controller config under /etc + dodir /etc/c-jdbc + cp -r config/controller/* ${D}/etc/c-jdbc + rm -rf config/controller config/izpack + + # install the startup scripts + newbin ${FILESDIR}/console.sh cjdbc-console + newsbin ${FILESDIR}/controller.sh cjdbc-controller + + # init script und conf.d file + dodir /etc/init.d + cp ${FILESDIR}/cjdbc-init ${D}/etc/init.d/cjdbc + + dodir /etc/conf.d + cp ${FILESDIR}/cjdbc-conf ${D}/etc/conf.d/cjdbc + + # directories which we need + mv lib/jmx/xsl xsl + local dir="config xml xsl" + for i in ${dir} + do + cp -r ${i} ${D}usr/share/${PN}-${SLOT} + done + + # an environment file to set the home directory + dodir /etc/env.d/ + echo "CJDBC_HOME=/usr/share/${PN}-${SLOT}" > ${D}etc/env.d/20cjdbc + + # add a user for cjdbc + if ! enewgroup cjdbc || ! enewuser cjdbc -1 /bin/sh /dev/null cjdbc; then + die "Unable to add cjdbc user and cjdbc group." + fi + + # we need a log directory + dodir /var/log/c-jdbc + touch ${D}/var/log/c-jdbc/cjdbc.log + touch ${D}/var/log/c-jdbc/request.log + fperms 775 /var/log/c-jdbc/cjdbc.log + fperms 775 /var/log/c-jdbc/request.log + fowners cjdbc:cjdbc /var/log/c-jdbc/cjdbc.log + fowners cjdbc:cjdbc /var/log/c-jdbc/request.log + + + # install the documentation and examples (depends on use-flags) + if use doc; then + java-pkg_dohtml -r build/doc/api/* + fi + if use examples; then + dodir /usr/share/doc/${PF}/examples + cp -r doc/examples/* ${D}usr/share/doc/${PF}/examples + fi +} + +pkg_postinst() { + ewarn "" + ewarn "Default config was placed in /etc/c-jdbc/controller.xml." + ewarn "Edit this one to fit your needs or specify another filename" + ewarn "in /etc/conf.d/cjdbc." + ewarn "" +} diff --git a/dev-db/c-jdbc/files/c-jdbc-1.0.4-gentoo.patch b/dev-db/c-jdbc/files/c-jdbc-1.0.4-gentoo.patch new file mode 100644 index 000000000000..e0d09975b594 --- /dev/null +++ b/dev-db/c-jdbc/files/c-jdbc-1.0.4-gentoo.patch @@ -0,0 +1,121 @@ +diff -urpN c-jdbc-1.0.4-src.orig/build.properties c-jdbc-1.0.4-src/build.properties +--- c-jdbc-1.0.4-src.orig/build.properties 2004-12-27 01:22:43.930688624 +0100 ++++ c-jdbc-1.0.4-src/build.properties 2004-12-27 01:23:38.851339416 +0100 +@@ -35,6 +35,7 @@ javac.deprecation = false + javac.optimize = true + javac.encoding = UTF8 + javac.target = 1.3 ++javac.source = 1.3 + + # Javadoc bottom text + javadoc.bottom = Copyright © 2002, 2004 - ObjectWeb Consortium - All Rights Reserved. +@@ -79,4 +80,4 @@ test.timeout=600000 + cvs.user.name=modrzyk + cvs.url=cvs.c-jdbc.forge.objectweb.org:/cvsroot/c-jdbc + cvs.noexec=false +-cvs.noexec=true +\ No newline at end of file ++cvs.noexec=true +diff -urpN c-jdbc-1.0.4-src.orig/build.xml c-jdbc-1.0.4-src/build.xml +--- c-jdbc-1.0.4-src.orig/build.xml 2004-12-27 01:22:43.937687560 +0100 ++++ c-jdbc-1.0.4-src/build.xml 2004-12-27 01:23:38.852339264 +0100 +@@ -217,6 +217,7 @@ + destdir="${build.classes}" + includes="org/objectweb/cjdbc/common/util/Constants.java" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -238,6 +239,7 @@ + destdir="${build.classes}" + includes="org/objectweb/cjdbc/common/**/*" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -270,6 +272,7 @@ + includes="org/objectweb/cjdbc/driver/**/*" + excludes="${src.jdk1.3}" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -287,6 +290,7 @@ + destdir="${build.classes}" + includes="org/objectweb/cjdbc/controller/**/*" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -305,6 +309,7 @@ + destdir="${build.classes}" + includes="org/objectweb/cjdbc/console/**/*" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -323,6 +328,7 @@ + destdir="${build.test.classes}" + includes="org/objectweb/cjdbc/requestplayer/**/*" + target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath" + debug="${javac.debug}" + depend="${javac.depend}" +@@ -340,7 +346,8 @@ + <javac srcdir="${test.src}" + destdir="${build.test.classes}/" + excludes="org/objectweb/cjdbc/requestplayer/**/*" +- target="${javac.target}" ++ target="${javac.target}" ++ source="${javac.source}" + classpathref="classpath-test" + debug="${javac.debug}" + depend="${javac.depend}" +diff -urpN c-jdbc-1.0.4-src.orig/config/log4j.properties c-jdbc-1.0.4-src/config/log4j.properties +--- c-jdbc-1.0.4-src.orig/config/log4j.properties 2004-12-27 01:22:43.931688472 +0100 ++++ c-jdbc-1.0.4-src/config/log4j.properties 2004-12-27 01:40:51.594338616 +0100 +@@ -11,7 +11,7 @@ log4j.appender.Console.layout.Conversion + # Requests appender is used to log requests received by the controller. + # These log can be automatically replayed using the request player. + log4j.appender.Requests=org.apache.log4j.RollingFileAppender +-log4j.appender.Requests.File=${cjdbc.home}/log/request.log ++log4j.appender.Requests.File=/var/log/c-jdbc/request.log + log4j.appender.Requests.MaxFileSize=100MB + log4j.appender.Requests.MaxBackupIndex=5 + log4j.appender.Requests.layout=org.apache.log4j.PatternLayout +@@ -19,7 +19,7 @@ log4j.appender.Requests.layout.Conversio + + # Filetrace is used for C-JDBC log files. + log4j.appender.Filetrace=org.apache.log4j.RollingFileAppender +-log4j.appender.Filetrace.File=${cjdbc.home}/log/cjdbc.log ++log4j.appender.Filetrace.File=/var/log/c-jdbc/cjdbc.log + log4j.appender.Filetrace.MaxFileSize=10MB + log4j.appender.Filetrace.MaxBackupIndex=0 + log4j.appender.Filetrace.layout=org.apache.log4j.PatternLayout +diff -urpN c-jdbc-1.0.4-src.orig/src/org/objectweb/cjdbc/console/monitoring/MonitoringGraph.java c-jdbc-1.0.4-src/src/org/objectweb/cjdbc/console/monitoring/MonitoringGraph.java +--- c-jdbc-1.0.4-src.orig/src/org/objectweb/cjdbc/console/monitoring/MonitoringGraph.java 2004-12-27 01:22:43.628734528 +0100 ++++ c-jdbc-1.0.4-src/src/org/objectweb/cjdbc/console/monitoring/MonitoringGraph.java 2004-12-27 01:23:38.852339264 +0100 +@@ -36,8 +36,8 @@ import org.jfree.chart.ChartPanel; + import org.jfree.chart.ChartUtilities; + import org.jfree.chart.JFreeChart; + import org.jfree.chart.plot.PlotOrientation; +-import org.jfree.data.XYSeries; +-import org.jfree.data.XYSeriesCollection; ++import org.jfree.data.xy.XYSeries; ++import org.jfree.data.xy.XYSeriesCollection; + import org.jfree.ui.RefineryUtilities; + import org.objectweb.cjdbc.common.monitor.AbstractDataCollector; + import org.objectweb.cjdbc.console.jmx.DataCollectorJmxClient; +@@ -466,4 +466,4 @@ public class MonitoringGraph extends Thr + { + this.displayFrequency = displayFrequency; + } +-} +\ No newline at end of file ++} diff --git a/dev-db/c-jdbc/files/cjdbc-conf b/dev-db/c-jdbc/files/cjdbc-conf new file mode 100644 index 000000000000..daa4d400e716 --- /dev/null +++ b/dev-db/c-jdbc/files/cjdbc-conf @@ -0,0 +1,6 @@ +# Copyright 2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/dev-db/c-jdbc/files/cjdbc-conf,v 1.1 2005/01/22 18:39:03 luckyduck Exp $ + +# the controller config, has to be placed in /etc/c-jdbc +con_conf="controller.xml" diff --git a/dev-db/c-jdbc/files/cjdbc-init b/dev-db/c-jdbc/files/cjdbc-init new file mode 100644 index 000000000000..0ecb703802c8 --- /dev/null +++ b/dev-db/c-jdbc/files/cjdbc-init @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/c-jdbc/files/cjdbc-init,v 1.1 2005/01/22 18:39:03 luckyduck Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/c-jdbc/${con_conf} ] ; then + eerror "You will need an controller config first" + eerror "There is a sample, /etc/c-jdbc/controller.xml" + eerror "You can change the name of the configuration" + eerror "file if you edit /etc/conf.d/c-jdbc" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting c-jdbc" + start-stop-daemon --start --quiet -c cjdbc:cjdbc \ + --exec /usr/sbin/cjdbc-controller -- \ + -f /etc/c-jdbc/${con_conf} >& /dev/null & + eend $? +} + +stop() { + ebegin "Stopping c-jdbc" + controller=`ps ax | grep java|grep c-jdbc|awk {'print $1'}` + for pid in ${controller}; + do + kill ${pid} + done + eend $? +} diff --git a/dev-db/c-jdbc/files/console.sh b/dev-db/c-jdbc/files/console.sh new file mode 100644 index 000000000000..96d379430f5a --- /dev/null +++ b/dev-db/c-jdbc/files/console.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +java=`java-config -J` + +cp=`java-config -p kunststoff-2.0`:`java-config -p dtdparser-1.21` +cp=${cp}:`java-config -p crimson-1`:`java-config -p c-jdbc-1` +cp=${cp}:`java-config -p jcommon`:`java-config -p jfreechart` +cp=${cp}:`java-config -p commons-cli-1`:`java-config -p mx4j-2.1` +cp=${cp}:`java-config -p log4j`:`java-config -p dom4j-1` +cp=${cp}:`java-config -p jaxen-1.1` +cp=${cp}:${CJDBC_HOME}/xml:${CJDBC_HOME}/config/language + +# Java Command. +${java} -classpath ${cp} -Dswing.defaultlaf=com.incors.plaf.kunststoff.KunststoffLookAndFeel org.objectweb.cjdbc.console.text.ConsoleLauncher "$@" diff --git a/dev-db/c-jdbc/files/controller.sh b/dev-db/c-jdbc/files/controller.sh new file mode 100644 index 000000000000..621e2cad7309 --- /dev/null +++ b/dev-db/c-jdbc/files/controller.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# JAVA setup. +# +# We try to use first the java JVM in JAVA_HOME and if not found, +# we use the one found in the path. +# You can specify additional options to give to the Java JVM in the +# JAVA_OPTS environment variable. +java=`java-config -J` +sax_parser_class=org.apache.crimson.parser.XMLReaderImpl + +cp=${CJDBC_HOME}/config/language:${CJDBC_HOME}/config/controller:$CJDBC_HOME/xml +cp=${cp}:${CJDBC_HOME}/config/virtualdatabase:${CJDBC_HOME}/config:${CJDBC_HOME}/xsl +cp=${cp}:`java-config -p regexp`:`java-config -p xerces-2` +cp=${cp}:`java-config -p octopus-3.0`:`java-config -p c-jdbc-1` +cp=${cp}:`java-config -p hsqldb`:`java-config -p crimson-1` +cp=${cp}:`java-config -p jgroups`:`java-config -p dom4j-1` +cp=${cp}:`java-config -p jaxen-1.1`:`java-config -p log4j` +cp=${cp}:`java-config -p commons-cli-1`:`java-config -p mx4j-2.1` +cp=${cp}:`java-config -p xalan` + +# Java Command. +${java} -classpath ${cp} -Xmx200m -Xms200m -Dcjdbc.home=${CJDBC_HOME} -Dorg.xml.sax.driver=${sax_parser_class} -Djava.security.policy=${CJDBC_HOME}/config/java.policy org.objectweb.cjdbc.controller.core.Controller "$@" diff --git a/dev-db/c-jdbc/files/digest-c-jdbc-1.0.4 b/dev-db/c-jdbc/files/digest-c-jdbc-1.0.4 new file mode 100644 index 000000000000..0570d0543896 --- /dev/null +++ b/dev-db/c-jdbc/files/digest-c-jdbc-1.0.4 @@ -0,0 +1 @@ +MD5 fd927bc54a8014a4ba6b23853abbdfa4 c-jdbc-1.0.4-src.tar.gz 29619297 diff --git a/dev-db/c-jdbc/metadata.xml b/dev-db/c-jdbc/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-db/c-jdbc/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>java</herd> +</pkgmetadata> |