1 |
commit: 4edaff1836f43fc50d07deaf7e4b26fc80608c80 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Jun 25 19:16:00 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sat Jun 25 19:40:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4edaff18 |
7 |
|
8 |
boinc-app.eclass: set owner to root |
9 |
|
10 |
Don't let BOINC client remove our files. |
11 |
|
12 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
13 |
|
14 |
eclass/boinc-app.eclass | 9 +++++---- |
15 |
1 file changed, 5 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass |
18 |
index 8478c373d..2b6fc5e40 100644 |
19 |
--- a/eclass/boinc-app.eclass |
20 |
+++ b/eclass/boinc-app.eclass |
21 |
@@ -191,7 +191,7 @@ boinc-app_appinfo_prepare() { |
22 |
# doappinfo "${FILESDIR}"/app_info_${PV}.xml |
23 |
# |
24 |
# exeinto $(get_project_root) |
25 |
-# exeopts -m 0755 --owner boinc --group boinc |
26 |
+# exeopts -m 0755 --owner root --group boinc |
27 |
# newexe bin/${PN} example_app_v${PV} |
28 |
# } |
29 |
# @CODE |
30 |
@@ -211,7 +211,7 @@ doappinfo() { |
31 |
|
32 |
( # subshell to avoid pollution of calling environment |
33 |
insinto $(get_project_root) |
34 |
- insopts -m 0644 --owner boinc --group boinc |
35 |
+ insopts -m 0644 --owner root --group boinc |
36 |
doins "${T}"/app_info.xml |
37 |
) || die "failed to install app_info.xml" |
38 |
|
39 |
@@ -279,7 +279,7 @@ dowrapper() { |
40 |
|
41 |
( # subshell to avoid pollution of calling environment |
42 |
insinto $(get_project_root) |
43 |
- insopts -m 0644 --owner boinc --group boinc |
44 |
+ insopts -m 0644 --owner root --group boinc |
45 |
doins "${T}/${wrapperjob}" |
46 |
dosym -r /usr/bin/boinc-wrapper "$(get_project_root)/${wrapperexe}" |
47 |
) || die "failed to install '${app}' wrapper app" |
48 |
@@ -330,7 +330,7 @@ boinc-app_pkg_postinst() { |
49 |
boinc-app_pkg_postrm() { |
50 |
debug-print-function ${FUNCNAME} "${@}"] |
51 |
|
52 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
53 |
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then |
54 |
local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg" |
55 |
local passwd=$(cat "${EROOT}/${gui_rpc_auth}" 2>/dev/null) |
56 |
if [[ -z ${passwd} ]]; then |
57 |
@@ -341,6 +341,7 @@ boinc-app_pkg_postrm() { |
58 |
elog "to stop current tasks and delete remaining project files:" |
59 |
elog |
60 |
elog "$ boinccmd --passwd ${passwd} --project ${BOINC_MASTER_URL} detach" |
61 |
+ elog |
62 |
fi |
63 |
} |