1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-01-04 04:44:13 +01:00

initial import

This commit is contained in:
root
2010-02-09 21:25:29 +01:00
commit b2719dc011
1080 changed files with 41656 additions and 0 deletions

10
dev-db/hsqldb/Manifest Normal file
View File

@@ -0,0 +1,10 @@
AUX 35hsqldb 33 RMD160 7f6db20183f2a6ebfe3054f8c3572b7417a4b5e3 SHA1 2f9b09ee3443889c2f1703f57c6ff80b4760aa69 SHA256 bd41e5568084a4856f102863b82f8103b0c9e1ad38423217f75e21d6842e447c
AUX bundle-all-tools.patch 873 RMD160 e13225f63d202fda9d3e54b5141b92f88c2c0b99 SHA1 72a5539601cc09d385ec2e867afe9ad38db2eaa8 SHA256 9ed2f92a998045430b8685c846ebfaeb32898828f45255df7a8e09ffab267468
AUX hsqldb 464 RMD160 9f491a89bc013085205ddcac0cdcc85b26abe431 SHA1 a947e19e7379da582f4193cb6fbdddc884e52333 SHA256 773d18c752b8392fb1b1677789934ea7a531f8cc0276c18917e21c71b717a3a9
AUX resolve-config-softlinks.patch 846 RMD160 93d6f30829e446f1b5f4fde6f61ab1efdeebd928 SHA1 f1843f12ce59bf866757eff7b385ef1565dea0f2 SHA256 a7de5886aed87fa040e65d265d5418daee38376ba23742fb97119b629b678517
AUX server.properties 686 RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd SHA1 bd7a3cd95e451c6bf11b28609819450cf396221c SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd
AUX server.properties-r1 686 RMD160 c48bc303a028bca284273b969ca01d3dadb20dcd SHA1 bd7a3cd95e451c6bf11b28609819450cf396221c SHA256 be7c54fc356d2b14c26e8ec0eecb79c7fa1c72e84c3475bedcd4d08548beeabd
AUX sqltool.rc 619 RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 SHA1 8a98d518192c09401d077120f5217a8706a8fc53 SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637
AUX sqltool.rc-r1 619 RMD160 095cf1293ef4d40eed83df5f3025202c5a57f493 SHA1 8a98d518192c09401d077120f5217a8706a8fc53 SHA256 76ab1af1b6359c070c00a0d7499d7f628c94cc6c7b7d6bb8fe196ccfe080d637
DIST hsqldb_1_8_0_9.zip 3493449 RMD160 202b3dce4b737f928e57e281f4035df378526ce1 SHA1 fab82a70adedaeb427f8115736bd2c8bb6358556 SHA256 e98d1d8bca15059f4ef4f0d3dde2d75778a5e1bbe8bc12abd4ec2cac39d5adec
EBUILD hsqldb-1.8.0.9-r99.ebuild 5469 RMD160 868ebf6626de112201842f046cbc9853c25fc259 SHA1 5ebf31237a93ed6782dae74df2cc4c0f7218f8a8 SHA256 db1086902f4fa9fd6c1e2111599bdf1c9a56ca75cf6012a4c9fab62c9ff58a4c

View File

@@ -0,0 +1 @@
CONFIG_PROTECT="/var/lib/hsqldb"

View File

@@ -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"/>

View File

@@ -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.2 2007/12/19 21:58:05 caster Exp $
depend() {
use net
}
start() {
ebegin "Starting HSQL Database"
hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb start
eend $?
}
stop() {
ebegin "Stopping HSQL Database"
hsqldb_enable=yes /var/lib/hsqldb/bin/hsqldb stop
eend $?
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,174 @@
# Copyright 1999-2008 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-r1.ebuild,v 1.8 2008/05/30 22:19:19 betelgeuse 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"
IUSE=""
# doesn't like Java 1.6 due to JDBC changes
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
eant -q -f "${EANT_BUILD_XML}" cleanall > /dev/null
epatch "${FILESDIR}/resolve-config-softlinks.patch"
java-pkg_filter-compiler jikes
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_test() {
java-pkg_jar-from --into lib junit
eant -f ${EANT_BUILD_XML} jartest
cd testrun/hsqldb || die
./runTest.sh TestSelf || die "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
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
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
}