X-Git-Url: https://git.tld-linux.org/?p=packages%2Fmunin.git;a=blobdiff_plain;f=munin.spec;h=428636493a7742fb4b2a79d4c262c882e61148ed;hp=c50f9a3bd11088cedbb4e02dd2ed5278d7cb3802;hb=11d3c3b815e462e7351fea6aa7b7a242241199f4;hpb=247e5f21c9c71034ae5fa8d7ec6b398d15ce3c38 diff --git a/munin.spec b/munin.spec index c50f9a3..4286364 100644 --- a/munin.spec +++ b/munin.spec @@ -1,7 +1,3 @@ -# TODO -# - R: perl* should be autogenerated? -# - add plugins-java package and proper BRs -# # Condtional build: %bcond_with sybase # add Sybase support to munin-node @@ -9,12 +5,12 @@ Summary: Munin - the Linpro RRD data agent Summary(pl.UTF-8): Munin - agent danych RRD Linpro Name: munin -Version: 2.0.19 -Release: 4 +Version: 2.0.25 +Release: 1 License: GPL Group: Applications/WWW Source0: http://downloads.sourceforge.net/munin/%{name}-%{version}.tar.gz -# Source0-md5: ab27d477052c0f5da4ed81edb7f95f1b +# Source0-md5: b418a667ce42665557329a7ac3bd1b93 Source1: %{name}-node.init Source2: %{name}.cron Source3: %{name}-apache.conf @@ -23,6 +19,7 @@ Source5: %{name}-node.logrotate Source6: %{name}-lighttpd.conf Source8: %{name}-httpd.conf Source11: %{name}-asyncd.init +Source12: %{name}-asyncd.sysconfig Patch0: %{name}-Makefile.patch Patch1: %{name}-plugins.patch Patch2: %{name}-templatedir.patch @@ -136,7 +133,7 @@ Munin. %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,cron.d,logrotate.d},%{_bindir},%{_sbindir}} \ +install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,cron.d,logrotate.d,sysconfig},%{_bindir},%{_sbindir}} \ $RPM_BUILD_ROOT/var/log/archive/munin \ $RPM_BUILD_ROOT%{_webapps}/%{_webapp} @@ -148,8 +145,10 @@ install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,cron.d,logrotate.d},%{_bindir},%{_s # move asyncd daemon do sbin %{__mv} $RPM_BUILD_ROOT{%{_datadir}/munin,%{_sbindir}}/munin-asyncd -install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/munin-asyncd install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/munin-node +install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/munin-asyncd +install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/munin-asyncd + cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/munin cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/munin cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/munin-node @@ -158,6 +157,7 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf + cp -p dists/tarball/plugins.conf $RPM_BUILD_ROOT%{_sysconfdir} ln -sf %{_sysconfdir}/plugins.conf $RPM_BUILD_ROOT%{_sysconfdir}/plugin-conf.d/munin-node @@ -311,6 +311,7 @@ fi %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugin-conf.d/munin-node %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/munin-node +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/munin-asyncd %attr(754,root,root) /etc/rc.d/init.d/munin-asyncd %attr(754,root,root) /etc/rc.d/init.d/munin-node %attr(755,root,root) %{_bindir}/munindoc @@ -337,7 +338,3 @@ fi %{_mandir}/man3/Munin::Node* %{_mandir}/man3/Munin::Plugin* %{_mandir}/man5/munin-node.conf* - -#%files plugins-java -#%defattr(644,root,root,755) -#%{_datadir}/munin/munin-jmx-plugins.jar