aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/neo4j')
-rw-r--r--dev-db/neo4j/ChangeLog20
-rw-r--r--dev-db/neo4j/Manifest5
-rw-r--r--dev-db/neo4j/files/neo4j-1.7-neo4j.patch127
-rw-r--r--dev-db/neo4j/files/neo4j-1.7-server_settings.patch24
-rw-r--r--dev-db/neo4j/files/neo4j-1.7-wrapper_settings.patch13
-rw-r--r--dev-db/neo4j/files/neo4j.init34
-rw-r--r--dev-db/neo4j/metadata.xml8
-rw-r--r--dev-db/neo4j/neo4j-1.7.ebuild59
8 files changed, 290 insertions, 0 deletions
diff --git a/dev-db/neo4j/ChangeLog b/dev-db/neo4j/ChangeLog
new file mode 100644
index 0000000..01ea288
--- /dev/null
+++ b/dev-db/neo4j/ChangeLog
@@ -0,0 +1,20 @@
+# ChangeLog for dev-db/neo4j-community
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header:$
+
+ 24 Apr 2012; Leonardo Martins <leonardo@venidera.com>
+ +files/neo4j-1.7-neo4j.patch, +files/neo4j-1.7-server_settings.patch,
+ +files/neo4j-1.7-wrapper_settings.patch:
+ Added patches for configuration files path.
+
+ 24 Apr 2012; Leonardo Martins <leonardo@venidera.com> neo4j-1.7.ebuild:
+ Renamed package.
+
+ 23 Apr 2012; Leonardo Martins <leonardo@venidera.com> +files/neo4j.init:
+ Added init script.
+
+*neo4j-community-1.7 (23 Apr 2012)
+
+ 23 Apr 2012; Leonardo Martins <leonardo@venidera.com>
+ +neo4j-community-1.7.ebuild, +metadata.xml:
+ Initial commit.
diff --git a/dev-db/neo4j/Manifest b/dev-db/neo4j/Manifest
new file mode 100644
index 0000000..7cb66e1
--- /dev/null
+++ b/dev-db/neo4j/Manifest
@@ -0,0 +1,5 @@
+AUX neo4j.init 503 RMD160 8520630c80017163bc7ac0f2e685a5792730d1e8 SHA1 916ad3b28c2604f7d3950452341b24824ffb69da SHA256 febb80c7ba7470b4b927311299d971bada495dc65b9c8355ebb44b820d52500a
+DIST neo4j-community-1.7-unix.tar.gz 36220025 RMD160 0cbd5da70b19e4ca4fb4e0dfa4d82ba72e51eeed SHA1 f18a7539bd5ad1df2b91b4f17ecce36f1902ab59 SHA256 b9f626878624d9a7b9408c6213dec6d82c13c62e86a037b489dc335e31c4d993
+EBUILD neo4j-community-1.7.ebuild 1580 RMD160 5eb92434d8d97df100bc58373b4c579a3f9efb12 SHA1 81f2c8fd522b03e4b5a8d601d1a6b2e142da7bee SHA256 d04b2de615c5cca8b046c697165782b6f879d0d610d08da7ee721feee35ec2ff
+MISC ChangeLog 375 RMD160 bf81f5a07a3beb399d0436a5f6453f0951d6c405 SHA1 be6ec038f8aa74ddd9ce75db6388e68c3e82231e SHA256 4c3b9bed71bc7ce031aa1e7250136ddeb6d2ed678c47ee2bd7a7b6bf952d4e3f
+MISC metadata.xml 239 RMD160 75199ea6eda41a4c46b6b1352021faf877906253 SHA1 5115cf852e6a0a94e6cab28f083e29aa32c5faeb SHA256 53b3b5d7d9fbe0d7ee6318732e06ddec681a624cbc9c5a3d739a3ac270abe05a
diff --git a/dev-db/neo4j/files/neo4j-1.7-neo4j.patch b/dev-db/neo4j/files/neo4j-1.7-neo4j.patch
new file mode 100644
index 0000000..f6ab8e4
--- /dev/null
+++ b/dev-db/neo4j/files/neo4j-1.7-neo4j.patch
@@ -0,0 +1,127 @@
+--- bin/neo4j.orig 2012-04-24 09:25:46.000000000 -0300
++++ bin/neo4j 2012-04-24 09:52:31.000000000 -0300
+@@ -51,26 +51,25 @@
+ function parseConfig {
+ if [ ${BASH_VERSINFO[0]} -eq 3 ] ; then
+ if [ ${BASH_VERSINFO[1]} -lt 2 ] ; then
+- getconfigquoted "${NEO4J_INSTANCE}/conf/neo4j-wrapper.conf"
+- getconfigquoted "${NEO4J_INSTANCE}/conf/neo4j-server.properties"
++ getconfigquoted "/etc/neo4j/neo4j-wrapper.conf"
++ getconfigquoted "/etc/neo4j/neo4j-server.properties"
+ return
+ fi
+ fi
+- getconfig "${NEO4J_INSTANCE}/conf/neo4j-wrapper.conf"
+- getconfig "${NEO4J_INSTANCE}/conf/neo4j-server.properties"
++ getconfig "/etc/neo4j/neo4j-wrapper.conf"
++ getconfig "/etc/neo4j/neo4j-server.properties"
+ }
+
+ findBaseDirAndCdThere
+ source bin/utils
+ parseConfig
+
+-NEO4J_OPTS="-Dlog4j.configuration=file:conf/log4j.properties -Dorg.neo4j.server.properties="${NEO4J_INSTANCE}"/conf/neo4j-server.properties -Djava.util.logging.config.file="${NEO4J_INSTANCE}/conf/logging.properties" -Dneo4j.home="${NEO4J_HOME}" -Dneo4j.instance="${NEO4J_INSTANCE}""
++NEO4J_OPTS="-Dlog4j.configuration=file:/etc/neo4j/log4j.properties -Dorg.neo4j.server.properties=/etc/neo4j/neo4j-server.properties -Djava.util.logging.config.file="/etc/neo4j/logging.properties" -Dneo4j.home="${NEO4J_HOME}" -Dneo4j.instance="${NEO4J_INSTANCE}""
+
+ JAVA_OPTS="-server -XX:+DisableExplicitGC ${wrapper_java_additional}"
+ [ -z "${wrapper_java_initmemory}" ] || JAVA_OPTS="$JAVA_OPTS -Xms${wrapper_java_initmemory}m"
+ [ -z "${wrapper_java_maxmemory}" ] || JAVA_OPTS="$JAVA_OPTS -Xmx${wrapper_java_maxmemory}m"
+
+-#NEO4J_SERVER_PORT=`( egrep "^org.neo4j.server.webserver.port" $NEO4J_INSTANCE/conf/neo4j-server.properties || echo 7474 ) | sed -e 's/.*=//'`
+ NEO4J_SERVER_PORT=${org_neo4j_server_webserver_port:=7474}
+
+ LAUNCHD_NAME="${LAUNCHD_NAME}.${NEO4J_SERVER_PORT}"
+@@ -140,16 +139,16 @@
+
+ checkupgrade() {
+ if [ $UID == 0 ] ; then
+- su $NEO4J_USER -c "$JAVACMD -cp '$CLASSPATH' $JAVA_OPTS -Dlog4j.configuration=file:conf/log4j.properties \
+- -Dorg.neo4j.server.properties=\"${NEO4J_INSTANCE}/conf/neo4j-server.properties\" \
+- -Djava.util.logging.config.file=\"${NEO4J_INSTANCE}/conf/logging.properties\" \
++ su $NEO4J_USER -c "$JAVACMD -cp '$CLASSPATH' $JAVA_OPTS -Dlog4j.configuration=file:/etc/neo4j/log4j.properties \
++ -Dorg.neo4j.server.properties=\"/etc/neo4j/neo4j-server.properties\" \
++ -Djava.util.logging.config.file=\"/etc/neo4j/logging.properties\" \
+ -Dneo4j.home=\"${NEO4J_HOME}\" -Dneo4j.instance=\"${NEO4J_INSTANCE}\" \
+ org.neo4j.server.storemigration.PreStartupStoreUpgrader"
+ else
+ checkwriteaccess
+- $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:conf/log4j.properties \
+- -Dorg.neo4j.server.properties="${NEO4J_INSTANCE}/conf/neo4j-server.properties" \
+- -Djava.util.logging.config.file="${NEO4J_INSTANCE}/conf/logging.properties" \
++ $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:/etc/neo4j/log4j.properties \
++ -Dorg.neo4j.server.properties="/etc/neo4j/neo4j-server.properties" \
++ -Djava.util.logging.config.file="/etc/neo4j/logging.properties" \
+ -Dneo4j.home="${NEO4J_HOME}" -Dneo4j.instance="${NEO4J_INSTANCE}" \
+ org.neo4j.server.storemigration.PreStartupStoreUpgrader
+ fi
+@@ -200,18 +199,18 @@
+ checkandrepairenv
+
+ if [ $UID == 0 ] ; then
+- su $NEO4J_USER -c "$JAVACMD -cp '$CLASSPATH' $JAVA_OPTS -Dlog4j.configuration=file:conf/log4j.properties \
+- -Dorg.neo4j.server.properties=\"${NEO4J_INSTANCE}/conf/neo4j-server.properties\" \
+- -Djava.util.logging.config.file=\"${NEO4J_INSTANCE}/conf/logging.properties\" \
++ su $NEO4J_USER -c "$JAVACMD -cp '$CLASSPATH' $JAVA_OPTS -Dlog4j.configuration=file:/etc/neo4j/log4j.properties \
++ -Dorg.neo4j.server.properties=\"/etc/neo4j/neo4j-server.properties\" \
++ -Djava.util.logging.config.file=\"/etc/neo4j/conf/logging.properties\" \
+ -Dneo4j.home=\"${NEO4J_HOME}\" -Dneo4j.instance=\"${NEO4J_INSTANCE}\" \
+ -Dfile.encoding=UTF-8 \
+ org.neo4j.server.Bootstrapper >> \"$NEO4J_INSTANCE/data/log/console.log\" 2>&1 & echo \$! > \"$PID_FILE\" "
+ else
+ checkwriteaccess
+ echo "WARNING: not changing user"
+- $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:conf/log4j.properties \
+- -Dorg.neo4j.server.properties="${NEO4J_INSTANCE}/conf/neo4j-server.properties" \
+- -Djava.util.logging.config.file="${NEO4J_INSTANCE}/conf/logging.properties" \
++ $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:/etc/neo4j/log4j.properties \
++ -Dorg.neo4j.server.properties="/etc/neo4j/neo4j-server.properties" \
++ -Djava.util.logging.config.file="/etc/neo4j/logging.properties" \
+ -Dneo4j.home="${NEO4J_HOME}" -Dneo4j.instance="${NEO4J_INSTANCE}" \
+ org.neo4j.server.Bootstrapper >> "${NEO4J_INSTANCE}/data/log/console.log" 2>&1 & echo $! > "${PID_FILE}"
+ fi
+@@ -274,9 +273,9 @@
+ checkwriteaccess
+ checkandrepairenv
+
+- $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:conf/log4j.properties \
+- -Dorg.neo4j.server.properties="${NEO4J_INSTANCE}/conf/neo4j-server.properties" \
+- -Djava.util.logging.config.file="${NEO4J_INSTANCE}/conf/logging.properties" \
++ $JAVACMD -cp "${CLASSPATH}" $JAVA_OPTS -Dlog4j.configuration=file:/etc/neo4j/log4j.properties \
++ -Dorg.neo4j.server.properties="/etc/neo4j/neo4j-server.properties" \
++ -Djava.util.logging.config.file="/etc/neo4j/logging.properties" \
+ -Dneo4j.home="${NEO4J_HOME}" -Dneo4j.instance="${NEO4J_INSTANCE}" \
+ org.neo4j.server.Bootstrapper
+
+@@ -291,16 +290,16 @@
+ # pass in "true" for created to mark that the user was created (instead than pre-existing)
+ modify_user_config() {
+ created=${2:-"false"}
+- if `grep -q "wrapper\.user=" "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"` ; then
+- sed -i -e "s/^.*wrapper\.user=.*$/wrapper\.user=$1/" "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"
++ if `grep -q "wrapper\.user=" "/etc/neo4j/neo4j-wrapper.conf"` ; then
++ sed -i -e "s/^.*wrapper\.user=.*$/wrapper\.user=$1/" "/etc/neo4j/neo4j-wrapper.conf"
+ else
+- echo "wrapper.user=$1" >> "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"
++ echo "wrapper.user=$1" >> "/etc/neo4j/neo4j-wrapper.conf"
+ fi
+
+- if `grep -q "wrapper\.user\.created=" "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"` ; then
+- sed -i -e "s/^.*wrapper\.user\.created=.*$/wrapper\.user\.created=${created}/" "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"
++ if `grep -q "wrapper\.user\.created=" "/etc/neo4j/neo4j-wrapper.conf"` ; then
++ sed -i -e "s/^.*wrapper\.user\.created=.*$/wrapper\.user\.created=${created}/" "/etc/neo4j/neo4j-wrapper.conf"
+ else
+- echo "wrapper.user.created=${created}" >> "$NEO4J_INSTANCE/conf/neo4j-wrapper.conf"
++ echo "wrapper.user.created=${created}" >> "/etc/neo4j/neo4j-wrapper.conf"
+ fi
+ }
+
+@@ -363,7 +362,7 @@
+ fi
+ ln -s "${SCRIPT_NAME}" "/etc/init.d/${SERVICE_NAME}"
+ update-rc.d ${SERVICE_NAME} defaults
+- chown -R $proposed_user: "$NEO4J_HOME/data" "$NEO4J_HOME/conf"
++ chown -R $proposed_user: "$NEO4J_HOME/data" "/etc/neo4j"
+ fi
+ fi
+ elif [[ $DIST_OS -eq "macosx" ]] ; then
diff --git a/dev-db/neo4j/files/neo4j-1.7-server_settings.patch b/dev-db/neo4j/files/neo4j-1.7-server_settings.patch
new file mode 100644
index 0000000..ee83ca2
--- /dev/null
+++ b/dev-db/neo4j/files/neo4j-1.7-server_settings.patch
@@ -0,0 +1,24 @@
+--- conf/neo4j-server.properties.orig 2012-04-24 09:07:58.000000000 -0300
++++ conf/neo4j-server.properties 2012-04-24 09:22:04.000000000 -0300
+@@ -34,10 +34,10 @@
+ org.neo4j.server.webserver.https.port=7473
+
+ # Certificate location (auto generated if the file does not exist)
+-org.neo4j.server.webserver.https.cert.location=conf/ssl/snakeoil.cert
++org.neo4j.server.webserver.https.cert.location=/etc/neo4j/ssl/snakeoil.cert
+
+ # Private key location (auto generated if the file does not exist)
+-org.neo4j.server.webserver.https.key.location=conf/ssl/snakeoil.key
++org.neo4j.server.webserver.https.key.location=/etc/neo4j/ssl/snakeoil.key
+
+ # Internally generated keystore (don't try to put your own
+ # keystore there, it will get deleted when the server starts)
+@@ -61,7 +61,7 @@
+ org.neo4j.server.webadmin.management.uri=/db/manage/
+
+ # Low-level graph engine tuning file
+-org.neo4j.server.db.tuning.properties=conf/neo4j.properties
++org.neo4j.server.db.tuning.properties=/etc/neo4j/neo4j.properties
+
+
+ #Comma separated list of JAXRS packages contains JAXRS Resoruce, one package name for each mountpoint.
diff --git a/dev-db/neo4j/files/neo4j-1.7-wrapper_settings.patch b/dev-db/neo4j/files/neo4j-1.7-wrapper_settings.patch
new file mode 100644
index 0000000..3a3fac7
--- /dev/null
+++ b/dev-db/neo4j/files/neo4j-1.7-wrapper_settings.patch
@@ -0,0 +1,13 @@
+--- conf/neo4j-wrapper.conf.orig 2012-04-24 09:08:14.000000000 -0300
++++ conf/neo4j-wrapper.conf 2012-04-24 09:17:22.000000000 -0300
+@@ -2,8 +2,8 @@
+ # JVM Parameters
+ #********************************************************************
+
+-wrapper.java.additional.1=-Dorg.neo4j.server.properties=conf/neo4j-server.properties
+-wrapper.java.additional.2=-Djava.util.logging.config.file=conf/logging.properties
++wrapper.java.additional.1=-Dorg.neo4j.server.properties=/etc/neo4j/neo4j-server.properties
++wrapper.java.additional.2=-Djava.util.logging.config.file=/etc/neo4j/logging.properties
+ wrapper.java.additional.3=-Dfile.encoding=UTF-8
+
+ # Uncomment the following line to enable garbage collection logging
diff --git a/dev-db/neo4j/files/neo4j.init b/dev-db/neo4j/files/neo4j.init
new file mode 100644
index 0000000..846a001
--- /dev/null
+++ b/dev-db/neo4j/files/neo4j.init
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+extra_commands="info"
+
+NEO4J="/opt/bin/neo4j"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting neo4j"
+ start-stop-daemon --start --quiet --exec ${NEO4J} start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping neo4j"
+ ${NEO4J} stop >/dev/null 2>&1
+ eend $?
+}
+
+restart() {
+ ebegin "Restarting neo4j"
+ ${NEO4J} restart >/dev/null 2>&1
+ eend $?
+}
+
+info() {
+ ${NEO4J} info
+}
diff --git a/dev-db/neo4j/metadata.xml b/dev-db/neo4j/metadata.xml
new file mode 100644
index 0000000..8e95404
--- /dev/null
+++ b/dev-db/neo4j/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <name>Leonardo Martins</name>
+ <email>leonardo@venidera.com</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-db/neo4j/neo4j-1.7.ebuild b/dev-db/neo4j/neo4j-1.7.ebuild
new file mode 100644
index 0000000..6cdf712
--- /dev/null
+++ b/dev-db/neo4j/neo4j-1.7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Neo4j is a high-performance, NOSQL graph database with all the features of a mature and robust database."
+HOMEPAGE="http://neo4j.org/"
+SRC_URI="http://dist.neo4j.org/${PN}-community-${PV}-unix.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+
+RDEPEND="!dev-db/neo4j-advanced
+ !dev-db/neo4j-enterprise
+ >=virtual/jre-1.6
+ sys-process/lsof"
+
+src_unpack() {
+ unpack ${A}
+}
+
+src_install() {
+ exeinto /opt/neo4j/bin
+ doexe "${S}"/bin/neo4j || die
+ doexe "${S}"/bin/neo4j-shell || die
+ doexe "${S}"/bin/utils || die
+
+ # system requirements
+ insinto /opt/neo4j/system/lib
+ doins "${S}"/system/lib/*.jar || die
+
+ # components directory
+ insinto /opt/neo4j/lib
+ doins "${S}"/lib/*.jar || die
+
+ # plugins directory
+ dodir /opt/neo4j/plugins || die
+
+ # config files
+ insinto /etc/neo4j
+ doins "${S}"/conf/neo4j-wrapper.conf || die
+ doins "${S}"/conf/neo4j.properties || die
+ doins "${S}"/conf/neo4j-server.properties || die
+ doins "${S}"/conf/logging.properties || die
+
+ # documentation
+ dodoc "${S}"/*.txt
+ dodoc -r "${S}"/doc/*
+
+ # init script
+ newinitd "${FILESDIR}"/neo4j.init neo4j || die
+
+ # create symlinks
+ dosym /opt/neo4j/bin/neo4j /opt/bin/neo4j || die
+ dosym /opt/neo4j/bin/neo4j-shell /opt/bin/neo4j-shell || die
+}