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:
parent
9c9b06fb4d
commit
67f5059b36
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user