diff --git a/anda/system/falcond/falcond.spec b/anda/system/falcond/falcond.spec index de9dda8cb9..257cc461c9 100644 --- a/anda/system/falcond/falcond.spec +++ b/anda/system/falcond/falcond.spec @@ -2,7 +2,7 @@ Name: falcond Version: 1.2.2 -Release: 1%?dist +Release: 2%?dist Summary: Advanced Linux Gaming Performance Daemon License: MIT URL: https://git.pika-os.com/general-packages/falcond @@ -15,6 +15,7 @@ Requires: %{name}-profiles Requires: (scx-scheds or scx-scheds-nightly) Suggests: %{name}-gui Conflicts: gamemode +Provides: group(falcond) Packager: Gilver E. %description @@ -37,6 +38,13 @@ DESTDIR="%{buildroot}" \ %{zig_build_target -r fast -s} \ %endif +%pre +# Create falcond group if it doesn't exist +getent group 'falcond' >/dev/null || groupadd -f -r 'falcond' || : + +# Root must be a member of the group +usermod -aG 'falcond' root || : + %post %systemd_post %{name}.service