diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2011-10-19 11:02:38 +0000 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2011-10-19 11:02:38 +0000 |
commit | f32e6b1ce052adb95a84012128b9a01a658edbcd (patch) | |
tree | 33606d84e45e13bb69c2bddb9154323b97505bf9 /dev-db/hsqldb | |
parent | Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo & Elij... (diff) | |
download | historical-f32e6b1ce052adb95a84012128b9a01a658edbcd.tar.gz historical-f32e6b1ce052adb95a84012128b9a01a658edbcd.tar.bz2 historical-f32e6b1ce052adb95a84012128b9a01a658edbcd.zip |
dev-db/hsqldb: version bump
Package-Manager: portage-2.1.10.29/cvs/Linux x86_64
Diffstat (limited to 'dev-db/hsqldb')
-rw-r--r-- | dev-db/hsqldb/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/hsqldb/Manifest | 4 | ||||
-rw-r--r-- | dev-db/hsqldb/hsqldb-1.8.1.3.ebuild | 180 |
3 files changed, 189 insertions, 2 deletions
diff --git a/dev-db/hsqldb/ChangeLog b/dev-db/hsqldb/ChangeLog index 49525c4f8d1d..8bad969dba07 100644 --- a/dev-db/hsqldb/ChangeLog +++ b/dev-db/hsqldb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/hsqldb # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.63 2011/10/19 01:58:38 fordfrog Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.64 2011/10/19 11:02:38 fordfrog Exp $ + +*hsqldb-1.8.1.3 (19 Oct 2011) + + 19 Oct 2011; Miroslav Šulc <fordfrog@gentoo.org> +hsqldb-1.8.1.3.ebuild: + Version bump 19 Oct 2011; Miroslav Šulc <fordfrog@gentoo.org> hsqldb-1.8.1.2-r1.ebuild: Not compatible with JDBC 4.1 so restricting compilation to JDK 6 (fixes bug diff --git a/dev-db/hsqldb/Manifest b/dev-db/hsqldb/Manifest index cf0eb57df536..41e0b75c7fc9 100644 --- a/dev-db/hsqldb/Manifest +++ b/dev-db/hsqldb/Manifest @@ -6,6 +6,8 @@ AUX resolve-config-softlinks.patch 846 RMD160 93d6f30829e446f1b5f4fde6f61ab1efde AUX server.properties 686 RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd SHA1 bd7a3cd95e451c6bf11b28609819450cf396221c SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd AUX sqltool.rc 619 RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 SHA1 8a98d518192c09401d077120f5217a8706a8fc53 SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637 DIST hsqldb_1_8_1_2.zip 3516460 RMD160 da834ca11e34c8acca6539c54283018b070615e5 SHA1 b550a41d2376869dc156d93bcf16d46d657e540c SHA256 828776b24364781ae4443d4d64f60eb2a80ab5179637b8415ec91590f82d7bcb +DIST hsqldb_1_8_1_3.zip 3170550 RMD160 e3090679e11905843aaa33b493aaa46d41f23c32 SHA1 15b1ece2f131bdb007cae5762f631e8d5fd6eaae SHA256 c3669bbebcb5c722b273f20c316af744d4e263bc90cc20fd1e6296dff7cc3d07 EBUILD hsqldb-1.8.1.2-r1.ebuild 5834 RMD160 a6a08eb80f5353b810a47f2ddd394549e55401ba SHA1 6c7aaa695532957039b5efaf99d9a696e6158418 SHA256 41994a0fbc8c67020435deaf501c0435a71700a991d9aa3593a68aab18a63179 -MISC ChangeLog 8507 RMD160 3dc068db182faff92568a436d41dedb076396bc3 SHA1 e1d1711dd287afe86d8b45512502f18fb6317fc8 SHA256 803134213875eebe43011a06712d59d1a5b65e1c063d720afcb9032301356a83 +EBUILD hsqldb-1.8.1.3.ebuild 5835 RMD160 f2ebdc4c8aca7eb6005b14e4c106d907db6fa030 SHA1 f67c7bc7ef97fbd0f1a4774e45ad8e97a5e8aad6 SHA256 e328ef02f69c52db12fc092238adf2e187686454d3f54fcf5ebcf2409619fbb9 +MISC ChangeLog 8630 RMD160 48b68ed9a47f735fd5f0079d26e338e1ef3ac395 SHA1 b5558481d58070b540ba46515630fa6f4e22c10f SHA256 6e7d860f6ddce8b0c9fda6affbf245dbd2a0aa8f48671364691278f91a70f9a8 MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb diff --git a/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild b/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild new file mode 100644 index 000000000000..f4b46f819f49 --- /dev/null +++ b/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.1.3.ebuild,v 1.1 2011/10/19 11:02:38 fordfrog Exp $ + +EAPI=1 +JAVA_PKG_IUSE="doc source test" +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 ~x86-fbsd ~x64-solaris" +IUSE="" + +CDEPEND="java-virtuals/servlet-api:2.3" +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND="virtual/jdk:1.6 + test? ( dev-java/junit:0 ) + 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 --virtual --into lib servlet-api-2.3 + + sed -i -r \ + -e "s#etc/sysconfig#etc/conf.d#g" \ + bin/hsqldb || die + + java-pkg_filter-compiler jikes + + 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 + + # Missing source file - needed for tests + # http://hsqldb.cvs.sourceforge.net/*checkout*/hsqldb/hsqldb-dev/src/org/hsqldb/lib/StringComparator.java?revision=1.1&pathrev=hsqldb_1_8_0_10 + # http://sourceforge.net/tracker/index.php?func=detail&aid=2008754&group_id=23316&atid=378131 + cp "${FILESDIR}/StringComparator.java" src/org/hsqldb/lib || die + cp "${FILESDIR}/TestBug1191815.java" src/org/hsqldb/test/ || 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_test() { + java-pkg_jar-from --into lib junit + eant -f ${EANT_BUILD_XML} jartest + cd testrun/hsqldb || die + ./runTest.sh TestSelf || die "TestSelf hsqldb tests failed" + # TODO. These fail. Investigate why. + #cd "${S}/testrun/sqltool" || die + #CLASSPATH="${S}/lib/hsqldb.jar" ./runtests.bash || die "sqltool test failed" +} + +src_install() { + java-pkg_dojar lib/hsql*.jar + + if use doc; then + dodoc doc/*.txt + dohtml -r doc/zaurus + 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 + + # Make sure that files have correct permissions + chown -R hsqldb:hsqldb "${D}${HSQLDB_HOME}" + chmod o-rwx "${D}${HSQLDB_HOME}" + + # 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 +} + +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 + elog "Example:" + echo + elog "/etc/hsqldb/server.properties" + elog "=============================" + elog "server.database.1=file:xdb/xdb" + elog "server.dbname.1=xdb" + elog "server.urlid.1=xdb" + elog + elog "/etc/hsqldb/sqltool.rc" + elog "======================" + elog "urlid xdb" + elog "url jdbc:hsqldb:hsql://localhost/xdb" + elog "username sa" + elog "password " + echo + elog "Also note that each hsqldb server can serve only up to 10" + elog "different databases simultaneously (with consecutive {0-9}" + elog "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 + elog "The Hsqldb can be run in multiple modes - read 'Chapter 1. Running'" + elog "and Using Hsqldb' in the Hsqldb docs at:" + elog " http://hsqldb.org/web/hsqlDocsFrame.html" + elog "If you intend to run it in the Server mode, it is suggested to add the" + elog "init script to your start-up scripts, this should be done like this:" + elog " \`rc-update add hsqldb default\`" + echo + + # Enable CONFIG_PROTECT for hsqldb + env-update + elog "Hsqldb stores its database files in ${HSQLDB_HOME} and this directory" + elog "is added to the CONFIG_PROTECT list. In order to immediately activate" + elog "these settings please do:" + elog " \`env-update && source /etc/profile\`" + elog "Otherwise the settings will become active next time you login" + echo +} |