]> git.pld-linux.org Git - packages/collectd.git/blobdiff - collectd.spec
- migrate to apache 2.4
[packages/collectd.git] / collectd.spec
index c7e4c7228168d9e176878cf79dcd0f4b67f9945a..0eadc0f68e870babb2ebdbfa790df34094a6c55b 100644 (file)
@@ -1,4 +1,4 @@
-#       $Revision: 1.122 $, $Date: 2012-05-07 17:55:54 $
+#       $Revision: 1.123 $, $Date: 2012-06-05 12:38:02 $
 # TODO:
 # - package contrib scripts as %doc
 # - perl modules with Collectd classes package to separate package
@@ -68,7 +68,7 @@ Summary:      Collects system information in RRD files
 Summary(pl.UTF-8):     Zbieranie informacji o systemie w plikach RRD
 Name:          collectd
 Version:       5.1.0
-Release:       1
+Release:       3
 License:       GPL v2
 Group:         Daemons
 Source0:       http://collectd.org/files/%{name}-%{version}.tar.bz2
@@ -77,6 +77,7 @@ Source1:      %{name}.conf
 Source2:       %{name}.init
 Source3:       %{name}-http.conf
 Source4:       %{name}-lighttpd.conf
+Source5:       %{name}-apache.conf
 Source10:      %{name}-df.conf
 Source11:      %{name}-rrdtool.conf
 Patch0:                %{name}-collection.patch
@@ -262,6 +263,7 @@ Requires:   perl(RRDs)
 Requires:      perl(URI::Escape)
 Requires:      webserver(cgi)
 Suggests:      fonts-TTF-DejaVu
+Conflicts:     apache-base < 2.4.0-1
 
 %description collection
 Web script for collectd.
@@ -278,6 +280,7 @@ Requires:   perl(Regexp::Common)
 Requires:      perl(RRDs)
 Requires:      webserver(cgi)
 Suggests:      fonts-TTF-DejaVu
+Conflicts:     apache-base < 2.4.0-1
 
 %description collection3
 Web script for collectd.
@@ -1329,7 +1332,7 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 # Web frontend:
 install contrib/collection.conf $RPM_BUILD_ROOT%{_webappdir}
 install contrib/collection.cgi $RPM_BUILD_ROOT%{_appdir}/cgi-bin
-install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
+install %{SOURCE5} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
 install %{SOURCE4} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
 
@@ -1478,10 +1481,10 @@ fi
 %triggerun collection -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin collection -- apache < 2.2.0, apache-base
+%triggerin collection -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun collection -- apache < 2.2.0, apache-base
+%triggerun collection -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin collection -- lighttpd
@@ -2036,10 +2039,12 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/uuid.conf
 %attr(755,root,root) %{_libdir}/%{name}/uuid.so
 
+%if %{with varnish}
 %files varnish
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.d/varnish.conf
 %attr(755,root,root) %{_libdir}/%{name}/varnish.so
+%endif
 
 %files vmem
 %defattr(644,root,root,755)
This page took 1.561497 seconds and 4 git commands to generate.