1 |
On 02:48 Thu 14 Feb , William Thomson (wltjr) wrote: |
2 |
> 1.1 dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> pkg_postinst() { |
8 |
> ewarn "If you intend to run Hsqldb in Server mode and you want to create" |
9 |
> ewarn "additional databases, remember to put correct information in both" |
10 |
> ewarn "'server.properties' and 'sqltool.rc' files." |
11 |
> ewarn "(read the 'Init script Setup Procedure' section of the 'Chapter 3." |
12 |
> ewarn "UNIX Quick Start' in the Hsqldb docs for more information)" |
13 |
> echo |
14 |
> einfo "Example:" |
15 |
> echo |
16 |
> einfo "/etc/hsqldb/server.properties" |
17 |
> einfo "=============================" |
18 |
> einfo "server.database.1=file:xdb/xdb" |
19 |
> einfo "server.dbname.1=xdb" |
20 |
> einfo "server.urlid.1=xdb" |
21 |
> einfo |
22 |
> einfo "/etc/hsqldb/sqltool.rc" |
23 |
> einfo "======================" |
24 |
> einfo "urlid xdb" |
25 |
> einfo "url jdbc:hsqldb:hsql://localhost/xdb" |
26 |
> einfo "username sa" |
27 |
> einfo "password " |
28 |
> echo |
29 |
> einfo "Also note that each hsqldb server can serve only up to 10" |
30 |
> einfo "different databases simultaneously (with consecutive {0-9}" |
31 |
> einfo "suffixes in the 'server.properties' file)." |
32 |
> echo |
33 |
> ewarn "For data manipulation use:" |
34 |
> ewarn |
35 |
> ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManager" |
36 |
> ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.DatabaseManagerSwing" |
37 |
> ewarn "# java -classpath ${HSQLDB_JAR} org.hsqldb.util.SqlTool \\" |
38 |
> ewarn " --rcFile /var/lib/hsqldb/sqltool.rc <dbname>" |
39 |
> echo |
40 |
> einfo "The Hsqldb can be run in multiple modes - read 'Chapter 1. Running'" |
41 |
> einfo "and Using Hsqldb' in the Hsqldb docs at:" |
42 |
> einfo " http://hsqldb.org/web/hsqlDocsFrame.html" |
43 |
> einfo "If you intend to run it in the Server mode, it is suggested to add the" |
44 |
> einfo "init script to your start-up scripts, this should be done like this:" |
45 |
> einfo " \`rc-update add hsqldb default\`" |
46 |
> echo |
47 |
> |
48 |
> # Enable CONFIG_PROTECT for hsqldb |
49 |
> env-update |
50 |
> einfo "Hsqldb stores its database files in ${HSQLDB_HOME} and this directory" |
51 |
> einfo "is added to the CONFIG_PROTECT list. In order to immediately activate" |
52 |
> einfo "these settings please do:" |
53 |
> einfo " \`env-update && source /etc/profile\`" |
54 |
> einfo "Otherwise the settings will become active next time you login" |
55 |
> echo |
56 |
> } |
57 |
|
58 |
All that einfo stuff should use elog instead. |
59 |
|
60 |
Thanks, |
61 |
Donnie |
62 |
-- |
63 |
gentoo-dev@l.g.o mailing list |