summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-12-19 21:58:05 +0000
committerVlastimil Babka <caster@gentoo.org>2007-12-19 21:58:05 +0000
commit9af9510a0f0a7a20cf29746e57e9ff7da06751e0 (patch)
treeae798f6de5a4364d674c1ed37c966a2490943739 /dev-db/hsqldb
parentAdd pch flag for qt-webkit (diff)
downloadhistorical-9af9510a0f0a7a20cf29746e57e9ff7da06751e0.tar.gz
historical-9af9510a0f0a7a20cf29746e57e9ff7da06751e0.tar.bz2
historical-9af9510a0f0a7a20cf29746e57e9ff7da06751e0.zip
Version bump, security bug #201799.
Package-Manager: portage-2.1.4_rc10
Diffstat (limited to 'dev-db/hsqldb')
-rw-r--r--dev-db/hsqldb/ChangeLog10
-rw-r--r--dev-db/hsqldb/Manifest44
-rw-r--r--dev-db/hsqldb/files/35hsqldb1
-rw-r--r--dev-db/hsqldb/files/bundle-all-tools.patch16
-rw-r--r--dev-db/hsqldb/files/digest-hsqldb-1.8.0.93
-rw-r--r--dev-db/hsqldb/files/hsqldb4
-rw-r--r--dev-db/hsqldb/files/resolve-config-softlinks.patch22
-rw-r--r--dev-db/hsqldb/files/server.properties20
-rw-r--r--dev-db/hsqldb/files/sqltool.rc20
-rw-r--r--dev-db/hsqldb/hsqldb-1.8.0.9.ebuild161
10 files changed, 290 insertions, 11 deletions
diff --git a/dev-db/hsqldb/ChangeLog b/dev-db/hsqldb/ChangeLog
index 7bd1649db730..5120f1eafffa 100644
--- a/dev-db/hsqldb/ChangeLog
+++ b/dev-db/hsqldb/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-db/hsqldb
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.29 2007/10/24 03:23:03 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.30 2007/12/19 21:58:05 caster Exp $
+
+*hsqldb-1.8.0.9 (19 Dec 2007)
+
+ 19 Dec 2007; Vlastimil Babka <caster@gentoo.org> +files/35hsqldb,
+ +files/bundle-all-tools.patch, files/hsqldb,
+ +files/resolve-config-softlinks.patch, +files/server.properties,
+ +files/sqltool.rc, +hsqldb-1.8.0.9.ebuild:
+ Version bump, security bug #201799.
24 Oct 2007; William L. Thomson Jr. <wltjr@gentoo.org>
-files/server.properties, -files/sqltool.rc, -hsqldb-1.7.3.1-r1.ebuild,
diff --git a/dev-db/hsqldb/Manifest b/dev-db/hsqldb/Manifest
index e7679b153e25..7dbf936fc33b 100644
--- a/dev-db/hsqldb/Manifest
+++ b/dev-db/hsqldb/Manifest
@@ -1,24 +1,49 @@
-AUX hsqldb 461 RMD160 243068472de473fbef068ffc328d50f3de1f8d0b SHA1 187a7e3ec9386c70bd5ed9282dcef71644f6ba13 SHA256 6d0bc448f54fee5beadef10e3ddd5750f495abc46e2be4825963dabbddc5151a
-MD5 e49b3a828d2623b4b12e5546ee5c7da6 files/hsqldb 461
-RMD160 243068472de473fbef068ffc328d50f3de1f8d0b files/hsqldb 461
-SHA256 6d0bc448f54fee5beadef10e3ddd5750f495abc46e2be4825963dabbddc5151a files/hsqldb 461
+AUX 35hsqldb 33 RMD160 7f6db20183f2a6ebfe3054f8c3572b7417a4b5e3 SHA1 2f9b09ee3443889c2f1703f57c6ff80b4760aa69 SHA256 bd41e5568084a4856f102863b82f8103b0c9e1ad38423217f75e21d6842e447c
+MD5 2d447237033c46469d669d77646f1c65 files/35hsqldb 33
+RMD160 7f6db20183f2a6ebfe3054f8c3572b7417a4b5e3 files/35hsqldb 33
+SHA256 bd41e5568084a4856f102863b82f8103b0c9e1ad38423217f75e21d6842e447c files/35hsqldb 33
+AUX bundle-all-tools.patch 873 RMD160 e13225f63d202fda9d3e54b5141b92f88c2c0b99 SHA1 72a5539601cc09d385ec2e867afe9ad38db2eaa8 SHA256 9ed2f92a998045430b8685c846ebfaeb32898828f45255df7a8e09ffab267468
+MD5 2792c3e4760afbe5013d8e05cd9b1906 files/bundle-all-tools.patch 873
+RMD160 e13225f63d202fda9d3e54b5141b92f88c2c0b99 files/bundle-all-tools.patch 873
+SHA256 9ed2f92a998045430b8685c846ebfaeb32898828f45255df7a8e09ffab267468 files/bundle-all-tools.patch 873
+AUX hsqldb 464 RMD160 9f491a89bc013085205ddcac0cdcc85b26abe431 SHA1 a947e19e7379da582f4193cb6fbdddc884e52333 SHA256 773d18c752b8392fb1b1677789934ea7a531f8cc0276c18917e21c71b717a3a9
+MD5 6f794710380d2f4180aea094a121d34e files/hsqldb 464
+RMD160 9f491a89bc013085205ddcac0cdcc85b26abe431 files/hsqldb 464
+SHA256 773d18c752b8392fb1b1677789934ea7a531f8cc0276c18917e21c71b717a3a9 files/hsqldb 464
+AUX resolve-config-softlinks.patch 846 RMD160 93d6f30829e446f1b5f4fde6f61ab1efdeebd928 SHA1 f1843f12ce59bf866757eff7b385ef1565dea0f2 SHA256 a7de5886aed87fa040e65d265d5418daee38376ba23742fb97119b629b678517
+MD5 162476978f4f9c4a74de4a1392f1a866 files/resolve-config-softlinks.patch 846
+RMD160 93d6f30829e446f1b5f4fde6f61ab1efdeebd928 files/resolve-config-softlinks.patch 846
+SHA256 a7de5886aed87fa040e65d265d5418daee38376ba23742fb97119b629b678517 files/resolve-config-softlinks.patch 846
+AUX server.properties 686 RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd SHA1 bd7a3cd95e451c6bf11b28609819450cf396221c SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd
+MD5 0a8db7a417272c532f28a9e001fd32dd files/server.properties 686
+RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd files/server.properties 686
+SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd files/server.properties 686
AUX server.properties-r1 686 RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd SHA1 bd7a3cd95e451c6bf11b28609819450cf396221c SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd
MD5 0a8db7a417272c532f28a9e001fd32dd files/server.properties-r1 686
RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd files/server.properties-r1 686
SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd files/server.properties-r1 686
+AUX sqltool.rc 619 RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 SHA1 8a98d518192c09401d077120f5217a8706a8fc53 SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637
+MD5 094dd08ec8e3d3e273b2fab5b32008a7 files/sqltool.rc 619
+RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 files/sqltool.rc 619
+SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637 files/sqltool.rc 619
AUX sqltool.rc-r1 619 RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 SHA1 8a98d518192c09401d077120f5217a8706a8fc53 SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637
MD5 094dd08ec8e3d3e273b2fab5b32008a7 files/sqltool.rc-r1 619
RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 files/sqltool.rc-r1 619
SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637 files/sqltool.rc-r1 619
DIST hsqldb_1_7_3_1.zip 2841759 RMD160 48c5e6e6673217caa67a6bc76775d5e676017051 SHA1 3e75e67e04c15706997e6b19040bd0c34aeea310 SHA256 491a40eb8d01afde4a8d86444dc058d905f15f7c59bbacaf62c5e2967884f676
+DIST hsqldb_1_8_0_9.zip 3493449 RMD160 202b3dce4b737f928e57e281f4035df378526ce1 SHA1 fab82a70adedaeb427f8115736bd2c8bb6358556 SHA256 e98d1d8bca15059f4ef4f0d3dde2d75778a5e1bbe8bc12abd4ec2cac39d5adec
EBUILD hsqldb-1.7.3.1-r3.ebuild 3621 RMD160 bbe349a6dc800bada1fd7922d05ab100ed2f9bc2 SHA1 d860336d1e05565fd30a30be2c6a5065d7bca058 SHA256 2eaa77aff2476a4fdbfb858f539b80b03161da39f25c03d4d3aa07b0246e6a2d
MD5 2c0775339b1b841b0cccc086e7da3ba2 hsqldb-1.7.3.1-r3.ebuild 3621
RMD160 bbe349a6dc800bada1fd7922d05ab100ed2f9bc2 hsqldb-1.7.3.1-r3.ebuild 3621
SHA256 2eaa77aff2476a4fdbfb858f539b80b03161da39f25c03d4d3aa07b0246e6a2d hsqldb-1.7.3.1-r3.ebuild 3621
-MISC ChangeLog 4217 RMD160 e74eac0b7d3654d51294c47b4054b67ed7fac02a SHA1 dcfac553648ae51d3293b197b8db6f50cc7ded37 SHA256 21a1a01531e660c6be0ec894fcb77ec8836b71cf3b74f5560698ab88a00f2f1c
-MD5 30ca0bb0849ad5686b6ee6b2e6b4d7b4 ChangeLog 4217
-RMD160 e74eac0b7d3654d51294c47b4054b67ed7fac02a ChangeLog 4217
-SHA256 21a1a01531e660c6be0ec894fcb77ec8836b71cf3b74f5560698ab88a00f2f1c ChangeLog 4217
+EBUILD hsqldb-1.8.0.9.ebuild 5097 RMD160 b4c3e2f1630f3c02b46983cf4f50fdf4d9f6a4e2 SHA1 86f1e2ea30e63760c9078e1c477defd2417eb351 SHA256 6a3743e04c03fe3b729e3b242d483195df7f4fda5962edf404d40f877551f483
+MD5 5cd33ba10d6f90ffe7c2c9cb5d829494 hsqldb-1.8.0.9.ebuild 5097
+RMD160 b4c3e2f1630f3c02b46983cf4f50fdf4d9f6a4e2 hsqldb-1.8.0.9.ebuild 5097
+SHA256 6a3743e04c03fe3b729e3b242d483195df7f4fda5962edf404d40f877551f483 hsqldb-1.8.0.9.ebuild 5097
+MISC ChangeLog 4515 RMD160 939c8c65c092a6c93eafede55825e42d255bb770 SHA1 294c447abd48dcd9479fd18644618de9d392dc07 SHA256 fd09b6b24c305c06027dd1e296c10376a5361e1540789b2f66ddc1b590a5451b
+MD5 a748f2aa4309956baa29f22a4d10004d ChangeLog 4515
+RMD160 939c8c65c092a6c93eafede55825e42d255bb770 ChangeLog 4515
+SHA256 fd09b6b24c305c06027dd1e296c10376a5361e1540789b2f66ddc1b590a5451b ChangeLog 4515
MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb
MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158
RMD160 493079b5fb71d66863beea1b023901c90ba81be5 metadata.xml 158
@@ -26,3 +51,6 @@ SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb metadata
MD5 471a41687c1918a2cf96debd809b0f8b files/digest-hsqldb-1.7.3.1-r3 238
RMD160 6a25f0ec3b556ae4fadb7d103bbbff934e9aaa69 files/digest-hsqldb-1.7.3.1-r3 238
SHA256 0ecc6ec70a0db5046776b8738be22a06b72b6ca44709502edb6f721fdba9dbdb files/digest-hsqldb-1.7.3.1-r3 238
+MD5 a0a1cebf6e701adf69753fa429e43884 files/digest-hsqldb-1.8.0.9 238
+RMD160 c93f9ed245ee02daffa89c0daf7513fc4fa70515 files/digest-hsqldb-1.8.0.9 238
+SHA256 1ae7d5cf6a3fb6b023ae83d186b47d25ae747ad6c0fdff11825698f652321f5d files/digest-hsqldb-1.8.0.9 238
diff --git a/dev-db/hsqldb/files/35hsqldb b/dev-db/hsqldb/files/35hsqldb
new file mode 100644
index 000000000000..7ea66e048230
--- /dev/null
+++ b/dev-db/hsqldb/files/35hsqldb
@@ -0,0 +1 @@
+CONFIG_PROTECT="/var/lib/hsqldb"
diff --git a/dev-db/hsqldb/files/bundle-all-tools.patch b/dev-db/hsqldb/files/bundle-all-tools.patch
new file mode 100644
index 000000000000..27b12e0466db
--- /dev/null
+++ b/dev-db/hsqldb/files/bundle-all-tools.patch
@@ -0,0 +1,16 @@
+diff -urpN hsqldb.orig/build/build.xml hsqldb/build/build.xml
+--- hsqldb.orig/build/build.xml 2006-04-11 19:07:22.000000000 +0200
++++ hsqldb/build/build.xml 2006-07-09 02:07:48.000000000 +0200
+@@ -593,12 +593,6 @@ examples:
+ </manifest>
+ <exclude name="org/hsqldb/jmx/**"/>
+ <exclude name="org/hsqldb/util/*Swing.*" if="noswing"/>
+- <exclude name="org/hsqldb/util/*Transfer*.*"/>
+- <exclude name="org/hsqldb/util/DataAccess*.*"/>
+- <exclude name="org/hsqldb/util/*Helper*.*"/>
+- <exclude name="org/hsqldb/util/JDBCTypes.*"/>
+- <exclude name="org/hsqldb/util/SQLStatements.*"/>
+- <exclude name="org/hsqldb/util/QueryTool.*"/>
+ <exclude name="org/hsqldb/util/Zaurus*.*"/>
+ <exclude name="org/hsqldb/test/*.class"/>
+ <exclude name="org/hsqldb/sample/*.class"/>
diff --git a/dev-db/hsqldb/files/digest-hsqldb-1.8.0.9 b/dev-db/hsqldb/files/digest-hsqldb-1.8.0.9
new file mode 100644
index 000000000000..af4fd63ab038
--- /dev/null
+++ b/dev-db/hsqldb/files/digest-hsqldb-1.8.0.9
@@ -0,0 +1,3 @@
+MD5 c3f8010e3e2c73143eb702b7f28f0c8e hsqldb_1_8_0_9.zip 3493449
+RMD160 202b3dce4b737f928e57e281f4035df378526ce1 hsqldb_1_8_0_9.zip 3493449
+SHA256 e98d1d8bca15059f4ef4f0d3dde2d75778a5e1bbe8bc12abd4ec2cac39d5adec hsqldb_1_8_0_9.zip 3493449
diff --git a/dev-db/hsqldb/files/hsqldb b/dev-db/hsqldb/files/hsqldb
index b0c42698bf5a..09553ea72083 100644
--- a/dev-db/hsqldb/files/hsqldb
+++ b/dev-db/hsqldb/files/hsqldb
@@ -1,7 +1,7 @@
#!/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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/files/hsqldb,v 1.2 2007/12/19 21:58:05 caster Exp $
depend() {
use net
@@ -14,7 +14,7 @@ start() {
}
stop() {
- ebegin "Stopping HSQL Databse"
+ ebegin "Stopping HSQL Database"
hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb stop
eend $?
}
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..9284be44867a
--- /dev/null
+++ b/dev-db/hsqldb/files/sqltool.rc
@@ -0,0 +1,20 @@
+# $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
+
+# 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.0.9.ebuild b/dev-db/hsqldb/hsqldb-1.8.0.9.ebuild
new file mode 100644
index 000000000000..f5d761d9b5c4
--- /dev/null
+++ b/dev-db/hsqldb/hsqldb-1.8.0.9.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.0.9.ebuild,v 1.1 2007/12/19 21:58:05 caster Exp $
+
+JAVA_PKG_IUSE="doc source"
+inherit eutils 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"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+# doesn't like Java 1.6 due to JDBC changes
+CDEPEND="=dev-java/servletapi-2.3*"
+RDEPEND=">=virtual/jre-1.4
+ ${CDEPEND}"
+DEPEND="|| ( =virtual/jdk-1.5* =virtual/jdk-1.4* )
+ app-arch/unzip
+ ${CDEPEND}"
+
+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
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v lib/*.jar || die
+ java-pkg_jar-from --into lib servletapi-2.3
+
+ sed -i -r \
+ -e "s#etc/sysconfig#etc/conf.d#g" \
+ bin/hsqldb || die
+
+ eant -q -f "${EANT_BUILD_XML}" cleanall > /dev/null
+
+ epatch "${FILESDIR}/resolve-config-softlinks.patch"
+
+ mkdir conf
+ sed -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 || die
+ cp "${FILESDIR}/server.properties" conf/ || die
+ cp "${FILESDIR}/sqltool.rc" conf/ || die
+}
+
+# EANT_BUILD_XML used also in src_unpack
+EANT_BUILD_XML="build/build.xml"
+EANT_BUILD_TARGET="jar jarclient jarsqltool jarutil"
+EANT_DOC_TARGET="javadocdev"
+
+src_install() {
+ java-pkg_dojar lib/hsql*.jar
+
+ if use doc; then
+ dodoc doc/*.txt
+ java-pkg_dohtml -r doc/guide
+ java-pkg_dohtml -r doc/src
+ fi
+ use source && java-pkg_dosrc src/*
+
+ # Install env file for CONFIG_PROTECT support
+ doenvd "${FILESDIR}/35hsqldb" || die
+
+ # Put init, configuration and authorization files in /etc
+ doinitd "${FILESDIR}/hsqldb" || die
+ doconfd conf/hsqldb || die
+ dodir /etc/hsqldb
+ insinto /etc/hsqldb
+ # Change the ownership of server.properties and sqltool.rc
+ # files to hsqldb:hsqldb. (resolves Bug #111963)
+ insopts -m0600 -o hsqldb -g hsqldb
+ doins conf/server.properties || die
+ insopts -m0600 -o hsqldb -g hsqldb
+ doins conf/sqltool.rc || die
+
+ # Install init script
+ dodir "${HSQLDB_HOME}/bin"
+ keepdir "${HSQLDB_HOME}"
+ exeinto "${HSQLDB_HOME}/bin"
+ doexe bin/hsqldb || die
+
+ # 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" || die
+ dosym /etc/hsqldb/sqltool.rc "${HSQLDB_HOME}/sqltool.rc" || die
+
+ # Make sure that files have correct permissions
+ chown -R hsqldb:hsqldb "${D}${HSQLDB_HOME}"
+ chmod o-rwx "${D}${HSQLDB_HOME}"
+}
+
+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
+ einfo "Example:"
+ echo
+ einfo "/etc/hsqldb/server.properties"
+ einfo "============================="
+ einfo "server.database.1=file:xdb/xdb"
+ einfo "server.dbname.1=xdb"
+ einfo "server.urlid.1=xdb"
+ einfo
+ einfo "/etc/hsqldb/sqltool.rc"
+ einfo "======================"
+ einfo "urlid xdb"
+ einfo "url jdbc:hsqldb:hsql://localhost/xdb"
+ einfo "username sa"
+ einfo "password "
+ echo
+ einfo "Also note that each hsqldb server can serve only up to 10"
+ einfo "different databases simultaneously (with consecutive {0-9}"
+ einfo "suffixes in the 'server.properties' file)."
+ echo
+ ewarn "For data manipulation use:"
+ ewarn
+ ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManager"
+ ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManagerSwing"
+ ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.SqlTool \\"
+ ewarn " --rcFile /var/lib/hsqldb/sqltool.rc <dbname>"
+ echo
+ einfo "The Hsqldb can be run in multiple modes - read 'Chapter 1. Running'"
+ einfo "and Using Hsqldb' in the Hsqldb docs at:"
+ einfo " http://hsqldb.org/web/hsqlDocsFrame.html"
+ einfo "If you intend to run it in the Server mode, it is suggested to add the"
+ einfo "init script to your start-up scripts, this should be done like this:"
+ einfo " \`rc-update add hsqldb default\`"
+ echo
+
+ # Enable CONFIG_PROTECT for hsqldb
+ env-update
+ einfo "Hsqldb stores its database files in ${HSQLDB_HOME} and this directory"
+ einfo "is added to the CONFIG_PROTECT list. In order to immediately activate"
+ einfo "these settings please do:"
+ einfo " \`env-update && source /etc/profile\`"
+ einfo "Otherwise the settings will become active next time you login"
+ echo
+}