Thank you very much for the information.
I still have a few questions as I'm not sure how to implement this in the rpm
spec file.
If I want to use the rpm spec file for both Fedora42 and Fedor43, do I need to
introduce a %if condition.
%prep
...
# Create a sysusers.d config file
cat >vdr.sysusers.conf <<EOF
#Type Name ID GECOS Home
directory Shell
u %{vdr_user} - "VDR daemon user" -
-
g %{vdr_group} -
%{vardir} /sbin/nologin -M -N
g audio,cdrom,dialout "Video Disk Recorder" %{vdr_user}
EOF
%install
# ... existing install commands ...
install -D -m 0644 vdr.sysusers.conf %{buildroot}%{_sysusersdir}/vdr.conf
%files
...
%{_sysusersdir}/vdr.conf
Can you help me create the vdr.conf file?
Regards
Martin
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue