From 67f5059b3605536e290a81d625667ec4e8cd50e2 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Fri, 13 Sep 2024 21:31:37 +0200 Subject: [PATCH] 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 --- authorized-exec.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authorized-exec.spec b/authorized-exec.spec index ca93012..dd5379d 100644 --- a/authorized-exec.spec +++ b/authorized-exec.spec @@ -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