Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72701 Details for
Bug 111963
dev-db/hsqldb-1.7.3.1-r1 in Server mode doesn't allow to create additional databases
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hsqldb-1.7.3.1-r2.ebuild
hsqldb-1.7.3.1-r2.ebuild (text/plain), 3.50 KB, created by
Wiktor Wandachowicz
on 2005-11-11 14:07:32 UTC
(
hide
)
Description:
hsqldb-1.7.3.1-r2.ebuild
Filename:
MIME Type:
Creator:
Wiktor Wandachowicz
Created:
2005-11-11 14:07:32 UTC
Size:
3.50 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.7.3.1-r1.ebuild,v 1.4 2005/09/11 12:15:42 axxo Exp $ > >inherit java-pkg eutils > >DESCRIPTION="HSQLDB is the leading SQL relational database engine written in Java." >HOMEPAGE="http://hsqldb.sourceforge.net" >SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV//./_}.zip" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="~x86" >IUSE="doc jikes source" > >RDEPEND=">=virtual/jre-1.4 > =dev-java/servletapi-2.3*" >DEPEND=">=virtual/jdk-1.4 > app-arch/unzip > dev-java/ant-core > jikes? ( dev-java/jikes ) > source? ( app-arch/zip ) > ${RDEPEND}" > >S=${WORKDIR}/${PN} > >pkg_setup() { > enewgroup hsqldb > enewuser hsqldb -1 /bin/sh /dev/null hsqldb >} > >src_unpack() { > unpack ${A} > cd ${S}/lib > rm *.jar > java-pkg_jar-from servletapi-2.3 > cd ${S} > sed -i -r \ > -e "s/etc\/sysconfig/etc\/conf.d/g" \ > bin/hsqldb > einfo "Cleaning build directory..." > ant -q -f build/build.xml cleanall || die "failed too clean" > > einfo "Preparing configuration files..." > mkdir conf > HSQLDB_JAR=/usr/share/hsqldb/lib/hsqldb.jar > sed -e 's:^JAVA_EXECUTABLE=.*$:JAVA_EXECUTABLE=$(which java 2>/dev/null):g' \ > -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 > cp ${FILESDIR}/server.properties conf > cp ${FILESDIR}/sqltool.rc conf > cd conf > epatch ${FILESDIR}/conf.d-hsqldb-java-path.patch >} > >src_compile() { > local antflags="jar jarclient jarsqltool" > use doc && antflags="${antflags} javadocdev" > use jikes && antflags="${antflags} -Dbuild.compiler=jikes" > ant -f build/build.xml ${antflags} || die "Compilation 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/* > > doinitd ${FILESDIR}/hsqldb > doconfd conf/hsqldb > > dodir /var/lib/hsqldb/bin > keepdir /var/lib/hsqldb > exeinto /var/lib/hsqldb/bin > doexe bin/hsqldb > > # Put the configuration files in /var/lib/hsqldb and symlink > # them to /etc/hsqldb. (resolves Bug #111963) > insinto /etc/hsqldb > insinto /var/lib/hsqldb > insopts -m 0600 > doins conf/server.properties > doins conf/sqltool.rc > > dosym ${D}/var/lib/hsqldb/server.properties /etc/hsqldb/server.properties > dosym ${D}/var/lib/hsqldb/sqltool.rc /etc/hsqldb/sqltool.rc > chown -R hsqldb:hsqldb ${D}/var/lib/hsqldb > chmod o-rwx ${D}/var/lib/hsqldb >} > >pkg_postinst() { > ewarn "In order to create additional databases remember to put correct" > ewarn "information in both '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)" > einfo "" > einfo "Example:" > einfo "" > einfo "/etc/hsqldb/server.properties" > einfo "=============================" > einfo "server.database.1=file:/var/lib/hsqldb/newdb/newdb" > einfo "server.dbname.1=newdb" > einfo "server.urlid.1=newdb" > einfo "" > einfo "/etc/hsqldb/sqltool.rc" > einfo "======================" > einfo "urlid newdb" > einfo "url jdbc:hsqldb:hsql://localhost/newdb" > einfo "username sa" > einfo "password " > ewarn "" > ewarn "Also note that each server can serve only up to 10 different" > ewarn "databases simultaneously (with consecutive {0-9} suffixes" > ewarn "in the 'server.properties' file)." >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111963
:
72701
|
72702
|
72703
|
72704
|
72714
|
72750
|
72751
|
72752