1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/databases/neo4j/files/patch-bin_neo4j-shell
Jonathan Anderson 63d67a6d68 Update neo4j to v3.3.2.
While we're here, fix up some variable names to ensure that all of the
scripts work (e.g., /usr/local/etc/rc.d/neo4j).

Approved by:	crees
Differential Revision:	https://reviews.freebsd.org/D14260
2018-02-09 02:40:11 +00:00

38 lines
1004 B
Plaintext

--- bin/neo4j-shell.orig 2018-02-07 19:48:06 UTC
+++ bin/neo4j-shell
@@ -39,7 +39,9 @@ build_classpath() {
detect_os() {
if uname -s | grep -q Darwin; then
DIST_OS="macosx"
- elif [[ -e /etc/gentoo-release ]]; then
+ elif uname -s | grep -q FreeBSD; then
+ DIST_OS="freebsd"
+ elif [[ -e /etc/gentoo-release ]]; then
DIST_OS="gentoo"
else
DIST_OS="other"
@@ -122,7 +124,10 @@ _find_java_home() {
[[ "${JAVA_HOME:-}" ]] && return
case "${DIST_OS}" in
- "macosx")
+ "freebsd")
+ JAVA_HOME="%%JAVA_HOME%%"
+ ;;
+ "macosx")
JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
;;
"gentoo")
@@ -138,9 +143,9 @@ _show_java_help() {
_setup_calculated_paths() {
if [[ -z "${NEO4J_HOME:-}" ]]; then
- NEO4J_HOME="$(cd "$(dirname "$0")"/.. && pwd)"
+ NEO4J_HOME="$(cd "$(dirname "$0")"/../neo4j && pwd)"
fi
- : "${NEO4J_CONF:="${NEO4J_HOME}/conf"}"
+ : "${NEO4J_CONF:="${NEO4J_HOME}/../etc"}"
readonly NEO4J_HOME NEO4J_CONF
}