summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-10-30 20:58:31 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-10-30 20:58:31 +0000
commit1ebf83146abe9ad630faafb3c7a388a8b04706f3 (patch)
tree62907012b6bcc7657e1a013104cb752a61a46d3e /dev-db/hsqldb
parentstable on ppc64, bug #58633 (Manifest recommit) (diff)
downloadgentoo-2-1ebf83146abe9ad630faafb3c7a388a8b04706f3.tar.gz
gentoo-2-1ebf83146abe9ad630faafb3c7a388a8b04706f3.tar.bz2
gentoo-2-1ebf83146abe9ad630faafb3c7a388a8b04706f3.zip
inital import, ebuild contributed by
Diffstat (limited to 'dev-db/hsqldb')
-rw-r--r--dev-db/hsqldb/ChangeLog12
-rw-r--r--dev-db/hsqldb/Manifest7
-rw-r--r--dev-db/hsqldb/files/digest-hsqldb-1.7.2.41
-rw-r--r--dev-db/hsqldb/files/hsqldb20
-rw-r--r--dev-db/hsqldb/files/server.properties5
-rw-r--r--dev-db/hsqldb/files/sqltool.rc10
-rw-r--r--dev-db/hsqldb/hsqldb-1.7.2.4.ebuild85
-rw-r--r--dev-db/hsqldb/metadata.xml5
8 files changed, 145 insertions, 0 deletions
diff --git a/dev-db/hsqldb/ChangeLog b/dev-db/hsqldb/ChangeLog
new file mode 100644
index 000000000000..51390aba60e7
--- /dev/null
+++ b/dev-db/hsqldb/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-db/hsqldb
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.1 2004/10/30 20:58:31 axxo Exp $
+
+*hsqldb-1.7.2 (30 Oct 2004)
+
+ 30 Oct 2004; Thomas Matthijs <axxo@gentoo.org> +metadata.xml,
+ +hsqldb-1.7.2.ebuild:
+ inital import, ebuild contributed by Dan <dan@intuitivelyobvious.net>
+ Also alot of thanks too Hendrik Sticher <hendrik_sticher@gmx.de> for his
+ contribution
+
diff --git a/dev-db/hsqldb/Manifest b/dev-db/hsqldb/Manifest
new file mode 100644
index 000000000000..208f914213d4
--- /dev/null
+++ b/dev-db/hsqldb/Manifest
@@ -0,0 +1,7 @@
+MD5 f1249c317507f4edb7f155f18a63d215 hsqldb-1.7.2.4.ebuild 2461
+MD5 55539b6c1dcce862a0e4bb01947fe173 ChangeLog 395
+MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158
+MD5 2298ddc531a6368d3a5c0f13148f9fe2 files/server.properties 153
+MD5 eb7b48e9b818783d80ec3b27816f52d4 files/digest-hsqldb-1.7.2.4 64
+MD5 62f03cb4cc0ac93b7e5eb66164e777cf files/hsqldb 477
+MD5 392821346cd206b7b3060d45d2c6dd0f files/sqltool.rc 339
diff --git a/dev-db/hsqldb/files/digest-hsqldb-1.7.2.4 b/dev-db/hsqldb/files/digest-hsqldb-1.7.2.4
new file mode 100644
index 000000000000..32d48d5ae908
--- /dev/null
+++ b/dev-db/hsqldb/files/digest-hsqldb-1.7.2.4
@@ -0,0 +1 @@
+MD5 2c10305768241738a240759c1d090322 hsqldb_1_7_2_4.zip 2833859
diff --git a/dev-db/hsqldb/files/hsqldb b/dev-db/hsqldb/files/hsqldb
new file mode 100644
index 000000000000..b0c42698bf5a
--- /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
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/files/hsqldb,v 1.1 2004/10/30 20:58:31 axxo Exp $
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting HSQL Database"
+ hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping HSQL Databse"
+ hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb stop
+ eend $?
+}
diff --git a/dev-db/hsqldb/files/server.properties b/dev-db/hsqldb/files/server.properties
new file mode 100644
index 000000000000..1ee5a88e2d42
--- /dev/null
+++ b/dev-db/hsqldb/files/server.properties
@@ -0,0 +1,5 @@
+# Hsqldb Server cfg file.
+# See the Advanced Topics chapter of the Hsqldb User Guide.
+
+server.database.0=file:/var/lib/hsql/db1
+server.urlid.0=localhost
diff --git a/dev-db/hsqldb/files/sqltool.rc b/dev-db/hsqldb/files/sqltool.rc
new file mode 100644
index 000000000000..a65d6b4a5992
--- /dev/null
+++ b/dev-db/hsqldb/files/sqltool.rc
@@ -0,0 +1,10 @@
+# $Id sqltool.rc,v 1.11 2004/07/18 21:34:35 unsaved Exp $
+
+# 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
diff --git a/dev-db/hsqldb/hsqldb-1.7.2.4.ebuild b/dev-db/hsqldb/hsqldb-1.7.2.4.ebuild
new file mode 100644
index 000000000000..4817cc440402
--- /dev/null
+++ b/dev-db/hsqldb/hsqldb-1.7.2.4.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.7.2.4.ebuild,v 1.1 2004/10/30 20:58:31 axxo Exp $
+
+inherit java-pkg eutils
+
+DESCRIPTION="HSQLDB is the leading SQL relational database engine written in Java."
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV//./_}.zip"
+HOMEPAGE="http://hsqldb.sourceforge.net"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="jikes doc"
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant-core
+ =dev-java/servletapi-2.4*"
+RDEPEND=">=virtual/jre-1.4"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/lib
+ rm *.jar
+ java-pkg_jar-from servletapi-2.3 servletapi-2.3.jar servlet.jar
+ cd ..
+ sed -i -r \
+ -e "s/etc\/sysconfig/etc\/conf.d/g" \
+ bin/hsqldb
+ einfo "Cleaning build directory..."
+ ant -q -f build/build.xml cleanall || die "failed too clean"
+
+ einfo "Preparing configuration files..."
+ mkdir conf
+ JAVA_CMD=$(java-config -J)
+ HSQLDB_JAR=/usr/share/hsqldb/lib/hsqldb.jar
+ sed -e "s/^JAVA_EXECUTABLE=.*$/JAVA_EXECUTABLE=${JAVA_CMD//\//\\/}/g" \
+ -e "s/^HSQLDB_JAR_PATH=.*$/HSQLDB_JAR_PATH=${HSQLDB_JAR//\//\\/}/g" \
+ -e "s/^SERVER_HOME=.*$/SERVER_HOME=\/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
+ cp ${FILESDIR}/server.properties conf
+ cp ${FILESDIR}/sqltool.rc conf
+}
+
+src_compile() {
+ local antflags="-f build/build.xml"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ antflags="${antflags} jar jarclient jarsqltool"
+ use doc && antflags="${antflags} javadocdev"
+ einfo "Starting compilation..."
+ ant -q ${antflags} || die "Compilation failed."
+}
+
+src_install() {
+ dojar lib/hsql*.jar
+ dodoc doc/*.txt
+ use doc && dohtml -r doc/src
+
+ doinitd ${FILESDIR}/hsqldb
+ doconfd conf/hsqldb
+ insinto /etc/hsqldb
+ insopts -m 0600
+ doins conf/server.properties
+ doins conf/sqltool.rc
+
+
+ dodir /var/lib/hsqldb/bin
+ keepdir /var/lib/hsqldb
+ exeinto /var/lib/hsqldb/bin
+ doexe bin/hsqldb
+ dosym /etc/hsqldb/server.properties /var/lib/hsqldb/server.properties
+ dosym /etc/hsqldb/sqltool.rc /var/lib/hsqldb/sqltool.rc
+}
+
+pkg_postinst() {
+ if ! enewgroup hsqldb || ! enewuser hsqldb -1 /bin/sh /dev/hull hsqldb; then
+ die "Unable to add hsqldb user and hsqldb group."
+ fi
+
+ chown -R hsqldb:hsqldb /var/lib/hsqldb
+ chmod o-rwx /var/lib/hsqldb
+}
+
diff --git a/dev-db/hsqldb/metadata.xml b/dev-db/hsqldb/metadata.xml
new file mode 100644
index 000000000000..7303cef96964
--- /dev/null
+++ b/dev-db/hsqldb/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>