From 3a44a689c61265e859ff37a535c2c87a2359757d Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Tue, 9 Jul 2024 20:38:31 +0500 Subject: [PATCH] boinc-app.eclass: allow non-standard runtime dir Signed-off-by: Anna (cybertailor) Vyalkova --- eclass/boinc-app.eclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index a20c800cb8..00ffd39ed7 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -71,6 +71,12 @@ if [[ ! ${_BOINC_APP_ECLASS} ]]; then You have to attach to the corresponding project in order to use this application with BOINC.} +# @ECLASS_VARIABLE: BOINC_RUNTIMEDIR +# @USER_VARIABLE +# @DEFAULT_UNSET +# @DESCRIPTION: +# Directory with BOINC runtime data. + # @FUNCTION: boinc-app_add_deps # @USAGE: [--wrapper] # @DESCRIPTION: @@ -104,11 +110,9 @@ boinc_master_url_check() { # @FUNCTION: get_boincdir # @USAGE: -# @RETURN: non-prefixed default BOINC runtime directory +# @RETURN: non-prefixed BOINC runtime directory get_boincdir() { - debug-print-function ${FUNCNAME} "${@}" - - echo /var/lib/boinc + echo "${BOINC_RUNTIMEDIR:-/var/lib/boinc}" } # @FUNCTION: get_project_dirname