boinc-app.eclass: allow non-standard runtime dir

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2024-07-09 20:38:31 +05:00
parent a681b42cac
commit 3a44a689c6
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1

View File

@ -71,6 +71,12 @@ if [[ ! ${_BOINC_APP_ECLASS} ]]; then
You have to attach to the corresponding project You have to attach to the corresponding project
in order to use this application with BOINC.} 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 # @FUNCTION: boinc-app_add_deps
# @USAGE: [--wrapper] # @USAGE: [--wrapper]
# @DESCRIPTION: # @DESCRIPTION:
@ -104,11 +110,9 @@ boinc_master_url_check() {
# @FUNCTION: get_boincdir # @FUNCTION: get_boincdir
# @USAGE: # @USAGE:
# @RETURN: non-prefixed default BOINC runtime directory # @RETURN: non-prefixed BOINC runtime directory
get_boincdir() { get_boincdir() {
debug-print-function ${FUNCNAME} "${@}" echo "${BOINC_RUNTIMEDIR:-/var/lib/boinc}"
echo /var/lib/boinc
} }
# @FUNCTION: get_project_dirname # @FUNCTION: get_project_dirname