d682cf0b3e
Tighten LIB_DEPENDS. Don't hardcode /usr/local and /etc. ok jmatthew@ (maintainer)
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
$OpenBSD: patch-vars_config,v 1.2 2012/08/25 06:33:14 ajacoutot Exp $
|
|
|
|
use system locations for riak files.
|
|
|
|
--- rel/vars.config.orig Tue Aug 7 08:02:45 2012
|
|
+++ rel/vars.config Wed Aug 8 11:21:39 2012
|
|
@@ -2,11 +2,11 @@
|
|
%% ex: ft=erlang ts=4 sw=4 et
|
|
|
|
%% Platform-specific installation paths
|
|
-{platform_bin_dir, "./bin"}.
|
|
-{platform_data_dir, "./data"}.
|
|
-{platform_etc_dir, "./etc"}.
|
|
-{platform_lib_dir, "./lib"}.
|
|
-{platform_log_dir, "./log"}.
|
|
+{platform_bin_dir, "${PREFIX}/bin"}.
|
|
+{platform_data_dir, "/var/riak"}.
|
|
+{platform_etc_dir, "${SYSCONFDIR}/riak"}.
|
|
+{platform_lib_dir, "${PREFIX}/lib/riak"}.
|
|
+{platform_log_dir, "/var/log/riak"}.
|
|
|
|
%%
|
|
%% etc/app.config
|
|
@@ -40,9 +40,9 @@
|
|
%%
|
|
%% bin/riak
|
|
%%
|
|
-{runner_script_dir, "$(cd ${0%/*} && pwd)"}.
|
|
-{runner_base_dir, "${RUNNER_SCRIPT_DIR%/*}"}.
|
|
-{runner_etc_dir, "$RUNNER_BASE_DIR/etc"}.
|
|
-{runner_log_dir, "$RUNNER_BASE_DIR/log"}.
|
|
-{pipe_dir, "/tmp/$RUNNER_BASE_DIR/"}.
|
|
-{runner_user, ""}.
|
|
+{runner_script_dir, "${PREFIX}/sbin"}.
|
|
+{runner_base_dir, "{{platform_lib_dir}}"}.
|
|
+{runner_etc_dir, "{{platform_etc_dir}}"}.
|
|
+{runner_log_dir, "{{platform_log_dir}}"}.
|
|
+{pipe_dir, "/tmp/riak/"}.
|
|
+{runner_user, "_riak"}.
|