acct-user/nginx: add USE=mgraph

Misses migration after acct-user got introduced.

Introduced USE-flags needed for net-mail/mailgraph

BannedEapiCommand
'gpasswd' banned in EAPI 7, used on line 81 'gpasswd -a apache mgraph'

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander 2024-11-08 16:34:24 +01:00 committed by Sam James
parent 025c3ef798
commit 0207657e1e
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 8 additions and 1 deletions

View File

@ -4,5 +4,6 @@
<!-- maintainer-needed --> <!-- maintainer-needed -->
<use> <use>
<flag name="icingaweb2">Prepare group membership for <pkg>www-apps/icingaweb2</pkg></flag> <flag name="icingaweb2">Prepare group membership for <pkg>www-apps/icingaweb2</pkg></flag>
<flag name="mgraph">Prepare group membership for <pkg>net-mail/mailgraph</pkg></flag>
</use> </use>
</pkgmetadata> </pkgmetadata>

View File

@ -9,7 +9,7 @@ ACCT_USER_ID="82"
ACCT_USER_GROUPS=( "nginx" ) ACCT_USER_GROUPS=( "nginx" )
ACCT_USER_HOME="/var/lib/nginx" ACCT_USER_HOME="/var/lib/nginx"
IUSE="icingaweb2" IUSE="icingaweb2 mgraph"
acct-user_add_deps acct-user_add_deps
@ -18,9 +18,15 @@ RDEPEND+="
acct-group/icingacmd acct-group/icingacmd
acct-group/icingaweb2 acct-group/icingaweb2
) )
mgraph? (
acct-group/mgraph
)
" "
pkg_setup() { pkg_setup() {
# www-apps/icingaweb2 # www-apps/icingaweb2
use icingaweb2 && ACCT_USER_GROUPS+=( icingacmd icingaweb2 ) use icingaweb2 && ACCT_USER_GROUPS+=( icingacmd icingaweb2 )
# net-mail/mailgraph
use mgraph && ACCT_USER_GROUPS+=( mgraph )
} }