Configuration directory/file in RPM

Create and own the configuration directory a user is expected to place
files in.
Move the example configuration to the canonical package document
directory as it is not a configuration to be used as is.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2024-09-13 21:31:37 +02:00
parent 9c9b06fb4d
commit 67f5059b36
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -38,11 +38,13 @@ authorized-exec is a command wrapper for use as a forced SSH command.
%install
%make_install PREFIX=%{_prefix} MANDIR=%{_mandir} SYSCONFDIR=%{_sysconfdir}
mv %{buildroot}%{_sysconfdir}/%{name}/config.example .
%files
%license LICENSE
%doc README.txt
%doc config.example README.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%dir %{_sysconfdir}/%{name}
%changelog