From d814ac38d1dddd1861362a99a40b9770b948420c Mon Sep 17 00:00:00 2001 From: frank Date: Tue, 17 Jan 2012 22:03:10 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +dev-db/hsqldb-1.8.1.2-r1 --- .etckeeper | 10 ++++ conf.d/hsqldb | 126 +++++++++++++++++++++++++++++++++++++++ env.d/35hsqldb | 1 + hsqldb/server.properties | 20 +++++++ hsqldb/sqltool.rc | 20 +++++++ init.d/hsqldb | 20 +++++++ 6 files changed, 197 insertions(+) create mode 100644 conf.d/hsqldb create mode 100644 env.d/35hsqldb create mode 100644 hsqldb/server.properties create mode 100644 hsqldb/sqltool.rc create mode 100755 init.d/hsqldb diff --git a/.etckeeper b/.etckeeper index 772685dd..4ba9c3a1 100755 --- a/.etckeeper +++ b/.etckeeper @@ -230,6 +230,7 @@ maybe chmod 0644 './conf.d/git-daemon' maybe chmod 0644 './conf.d/gpm' maybe chmod 0644 './conf.d/gpsd' maybe chmod 0644 './conf.d/hostname' +maybe chmod 0644 './conf.d/hsqldb' maybe chmod 0644 './conf.d/hwclock' maybe chmod 0644 './conf.d/ip6tables' maybe chmod 0644 './conf.d/iptables' @@ -511,6 +512,7 @@ maybe chmod 0644 './env.d/22javacc' maybe chmod 0644 './env.d/30gnupg' maybe chmod 0644 './env.d/30sane' maybe chmod 0644 './env.d/30xdg-data-local' +maybe chmod 0644 './env.d/35hsqldb' maybe chmod 0644 './env.d/37fontconfig' maybe chmod 0644 './env.d/43kdepaths' maybe chmod 0644 './env.d/44qca2' @@ -889,6 +891,13 @@ maybe chmod 0644 './hotplug/usb/libsane.usermap' maybe chmod 0755 './hotplug/usb/libusbscanner' maybe chmod 0755 './hp' maybe chmod 0644 './hp/hplip.conf' +maybe chmod 0755 './hsqldb' +maybe chown hsqldb './hsqldb/server.properties' +maybe chgrp hsqldb './hsqldb/server.properties' +maybe chmod 0600 './hsqldb/server.properties' +maybe chown hsqldb './hsqldb/sqltool.rc' +maybe chgrp hsqldb './hsqldb/sqltool.rc' +maybe chmod 0600 './hsqldb/sqltool.rc' maybe chmod 0755 './htdig' maybe chmod 0644 './htdig/HtFileType-magic.mime' maybe chmod 0644 './htdig/cookies.txt' @@ -941,6 +950,7 @@ maybe chmod 0755 './init.d/gpm' maybe chmod 0755 './init.d/gpsd' maybe chmod 0755 './init.d/hostname' maybe chmod 0755 './init.d/hotplug' +maybe chmod 0755 './init.d/hsqldb' maybe chmod 0755 './init.d/hwclock' maybe chmod 0755 './init.d/ip6tables' maybe chmod 0755 './init.d/iptables' diff --git a/conf.d/hsqldb b/conf.d/hsqldb new file mode 100644 index 00000000..47bb5264 --- /dev/null +++ b/conf.d/hsqldb @@ -0,0 +1,126 @@ +# $Id: sample-hsqldb.cfg,v 1.15 2005/07/23 19:54:17 unsaved Exp $ + +# Sample configuration file for HSQLDB database server. +# See the "UNIX Quick Start" chapter of the Hsqldb User Guide. + +# N.b.!!!! You must place this in the right location for your type of UNIX. +# See the init script "hsqldb" to see where this must be placed and +# what it should be renamed to. + +# This file is "sourced" by a Bourne shell, so use Bourne shell syntax. + +# This file WILL NOT WORK until you set (at least) the non-commented +# variables to the appropriate values for your system. +# Life will be easier if you avoid all filepaths with spaces or any other +# funny characters. Don't ask for support if you ignore this advice. + +# Thanks to Meikel Bisping for his contributions. -- Blaine + +JAVA_EXECUTABLE=/usr/bin/java + +# Unless you copied a hsqldb.jar file from another system, this typically +# resides at $HSQLDB_HOME/lib/hsqldb.jar, where $HSQLDB_HOME is your HSQLDB +# software base directory. +HSQLDB_JAR_PATH=/usr/share/hsqldb/lib/hsqldb.jar + +# Where the file "server.properties" resides. +SERVER_HOME=/var/lib/hsqldb + +# What UNIX user the server will run as. +# (The shutdown client is always run as root or the invoker of the init script). +# Runs as root by default, but you should take the time to set database file +# ownerships to another user and set that user name here. +HSQLDB_OWNER=hsqldb + +# The HSQLDB jar file specified in HSQLDB_JAR_PATH above will automatically +# be in the class path. This arg specifies additional classpath elements. +# To embed your own application, add your jar file(s) or class base +# directories here, and add your main class to the INVOC_ADDL_ARGS setting +# below. +#SERVER_ADDL_CLASSPATH=/usr/local/dist/currencybank.jar + +# We require all Server/WebServer instances to be accessible within +# $MAX_START_SECS from when the Server/WebServer is started. +# Defaults to 60. +# Raise this is you are running lots of DB instances or have a slow server. +#MAX_START_SECS=200 + +# Time to allow for JVM to die after all HSQLDB instances stopped. +# Defaults to 1. +#MAX_TERMINATE_SECS=0 + +# These are "urlid" values from a SqlTool authentication file +# ** IN ADDITION TO THOSE IN YOUR server.properties OR webserver.properties ** +# file. All server.urlid.X values from your properties file will automatically +# be started/stopped/tested. $SHUTDOWN_URLIDS is for additional urlids which +# will stopped. (Therefore, most users will not set this at all). +# Separate multiple values with white space. NO OTHER SPECIAL CHARACTERS! +# Make sure to quote the entire value if it contains white space separator(s). +# Defaults to none (i.e., only urlids set in properties file will be stopped). +#SHUTDOWN_URLIDS='sa mygms' + +# SqlTool authentication file used only for shutdown. +# The default value will be sqltool.rc in root's home directory, since it is +# root who runs the init script. +# (See the SqlTool chapter of the HSQLDB User Guide if you don't understand +# this). +AUTH_FILE=${SERVER_HOME}/sqltool.rc + +# Set this to either 'WebServer' or 'Server'. Defaults to Server. +# The JVM that is started can invoke many classes (see the following item +# about that), but this is the Server that is used (1) to check status, +# (2) to shut down the JVM, (3) to get urlids for #1 from the +# server's server/webserver.properties file. +#TARGET_CLASS=WebServer +# Note that you don't specify the org.hsqldb package, since you have no +# choice in the matter (you can only run org.hsqldb.Server or +# org.hsqldb.WebServer). If you specify additional classes with +# INVOC_ADDL_ARGS (described next), you do need to specify the +# full class name with package name. + +# This is where you specify exactly what your HSQLDB JVM will run. +# The class org.hsqldb.util.MainInvoker will run the TARGET_CLASS +# specified above with any arguments supplied here + any other classes +# and arguments. Every additional class (in addition to the TARGET_CLASS) +# must be preceded with an empty string, so that MainInvoker will know +# you are giving a class name. MainInvoker will invoke the normal +# static main(String[]) method of each such class. +# By default, MainInvoker will just run TARGET_CLASS with no args. +# Example that runs just the TARGET_CLASS with the specified arguments: +#INVOC_ADDL_ARGS='-silent false' +# Example that runs the TARGET_CLASS plus a WebServer: +#INVOC_ADDL_ARGS='"" org.hsqldb.WebServer' +# Note the empty string preceding the class name. +# Example that starts TARGET_CLASS with an argument + a WebServer + +# your own application with its args (i.e., the HSQLDB Servers are +# "embedded" in your application). (Set SERVER_ADDL_CLASSPATH too).: +#INVOC_ADDL_ARGS='-silent false "" org.hsqldb.WebServer "" com.acme.Stone --env prod localhost' +# Example to run a non-TLS server in same JVM with a TLS server. In this +# case, TARGET_CLASS is Server which will run in TLS mode by virtue of +# setting TLS_KEYSTORE and TLS_PASSWORD above. The "additional" Server +# here overrides the 'tls' and 'port' settings: +#INVOC_ADDL_ARGS="'' org.hsqldb.Server -port 9002 -tls false" +# Note that you use nested quotes to group arguments and to specify the +# empty-string delimiter. + +# For TLS encryption for your Server, set these two variables. +# N.b.: If you set these, then make this file unreadable to non-root users!!!! +# See the TLS chapter of the HSQLDB User Guide, paying attention to the +# security warning(s). +# If you are running with a private server cert, then you will also need to +# set "truststore" in the your SqlTool config file (location is set by the +# AUTH_FILE variable in this file, or it must be at the default location for +# HSQLDB_OWNER). +#TLS_KEYSTORE=/path/to/jks/server.store +#TLS_PASSWORD=password + +# Any JVM args for the invocation of the JDBC client used to verify DB +# instances and to shut them down (SqlToolSprayer). +# This example specifies the location of a private trust store for TLS +# encryption. +# For multiple args, put quotes around entire value. +#CLIENT_JVMARGS=-Djavax.net.debug=ssl + +# Any JVM args for the server. +# For multiple args, put quotes around entire value. +#SERVER_JVMARGS=-Xmx512m diff --git a/env.d/35hsqldb b/env.d/35hsqldb new file mode 100644 index 00000000..7ea66e04 --- /dev/null +++ b/env.d/35hsqldb @@ -0,0 +1 @@ +CONFIG_PROTECT="/var/lib/hsqldb" diff --git a/hsqldb/server.properties b/hsqldb/server.properties new file mode 100644 index 00000000..4827d1cb --- /dev/null +++ b/hsqldb/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/hsqldb/sqltool.rc b/hsqldb/sqltool.rc new file mode 100644 index 00000000..9284be44 --- /dev/null +++ b/hsqldb/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/init.d/hsqldb b/init.d/hsqldb new file mode 100755 index 00000000..09553ea7 --- /dev/null +++ b/init.d/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.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 $? +} -- 2.39.5