mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
boinc-app.eclass: set owner to root
Don't let BOINC client remove our files. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -191,7 +191,7 @@ boinc-app_appinfo_prepare() {
|
|||||||
# doappinfo "${FILESDIR}"/app_info_${PV}.xml
|
# doappinfo "${FILESDIR}"/app_info_${PV}.xml
|
||||||
#
|
#
|
||||||
# exeinto $(get_project_root)
|
# exeinto $(get_project_root)
|
||||||
# exeopts -m 0755 --owner boinc --group boinc
|
# exeopts -m 0755 --owner root --group boinc
|
||||||
# newexe bin/${PN} example_app_v${PV}
|
# newexe bin/${PN} example_app_v${PV}
|
||||||
# }
|
# }
|
||||||
# @CODE
|
# @CODE
|
||||||
@@ -211,7 +211,7 @@ doappinfo() {
|
|||||||
|
|
||||||
( # subshell to avoid pollution of calling environment
|
( # subshell to avoid pollution of calling environment
|
||||||
insinto $(get_project_root)
|
insinto $(get_project_root)
|
||||||
insopts -m 0644 --owner boinc --group boinc
|
insopts -m 0644 --owner root --group boinc
|
||||||
doins "${T}"/app_info.xml
|
doins "${T}"/app_info.xml
|
||||||
) || die "failed to install app_info.xml"
|
) || die "failed to install app_info.xml"
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ dowrapper() {
|
|||||||
|
|
||||||
( # subshell to avoid pollution of calling environment
|
( # subshell to avoid pollution of calling environment
|
||||||
insinto $(get_project_root)
|
insinto $(get_project_root)
|
||||||
insopts -m 0644 --owner boinc --group boinc
|
insopts -m 0644 --owner root --group boinc
|
||||||
doins "${T}/${wrapperjob}"
|
doins "${T}/${wrapperjob}"
|
||||||
dosym -r /usr/bin/boinc-wrapper "$(get_project_root)/${wrapperexe}"
|
dosym -r /usr/bin/boinc-wrapper "$(get_project_root)/${wrapperexe}"
|
||||||
) || die "failed to install '${app}' wrapper app"
|
) || die "failed to install '${app}' wrapper app"
|
||||||
@@ -330,7 +330,7 @@ boinc-app_pkg_postinst() {
|
|||||||
boinc-app_pkg_postrm() {
|
boinc-app_pkg_postrm() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"]
|
debug-print-function ${FUNCNAME} "${@}"]
|
||||||
|
|
||||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
if [[ -z ${REPLACED_BY_VERSION} ]]; then
|
||||||
local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg"
|
local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg"
|
||||||
local passwd=$(cat "${EROOT}/${gui_rpc_auth}" 2>/dev/null)
|
local passwd=$(cat "${EROOT}/${gui_rpc_auth}" 2>/dev/null)
|
||||||
if [[ -z ${passwd} ]]; then
|
if [[ -z ${passwd} ]]; then
|
||||||
@@ -341,6 +341,7 @@ boinc-app_pkg_postrm() {
|
|||||||
elog "to stop current tasks and delete remaining project files:"
|
elog "to stop current tasks and delete remaining project files:"
|
||||||
elog
|
elog
|
||||||
elog "$ boinccmd --passwd ${passwd} --project ${BOINC_MASTER_URL} detach"
|
elog "$ boinccmd --passwd ${passwd} --project ${BOINC_MASTER_URL} detach"
|
||||||
|
elog
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user