spec: Install icinga2.conf by default.

fixes #4523
This commit is contained in:
Michael Friedrich 2013-08-16 16:34:24 +02:00
parent e6ee4c9191
commit e78e547200
1 changed files with 4 additions and 1 deletions

View File

@ -33,13 +33,16 @@ make %{?_smp_mflags}
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot} [ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
# dist config
mv %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf.dist %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
%clean %clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot} [ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/%{name} %{_sysconfdir}/%{name}
#%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(755,-,-) %{_sysconfdir}/init.d/%{name} %attr(755,-,-) %{_sysconfdir}/init.d/%{name}
%{_bindir}/%{name} %{_bindir}/%{name}
%{_libdir}/%{name} %{_libdir}/%{name}