acct-user/boinc: add into the docker group

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Part-of: https://github.com/gentoo/gentoo/pull/42187
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-05-21 18:55:14 +05:00
committed by Nowa Ammerlaan
parent 22c9a573ea
commit 2e004f5743

View File

@@ -0,0 +1,22 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="User for sci-misc/boinc"
ACCT_USER_ID=352
ACCT_USER_HOME=/var/lib/${PN}
ACCT_USER_HOME_PERMS=0750
ACCT_USER_GROUPS=( boinc docker video )
acct-user_add_deps
pkg_postinst() {
acct-user_pkg_postinst
elog "To run Docker application via Podman, BOINC needs to be granted permissions:"
elog "# usermod --add-subuids 1065536-1131071 boinc"
elog "# usermod --add-subgids 1065536-1131071 boinc"
}