aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-07-09 20:38:31 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-07-14 12:22:19 +0500
commit3a44a689c61265e859ff37a535c2c87a2359757d (patch)
tree7aecdbe904e8983694f76e3bf272b4b54df17bee /eclass
parentboinc-app.eclass: rename doappinfo → boinc_install_appinfo (diff)
downloadguru-3a44a689c61265e859ff37a535c2c87a2359757d.tar.gz
guru-3a44a689c61265e859ff37a535c2c87a2359757d.tar.bz2
guru-3a44a689c61265e859ff37a535c2c87a2359757d.zip
boinc-app.eclass: allow non-standard runtime dir
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/boinc-app.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass
index a20c800cb..00ffd39ed 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