From c04aa1eea2cebc37038f4d66af446de3ed478eca Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 15 Jun 2006 20:15:48 +0000 Subject: [PATCH 001/124] auto-import ganglia-3.0.3-7 on branch devel from ganglia-3.0.3-7.src.rpm --- .cvsignore | 1 + ganglia.spec | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 235 insertions(+) create mode 100644 ganglia.spec diff --git a/.cvsignore b/.cvsignore index e69de29..0812bfd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ganglia-3.0.3.tar.gz diff --git a/ganglia.spec b/ganglia.spec new file mode 100644 index 0000000..c10530b --- /dev/null +++ b/ganglia.spec @@ -0,0 +1,233 @@ +Name: ganglia +Version: 3.0.3 +Release: 7%{?dist} +Summary: Ganglia Distributed Monitoring System + +Group: Applications/Internet +License: BSD +URL: http://ganglia.sourceforge.net/ +Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: rrdtool-devel + +%description +Ganglia is a scalable, real-time monitoring and execution environment +with all execution requests and statistics expressed in an open +well-defined XML format. + +%package web +Summary: Ganglia Web Frontend +Group: Applications/Internet +Requires: rrdtool +Requires: %{name}-gmetad >= 3.0.3 + +%description web +This package provides a web frontend to display the XML tree published by +ganglia, and to provide historical graphs of collected metrics. This website is +written in the PHP4 language. + +%package gmetad +Summary: Ganglia Metadata collection daemon +Group: Applications/Internet + +%description gmetad +Ganglia is a scalable, real-time monitoring and execution environment +with all execution requests and statistics expressed in an open +well-defined XML format. + +This gmetad daemon aggregates monitoring data from several clusters +to form a monitoring grid. It also keeps metric history using rrdtool. + +%package gmond +Summary: Ganglia Monitoring daemon +Group: Applications/Internet + +%description gmond +Ganglia is a scalable, real-time monitoring and execution environment +with all execution requests and statistics expressed in an open +well-defined XML format. + +This gmond daemon provides the ganglia service within a single cluster or +Multicast domain. + +%package devel +Summary: Ganglia Library http://ganglia.sourceforge.net/ +Group: Applications/Internet + +%description devel +The Ganglia Monitoring Core library provides a set of functions that +programmers can use to build scalable cluster or grid applications + +%prep +%setup -q +# Hey, those shouldn't be executable... +chmod -x lib/{net,rdwr,hash,llist}.h \ + srclib/libmetrics/linux/fsusage.h \ + srclib/libmetrics/error.c + +%build +%configure \ + --prefix=/usr \ + --libdir=%{_libdir} \ + --with-gmetad \ + --with-shared \ + LDFLAGS="-L%{_libdir}" + ### Build currently fails if enabled + #--disable-static \ + +## Default to run as user ganglia instead of nobody +%{__perl} -pi.orig -e 's|nobody|ganglia|g' \ + lib/libgmond.c gmetad/conf.c gmond/g25_config.c \ + gmetad/gmetad.conf gmond/gmond.conf.html ganglia.html \ + gmond/conf.pod ganglia.pod README + +## Don't have initscripts turn daemons on by default +%{__perl} -pi.orig -e 's|2345|-|g' \ + gmond/gmond.init gmetad/gmetad.init + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +## Put web files in place +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +cp -rp %{_builddir}/%{name}-%{version}/web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ +mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ +ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ + $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php +cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf + # + # Ganglia monitoring system php web frontend + # + + Alias /%{name} %{_datadir}/%{name} +__EOF__ + +## Create directory structures +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/rrds +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 +## Put files in place +cp -p %{_builddir}/%{name}-%{version}/gmond/gmond.init $RPM_BUILD_ROOT/etc/rc.d/init.d/gmond +cp -p %{_builddir}/%{name}-%{version}/gmetad/gmetad.init $RPM_BUILD_ROOT/etc/rc.d/init.d/gmetad +cp -p %{_builddir}/%{name}-%{version}/gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 +cp -p %{_builddir}/%{name}-%{version}/gmetad/gmetad.conf $RPM_BUILD_ROOT/etc/gmetad.conf +cp -p %{_builddir}/%{name}-%{version}/mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ +## Build default gmond.conf from gmond using the '-t' flag +%{_builddir}/%{name}-%{version}/gmond/gmond -t > $RPM_BUILD_ROOT/etc/gmond.conf +## Install binaries +make install DESTDIR=$RPM_BUILD_ROOT +## House cleaning +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_datadir}/{Makefile.am,version.php.in} + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre gmetad +# Add the "ganglia" user +/usr/sbin/useradd -c "Ganglia Monitoring System" \ + -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : + +%post gmond +/sbin/chkconfig --add gmond + +%post gmetad +/sbin/chkconfig --add gmetad + +%preun gmetad +if [ "$1" = 0 ] +then + # No conditional stop provided. :( + /sbin/service gmetad status + if [ "$?" -eq 0 ] + then + /sbin/service gmetad stop + fi + /sbin/chkconfig --del gmetad +fi + +%preun gmond +if [ "$1" = 0 ] +then + # No conditional stop provided. :( + /sbin/service gmond status + if [ "$?" -eq 0 ] + then + /sbin/service gmond stop + fi + /sbin/chkconfig --del gmond +fi + +%post devel -p /sbin/ldconfig + +%postun devel -p /sbin/ldconfig + +%files gmetad +%defattr(-,root,root,-) +%attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds +%{_sbindir}/gmetad +%{_mandir}/man1/gmetad.1* +%{_sysconfdir}/rc.d/init.d/gmetad +%config(noreplace) %{_sysconfdir}/gmetad.conf + +%files gmond +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README ChangeLog +%{_bindir}/gmetric +%{_bindir}/gstat +%{_sbindir}/gmond +%{_sysconfdir}/rc.d/init.d/gmond +%{_mandir}/man5/gmond.conf.5* +%{_mandir}/man1/gmond.1* +%{_mandir}/man1/gstat.1* +%{_mandir}/man1/gmetric.1* +%config(noreplace) %{_sysconfdir}/gmond.conf + +%files devel +%defattr(-,root,root,-) +%{_includedir}/ganglia.h +%{_libdir}/libganglia*.so* +%{_bindir}/ganglia-config +%exclude %{_libdir}/libganglia.a + +%files web +%defattr(-,root,root,-) +%doc web/AUTHORS web/COPYING web/ChangeLog +%config(noreplace) %{_sysconfdir}/%{name}/conf.php +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%{_datadir}/%{name} + +%changelog +* Tue Jun 13 2006 Jarod Wilson 3.0.3-7 +- Clean up documentation + +* Mon Jun 12 2006 Jarod Wilson 3.0.3-6 +- Remove misplaced execute perms on source files + +* Thu Jun 08 2006 Jarod Wilson 3.0.3-5 +- Whack Obsoletes/Provides, since its never been in FE before +- Use mandir macro +- Check if service is running before issuing a stop in postun +- Remove shadow-utils Prereq, its on the FE exception list + +* Mon Jun 05 2006 Jarod Wilson 3.0.3-4 +- Run things as user ganglia instead of nobody +- Don't turn on daemons by default + +* Mon Jun 05 2006 Jarod Wilson 3.0.3-3 +- Kill off static libs +- Add URL for Source0 + +* Mon Jun 05 2006 Jarod Wilson 3.0.3-2 +- Move web-frontend from /var/www/html/ to /usr/share/ +- Make everything arch-specific + +* Thu Jun 01 2006 Jarod Wilson 3.0.3-1 +- Initial build for Fedora Extras, converting existing spec to + (attempt to) conform with Fedora packaging guidelines diff --git a/sources b/sources index e69de29..7c0410b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c48320a112db20e8372ae8e89d97583e ganglia-3.0.3.tar.gz From 88c0b3040a49b5724debd68fdf8131fa6626a276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 27 Aug 2006 20:25:19 +0000 Subject: [PATCH 002/124] http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild --- needs.rebuild | 1 + 1 file changed, 1 insertion(+) create mode 100644 needs.rebuild diff --git a/needs.rebuild b/needs.rebuild new file mode 100644 index 0000000..815fd29 --- /dev/null +++ b/needs.rebuild @@ -0,0 +1 @@ +http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild From 69233b7eb656f20d90d4571836df33552fec5109 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Tue, 5 Sep 2006 14:06:36 +0000 Subject: [PATCH 003/124] rebuild bump --- ganglia.spec | 83 ++++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index c10530b..d58cf05 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,15 +1,15 @@ -Name: ganglia -Version: 3.0.3 -Release: 7%{?dist} -Summary: Ganglia Distributed Monitoring System +Name: ganglia +Version: 3.0.3 +Release: 10%{?dist} +Summary: Ganglia Distributed Monitoring System -Group: Applications/Internet -License: BSD -URL: http://ganglia.sourceforge.net/ -Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Group: Applications/Internet +License: BSD +URL: http://ganglia.sourceforge.net/ +Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: rrdtool-devel +BuildRequires: rrdtool-devel %description Ganglia is a scalable, real-time monitoring and execution environment @@ -17,10 +17,10 @@ with all execution requests and statistics expressed in an open well-defined XML format. %package web -Summary: Ganglia Web Frontend -Group: Applications/Internet -Requires: rrdtool -Requires: %{name}-gmetad >= 3.0.3 +Summary: Ganglia Web Frontend +Group: Applications/Internet +Requires: rrdtool, php +Requires: %{name}-gmetad = %{version}-%{release} %description web This package provides a web frontend to display the XML tree published by @@ -28,8 +28,11 @@ ganglia, and to provide historical graphs of collected metrics. This website is written in the PHP4 language. %package gmetad -Summary: Ganglia Metadata collection daemon -Group: Applications/Internet +Summary: Ganglia Metadata collection daemon +Group: Applications/Internet +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service %description gmetad Ganglia is a scalable, real-time monitoring and execution environment @@ -40,8 +43,11 @@ This gmetad daemon aggregates monitoring data from several clusters to form a monitoring grid. It also keeps metric history using rrdtool. %package gmond -Summary: Ganglia Monitoring daemon -Group: Applications/Internet +Summary: Ganglia Monitoring daemon +Group: Applications/Internet +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service %description gmond Ganglia is a scalable, real-time monitoring and execution environment @@ -52,8 +58,8 @@ This gmond daemon provides the ganglia service within a single cluster or Multicast domain. %package devel -Summary: Ganglia Library http://ganglia.sourceforge.net/ -Group: Applications/Internet +Summary: Ganglia Library +Group: Applications/Internet %description devel The Ganglia Monitoring Core library provides a set of functions that @@ -61,19 +67,16 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -# Hey, those shouldn't be executable... +## Hey, those shouldn't be executable... chmod -x lib/{net,rdwr,hash,llist}.h \ srclib/libmetrics/linux/fsusage.h \ srclib/libmetrics/error.c %build %configure \ - --prefix=/usr \ - --libdir=%{_libdir} \ --with-gmetad \ - --with-shared \ - LDFLAGS="-L%{_libdir}" - ### Build currently fails if enabled + --with-shared +## Build currently fails if enabled #--disable-static \ ## Default to run as user ganglia instead of nobody @@ -130,7 +133,7 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/{Makefile.am,version.php.in} rm -rf $RPM_BUILD_ROOT %pre gmetad -# Add the "ganglia" user +## Add the "ganglia" user /usr/sbin/useradd -c "Ganglia Monitoring System" \ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : @@ -143,24 +146,14 @@ rm -rf $RPM_BUILD_ROOT %preun gmetad if [ "$1" = 0 ] then - # No conditional stop provided. :( - /sbin/service gmetad status - if [ "$?" -eq 0 ] - then - /sbin/service gmetad stop - fi + /sbin/service gmetad stop >/dev/null 2>&1 || : /sbin/chkconfig --del gmetad fi %preun gmond if [ "$1" = 0 ] then - # No conditional stop provided. :( - /sbin/service gmond status - if [ "$?" -eq 0 ] - then - /sbin/service gmond stop - fi + /sbin/service gmond stop >/dev/null 2>&1 || : /sbin/chkconfig --del gmond fi @@ -204,6 +197,18 @@ fi %{_datadir}/%{name} %changelog +* Tue Sep 05 2006 Jarod Wilson 3.0.3-10 +- Rebuild for new glibc + +* Fri Jul 28 2006 Jarod Wilson 3.0.3-9 +- Add missing Reqs on chkconfig and service +- Make %%preun sections match Fedora Extras standards +- Minor %%configure tweak + +* Tue Jul 11 2006 Jarod Wilson 3.0.3-8 +- Add missing php req for ganglia-web +- Misc tiny spec cleanups + * Tue Jun 13 2006 Jarod Wilson 3.0.3-7 - Clean up documentation From 7976fafca772fcbcca3c76e98553335e75574205 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Tue, 5 Sep 2006 15:13:02 +0000 Subject: [PATCH 004/124] rebuild done --- needs.rebuild | 1 - 1 file changed, 1 deletion(-) delete mode 100644 needs.rebuild diff --git a/needs.rebuild b/needs.rebuild deleted file mode 100644 index 815fd29..0000000 --- a/needs.rebuild +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild From beb9fd8c1e32f8b77a28c1b8f48583f46887bf2d Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 9 Nov 2006 19:05:56 +0000 Subject: [PATCH 005/124] - Both gmetad and gmond need to run as the ganglia user, but its quite often the case that only one or the other is installed on a system. Have both try to create the ganglia user -- if both try on the same system, the second should silently fail (bz #214762). --- ganglia.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index d58cf05..6466f82 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.3 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -132,11 +132,20 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/{Makefile.am,version.php.in} %clean rm -rf $RPM_BUILD_ROOT +### Both gmetad and gmond require user ganglia, but monitored +### nodes only need gmond, servers only need gmetad... So have +### both packages try to add the user (second one should just +### fail silently). %pre gmetad ## Add the "ganglia" user /usr/sbin/useradd -c "Ganglia Monitoring System" \ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : +%pre gmond +## Add the "ganglia" user +/usr/sbin/useradd -c "Ganglia Monitoring System" \ + -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : + %post gmond /sbin/chkconfig --add gmond @@ -197,6 +206,9 @@ fi %{_datadir}/%{name} %changelog +* Thu Nov 09 2006 Jarod Wilson 3.0.3-11 +- gmond also needs ganglia user (#214762) + * Tue Sep 05 2006 Jarod Wilson 3.0.3-10 - Rebuild for new glibc From 984288e332b0b77da18840d12c1582cf3037aee3 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Tue, 2 Jan 2007 15:51:06 +0000 Subject: [PATCH 006/124] New upstream release v3.0.4 --- .cvsignore | 1 + ganglia.spec | 12 ++++++++---- sources | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 0812bfd..789c9c0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ ganglia-3.0.3.tar.gz +ganglia-3.0.4.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 6466f82..2ba5ad5 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.0.3 -Release: 11%{?dist} +Version: 3.0.4 +Release: 1%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -69,8 +69,9 @@ programmers can use to build scalable cluster or grid applications %setup -q ## Hey, those shouldn't be executable... chmod -x lib/{net,rdwr,hash,llist}.h \ - srclib/libmetrics/linux/fsusage.h \ - srclib/libmetrics/error.c + libmetrics/linux/fsusage.h \ + libmetrics/error.c \ + libmetrics/debug_msg.h %build %configure \ @@ -206,6 +207,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Jan 02 2007 Jarod Wilson 3.0.4-1 +- New upstream release + * Thu Nov 09 2006 Jarod Wilson 3.0.3-11 - gmond also needs ganglia user (#214762) diff --git a/sources b/sources index 7c0410b..2c67736 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ c48320a112db20e8372ae8e89d97583e ganglia-3.0.3.tar.gz +9a51023accb59b6ba76c10d7cb7322fa ganglia-3.0.4.tar.gz From 66821008d16de937f7556d00425fa2fc855faad2 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Sun, 25 Mar 2007 02:10:20 +0000 Subject: [PATCH 007/124] Own created directories (#233790) --- ganglia.spec | 7 ++++++- sources | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 2ba5ad5..b89e00d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -173,6 +173,7 @@ fi %files gmetad %defattr(-,root,root,-) +%dir %{_localstatedir}/lib/%{name} %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad %{_mandir}/man1/gmetad.1* @@ -202,11 +203,15 @@ fi %files web %defattr(-,root,root,-) %doc web/AUTHORS web/COPYING web/ChangeLog +%dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Sat Mar 24 2007 Jarod Wilson 3.0.4-2 +- Own created directories (#233790) + * Tue Jan 02 2007 Jarod Wilson 3.0.4-1 - New upstream release diff --git a/sources b/sources index 2c67736..5f39e15 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -c48320a112db20e8372ae8e89d97583e ganglia-3.0.3.tar.gz 9a51023accb59b6ba76c10d7cb7322fa ganglia-3.0.4.tar.gz From 1f4335441c4532705e6363850b4919d27ab993c9 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Fri, 18 May 2007 15:27:15 +0000 Subject: [PATCH 008/124] Add missing Req: php-gd so people will see nifty pie charts... --- ganglia.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index b89e00d..ddce22a 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -19,7 +19,7 @@ well-defined XML format. %package web Summary: Ganglia Web Frontend Group: Applications/Internet -Requires: rrdtool, php +Requires: rrdtool, php, php-gd Requires: %{name}-gmetad = %{version}-%{release} %description web @@ -209,6 +209,9 @@ fi %{_datadir}/%{name} %changelog +* Fri May 18 2007 Jarod Wilson 3.0.4-3 +- Add missing Req: php-gd so people will see nifty pie charts + * Sat Mar 24 2007 Jarod Wilson 3.0.4-2 - Own created directories (#233790) From 46ee98452f8a347c4cf76086d81bf226ba324d15 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 3 Oct 2007 13:25:12 +0000 Subject: [PATCH 009/124] New upstream release, ganglia 3.0.5 --- .cvsignore | 3 +-- ganglia.spec | 12 ++++++------ sources | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index 789c9c0..daa15a4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -ganglia-3.0.3.tar.gz -ganglia-3.0.4.tar.gz +ganglia-3.0.5.tar.gz diff --git a/ganglia.spec b/ganglia.spec index ddce22a..6b881ff 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.0.4 -Release: 3%{?dist} +Version: 3.0.5 +Release: 1%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -68,10 +68,7 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q ## Hey, those shouldn't be executable... -chmod -x lib/{net,rdwr,hash,llist}.h \ - libmetrics/linux/fsusage.h \ - libmetrics/error.c \ - libmetrics/debug_msg.h +chmod -x lib/*.{h,x} %build %configure \ @@ -209,6 +206,9 @@ fi %{_datadir}/%{name} %changelog +* Wed Oct 03 2007 Jarod Wilson 3.0.5-1 +- New upstream release + * Fri May 18 2007 Jarod Wilson 3.0.4-3 - Add missing Req: php-gd so people will see nifty pie charts diff --git a/sources b/sources index 5f39e15..09290c0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9a51023accb59b6ba76c10d7cb7322fa ganglia-3.0.4.tar.gz +44d632338b56160790144480d9ed7abe ganglia-3.0.5.tar.gz From 2f7fc3a2501c2050dc2e3bef6b844298a0d4f1a0 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 25 Oct 2007 01:59:46 +0000 Subject: [PATCH 010/124] - Reorg packages to fix multilib conflicts (#341201) --- ganglia.spec | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 6b881ff..0ce3206 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -30,6 +30,7 @@ written in the PHP4 language. %package gmetad Summary: Ganglia Metadata collection daemon Group: Applications/Internet +Requires: %{name} = %{version}-%{release} Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service @@ -45,6 +46,7 @@ to form a monitoring grid. It also keeps metric history using rrdtool. %package gmond Summary: Ganglia Monitoring daemon Group: Applications/Internet +Requires: %{name} = %{version}-%{release} Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service @@ -60,6 +62,7 @@ Multicast domain. %package devel Summary: Ganglia Library Group: Applications/Internet +Requires: %{name} = %{version}-%{release} %description devel The Ganglia Monitoring Core library provides a set of functions that @@ -130,16 +133,7 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/{Makefile.am,version.php.in} %clean rm -rf $RPM_BUILD_ROOT -### Both gmetad and gmond require user ganglia, but monitored -### nodes only need gmond, servers only need gmetad... So have -### both packages try to add the user (second one should just -### fail silently). -%pre gmetad -## Add the "ganglia" user -/usr/sbin/useradd -c "Ganglia Monitoring System" \ - -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : - -%pre gmond +%pre ## Add the "ganglia" user /usr/sbin/useradd -c "Ganglia Monitoring System" \ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : @@ -168,6 +162,13 @@ fi %postun devel -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README ChangeLog +%{_libdir}/libganglia*.so.* +%{_bindir}/ganglia-config + %files gmetad %defattr(-,root,root,-) %dir %{_localstatedir}/lib/%{name} @@ -179,7 +180,6 @@ fi %files gmond %defattr(-,root,root,-) -%doc AUTHORS COPYING NEWS README ChangeLog %{_bindir}/gmetric %{_bindir}/gstat %{_sbindir}/gmond @@ -193,8 +193,7 @@ fi %files devel %defattr(-,root,root,-) %{_includedir}/ganglia.h -%{_libdir}/libganglia*.so* -%{_bindir}/ganglia-config +%{_libdir}/libganglia*.so %exclude %{_libdir}/libganglia.a %files web @@ -206,6 +205,9 @@ fi %{_datadir}/%{name} %changelog +* Wed Oct 24 2007 Jarod Wilson 3.0.5-2 +- Reorg packages to fix multilib conflicts (#341201) + * Wed Oct 03 2007 Jarod Wilson 3.0.5-1 - New upstream release From 6647e9f0940f2114129f2f1b59d5f2e821b33d15 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Mon, 17 Dec 2007 14:33:07 +0000 Subject: [PATCH 011/124] - New upstream release (security fix for web frontend cross-scripting vulnerability) --- .cvsignore | 1 + ganglia.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index daa15a4..351dfdd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ ganglia-3.0.5.tar.gz +ganglia-3.0.6.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 0ce3206..80f2361 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.0.5 -Release: 2%{?dist} +Version: 3.0.6 +Release: 1%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -205,6 +205,10 @@ fi %{_datadir}/%{name} %changelog +* Mon Dec 17 2007 Jarod Wilson 3.0.6-1 +- New upstream release (security fix for web frontend + cross-scripting vulnerability) + * Wed Oct 24 2007 Jarod Wilson 3.0.5-2 - Reorg packages to fix multilib conflicts (#341201) diff --git a/sources b/sources index 09290c0..3502ccf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -44d632338b56160790144480d9ed7abe ganglia-3.0.5.tar.gz +f2fecaae424be95ddf8b2cc6247be31d ganglia-3.0.6.tar.gz From 92f6fef631c8ac11abf304c08f0aef1a6f06a3ae Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 20 Dec 2007 16:59:49 +0000 Subject: [PATCH 012/124] Add cve # to changelog --- ganglia.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 80f2361..9196ebb 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -207,7 +207,7 @@ fi %changelog * Mon Dec 17 2007 Jarod Wilson 3.0.6-1 - New upstream release (security fix for web frontend - cross-scripting vulnerability) + cross-scripting vulnerability) {CVE-2007-6465} * Wed Oct 24 2007 Jarod Wilson 3.0.5-2 - Reorg packages to fix multilib conflicts (#341201) From 51715bd45a9eec21b5610a9807179f698076212a Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 14 Feb 2008 20:09:45 +0000 Subject: [PATCH 013/124] - Bump and rebuild with gcc 4.3 --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 9196ebb..8c3691b 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -205,6 +205,9 @@ fi %{_datadir}/%{name} %changelog +* Thu Feb 14 2008 Jarod Wilson 3.0.6-2 +- Bump and rebuild with gcc 4.3 + * Mon Dec 17 2007 Jarod Wilson 3.0.6-1 - New upstream release (security fix for web frontend cross-scripting vulnerability) {CVE-2007-6465} From fca71d21e50d97af4446a04670ff55c398f8dcf7 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Thu, 28 Feb 2008 02:57:10 +0000 Subject: [PATCH 014/124] - New upstream release - Fixes "Show Hosts" toggle - Fixes to host view metric graphs - Fixes two memory leaks --- .cvsignore | 1 + ganglia.spec | 10 ++++++++-- sources | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index 351dfdd..07d4164 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,3 @@ ganglia-3.0.5.tar.gz ganglia-3.0.6.tar.gz +ganglia-3.0.7.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 8c3691b..999ff37 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.0.6 -Release: 2%{?dist} +Version: 3.0.7 +Release: 1%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -205,6 +205,12 @@ fi %{_datadir}/%{name} %changelog +* Wed Feb 27 2008 Jarod Wilson 3.0.7-1 +- New upstream release +- Fixes "Show Hosts" toggle +- Fixes to host view metric graphs +- Fixes two memory leaks + * Thu Feb 14 2008 Jarod Wilson 3.0.6-2 - Bump and rebuild with gcc 4.3 diff --git a/sources b/sources index 3502ccf..245683d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f2fecaae424be95ddf8b2cc6247be31d ganglia-3.0.6.tar.gz +20c210ed33061737e2496fee9243b1f4 ganglia-3.0.7.tar.gz From 1e52a8ac61f652dbbf592088e8b09bbf22a0f2c5 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Mon, 9 Jun 2008 14:09:18 +0000 Subject: [PATCH 015/124] - Bump and rebuild against latest rrdtool --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 999ff37..20e878e 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.0.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -205,6 +205,9 @@ fi %{_datadir}/%{name} %changelog +* Mon Jun 09 2008 Jarod Wilson 3.0.7-2 +- Bump and rebuild against latest rrdtool + * Wed Feb 27 2008 Jarod Wilson 3.0.7-1 - New upstream release - Fixes "Show Hosts" toggle From 6a14c63629b3f19de4c8a1fa9c443c78c65efd51 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 11 Jun 2008 19:43:57 +0000 Subject: [PATCH 016/124] - Update to 3.1.x pre-release snapshot, svn rev 1399 --- .cvsignore | 1 + ganglia.spec | 92 +++++++++++++++++++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 72 insertions(+), 23 deletions(-) diff --git a/.cvsignore b/.cvsignore index 07d4164..4d22bb0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,3 +1,4 @@ ganglia-3.0.5.tar.gz ganglia-3.0.6.tar.gz ganglia-3.0.7.tar.gz +ganglia-3.1.0.1399.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 20e878e..e283308 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,15 +1,21 @@ +%define svnrev 1399 + Name: ganglia -Version: 3.0.7 -Release: 2%{?dist} +Version: 3.1.0 +Release: 0.1%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ -Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz +#Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: rrdtool-devel +BuildRequires: rrdtool-devel, apr-devel >= 1 +BuildRequires: libpng-devel, libart_lgpl-devel +BuildRequires: libconfuse-devel, expat-devel +BuildRequires: python-devel, freetype-devel %description Ganglia is a scalable, real-time monitoring and execution environment @@ -59,6 +65,19 @@ well-defined XML format. This gmond daemon provides the ganglia service within a single cluster or Multicast domain. +%package gmond-python +Summary: Ganglia Monitor daemon python DSO and metric modules +Group: Applications/Internet +Requires: ganglia-gmond, python + +%description gmond-python +Ganglia is a scalable, real-time monitoring and execution environment +with all execution requests and statistics expressed in an open +well-defined XML format. + +This package provides the gmond python DSO and python gmond modules, which +can be loaded via the DSO at gmond daemon start time. + %package devel Summary: Ganglia Library Group: Applications/Internet @@ -68,17 +87,16 @@ Requires: %{name} = %{version}-%{release} The Ganglia Monitoring Core library provides a set of functions that programmers can use to build scalable cluster or grid applications -%prep -%setup -q +%prep +%setup -q -n %{name}-%{version}.%{svnrev} ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} %build %configure \ --with-gmetad \ + --disable-static \ --with-shared -## Build currently fails if enabled - #--disable-static \ ## Default to run as user ganglia instead of nobody %{__perl} -pi.orig -e 's|nobody|ganglia|g' \ @@ -99,7 +117,7 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} -cp -rp %{_builddir}/%{name}-%{version}/web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ +cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php @@ -112,18 +130,35 @@ cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf __EOF__ ## Create directory structures -mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d +mkdir -p $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/rrds mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 ## Put files in place -cp -p %{_builddir}/%{name}-%{version}/gmond/gmond.init $RPM_BUILD_ROOT/etc/rc.d/init.d/gmond -cp -p %{_builddir}/%{name}-%{version}/gmetad/gmetad.init $RPM_BUILD_ROOT/etc/rc.d/init.d/gmetad -cp -p %{_builddir}/%{name}-%{version}/gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 -cp -p %{_builddir}/%{name}-%{version}/gmetad/gmetad.conf $RPM_BUILD_ROOT/etc/gmetad.conf -cp -p %{_builddir}/%{name}-%{version}/mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ +cp -p gmond/gmond.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmond +cp -p gmetad/gmetad.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmetad +cp -p gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 +cp -p gmetad/gmetad.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmetad.conf +cp -p mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ ## Build default gmond.conf from gmond using the '-t' flag -%{_builddir}/%{name}-%{version}/gmond/gmond -t > $RPM_BUILD_ROOT/etc/gmond.conf +gmond/gmond -t > $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmond.conf + +## Python bits +# Copy the python metric modules and .conf files +cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ +cp -p gmond/python_modules/*/*.{py,pyc} $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ +# Don't install the example modules +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.conf +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.pyconf +# Don't install the status modules +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/modgstatus.conf +# Clean up the .conf.in files +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/*.conf.in +# Disable the diskusage module until it is configured properly +mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off + ## Install binaries make install DESTDIR=$RPM_BUILD_ROOT ## House cleaning @@ -137,6 +172,9 @@ rm -rf $RPM_BUILD_ROOT ## Add the "ganglia" user /usr/sbin/useradd -c "Ganglia Monitoring System" \ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : +/sbin/ldconfig + +%post -p /sbin/ldconfig %post gmond /sbin/chkconfig --add gmond @@ -167,6 +205,8 @@ fi %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog %{_libdir}/libganglia*.so.* +%{_libdir}/ganglia/*.so +%exclude %{_libdir}/ganglia/modpython.so %{_bindir}/ganglia-config %files gmetad @@ -175,26 +215,31 @@ fi %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad %{_mandir}/man1/gmetad.1* -%{_sysconfdir}/rc.d/init.d/gmetad -%config(noreplace) %{_sysconfdir}/gmetad.conf +%{_sysconfdir}/init.d/gmetad +%config(noreplace) %{_sysconfdir}/ganglia/gmetad.conf %files gmond %defattr(-,root,root,-) %{_bindir}/gmetric %{_bindir}/gstat %{_sbindir}/gmond -%{_sysconfdir}/rc.d/init.d/gmond +%{_sysconfdir}/init.d/gmond %{_mandir}/man5/gmond.conf.5* %{_mandir}/man1/gmond.1* %{_mandir}/man1/gstat.1* %{_mandir}/man1/gmetric.1* -%config(noreplace) %{_sysconfdir}/gmond.conf +%config(noreplace) %{_sysconfdir}/ganglia/gmond.conf + +%files gmond-python +%dir %{_libdir}/ganglia/python_modules/ +%{_libdir}/ganglia/python_modules/*.py* +%{_libdir}/ganglia/modpython.so* +%config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.pyconf* %files devel %defattr(-,root,root,-) -%{_includedir}/ganglia.h +%{_includedir}/*.h %{_libdir}/libganglia*.so -%exclude %{_libdir}/libganglia.a %files web %defattr(-,root,root,-) @@ -205,6 +250,9 @@ fi %{_datadir}/%{name} %changelog +* Wed Jun 11 2008 Jarod Wilson 3.1.0-0.1.r1399 +- Update to 3.1.x pre-release snapshot, svn rev 1399 + * Mon Jun 09 2008 Jarod Wilson 3.0.7-2 - Bump and rebuild against latest rrdtool diff --git a/sources b/sources index 245683d..8124094 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -20c210ed33061737e2496fee9243b1f4 ganglia-3.0.7.tar.gz +f33f73e8e693da0a7194b477ff4e7752 ganglia-3.1.0.1399.tar.gz From 656692e52d593b7cefc52918ec4ba837a3884209 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Fri, 13 Jun 2008 14:28:44 +0000 Subject: [PATCH 017/124] - Work-around for incorrectly hard-coded libdir on ppc64 --- ganglia-3.1.0-r1399-ppc64build.patch | 22 ++++++++++++++++++++++ ganglia.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ganglia-3.1.0-r1399-ppc64build.patch diff --git a/ganglia-3.1.0-r1399-ppc64build.patch b/ganglia-3.1.0-r1399-ppc64build.patch new file mode 100644 index 0000000..a923d40 --- /dev/null +++ b/ganglia-3.1.0-r1399-ppc64build.patch @@ -0,0 +1,22 @@ +--- ganglia-3.1.0.1399/configure.in.orig 2008-06-13 10:23:06.000000000 -0400 ++++ ganglia-3.1.0.1399/configure.in 2008-06-13 10:23:24.000000000 -0400 +@@ -574,7 +574,7 @@ if test "x$prefix" = xNONE; then + prefix="$ac_default_prefix" + fi + +-if test "x$host_cpu" = "xx86_64"; then ++if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xppc64"; then + libdir="$prefix/lib64" + else + libdir="$prefix/lib" +--- ganglia-3.1.0.1399/configure.orig 2008-06-13 10:24:45.000000000 -0400 ++++ ganglia-3.1.0.1399/configure 2008-06-13 10:25:33.000000000 -0400 +@@ -24225,7 +24225,7 @@ if test "x$prefix" = xNONE; then + prefix="$ac_default_prefix" + fi + +-if test "x$host_cpu" = "xx86_64"; then ++if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xppc64"; then + libdir="$prefix/lib64" + else + libdir="$prefix/lib" diff --git a/ganglia.spec b/ganglia.spec index e283308..4c50d8f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -2,7 +2,7 @@ Name: ganglia Version: 3.1.0 -Release: 0.1%{?svnrev:.r%{svnrev}}%{?dist} +Release: 0.2%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -10,6 +10,7 @@ License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz #Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Patch0: ganglia-3.1.0-r1399-ppc64build.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -89,6 +90,7 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}.%{svnrev} +%patch0 -p1 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -250,6 +252,9 @@ fi %{_datadir}/%{name} %changelog +* Fri Jun 13 2008 Jarod Wilson 3.1.0-0.2.r1399 +- Work-around for incorrectly hard-coded libdir on ppc64 + * Wed Jun 11 2008 Jarod Wilson 3.1.0-0.1.r1399 - Update to 3.1.x pre-release snapshot, svn rev 1399 From 87f022c65f2b48735a30dae6fdce303e1ff53531 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Fri, 13 Jun 2008 15:31:00 +0000 Subject: [PATCH 018/124] - One more try at work-around. Needs powerpc64, not ppc64... --- ganglia-3.1.0-r1399-ppc64build.patch | 4 ++-- ganglia.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ganglia-3.1.0-r1399-ppc64build.patch b/ganglia-3.1.0-r1399-ppc64build.patch index a923d40..c869436 100644 --- a/ganglia-3.1.0-r1399-ppc64build.patch +++ b/ganglia-3.1.0-r1399-ppc64build.patch @@ -5,7 +5,7 @@ fi -if test "x$host_cpu" = "xx86_64"; then -+if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xppc64"; then ++if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xpowerpc64"; then libdir="$prefix/lib64" else libdir="$prefix/lib" @@ -16,7 +16,7 @@ fi -if test "x$host_cpu" = "xx86_64"; then -+if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xppc64"; then ++if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xpowerpc64"; then libdir="$prefix/lib64" else libdir="$prefix/lib" diff --git a/ganglia.spec b/ganglia.spec index 4c50d8f..3542b0d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -2,7 +2,7 @@ Name: ganglia Version: 3.1.0 -Release: 0.2%{?svnrev:.r%{svnrev}}%{?dist} +Release: 0.3%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -252,6 +252,9 @@ fi %{_datadir}/%{name} %changelog +* Fri Jun 13 2008 Jarod Wilson 3.1.0-0.3.r1399 +- One more try at work-around. Needs powerpc64, not ppc64... + * Fri Jun 13 2008 Jarod Wilson 3.1.0-0.2.r1399 - Work-around for incorrectly hard-coded libdir on ppc64 From b31061a98eb781b8edbbcb9649675995983f4273 Mon Sep 17 00:00:00 2001 From: georgiou Date: Thu, 17 Jul 2008 01:04:29 +0000 Subject: [PATCH 019/124] Update to 3.1.0 and small fixes --- .cvsignore | 5 +---- ganglia-3.1.0-r1399-ppc64build.patch | 22 ---------------------- ganglia.spec | 22 ++++++++++++---------- sources | 2 +- 4 files changed, 14 insertions(+), 37 deletions(-) delete mode 100644 ganglia-3.1.0-r1399-ppc64build.patch diff --git a/.cvsignore b/.cvsignore index 4d22bb0..6e14082 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1 @@ -ganglia-3.0.5.tar.gz -ganglia-3.0.6.tar.gz -ganglia-3.0.7.tar.gz -ganglia-3.1.0.1399.tar.gz +ganglia-3.1.0.tar.gz diff --git a/ganglia-3.1.0-r1399-ppc64build.patch b/ganglia-3.1.0-r1399-ppc64build.patch deleted file mode 100644 index c869436..0000000 --- a/ganglia-3.1.0-r1399-ppc64build.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- ganglia-3.1.0.1399/configure.in.orig 2008-06-13 10:23:06.000000000 -0400 -+++ ganglia-3.1.0.1399/configure.in 2008-06-13 10:23:24.000000000 -0400 -@@ -574,7 +574,7 @@ if test "x$prefix" = xNONE; then - prefix="$ac_default_prefix" - fi - --if test "x$host_cpu" = "xx86_64"; then -+if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xpowerpc64"; then - libdir="$prefix/lib64" - else - libdir="$prefix/lib" ---- ganglia-3.1.0.1399/configure.orig 2008-06-13 10:24:45.000000000 -0400 -+++ ganglia-3.1.0.1399/configure 2008-06-13 10:25:33.000000000 -0400 -@@ -24225,7 +24225,7 @@ if test "x$prefix" = xNONE; then - prefix="$ac_default_prefix" - fi - --if test "x$host_cpu" = "xx86_64"; then -+if test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = "xpowerpc64"; then - libdir="$prefix/lib64" - else - libdir="$prefix/lib" diff --git a/ganglia.spec b/ganglia.spec index 3542b0d..9204c49 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,16 +1,14 @@ -%define svnrev 1399 - Name: ganglia Version: 3.1.0 -Release: 0.3%{?svnrev:.r%{svnrev}}%{?dist} +Release: 0.4%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ -Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz +Source0: http://www.ganglia.info/testing//%{name}-%{version}.tar.gz +#Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz #Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -Patch0: ganglia-3.1.0-r1399-ppc64build.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -89,8 +87,7 @@ The Ganglia Monitoring Core library provides a set of functions that programmers can use to build scalable cluster or grid applications %prep -%setup -q -n %{name}-%{version}.%{svnrev} -%patch0 -p1 +%setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -98,13 +95,13 @@ chmod -x lib/*.{h,x} %configure \ --with-gmetad \ --disable-static \ - --with-shared + --enable-shared ## Default to run as user ganglia instead of nobody %{__perl} -pi.orig -e 's|nobody|ganglia|g' \ lib/libgmond.c gmetad/conf.c gmond/g25_config.c \ gmetad/gmetad.conf gmond/gmond.conf.html ganglia.html \ - gmond/conf.pod ganglia.pod README + gmond/conf.pod ganglia.pod README lib/default_conf.h ## Don't have initscripts turn daemons on by default %{__perl} -pi.orig -e 's|2345|-|g' \ @@ -145,7 +142,7 @@ cp -p gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 cp -p gmetad/gmetad.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmetad.conf cp -p mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ ## Build default gmond.conf from gmond using the '-t' flag -gmond/gmond -t > $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmond.conf +gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmond.conf ## Python bits # Copy the python metric modules and .conf files @@ -252,6 +249,11 @@ fi %{_datadir}/%{name} %changelog +* Thu Jul 17 2008 Kostas Georgiou 3.1.0-0.4 +- Update to the 3.1.0 pre-release +- Fixes gmond.conf to use the ganglia user and not nobody +- Removal of the ppc64 work-around + * Fri Jun 13 2008 Jarod Wilson 3.1.0-0.3.r1399 - One more try at work-around. Needs powerpc64, not ppc64... diff --git a/sources b/sources index 8124094..4d8a846 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f33f73e8e693da0a7194b477ff4e7752 ganglia-3.1.0.1399.tar.gz +07aa22905756685adbb412564dd396f1 ganglia-3.1.0.tar.gz From 3f71e087c9c8d13e88c47e165385127c757d8152 Mon Sep 17 00:00:00 2001 From: georgiou Date: Tue, 29 Jul 2008 22:12:16 +0000 Subject: [PATCH 020/124] Added missing config file for ganglia-gmond-python --- ganglia.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 9204c49..89b2e09 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.0 -Release: 0.4%{?svnrev:.r%{svnrev}}%{?dist} +Release: 0.5%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -147,6 +147,7 @@ gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfd ## Python bits # Copy the python metric modules and .conf files cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ +cp -p gmond/modules/conf.d/modpython.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/python_modules/*/*.{py,pyc} $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ # Don't install the example modules rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.conf @@ -234,6 +235,7 @@ fi %{_libdir}/ganglia/python_modules/*.py* %{_libdir}/ganglia/modpython.so* %config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.pyconf* +%config(noreplace) %{_sysconfdir}/ganglia/conf.d/modpython.conf %files devel %defattr(-,root,root,-) @@ -249,6 +251,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Jul 29 2008 Kostas Georgiou 3.1.0-0.5 +- Add the config files for the python module + * Thu Jul 17 2008 Kostas Georgiou 3.1.0-0.4 - Update to the 3.1.0 pre-release - Fixes gmond.conf to use the ganglia user and not nobody From 6ae15fc56a4ec21b77458189a6048cfbe4dc301b Mon Sep 17 00:00:00 2001 From: georgiou Date: Tue, 12 Aug 2008 16:21:20 +0000 Subject: [PATCH 021/124] Many small changes, new module configs included, patches for various issues from the 3.1.x trunk etc. --- diskusage-fix.patch | 16 ++++++++++++++++ ganglia.spec | 42 +++++++++++++++++++++++++++++++++++------- gmetad-authority.patch | 17 +++++++++++++++++ tcpconn-fixes.patch | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 diskusage-fix.patch create mode 100644 gmetad-authority.patch create mode 100644 tcpconn-fixes.patch diff --git a/diskusage-fix.patch b/diskusage-fix.patch new file mode 100644 index 0000000..317c3b9 --- /dev/null +++ b/diskusage-fix.patch @@ -0,0 +1,16 @@ +--- gmond/python_modules/conf.d/diskusage.pyconf-orig 2008-08-12 13:20:42.000000000 +0100 ++++ gmond/python_modules/conf.d/diskusage.pyconf 2008-08-12 13:21:53.000000000 +0100 +@@ -7,6 +7,7 @@ + } + } + ++/* + collection_group { + collect_every = 10 + time_threshold = 50 +@@ -23,4 +24,5 @@ + name = "" + } + } ++*/ + diff --git a/ganglia.spec b/ganglia.spec index 89b2e09..84d9880 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,14 +1,16 @@ Name: ganglia Version: 3.1.0 -Release: 0.5%{?svnrev:.r%{svnrev}}%{?dist} +Release: 1%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ -Source0: http://www.ganglia.info/testing//%{name}-%{version}.tar.gz +Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz -#Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Patch0: tcpconn-fixes.patch +Patch1: gmetad-authority.patch +Patch2: diskusage-fix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -88,6 +90,9 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} +%patch0 -p0 +%patch1 -p0 +%patch2 -p0 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -120,12 +125,23 @@ cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php +mv $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ +ln -s ../../..%{_sysconfdir}/%{name}/private_clusters \ + $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf # # Ganglia monitoring system php web frontend # Alias /%{name} %{_datadir}/%{name} + + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + Allow from ::1 + # Allow from .example.com + __EOF__ ## Create directory structures @@ -147,7 +163,7 @@ gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfd ## Python bits # Copy the python metric modules and .conf files cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ -cp -p gmond/modules/conf.d/modpython.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ +cp -p gmond/modules/conf.d/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/python_modules/*/*.{py,pyc} $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ # Don't install the example modules rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.conf @@ -156,14 +172,14 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.pyconf rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/modgstatus.conf # Clean up the .conf.in files rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/*.conf.in -# Disable the diskusage module until it is configured properly -mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off +## Disable the diskusage module until it is configured properly +#mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off ## Install binaries make install DESTDIR=$RPM_BUILD_ROOT ## House cleaning rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT%{_datadir}/{Makefile.am,version.php.in} +rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{Makefile.am,version.php.in} %clean rm -rf $RPM_BUILD_ROOT @@ -229,6 +245,8 @@ fi %{_mandir}/man1/gstat.1* %{_mandir}/man1/gmetric.1* %config(noreplace) %{_sysconfdir}/ganglia/gmond.conf +%config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.conf +%exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf %files gmond-python %dir %{_libdir}/ganglia/python_modules/ @@ -247,10 +265,20 @@ fi %doc web/AUTHORS web/COPYING web/ChangeLog %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/conf.php +%config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Mon Aug 11 2008 Kostas Georgiou 3.1.0-1 +- Upstream patches from 3.1.1 +- Move private_clusters config to /etc and mark it as a config file +- Only allow connections from localhost by default on the web frontend +- Add some extra module config files (modules are always loaded at the + moment so removing the configs has no effect beyond metric collection + (upstream is working on way way to disable module loading from the + configs) + * Tue Jul 29 2008 Kostas Georgiou 3.1.0-0.5 - Add the config files for the python module diff --git a/gmetad-authority.patch b/gmetad-authority.patch new file mode 100644 index 0000000..1f367e6 --- /dev/null +++ b/gmetad-authority.patch @@ -0,0 +1,17 @@ +Index: gmetad/process_xml.c +=================================================================== +--- gmetad/process_xml.c (revision 1634) ++++ gmetad/process_xml.c (working copy) +@@ -724,7 +724,11 @@ + + if (!xmldata->host_alive) + return 0; +- ++ ++ /* Only keep extra element details if we are the authority on this cluster. */ ++ if (!authority_mode(xmldata)) ++ return 0; ++ + hashkey.data = (void*) name; + hashkey.size = strlen(name) + 1; + diff --git a/tcpconn-fixes.patch b/tcpconn-fixes.patch new file mode 100644 index 0000000..2b1832b --- /dev/null +++ b/tcpconn-fixes.patch @@ -0,0 +1,41 @@ +Index: gmond/python_modules/network/tcpconn.py +=================================================================== +--- gmond/python_modules/network/tcpconn.py (revision 1622) ++++ gmond/python_modules/network/tcpconn.py (working copy) +@@ -245,19 +245,14 @@ + tempconns[conn] = 0 + + #Call the netstat utility and split the output into separate lines +- fd_poll = select.poll() +- self.popenChild = popen2.Popen3("netstat -t -a") +- fd_poll.register(self.popenChild.fromchild) ++ self.popenChild = popen2.Popen3("netstat -t -a -n") ++ lines = self.popenChild.fromchild.readlines() + +- poll_events = fd_poll.poll() +- +- if (len(poll_events) == 0): # Timeout +- continue +- +- for (fd, events) in poll_events: +- lines = self.popenChild.fromchild.readlines() +- +- self.popenChild.wait() ++ try: ++ self.popenChild.wait() ++ except OSError, e: ++ if e.errno == 10: # No child process ++ continue + + #Iterate through the netstat output looking for the 'tcp' keyword in the tcp_at + # position and the state information in the tcp_state_at position. Count each +@@ -300,7 +295,8 @@ + _glock.release() + + #Wait for the refresh_rate period before collecting the netstat data again. +- time.sleep(_refresh_rate) ++ if not self.shuttingdown: ++ time.sleep(_refresh_rate) + + #Set the current state of the thread after a shutdown has been indicated. + self.running = False From cdbe78a0e9fe5fc358eb55ed515b4202dfa75114 Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Thu, 28 Aug 2008 21:46:09 +0000 Subject: [PATCH 022/124] - Include unowned directories. No build-job. --- ganglia.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 84d9880..fed315f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.0 -Release: 1%{?svnrev:.r%{svnrev}}%{?dist} +Release: 2%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -221,6 +221,7 @@ fi %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog %{_libdir}/libganglia*.so.* +%dir %{_libdir}/ganglia %{_libdir}/ganglia/*.so %exclude %{_libdir}/ganglia/modpython.so %{_bindir}/ganglia-config @@ -232,6 +233,7 @@ fi %{_sbindir}/gmetad %{_mandir}/man1/gmetad.1* %{_sysconfdir}/init.d/gmetad +%dir %{_sysconfdir}/ganglia %config(noreplace) %{_sysconfdir}/ganglia/gmetad.conf %files gmond @@ -244,6 +246,8 @@ fi %{_mandir}/man1/gmond.1* %{_mandir}/man1/gstat.1* %{_mandir}/man1/gmetric.1* +%dir %{_sysconfdir}/ganglia +%dir %{_sysconfdir}/ganglia/conf.d %config(noreplace) %{_sysconfdir}/ganglia/gmond.conf %config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.conf %exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf @@ -263,13 +267,15 @@ fi %files web %defattr(-,root,root,-) %doc web/AUTHORS web/COPYING web/ChangeLog -%dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Thu Aug 28 2008 Michael Schwendt 3.1.0-2 +- Include unowned directories. + * Mon Aug 11 2008 Kostas Georgiou 3.1.0-1 - Upstream patches from 3.1.1 - Move private_clusters config to /etc and mark it as a config file From 1912f0f42ab829012e65e94b0b34902c6ae391a7 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Fri, 24 Oct 2008 14:22:34 +0000 Subject: [PATCH 023/124] - Update to 3.1.1 --- .cvsignore | 1 + ganglia.spec | 15 +++++++-------- gmetad-authority.patch | 17 ----------------- sources | 2 +- tcpconn-fixes.patch | 41 ----------------------------------------- 5 files changed, 9 insertions(+), 67 deletions(-) delete mode 100644 gmetad-authority.patch delete mode 100644 tcpconn-fixes.patch diff --git a/.cvsignore b/.cvsignore index 6e14082..a190723 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ ganglia-3.1.0.tar.gz +ganglia-3.1.1.tar.gz diff --git a/ganglia.spec b/ganglia.spec index fed315f..3995fe9 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.1.0 -Release: 2%{?svnrev:.r%{svnrev}}%{?dist} +Version: 3.1.1 +Release: 1%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -8,9 +8,7 @@ License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz -Patch0: tcpconn-fixes.patch -Patch1: gmetad-authority.patch -Patch2: diskusage-fix.patch +Patch0: diskusage-fix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -91,8 +89,6 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} %patch0 -p0 -%patch1 -p0 -%patch2 -p0 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -266,13 +262,16 @@ fi %files web %defattr(-,root,root,-) -%doc web/AUTHORS web/COPYING web/ChangeLog +%doc web/AUTHORS web/COPYING %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Fri Oct 24 2008 Jarod Wilson 3.1.1-1 +- Update to 3.1.1 + * Thu Aug 28 2008 Michael Schwendt 3.1.0-2 - Include unowned directories. diff --git a/gmetad-authority.patch b/gmetad-authority.patch deleted file mode 100644 index 1f367e6..0000000 --- a/gmetad-authority.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: gmetad/process_xml.c -=================================================================== ---- gmetad/process_xml.c (revision 1634) -+++ gmetad/process_xml.c (working copy) -@@ -724,7 +724,11 @@ - - if (!xmldata->host_alive) - return 0; -- -+ -+ /* Only keep extra element details if we are the authority on this cluster. */ -+ if (!authority_mode(xmldata)) -+ return 0; -+ - hashkey.data = (void*) name; - hashkey.size = strlen(name) + 1; - diff --git a/sources b/sources index 4d8a846..c4548ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -07aa22905756685adbb412564dd396f1 ganglia-3.1.0.tar.gz +e6f4de42afecb4731a5de4606e3f1045 ganglia-3.1.1.tar.gz diff --git a/tcpconn-fixes.patch b/tcpconn-fixes.patch deleted file mode 100644 index 2b1832b..0000000 --- a/tcpconn-fixes.patch +++ /dev/null @@ -1,41 +0,0 @@ -Index: gmond/python_modules/network/tcpconn.py -=================================================================== ---- gmond/python_modules/network/tcpconn.py (revision 1622) -+++ gmond/python_modules/network/tcpconn.py (working copy) -@@ -245,19 +245,14 @@ - tempconns[conn] = 0 - - #Call the netstat utility and split the output into separate lines -- fd_poll = select.poll() -- self.popenChild = popen2.Popen3("netstat -t -a") -- fd_poll.register(self.popenChild.fromchild) -+ self.popenChild = popen2.Popen3("netstat -t -a -n") -+ lines = self.popenChild.fromchild.readlines() - -- poll_events = fd_poll.poll() -- -- if (len(poll_events) == 0): # Timeout -- continue -- -- for (fd, events) in poll_events: -- lines = self.popenChild.fromchild.readlines() -- -- self.popenChild.wait() -+ try: -+ self.popenChild.wait() -+ except OSError, e: -+ if e.errno == 10: # No child process -+ continue - - #Iterate through the netstat output looking for the 'tcp' keyword in the tcp_at - # position and the state information in the tcp_state_at position. Count each -@@ -300,7 +295,8 @@ - _glock.release() - - #Wait for the refresh_rate period before collecting the netstat data again. -- time.sleep(_refresh_rate) -+ if not self.shuttingdown: -+ time.sleep(_refresh_rate) - - #Set the current state of the thread after a shutdown has been indicated. - self.running = False From cf76c20aedabbcad26905d12677fb4830d69a8c8 Mon Sep 17 00:00:00 2001 From: Ignacio Vazquez-Abrams Date: Mon, 1 Dec 2008 05:03:46 +0000 Subject: [PATCH 024/124] Rebuild for Python 2.6 --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 3995fe9..f29b201 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.1 -Release: 1%{?svnrev:.r%{svnrev}}%{?dist} +Release: 2%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -269,6 +269,9 @@ fi %{_datadir}/%{name} %changelog +* Sun Nov 30 2008 Ignacio Vazquez-Abrams - 3.1.1-2 +- Rebuild for Python 2.6 + * Fri Oct 24 2008 Jarod Wilson 3.1.1-1 - Update to 3.1.1 From aae6a373e6909d3cef6cbec1e3fcb6eef5f3036e Mon Sep 17 00:00:00 2001 From: georgiou Date: Wed, 14 Jan 2009 21:14:21 +0000 Subject: [PATCH 025/124] Fix gmetad buffer overflow --- ganglia.spec | 10 ++++++-- gmetad-bof-dos.patch | 54 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 gmetad-bof-dos.patch diff --git a/ganglia.spec b/ganglia.spec index f29b201..4996d45 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.1 -Release: 2%{?svnrev:.r%{svnrev}}%{?dist} +Release: 3%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -9,6 +9,7 @@ URL: http://ganglia.sourceforge.net/ Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz Patch0: diskusage-fix.patch +Patch1: gmetad-bof-dos.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -89,6 +90,7 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} %patch0 -p0 +%patch1 -p0 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -264,11 +266,15 @@ fi %defattr(-,root,root,-) %doc web/AUTHORS web/COPYING %config(noreplace) %{_sysconfdir}/%{name}/conf.php -%config(noreplace) %{_sysconfdir}/%{name}/private_clusters +%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Wed Jan 14 2009 Kostas Georgiou - 3.1.1-3 +- Fix for gmetad server buffer overflow +- The private_clusters file should not be readable by everyone + * Sun Nov 30 2008 Ignacio Vazquez-Abrams - 3.1.1-2 - Rebuild for Python 2.6 diff --git a/gmetad-bof-dos.patch b/gmetad-bof-dos.patch new file mode 100644 index 0000000..a600c89 --- /dev/null +++ b/gmetad-bof-dos.patch @@ -0,0 +1,54 @@ +--- gmetad/server.c.orig 2009-01-09 00:30:10.000000000 +0800 ++++ gmetad/server.c 2009-01-09 00:42:52.000000000 +0800 +@@ -11,6 +11,7 @@ + #include "dtd.h" + #include "gmetad.h" + #include "my_inet_ntop.h" ++#include + + extern g_tcp_socket *server_socket; + extern pthread_mutex_t server_socket_mutex; +@@ -377,7 +378,7 @@ + process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) + { + char *p, *q, *pathend; +- char element[256]; ++ char *element; + int rc, len; + datum_t *found; + datum_t findkey; +@@ -419,6 +420,8 @@ + if (!q) q=pathend; + + len = q-p; ++ /* +1 not needed as q-p is already accounting for that */ ++ element = malloc(len); + strncpy(element, p, len); + element[len] = '\0'; + +@@ -435,10 +438,13 @@ + rc = process_path(client, q, found, &findkey); + + datum_free(found); ++ free(element); + } + else + { +- rc = process_path(client, 0, myroot, NULL); ++ /* element not found */ ++ free(element); ++ return 1; + } + } + if (rc) return 1; +@@ -600,8 +606,8 @@ + if (process_request(&client, request)) + { + err_msg("Got a malformed path request from %s", remote_ip); +- /* Send them the entire tree to discourage attacks. */ +- strcpy(request, "/"); ++ close(client.fd); ++ continue; + } + } + else From 5df3a506d8c7fa08e8a621cf2f8f4cf3ecff7350 Mon Sep 17 00:00:00 2001 From: georgiou Date: Tue, 20 Jan 2009 19:30:53 +0000 Subject: [PATCH 026/124] Additional security fixes from #480236 --- ganglia.spec | 6 +++++- gmetad-bof-dos.patch | 35 +++++++++++++++++++++++++++-------- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 4996d45..70f3963 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.1 -Release: 3%{?svnrev:.r%{svnrev}}%{?dist} +Release: 4%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -271,6 +271,10 @@ fi %{_datadir}/%{name} %changelog +* Tue Jan 20 2009 Kostas Georgiou - 3.1.1-4 +- [480236] Updated patch for the buffer overflow from upstream with + additional fixes + * Wed Jan 14 2009 Kostas Georgiou - 3.1.1-3 - Fix for gmetad server buffer overflow - The private_clusters file should not be readable by everyone diff --git a/gmetad-bof-dos.patch b/gmetad-bof-dos.patch index a600c89..a027a9e 100644 --- a/gmetad-bof-dos.patch +++ b/gmetad-bof-dos.patch @@ -1,5 +1,5 @@ ---- gmetad/server.c.orig 2009-01-09 00:30:10.000000000 +0800 -+++ gmetad/server.c 2009-01-09 00:42:52.000000000 +0800 +--- gmetad/server.c.orig ++++ gmetad/server.c @@ -11,6 +11,7 @@ #include "dtd.h" #include "gmetad.h" @@ -8,7 +8,15 @@ extern g_tcp_socket *server_socket; extern pthread_mutex_t server_socket_mutex; -@@ -377,7 +378,7 @@ +@@ -370,14 +371,13 @@ tree_report(datum_t *key, datum_t *val, void *arg) + + /* sacerdoti: This function does a tree walk while respecting the filter path. + * Will return valid XML even if we have chosen a subtree. Since tree depth is +- * bounded, this function guarantees O(1) search time. The recursive structure +- * does not require any memory allocations. ++ * bounded, this function guarantees O(1) search time. + */ + static int process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) { char *p, *q, *pathend; @@ -17,16 +25,18 @@ int rc, len; datum_t *found; datum_t findkey; -@@ -419,6 +420,8 @@ +@@ -419,6 +419,10 @@ process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) if (!q) q=pathend; len = q-p; -+ /* +1 not needed as q-p is already accounting for that */ -+ element = malloc(len); ++ element = malloc(len + 1); ++ if ( element == NULL ) ++ return 1; ++ strncpy(element, p, len); element[len] = '\0'; -@@ -435,10 +438,13 @@ +@@ -435,10 +439,13 @@ process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) rc = process_path(client, q, found, &findkey); datum_free(found); @@ -41,7 +51,16 @@ } } if (rc) return 1; -@@ -600,8 +606,8 @@ +@@ -537,7 +544,7 @@ server_thread (void *arg) + socklen_t len; + client_t client; + char remote_ip[16]; +- char request[REQUESTLEN]; ++ char request[REQUESTLEN + 1]; + llist_entry *le; + datum_t rootdatum; + +@@ -600,8 +607,8 @@ server_thread (void *arg) if (process_request(&client, request)) { err_msg("Got a malformed path request from %s", remote_ip); From 116c034d2dd0603363ed8bc162d7434bf07d2136 Mon Sep 17 00:00:00 2001 From: georgiou Date: Tue, 17 Feb 2009 21:44:34 +0000 Subject: [PATCH 027/124] New upstream release --- .cvsignore | 3 +- ganglia.spec | 10 +++--- gmetad-bof-dos.patch | 73 -------------------------------------------- sources | 2 +- 4 files changed, 8 insertions(+), 80 deletions(-) delete mode 100644 gmetad-bof-dos.patch diff --git a/.cvsignore b/.cvsignore index a190723..9cbce87 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -ganglia-3.1.0.tar.gz -ganglia-3.1.1.tar.gz +ganglia-3.1.2.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 70f3963..2a78035 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.1.1 -Release: 4%{?svnrev:.r%{svnrev}}%{?dist} +Version: 3.1.2 +Release: 1%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -9,7 +9,6 @@ URL: http://ganglia.sourceforge.net/ Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz Patch0: diskusage-fix.patch -Patch1: gmetad-bof-dos.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -90,7 +89,6 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} %patch0 -p0 -%patch1 -p0 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -271,6 +269,10 @@ fi %{_datadir}/%{name} %changelog +* Tue Feb 17 2009 Kostas Georgiou - 3.1.2-1 +- Update to 3.1.2 +- Remove unneeded patch for CVE-2009-0241 + * Tue Jan 20 2009 Kostas Georgiou - 3.1.1-4 - [480236] Updated patch for the buffer overflow from upstream with additional fixes diff --git a/gmetad-bof-dos.patch b/gmetad-bof-dos.patch deleted file mode 100644 index a027a9e..0000000 --- a/gmetad-bof-dos.patch +++ /dev/null @@ -1,73 +0,0 @@ ---- gmetad/server.c.orig -+++ gmetad/server.c -@@ -11,6 +11,7 @@ - #include "dtd.h" - #include "gmetad.h" - #include "my_inet_ntop.h" -+#include - - extern g_tcp_socket *server_socket; - extern pthread_mutex_t server_socket_mutex; -@@ -370,14 +371,13 @@ tree_report(datum_t *key, datum_t *val, void *arg) - - /* sacerdoti: This function does a tree walk while respecting the filter path. - * Will return valid XML even if we have chosen a subtree. Since tree depth is -- * bounded, this function guarantees O(1) search time. The recursive structure -- * does not require any memory allocations. -+ * bounded, this function guarantees O(1) search time. - */ - static int - process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) - { - char *p, *q, *pathend; -- char element[256]; -+ char *element; - int rc, len; - datum_t *found; - datum_t findkey; -@@ -419,6 +419,10 @@ process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) - if (!q) q=pathend; - - len = q-p; -+ element = malloc(len + 1); -+ if ( element == NULL ) -+ return 1; -+ - strncpy(element, p, len); - element[len] = '\0'; - -@@ -435,10 +439,13 @@ process_path (client_t *client, char *path, datum_t *myroot, datum_t *key) - rc = process_path(client, q, found, &findkey); - - datum_free(found); -+ free(element); - } - else - { -- rc = process_path(client, 0, myroot, NULL); -+ /* element not found */ -+ free(element); -+ return 1; - } - } - if (rc) return 1; -@@ -537,7 +544,7 @@ server_thread (void *arg) - socklen_t len; - client_t client; - char remote_ip[16]; -- char request[REQUESTLEN]; -+ char request[REQUESTLEN + 1]; - llist_entry *le; - datum_t rootdatum; - -@@ -600,8 +607,8 @@ server_thread (void *arg) - if (process_request(&client, request)) - { - err_msg("Got a malformed path request from %s", remote_ip); -- /* Send them the entire tree to discourage attacks. */ -- strcpy(request, "/"); -+ close(client.fd); -+ continue; - } - } - else diff --git a/sources b/sources index c4548ce..12518f5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e6f4de42afecb4731a5de4606e3f1045 ganglia-3.1.1.tar.gz +aaba09a6fa897ed581789f679f7ca62d ganglia-3.1.2.tar.gz From 221418805348c21387abcbc9e185b2b0ee10d945 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 24 Feb 2009 19:30:53 +0000 Subject: [PATCH 028/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 2a78035..a4e6a74 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.2 -Release: 1%{?svnrev:.r%{svnrev}}%{?dist} +Release: 2%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -269,6 +269,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Feb 24 2009 Fedora Release Engineering - 3.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + * Tue Feb 17 2009 Kostas Georgiou - 3.1.2-1 - Update to 3.1.2 - Remove unneeded patch for CVE-2009-0241 From 6ce1448e2c9ebc64e21a6d0348feb6bdf86658f1 Mon Sep 17 00:00:00 2001 From: georgiou Date: Sun, 29 Mar 2009 17:19:17 +0000 Subject: [PATCH 029/124] Rebuilt for #492703, no obvious reasons why the previous build was bad :( --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index a4e6a74..da3b295 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.2 -Release: 2%{?svnrev:.r%{svnrev}}%{?dist} +Release: 3%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -269,6 +269,9 @@ fi %{_datadir}/%{name} %changelog +* Sun Mar 29 2009 Kostas Georgiou - 3.1.2-3 +- Rebuilt for #492703, no obvious reasons why the previous build was bad :( + * Tue Feb 24 2009 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From b49097cd0221d90d487668e2d2eb78be3de28804 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 24 Jul 2009 23:30:15 +0000 Subject: [PATCH 030/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index da3b295..27115af 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.2 -Release: 3%{?svnrev:.r%{svnrev}}%{?dist} +Release: 4%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -269,6 +269,9 @@ fi %{_datadir}/%{name} %changelog +* Fri Jul 24 2009 Fedora Release Engineering - 3.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Sun Mar 29 2009 Kostas Georgiou - 3.1.2-3 - Rebuilt for #492703, no obvious reasons why the previous build was bad :( From e4f9e92a6938003d7c2ece0b3b1a312feb1bbba5 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 23:19:19 +0000 Subject: [PATCH 031/124] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8262c3d..44b4717 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: ganglia -# $Id$ +# $Id: Makefile,v 1.1 2006/06/15 20:15:03 jwilson Exp $ NAME := ganglia SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From f7a5443d68202170cb4b659fd7ad16f467a85da9 Mon Sep 17 00:00:00 2001 From: georgiou Date: Thu, 22 Apr 2010 14:44:00 +0000 Subject: [PATCH 032/124] - New upstream release - Spec file cleanups - Use the new name_match feature to enable the diskusage plugin by default --- diskusage-fix.patch | 16 -------------- diskusage-pcre.patch | 24 +++++++++++++++++++++ ganglia.spec | 31 +++++++++++++++++++-------- setuserid-fix.patch | 51 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 97 insertions(+), 25 deletions(-) delete mode 100644 diskusage-fix.patch create mode 100644 diskusage-pcre.patch create mode 100644 setuserid-fix.patch diff --git a/diskusage-fix.patch b/diskusage-fix.patch deleted file mode 100644 index 317c3b9..0000000 --- a/diskusage-fix.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- gmond/python_modules/conf.d/diskusage.pyconf-orig 2008-08-12 13:20:42.000000000 +0100 -+++ gmond/python_modules/conf.d/diskusage.pyconf 2008-08-12 13:21:53.000000000 +0100 -@@ -7,6 +7,7 @@ - } - } - -+/* - collection_group { - collect_every = 10 - time_threshold = 50 -@@ -23,4 +24,5 @@ - name = "" - } - } -+*/ - diff --git a/diskusage-pcre.patch b/diskusage-pcre.patch new file mode 100644 index 0000000..8b2ed4a --- /dev/null +++ b/diskusage-pcre.patch @@ -0,0 +1,24 @@ +diff --git a/gmond/python_modules/conf.d/diskusage.pyconf b/gmond/python_modules/conf.d/diskusage.pyconf +index 04a7ef1..1a7ef17 100644 +--- a/gmond/python_modules/conf.d/diskusage.pyconf ++++ b/gmond/python_modules/conf.d/diskusage.pyconf +@@ -11,7 +11,8 @@ collection_group { + collect_every = 10 + time_threshold = 50 + metric { +- name = "" ++ name_match = "([\\S]+)-disk_used" ++ name = "\\1-disk_used" + value_threshold = 1.0 + } + } +@@ -20,7 +21,8 @@ collection_group { + collect_once = yes + time_threshold = 20 + metric { +- name = "" ++ name_match = "([\\S]+)-disk_total" ++ name = "\\1-disk_total" + } + } + diff --git a/ganglia.spec b/ganglia.spec index 27115af..91049fe 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia -Version: 3.1.2 -Release: 4%{?svnrev:.r%{svnrev}}%{?dist} +Version: 3.1.7 +Release: 1%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -8,13 +8,15 @@ License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz -Patch0: diskusage-fix.patch +Patch0: diskusage-pcre.patch +Patch1: setuserid-fix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 BuildRequires: libpng-devel, libart_lgpl-devel BuildRequires: libconfuse-devel, expat-devel BuildRequires: python-devel, freetype-devel +BuildRequires: pcre-devel %description Ganglia is a scalable, real-time monitoring and execution environment @@ -88,21 +90,23 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} -%patch0 -p0 +%patch0 -p1 +%patch1 -p1 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} %build %configure \ + --enable-setuid=ganglia \ + --enable-setgid=ganglia \ --with-gmetad \ --disable-static \ - --enable-shared + --enable-shared \ + --sysconfdir=%{_sysconfdir}/ganglia ## Default to run as user ganglia instead of nobody %{__perl} -pi.orig -e 's|nobody|ganglia|g' \ - lib/libgmond.c gmetad/conf.c gmond/g25_config.c \ - gmetad/gmetad.conf gmond/gmond.conf.html ganglia.html \ - gmond/conf.pod ganglia.pod README lib/default_conf.h + gmond/gmond.conf.html ganglia.html gmond/conf.pod ## Don't have initscripts turn daemons on by default %{__perl} -pi.orig -e 's|2345|-|g' \ @@ -112,6 +116,7 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT ## Put web files in place mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} @@ -160,7 +165,7 @@ gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfd # Copy the python metric modules and .conf files cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/modules/conf.d/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ -cp -p gmond/python_modules/*/*.{py,pyc} $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ +cp -p gmond/python_modules/*/*.py $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ # Don't install the example modules rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.conf rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.pyconf @@ -170,6 +175,8 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/modgstatus.conf rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/*.conf.in ## Disable the diskusage module until it is configured properly #mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off +# Don't install Makefile* in the web dir +rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/Makefile* ## Install binaries make install DESTDIR=$RPM_BUILD_ROOT @@ -249,6 +256,7 @@ fi %exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf %files gmond-python +%defattr(-,root,root,-) %dir %{_libdir}/ganglia/python_modules/ %{_libdir}/ganglia/python_modules/*.py* %{_libdir}/ganglia/modpython.so* @@ -269,6 +277,11 @@ fi %{_datadir}/%{name} %changelog +* Thu Apr 22 2010 Kostas Georgiou - 3.1.7-1 +- New upstream release +- Spec file cleanups +- Use the new name_match feature to enable the diskusage plugin by default + * Fri Jul 24 2009 Fedora Release Engineering - 3.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/setuserid-fix.patch b/setuserid-fix.patch new file mode 100644 index 0000000..972c274 --- /dev/null +++ b/setuserid-fix.patch @@ -0,0 +1,51 @@ +diff --git a/gmetad/conf.c.in b/gmetad/conf.c.in +index c6fd338..27ae87c 100644 +--- a/gmetad/conf.c.in ++++ b/gmetad/conf.c.in +@@ -274,7 +274,7 @@ set_defaults (gmetad_config_t *config) + config->trusted_hosts = NULL; + config->debug_level = 0; + config->should_setuid = 1; +- config->setuid_username = "nobody"; ++ config->setuid_username = "@setuid_user@"; + config->rrd_rootdir = "@varstatedir@/ganglia/rrds"; + config->scalable_mode = 1; + config->all_trusted = 0; +diff --git a/gmetad/gmetad.conf.in b/gmetad/gmetad.conf.in +index 4e75246..67920eb 100644 +--- a/gmetad/gmetad.conf.in ++++ b/gmetad/gmetad.conf.in +@@ -88,9 +88,9 @@ data_source "my cluster" localhost + # setuid off + # + #------------------------------------------------------------------------------- +-# User gmetad will setuid to (defaults to "nobody") +-# default: "nobody" +-# setuid_username "nobody" ++# User gmetad will setuid to (defaults to "@setuid_user@") ++# default: "@setuid_user@" ++# setuid_username "@setuid_user@" + # + #------------------------------------------------------------------------------- + # The port gmetad will answer requests for XML +diff --git a/scripts/fixconfig.in b/scripts/fixconfig.in +index 9208c22..b666b6b 100644 +--- a/scripts/fixconfig.in ++++ b/scripts/fixconfig.in +@@ -33,6 +33,8 @@ LDFLAGS="`echo '@LDFLAGS@' | $AWK '{ gsub(/,/, "\\\\,"); print }'`" + LIBS="@LIBS@" + VERSION="@VERSION@" + host_cpu="@host_cpu@" ++setuid_user="@setuid_user@" ++setgid_group="@setgid_group@" + + # Additional paths specific to Ganglia. + moduledir="@moduledir@" +@@ -84,5 +86,7 @@ $SED -e "s,@prefix[@],$prefix,g" \ + -e "s,@GANGLIA_MINOR_VERSION[@],$GANGLIA_MINOR_VERSION,g" \ + -e "s,@GANGLIA_VERSION[@],$GANGLIA_VERSION,g" \ + -e "s,@REL[@],$REL,g" \ ++ -e "s,@setuid_user[@],$setuid_user,g" \ ++ -e "s,@setgid_group[@],$setgid_group,g" \ + < "$input" > "$output" + From f3c150e6151be5097cac3e878f6b2a804f87835e Mon Sep 17 00:00:00 2001 From: georgiou Date: Thu, 22 Apr 2010 14:46:35 +0000 Subject: [PATCH 033/124] Forgot the new source :( --- .cvsignore | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9cbce87..b437772 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -ganglia-3.1.2.tar.gz +ganglia-3.1.7.tar.gz diff --git a/sources b/sources index 12518f5..19a00f8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -aaba09a6fa897ed581789f679f7ca62d ganglia-3.1.2.tar.gz +6aa5e2109c2cc8007a6def0799cf1b4c ganglia-3.1.7.tar.gz From a104cf4a6e4ca7c6badeccf7c37f00875ed2abc0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 15:02:24 +0000 Subject: [PATCH 034/124] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- 2 files changed, 21 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 44b4717..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: ganglia -# $Id: Makefile,v 1.1 2006/06/15 20:15:03 jwilson Exp $ -NAME := ganglia -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) From a5a4b3281a641817b633782fb6b71de312ef96a6 Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Sat, 31 Jul 2010 20:20:01 +0200 Subject: [PATCH 035/124] - Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 91049fe..fdb3c73 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.7 -Release: 1%{?svnrev:.r%{svnrev}}%{?dist} +Release: 2%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -277,6 +277,9 @@ fi %{_datadir}/%{name} %changelog +* Sat Jul 31 2010 Thomas Spura - 3.1.7-2 +- Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + * Thu Apr 22 2010 Kostas Georgiou - 3.1.7-1 - New upstream release - Spec file cleanups From 69147a6ae364865b226d11b52608748b98362b46 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 16:46:23 -0600 Subject: [PATCH 036/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index fdb3c73..2f3b4e4 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.7 -Release: 2%{?svnrev:.r%{svnrev}}%{?dist} +Release: 3%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -277,6 +277,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 3.1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Sat Jul 31 2010 Thomas Spura - 3.1.7-2 - Rebuild for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild From 4d185009c607af7343273a6da4fa291a621af941 Mon Sep 17 00:00:00 2001 From: Kostas Georgiou Date: Tue, 14 Jun 2011 15:36:33 +0100 Subject: [PATCH 037/124] Fix buffer overflow in moddisk.so #689483 --- diskmetrics.patch | 12 ++++++++++++ ganglia.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 diskmetrics.patch diff --git a/diskmetrics.patch b/diskmetrics.patch new file mode 100644 index 0000000..51af49a --- /dev/null +++ b/diskmetrics.patch @@ -0,0 +1,12 @@ +diff -u a/libmetrics/linux/metrics.c-orig b/libmetrics/linux/metrics.c +--- a/libmetrics/linux/metrics.c 2011-06-13 16:39:19.279753448 +0100 ++++ b/libmetrics/linux/metrics.c 2011-06-13 16:46:36.936156216 +0100 +@@ -1242,7 +1242,7 @@ + return max; + } + while ( fgets(procline, sizeof(procline), mounts) ) { +- rc=sscanf(procline, "%s %s %s %s ", device, mount, type, mode); ++ rc=sscanf(procline, "%127s %127s %31s %127s ", device, mount, type, mode); + if (!rc) continue; + if (!strncmp(mode, "ro", 2)) continue; + if (remote_mount(device, type)) continue; diff --git a/ganglia.spec b/ganglia.spec index 2f3b4e4..7cf57ff 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.7 -Release: 3%{?svnrev:.r%{svnrev}}%{?dist} +Release: 4%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -10,6 +10,7 @@ Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{vers #Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz Patch0: diskusage-pcre.patch Patch1: setuserid-fix.patch +Patch2: diskmetrics.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rrdtool-devel, apr-devel >= 1 @@ -92,6 +93,7 @@ programmers can use to build scalable cluster or grid applications %setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} %patch0 -p1 %patch1 -p1 +%patch2 -p1 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -277,6 +279,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Feb 08 2011 Kostas Georgiou - 3.1.7-4 +- Fix buffer overflow in moddisk.so #689483 + * Tue Feb 08 2011 Fedora Release Engineering - 3.1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 251b426ec296bb42e17115fdb9c5fb8c359c0307 Mon Sep 17 00:00:00 2001 From: Kostas Georgiou Date: Tue, 14 Jun 2011 17:49:49 +0100 Subject: [PATCH 038/124] Correct changelog date --- ganglia.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 7cf57ff..01ed120 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -279,7 +279,7 @@ fi %{_datadir}/%{name} %changelog -* Tue Feb 08 2011 Kostas Georgiou - 3.1.7-4 +* Tue Jun 14 2011 Kostas Georgiou - 3.1.7-4 - Fix buffer overflow in moddisk.so #689483 * Tue Feb 08 2011 Fedora Release Engineering - 3.1.7-3 From 2a1e8cdf65f8f6e3d7282222305affa9b9e20e02 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 20:56:09 -0600 Subject: [PATCH 039/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 01ed120..d01e5c6 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.7 -Release: 4%{?svnrev:.r%{svnrev}}%{?dist} +Release: 5%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -279,6 +279,9 @@ fi %{_datadir}/%{name} %changelog +* Fri Jan 13 2012 Fedora Release Engineering - 3.1.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Tue Jun 14 2011 Kostas Georgiou - 3.1.7-4 - Fix buffer overflow in moddisk.so #689483 From e32b62191a9fc53fb48d1d57e819279c54eb1da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 10 Feb 2012 13:01:11 +0100 Subject: [PATCH 040/124] Rebuild against PCRE 8.30 --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index d01e5c6..ec636ea 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.1.7 -Release: 5%{?svnrev:.r%{svnrev}}%{?dist} +Release: 6%{?svnrev:.r%{svnrev}}%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -279,6 +279,9 @@ fi %{_datadir}/%{name} %changelog +* Fri Feb 10 2012 Petr Pisar - 3.1.7-6 +- Rebuild against PCRE 8.30 + * Fri Jan 13 2012 Fedora Release Engineering - 3.1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From 5eb2b152d9c31a8d8fa9c0b38816c5e6ef6f51a0 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Fri, 11 May 2012 09:45:31 -0500 Subject: [PATCH 041/124] Update, systemd. --- .gitignore | 1 + ganglia.spec | 171 ++++++++++++++++++++++++++++++++++++------------- gmetad.service | 10 +++ gmond.service | 14 ++++ sources | 2 +- 5 files changed, 151 insertions(+), 47 deletions(-) create mode 100644 gmetad.service create mode 100644 gmond.service diff --git a/.gitignore b/.gitignore index b437772..dc45f55 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ ganglia-3.1.7.tar.gz +/ganglia-3.3.7.tar.gz diff --git a/ganglia.spec b/ganglia.spec index ec636ea..2f10a31 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,24 +1,30 @@ Name: ganglia -Version: 3.1.7 -Release: 6%{?svnrev:.r%{svnrev}}%{?dist} +Version: 3.3.7 +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ -Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -#Source0: http://www.ganglia.info/snapshots/3.1.x/%{name}-%{version}.%{svnrev}.tar.gz +Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Source1: gmond.service +Source2: gmetad.service Patch0: diskusage-pcre.patch -Patch1: setuserid-fix.patch Patch2: diskmetrics.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: rrdtool-devel, apr-devel >= 1 -BuildRequires: libpng-devel, libart_lgpl-devel -BuildRequires: libconfuse-devel, expat-devel -BuildRequires: python-devel, freetype-devel +BuildRequires: systemd-units +BuildRequires: rrdtool-devel +BuildRequires: apr-devel >= 1 +BuildRequires: libpng-devel +BuildRequires: libart_lgpl-devel +BuildRequires: libconfuse-devel +BuildRequires: expat-devel +BuildRequires: python-devel +BuildRequires: freetype-devel BuildRequires: pcre-devel + %description Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open @@ -27,7 +33,9 @@ well-defined XML format. %package web Summary: Ganglia Web Frontend Group: Applications/Internet -Requires: rrdtool, php, php-gd +Requires: rrdtool +Requires: php +Requires: php-gd Requires: %{name}-gmetad = %{version}-%{release} %description web @@ -39,9 +47,13 @@ written in the PHP4 language. Summary: Ganglia Metadata collection daemon Group: Applications/Internet Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/chkconfig -Requires(preun): /sbin/chkconfig -Requires(preun): /sbin/service +# This is actually needed for the %triggerun script but Requires(triggerun) +# is not valid. We can use %post because this particular %triggerun script +# should fire just after this package is installed. +Requires(post): systemd-sysv +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units %description gmetad Ganglia is a scalable, real-time monitoring and execution environment @@ -55,9 +67,13 @@ to form a monitoring grid. It also keeps metric history using rrdtool. Summary: Ganglia Monitoring daemon Group: Applications/Internet Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/chkconfig -Requires(preun): /sbin/chkconfig -Requires(preun): /sbin/service +# This is actually needed for the %triggerun script but Requires(triggerun) +# is not valid. We can use %post because this particular %triggerun script +# should fire just after this package is installed. +Requires(post): systemd-sysv +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units %description gmond Ganglia is a scalable, real-time monitoring and execution environment @@ -70,7 +86,8 @@ Multicast domain. %package gmond-python Summary: Ganglia Monitor daemon python DSO and metric modules Group: Applications/Internet -Requires: ganglia-gmond, python +Requires: ganglia-gmond +Requires: python %description gmond-python Ganglia is a scalable, real-time monitoring and execution environment @@ -90,9 +107,8 @@ The Ganglia Monitoring Core library provides a set of functions that programmers can use to build scalable cluster or grid applications %prep -%setup -q -n %{name}-%{version}%{?svnrev:.%{svnrev}} +%setup -q %patch0 -p1 -%patch1 -p1 %patch2 -p1 ## Hey, those shouldn't be executable... chmod -x lib/*.{h,x} @@ -125,12 +141,12 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ -mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ +mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php -mv $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ -ln -s ../../..%{_sysconfdir}/%{name}/private_clusters \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters + $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php +#mv $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ +#ln -s ../../..%{_sysconfdir}/%{name}/private_clusters \ +# $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf # # Ganglia monitoring system php web frontend @@ -148,15 +164,15 @@ cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf __EOF__ ## Create directory structures -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d +mkdir -p $RPM_BUILD_ROOT%{_unitdir} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d mkdir -p $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/rrds mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 ## Put files in place -cp -p gmond/gmond.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmond -cp -p gmetad/gmetad.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmetad +install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/gmond.service +install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/gmetad.service cp -p gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 cp -p gmetad/gmetad.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmetad.conf cp -p mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ @@ -198,23 +214,37 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %post gmond -/sbin/chkconfig --add gmond - -%post gmetad -/sbin/chkconfig --add gmetad - -%preun gmetad -if [ "$1" = 0 ] -then - /sbin/service gmetad stop >/dev/null 2>&1 || : - /sbin/chkconfig --del gmetad +if [ $1 -eq 1 ] ; then + /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi %preun gmond -if [ "$1" = 0 ] -then - /sbin/service gmond stop >/dev/null 2>&1 || : - /sbin/chkconfig --del gmond +if [ $1 -eq 0 ] ; then + /bin/systemctl --no-reload disable gmond.service > /dev/null 2>&1 || : + /bin/systemctl stop gmond.service > /dev/null 2>&1 || : +fi + +%postun gmond +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +if [ $1 -ge 1 ] ; then + /bin/systemctl try-restart gmond.service >/dev/null 2>&1 || : +fi + +%post gmetad +if [ $1 -eq 1 ] ; then + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi + +%preun gmetad +if [ $1 -eq 0 ] ; then + /bin/systemctl --no-reload disable gmetad.service > /dev/null 2>&1 || : + /bin/systemctl stop gmetad.service > /dev/null 2>&1 || : +fi + +%postun gmetad +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +if [ $1 -ge 1 ] ; then + /bin/systemctl try-restart gmetad.service >/dev/null 2>&1 || : fi %post devel -p /sbin/ldconfig @@ -222,6 +252,40 @@ fi %postun devel -p /sbin/ldconfig +### A sysv => systemd migration contains all of the same scriptlets as a +### systemd package. These are additional scriptlets + +# Note: the NEVR in trigger scripts should all be the version in +# which the package switched to systemd unit files and the comparision +# should be less than. Using <= the last version with the sysV script won't +# work for several reasons: +# 1) disttag is different between Fedora releases +# 2) An update in an old Fedora release may create a newer NEVR +# Note that this means an update in an older Fedora release must be NEVR +# lower than this. Freezing the version and release of the old package and +# using a number after the disttag is one way to do this. Example: +# httpd-1.0-1%{?dist} => httpd-1.0-1%{?dist}.1 + +%triggerun gmond -- ganglia-gmond < 3.3.7-1 +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply gmond +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save gmond >/dev/null 2>&1 ||: + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del gmond >/dev/null 2>&1 || : +/bin/systemctl try-restart gmond.service >/dev/null 2>&1 || : + +%triggerun gmetad -- ganglia-gmetad < 3.3.7-1 +# Save the current service runlevel info +# User must manually run systemd-sysv-convert --apply gmetad +# to migrate them to systemd targets +/usr/bin/systemd-sysv-convert --save gmetad >/dev/null 2>&1 ||: + +# Run these because the SysV package being removed won't do them +/sbin/chkconfig --del gmetad >/dev/null 2>&1 || : +/bin/systemctl try-restart gmetad.service >/dev/null 2>&1 || : + %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog @@ -229,15 +293,15 @@ fi %dir %{_libdir}/ganglia %{_libdir}/ganglia/*.so %exclude %{_libdir}/ganglia/modpython.so -%{_bindir}/ganglia-config %files gmetad %defattr(-,root,root,-) %dir %{_localstatedir}/lib/%{name} %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad +%{_unitdir}/gmetad.service %{_mandir}/man1/gmetad.1* -%{_sysconfdir}/init.d/gmetad +%{_mandir}/man1/gmetad.py.1* %dir %{_sysconfdir}/ganglia %config(noreplace) %{_sysconfdir}/ganglia/gmetad.conf @@ -246,7 +310,7 @@ fi %{_bindir}/gmetric %{_bindir}/gstat %{_sbindir}/gmond -%{_sysconfdir}/init.d/gmond +%{_unitdir}/gmond.service %{_mandir}/man5/gmond.conf.5* %{_mandir}/man1/gmond.1* %{_mandir}/man1/gstat.1* @@ -267,18 +331,33 @@ fi %files devel %defattr(-,root,root,-) +%{_bindir}/ganglia-config %{_includedir}/*.h %{_libdir}/libganglia*.so %files web %defattr(-,root,root,-) %doc web/AUTHORS web/COPYING -%config(noreplace) %{_sysconfdir}/%{name}/conf.php -%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/private_clusters +%config(noreplace) %{_sysconfdir}/%{name}/conf_default.php +#%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %changelog +* Fri May 11 2012 Jon Ciesla - 3.3.7-2 +- scriptlet corrections. + +* Mon May 07 2012 Terje Rosten - 3.3.7-1 +- Update to 3.3.7 +- Split buildreq/req +- Remove svn tag +- Fix src url +- Remove patches now upstream +- More man pages +- Move web config +- Move ganglia-config to -devel +- Systemd support + * Fri Feb 10 2012 Petr Pisar - 3.1.7-6 - Rebuild against PCRE 8.30 diff --git a/gmetad.service b/gmetad.service new file mode 100644 index 0000000..a9184a0 --- /dev/null +++ b/gmetad.service @@ -0,0 +1,10 @@ +[Unit] +Description=Ganglia Meta Daemon +After=network.target + +[Service] +ExecStart=/usr/sbin/gmetad -d 1 + +[Install] +WantedBy=multi-user.target + diff --git a/gmond.service b/gmond.service new file mode 100644 index 0000000..a6b5032 --- /dev/null +++ b/gmond.service @@ -0,0 +1,14 @@ +[Unit] +Description=Ganglia Meta Daemon +After=multi-user.target + +[Service] +Type=forking +ExecStart=/usr/sbin/gmond + +[Install] +WantedBy=multi-user.target + + + + diff --git a/sources b/sources index 19a00f8..9e3a9a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6aa5e2109c2cc8007a6def0799cf1b4c ganglia-3.1.7.tar.gz +2e355b72af2487bb0669bfc7a38ed929 ganglia-3.3.7.tar.gz From f16ae172ea8f08f0c2a019943aea546159a02d77 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Fri, 11 May 2012 12:49:11 -0500 Subject: [PATCH 042/124] Fix web interface. --- ganglia.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 2f10a31..14bbc1b 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.3.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -142,11 +142,8 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ -ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ +ln -s ../../..%{_sysconfdir}/%{name}/conf_default.php \ $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php -#mv $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ -#ln -s ../../..%{_sysconfdir}/%{name}/private_clusters \ -# $RPM_BUILD_ROOT%{_datadir}/%{name}/private_clusters cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf # # Ganglia monitoring system php web frontend @@ -168,6 +165,9 @@ mkdir -p $RPM_BUILD_ROOT%{_unitdir} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d mkdir -p $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/rrds +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/conf +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/cache +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/compiled mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 ## Put files in place @@ -339,11 +339,17 @@ fi %defattr(-,root,root,-) %doc web/AUTHORS web/COPYING %config(noreplace) %{_sysconfdir}/%{name}/conf_default.php -#%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/private_clusters %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/conf +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/cache +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Fri May 11 2012 Terje Rosten - 3.3.7-3 +- Fix web frontend + * Fri May 11 2012 Jon Ciesla - 3.3.7-2 - scriptlet corrections. From fb1e9f78318767ba7f853b32a3dee2c52a9b15f7 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Mon, 14 May 2012 12:42:41 -0500 Subject: [PATCH 043/124] Unbundled Zend. --- ganglia.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 14bbc1b..ea8a41f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.3.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -36,6 +36,7 @@ Group: Applications/Internet Requires: rrdtool Requires: php Requires: php-gd +Requires: php-ZendFramework Requires: %{name}-gmetad = %{version}-%{release} %description web @@ -202,6 +203,10 @@ make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{Makefile.am,version.php.in} +#use system php-ZendFramework +rm -rf $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend +ln -s /usr/share/php/Zend $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend + %clean rm -rf $RPM_BUILD_ROOT @@ -251,6 +256,11 @@ fi %postun devel -p /sbin/ldconfig +%post web +if [ ! -L /usr/share/ganglia/lib/Zend ]; then + ln -s /usr/share/php/Zend /usr/share/ganglia/lib/Zend +fi + ### A sysv => systemd migration contains all of the same scriptlets as a ### systemd package. These are additional scriptlets @@ -347,6 +357,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Mon May 14 2012 Jon Ciesla - 3.3.7-4 +- Unbundle Zend. + * Fri May 11 2012 Terje Rosten - 3.3.7-3 - Fix web frontend From 9464404c1b8495cf76adce23572d2038fa3acdc0 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 18 Jul 2012 22:51:12 -0500 Subject: [PATCH 044/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index ea8a41f..84e3f52 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.3.7 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet @@ -357,6 +357,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Thu Jul 19 2012 Fedora Release Engineering - 3.3.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Mon May 14 2012 Jon Ciesla - 3.3.7-4 - Unbundle Zend. From a80b0718692eda4ca66aace1c0d86548dbed31f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=F8sten?= Date: Sun, 6 Jan 2013 13:10:22 +0100 Subject: [PATCH 045/124] 3.5.0 --- .gitignore | 2 + conf.php | 11 ++ diskmetrics.patch | 12 -- diskusage-pcre.patch | 24 ---- ganglia-httpd.conf.d | 13 ++ ganglia-httpd24.conf.d | 11 ++ ganglia.spec | 279 ++++++++++++++++++++++++----------------- setuserid-fix.patch | 51 -------- sources | 3 +- 9 files changed, 202 insertions(+), 204 deletions(-) create mode 100644 conf.php delete mode 100644 diskmetrics.patch delete mode 100644 diskusage-pcre.patch create mode 100644 ganglia-httpd.conf.d create mode 100644 ganglia-httpd24.conf.d delete mode 100644 setuserid-fix.patch diff --git a/.gitignore b/.gitignore index dc45f55..662106c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ ganglia-3.1.7.tar.gz /ganglia-3.3.7.tar.gz +/ganglia-3.5.0.tar.gz +/ganglia-web-3.5.4.tar.gz diff --git a/conf.php b/conf.php new file mode 100644 index 0000000..ab08134 --- /dev/null +++ b/conf.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/diskmetrics.patch b/diskmetrics.patch deleted file mode 100644 index 51af49a..0000000 --- a/diskmetrics.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -u a/libmetrics/linux/metrics.c-orig b/libmetrics/linux/metrics.c ---- a/libmetrics/linux/metrics.c 2011-06-13 16:39:19.279753448 +0100 -+++ b/libmetrics/linux/metrics.c 2011-06-13 16:46:36.936156216 +0100 -@@ -1242,7 +1242,7 @@ - return max; - } - while ( fgets(procline, sizeof(procline), mounts) ) { -- rc=sscanf(procline, "%s %s %s %s ", device, mount, type, mode); -+ rc=sscanf(procline, "%127s %127s %31s %127s ", device, mount, type, mode); - if (!rc) continue; - if (!strncmp(mode, "ro", 2)) continue; - if (remote_mount(device, type)) continue; diff --git a/diskusage-pcre.patch b/diskusage-pcre.patch deleted file mode 100644 index 8b2ed4a..0000000 --- a/diskusage-pcre.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/gmond/python_modules/conf.d/diskusage.pyconf b/gmond/python_modules/conf.d/diskusage.pyconf -index 04a7ef1..1a7ef17 100644 ---- a/gmond/python_modules/conf.d/diskusage.pyconf -+++ b/gmond/python_modules/conf.d/diskusage.pyconf -@@ -11,7 +11,8 @@ collection_group { - collect_every = 10 - time_threshold = 50 - metric { -- name = "" -+ name_match = "([\\S]+)-disk_used" -+ name = "\\1-disk_used" - value_threshold = 1.0 - } - } -@@ -20,7 +21,8 @@ collection_group { - collect_once = yes - time_threshold = 20 - metric { -- name = "" -+ name_match = "([\\S]+)-disk_total" -+ name = "\\1-disk_total" - } - } - diff --git a/ganglia-httpd.conf.d b/ganglia-httpd.conf.d new file mode 100644 index 0000000..80d385e --- /dev/null +++ b/ganglia-httpd.conf.d @@ -0,0 +1,13 @@ +# +# Ganglia monitoring system php web frontend +# + +Alias /ganglia /usr/share/ganglia + + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + Allow from ::1 + # Allow from .example.com + diff --git a/ganglia-httpd24.conf.d b/ganglia-httpd24.conf.d new file mode 100644 index 0000000..bc3b564 --- /dev/null +++ b/ganglia-httpd24.conf.d @@ -0,0 +1,11 @@ +# +# Ganglia monitoring system php web frontend +# + +Alias /ganglia /usr/share/ganglia + + + Require local + # Require ip 10.1.2.3 + # Require host example.org + diff --git a/ganglia.spec b/ganglia.spec index 84e3f52..a301c85 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,19 +1,30 @@ -Name: ganglia -Version: 3.3.7 -Release: 5%{?dist} -Summary: Ganglia Distributed Monitoring System +%global gangver 3.5.0 +%global webver 3.5.4 +%if 0%{?fedora} >= 18 +%global systemd 1 +%else +%global systemd 0 +%endif + +Name: ganglia +Version: %{gangver} +Release: 1%{?dist} +Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -Source1: gmond.service -Source2: gmetad.service -Patch0: diskusage-pcre.patch -Patch2: diskmetrics.patch +Source1: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-web-%{webver}.tar.gz +Source2: gmond.service +Source3: gmetad.service +Source4: ganglia-httpd24.conf.d +Source5: ganglia-httpd.conf.d +Source6: conf.php Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +%if 0%{?systemd} BuildRequires: systemd-units +%endif BuildRequires: rrdtool-devel BuildRequires: apr-devel >= 1 BuildRequires: libpng-devel @@ -33,11 +44,12 @@ well-defined XML format. %package web Summary: Ganglia Web Frontend Group: Applications/Internet +Version: %{webver} Requires: rrdtool Requires: php Requires: php-gd Requires: php-ZendFramework -Requires: %{name}-gmetad = %{version}-%{release} +Requires: %{name}-gmetad = %{gangver}-%{release} %description web This package provides a web frontend to display the XML tree published by @@ -47,14 +59,16 @@ written in the PHP4 language. %package gmetad Summary: Ganglia Metadata collection daemon Group: Applications/Internet -Requires: %{name} = %{version}-%{release} -# This is actually needed for the %triggerun script but Requires(triggerun) -# is not valid. We can use %post because this particular %triggerun script -# should fire just after this package is installed. -Requires(post): systemd-sysv -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +Requires: %{name} = %{gangver}-%{release} +%if 0%{?systemd} +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +%else +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service +%endif #systemd %description gmetad Ganglia is a scalable, real-time monitoring and execution environment @@ -67,14 +81,16 @@ to form a monitoring grid. It also keeps metric history using rrdtool. %package gmond Summary: Ganglia Monitoring daemon Group: Applications/Internet -Requires: %{name} = %{version}-%{release} -# This is actually needed for the %triggerun script but Requires(triggerun) -# is not valid. We can use %post because this particular %triggerun script -# should fire just after this package is installed. -Requires(post): systemd-sysv -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +Requires: %{name} = %{gangver}-%{release} +%if 0%{?systemd} +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +%else +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service +%endif #systemd %description gmond Ganglia is a scalable, real-time monitoring and execution environment @@ -101,7 +117,7 @@ can be loaded via the DSO at gmond daemon start time. %package devel Summary: Ganglia Library Group: Applications/Internet -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{gangver}-%{release} %description devel The Ganglia Monitoring Core library provides a set of functions that @@ -109,10 +125,9 @@ programmers can use to build scalable cluster or grid applications %prep %setup -q -%patch0 -p1 -%patch2 -p1 -## Hey, those shouldn't be executable... -chmod -x lib/*.{h,x} +# web part +%setup -q -T -D -a 1 +mv ganglia-web-%{webver} web %build %configure \ @@ -123,60 +138,41 @@ chmod -x lib/*.{h,x} --enable-shared \ --sysconfdir=%{_sysconfdir}/ganglia +# Remove rpaths +%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + ## Default to run as user ganglia instead of nobody %{__perl} -pi.orig -e 's|nobody|ganglia|g' \ gmond/gmond.conf.html ganglia.html gmond/conf.pod +%{__perl} -pi.orig -e 's|.*setuid_username.*|setuid_username ganglia|' \ + gmetad/gmetad.conf.in + ## Don't have initscripts turn daemons on by default -%{__perl} -pi.orig -e 's|2345|-|g' \ - gmond/gmond.init gmetad/gmetad.init +%{__perl} -pi.orig -e 's|2345|-|g' gmond/gmond.init gmetad/gmetad.init make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -## Put web files in place -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} -cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ -mv $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ -ln -s ../../..%{_sysconfdir}/%{name}/conf_default.php \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/conf_default.php -cat << __EOF__ > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf - # - # Ganglia monitoring system php web frontend - # - - Alias /%{name} %{_datadir}/%{name} - - - Order deny,allow - Deny from all - Allow from 127.0.0.1 - Allow from ::1 - # Allow from .example.com - -__EOF__ +make install DESTDIR=$RPM_BUILD_ROOT ## Create directory structures -mkdir -p $RPM_BUILD_ROOT%{_unitdir} -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d mkdir -p $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/rrds -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/conf -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/cache -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/compiled -mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 -mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 -## Put files in place -install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/gmond.service -install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/gmetad.service -cp -p gmond/gmond.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/gmond.conf.5 -cp -p gmetad/gmetad.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmetad.conf -cp -p mans/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/{rrds,conf} +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/{cache,compiled} + +## Install services +%if 0%{?systemd} +install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/gmond.service +install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/gmetad.service +%else +install -Dp -m 0755 gmond/gmond.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmond +install -Dp -m 0755 gmetad/gmetad.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmetad +%endif # systemd + ## Build default gmond.conf from gmond using the '-t' flag gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmond.conf @@ -185,28 +181,50 @@ gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' > $RPM_BUILD_ROOT%{_sysconfd cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/modules/conf.d/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/python_modules/*/*.py $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ -# Don't install the example modules -rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.conf -rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/example.pyconf -# Don't install the status modules -rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/modgstatus.conf -# Clean up the .conf.in files -rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/*.conf.in -## Disable the diskusage module until it is configured properly -#mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off -# Don't install Makefile* in the web dir -rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/Makefile* -## Install binaries -make install DESTDIR=$RPM_BUILD_ROOT +## Web bits +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} +cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ +install -p -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/ganglia/conf.php +ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ + $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php + +%if 0%{?fedora} >= 18 +install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf +%else +install -Dp -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf +%endif + +## Various clean up after install: + +## Don't install the status modules and example.conf +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/{modgstatus,example}.conf + +## Disable the diskusage module until it is configured properly +## mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf \ +## $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off + +## Remove unwanted files from web dir +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{Makefile*,debian,ganglia-web.spec*,ganglia-web} +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{conf_default.php.in,version.php.in} + +## Included as doc +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{README,TODO,AUTHORS,COPYING} + ## House cleaning rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{Makefile.am,version.php.in} -#use system php-ZendFramework +## Use system php-ZendFramework rm -rf $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend ln -s /usr/share/php/Zend $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend +# Remove execute bit +chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/header.php +chmod 0644 $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py + +# Remove shebang +%{__sed} -i '1{\@^#!@d}' $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py + %clean rm -rf $RPM_BUILD_ROOT @@ -218,39 +236,48 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig +%if 0%{?systemd} %post gmond -if [ $1 -eq 1 ] ; then - /bin/systemctl daemon-reload >/dev/null 2>&1 || : +%systemd_post gmond.service + +%preun gmond +%systemd_preun gmond.service + +%postun gmond +%systemd_postun_with_restart gmond.service + +%post gmetad +%systemd_post gmetad.service + +%preun gmetad +%systemd_preun gmetad.service + +%postun gmetad +%systemd_postun_with_restart gmetad.service + +%else + +%post gmond +/sbin/chkconfig --add gmond + +%post gmetad +/sbin/chkconfig --add gmetad + +%preun gmetad +if [ "$1" = 0 ] +then + /sbin/service gmetad stop >/dev/null 2>&1 || : + /sbin/chkconfig --del gmetad fi %preun gmond -if [ $1 -eq 0 ] ; then - /bin/systemctl --no-reload disable gmond.service > /dev/null 2>&1 || : - /bin/systemctl stop gmond.service > /dev/null 2>&1 || : +if [ "$1" = 0 ] +then + /sbin/service gmond stop >/dev/null 2>&1 || : + /sbin/chkconfig --del gmond fi -%postun gmond -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - /bin/systemctl try-restart gmond.service >/dev/null 2>&1 || : -fi - -%post gmetad -if [ $1 -eq 1 ] ; then - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi - -%preun gmetad -if [ $1 -eq 0 ] ; then - /bin/systemctl --no-reload disable gmetad.service > /dev/null 2>&1 || : - /bin/systemctl stop gmetad.service > /dev/null 2>&1 || : -fi - -%postun gmetad -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - /bin/systemctl try-restart gmetad.service >/dev/null 2>&1 || : -fi +%endif # systemd %post devel -p /sbin/ldconfig @@ -261,7 +288,6 @@ if [ ! -L /usr/share/ganglia/lib/Zend ]; then ln -s /usr/share/php/Zend /usr/share/ganglia/lib/Zend fi - ### A sysv => systemd migration contains all of the same scriptlets as a ### systemd package. These are additional scriptlets @@ -276,6 +302,7 @@ fi # using a number after the disttag is one way to do this. Example: # httpd-1.0-1%{?dist} => httpd-1.0-1%{?dist}.1 +%if 0%{?systemd} %triggerun gmond -- ganglia-gmond < 3.3.7-1 # Save the current service runlevel info # User must manually run systemd-sysv-convert --apply gmond @@ -295,6 +322,7 @@ fi # Run these because the SysV package being removed won't do them /sbin/chkconfig --del gmetad >/dev/null 2>&1 || : /bin/systemctl try-restart gmetad.service >/dev/null 2>&1 || : +%endif # systemd %files %defattr(-,root,root,-) @@ -309,7 +337,11 @@ fi %dir %{_localstatedir}/lib/%{name} %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad +%if 0%{?systemd} %{_unitdir}/gmetad.service +%else +%{_sysconfdir}/init.d/gmetad +%endif %{_mandir}/man1/gmetad.1* %{_mandir}/man1/gmetad.py.1* %dir %{_sysconfdir}/ganglia @@ -320,7 +352,11 @@ fi %{_bindir}/gmetric %{_bindir}/gstat %{_sbindir}/gmond +%if 0%{?systemd} %{_unitdir}/gmond.service +%else +%{_sysconfdir}/init.d/gmond +%endif %{_mandir}/man5/gmond.conf.5* %{_mandir}/man1/gmond.1* %{_mandir}/man1/gstat.1* @@ -347,8 +383,8 @@ fi %files web %defattr(-,root,root,-) -%doc web/AUTHORS web/COPYING -%config(noreplace) %{_sysconfdir}/%{name}/conf_default.php +%doc web/AUTHORS web/COPYING web/README web/TODO +%config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/conf @@ -357,6 +393,17 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sun Jan 06 2013 Terje Rosten - 3.5.0-1 +- 3.5.0 + +* Tue Dec 18 2012 Terje Rosten - 3.4.0-1 +- 3.4.0 +- Add ganglia-web 3.5.4 tarball +- Add support for non systemd builds +- Support httpd >= 2.4 +- Use new systemd macros +- Various clean up (rpmlint) + * Thu Jul 19 2012 Fedora Release Engineering - 3.3.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/setuserid-fix.patch b/setuserid-fix.patch deleted file mode 100644 index 972c274..0000000 --- a/setuserid-fix.patch +++ /dev/null @@ -1,51 +0,0 @@ -diff --git a/gmetad/conf.c.in b/gmetad/conf.c.in -index c6fd338..27ae87c 100644 ---- a/gmetad/conf.c.in -+++ b/gmetad/conf.c.in -@@ -274,7 +274,7 @@ set_defaults (gmetad_config_t *config) - config->trusted_hosts = NULL; - config->debug_level = 0; - config->should_setuid = 1; -- config->setuid_username = "nobody"; -+ config->setuid_username = "@setuid_user@"; - config->rrd_rootdir = "@varstatedir@/ganglia/rrds"; - config->scalable_mode = 1; - config->all_trusted = 0; -diff --git a/gmetad/gmetad.conf.in b/gmetad/gmetad.conf.in -index 4e75246..67920eb 100644 ---- a/gmetad/gmetad.conf.in -+++ b/gmetad/gmetad.conf.in -@@ -88,9 +88,9 @@ data_source "my cluster" localhost - # setuid off - # - #------------------------------------------------------------------------------- --# User gmetad will setuid to (defaults to "nobody") --# default: "nobody" --# setuid_username "nobody" -+# User gmetad will setuid to (defaults to "@setuid_user@") -+# default: "@setuid_user@" -+# setuid_username "@setuid_user@" - # - #------------------------------------------------------------------------------- - # The port gmetad will answer requests for XML -diff --git a/scripts/fixconfig.in b/scripts/fixconfig.in -index 9208c22..b666b6b 100644 ---- a/scripts/fixconfig.in -+++ b/scripts/fixconfig.in -@@ -33,6 +33,8 @@ LDFLAGS="`echo '@LDFLAGS@' | $AWK '{ gsub(/,/, "\\\\,"); print }'`" - LIBS="@LIBS@" - VERSION="@VERSION@" - host_cpu="@host_cpu@" -+setuid_user="@setuid_user@" -+setgid_group="@setgid_group@" - - # Additional paths specific to Ganglia. - moduledir="@moduledir@" -@@ -84,5 +86,7 @@ $SED -e "s,@prefix[@],$prefix,g" \ - -e "s,@GANGLIA_MINOR_VERSION[@],$GANGLIA_MINOR_VERSION,g" \ - -e "s,@GANGLIA_VERSION[@],$GANGLIA_VERSION,g" \ - -e "s,@REL[@],$REL,g" \ -+ -e "s,@setuid_user[@],$setuid_user,g" \ -+ -e "s,@setgid_group[@],$setgid_group,g" \ - < "$input" > "$output" - diff --git a/sources b/sources index 9e3a9a8..5aa887a 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -2e355b72af2487bb0669bfc7a38ed929 ganglia-3.3.7.tar.gz +51b3a16c5e3f775d9f6f19c4c6cd5610 ganglia-3.5.0.tar.gz +29c433e3f7be7f76ced56e341770ac5b ganglia-web-3.5.4.tar.gz From 3bb2ee4df0d93d300cf36ae2516aebc2a3445667 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 13 Feb 2013 16:15:50 -0600 Subject: [PATCH 046/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index a301c85..a7c95e4 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -9,7 +9,7 @@ Name: ganglia Version: %{gangver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD @@ -393,6 +393,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Feb 13 2013 Fedora Release Engineering - 3.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Sun Jan 06 2013 Terje Rosten - 3.5.0-1 - 3.5.0 From e95976b9f63fd3debdf3abb785dd0bee07b15ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Wed, 20 Feb 2013 19:27:44 +0100 Subject: [PATCH 047/124] Update to ganglia-web 3.5.7 - Add extra patch for XSS security --- .gitignore | 1 + ganglia-web-3.5.7-statedir.patch | 13 +++++++++ ganglia-web-3.5.7-xss.patch | 50 ++++++++++++++++++++++++++++++++ ganglia.spec | 14 +++++++-- sources | 2 +- 5 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 ganglia-web-3.5.7-statedir.patch create mode 100644 ganglia-web-3.5.7-xss.patch diff --git a/.gitignore b/.gitignore index 662106c..800af9e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ ganglia-3.1.7.tar.gz /ganglia-3.3.7.tar.gz /ganglia-3.5.0.tar.gz /ganglia-web-3.5.4.tar.gz +/ganglia-web-3.5.7.tar.gz diff --git a/ganglia-web-3.5.7-statedir.patch b/ganglia-web-3.5.7-statedir.patch new file mode 100644 index 0000000..f5ddaba --- /dev/null +++ b/ganglia-web-3.5.7-statedir.patch @@ -0,0 +1,13 @@ +diff --git a/conf_default.php b/conf_default.php +index 61e28e6..290c91f 100644 +--- a/conf_default.php ++++ b/conf_default.php +@@ -10,7 +10,7 @@ + # Gmetad-webfrontend version. Used to check for updates. + # + $conf['gweb_root'] = dirname(__FILE__); +-$conf['gweb_confdir'] = "/var/lib/ganglia-web"; ++$conf['gweb_confdir'] = "/var/lib/ganglia"; + + include_once $conf['gweb_root'] . "/version.php"; + diff --git a/ganglia-web-3.5.7-xss.patch b/ganglia-web-3.5.7-xss.patch new file mode 100644 index 0000000..24d99be --- /dev/null +++ b/ganglia-web-3.5.7-xss.patch @@ -0,0 +1,50 @@ +diff --git a/get_context.php b/get_context.php +index c7c3baf..9b5956a 100644 +--- a/get_context.php ++++ b/get_context.php +@@ -91,7 +91,7 @@ if ( isset($_GET['max_graphs']) && is_numeric($_GET['max_graphs'] ) ) + + ///////////////////////////////////////////////////////////////////////////// + +-$user['selected_tab'] = isset($_GET["tab"]) ? rawurldecode($_GET["tab"]) : 'm'; ++$user['selected_tab'] = isset($_GET["tab"]) ? clean_string( rawurldecode($_GET["tab"]) ) : 'm'; + + $user['compare_hosts'] = ($user['selected_tab'] == 'ch') ? 1 : NULL; + +diff --git a/graph_all_periods.php b/graph_all_periods.php +index 605e0b5..c18854d 100644 +--- a/graph_all_periods.php ++++ b/graph_all_periods.php +@@ -120,8 +120,8 @@ if ( ! isset($_GET['embed'] ) ) { + ?> + + + + + +-Live Dashboard for <?php print $user['view_name']; ?> ++Live Dashboard for <?php print htmlentities($user['view_name']); ?> + + + +@@ -60,7 +60,7 @@ if ( ! isset($_REQUEST['view_name']) ) { + + +
+- ++ +
+
    +
  • diff --git a/ganglia.spec b/ganglia.spec index a7c95e4..7768454 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,5 +1,5 @@ %global gangver 3.5.0 -%global webver 3.5.4 +%global webver 3.5.7 %if 0%{?fedora} >= 18 %global systemd 1 @@ -9,7 +9,7 @@ Name: ganglia Version: %{gangver} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD @@ -21,6 +21,8 @@ Source3: gmetad.service Source4: ganglia-httpd24.conf.d Source5: ganglia-httpd.conf.d Source6: conf.php +Patch0: ganglia-web-3.5.7-xss.patch +Patch1: ganglia-web-3.5.7-statedir.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?systemd} BuildRequires: systemd-units @@ -34,6 +36,7 @@ BuildRequires: expat-devel BuildRequires: python-devel BuildRequires: freetype-devel BuildRequires: pcre-devel +BuildRequires: /usr/bin/pod2man %description @@ -128,6 +131,9 @@ programmers can use to build scalable cluster or grid applications # web part %setup -q -T -D -a 1 mv ganglia-web-%{webver} web +cd web +%patch0 -p1 +%patch1 -p1 %build %configure \ @@ -393,6 +399,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Feb 20 2013 Terje Rosten - 3.5.0-3 +- Update to ganglia-web 3.5.7 +- Add extra patch for XSS security + * Wed Feb 13 2013 Fedora Release Engineering - 3.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 5aa887a..99c64fc 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 51b3a16c5e3f775d9f6f19c4c6cd5610 ganglia-3.5.0.tar.gz -29c433e3f7be7f76ced56e341770ac5b ganglia-web-3.5.4.tar.gz +bdb26d33c7f28dd0179614bd9a844fc2 ganglia-web-3.5.7.tar.gz From 6af2404ac39233b4005fddd5e2e21784176ab5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Thu, 9 May 2013 14:09:53 +0200 Subject: [PATCH 048/124] Hardened build in FC > 18. --- ganglia.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 7768454..743e70e 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -7,9 +7,13 @@ %global systemd 0 %endif +%if 0%{?fedora} >= 19 +%global _hardened_build 1 +%endif + Name: ganglia Version: %{gangver} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Ganglia Distributed Monitoring System Group: Applications/Internet License: BSD @@ -399,6 +403,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Thu May 09 2013 Terje Rosten - 3.5.0-4 +- Hardened build in FC > 18. + * Wed Feb 20 2013 Terje Rosten - 3.5.0-3 - Update to ganglia-web 3.5.7 - Add extra patch for XSS security From d326291a556c7ca4753a325ccbf9a428a5a05390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sun, 2 Jun 2013 15:53:25 +0200 Subject: [PATCH 049/124] Update to ganglia 3.6.0 and ganglia-web 3.5.8 --- .gitignore | 2 ++ ...7-xss.patch => ganglia-web-3.5.8-xss.patch | 8 +++--- ganglia.spec | 25 ++++++++++++++----- sources | 4 +-- 4 files changed, 27 insertions(+), 12 deletions(-) rename ganglia-web-3.5.7-xss.patch => ganglia-web-3.5.8-xss.patch (91%) diff --git a/.gitignore b/.gitignore index 800af9e..808e8bb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ ganglia-3.1.7.tar.gz /ganglia-3.5.0.tar.gz /ganglia-web-3.5.4.tar.gz /ganglia-web-3.5.7.tar.gz +/ganglia-3.6.0.tar.gz +/ganglia-web-3.5.8.tar.gz diff --git a/ganglia-web-3.5.7-xss.patch b/ganglia-web-3.5.8-xss.patch similarity index 91% rename from ganglia-web-3.5.7-xss.patch rename to ganglia-web-3.5.8-xss.patch index 24d99be..f450e09 100644 --- a/ganglia-web-3.5.7-xss.patch +++ b/ganglia-web-3.5.8-xss.patch @@ -1,8 +1,8 @@ diff --git a/get_context.php b/get_context.php -index c7c3baf..9b5956a 100644 +index 97f9e46..64ce6f1 100644 --- a/get_context.php +++ b/get_context.php -@@ -91,7 +91,7 @@ if ( isset($_GET['max_graphs']) && is_numeric($_GET['max_graphs'] ) ) +@@ -93,7 +93,7 @@ if ( isset($_GET['max_graphs']) && is_numeric($_GET['max_graphs'] ) ) ///////////////////////////////////////////////////////////////////////////// @@ -12,10 +12,10 @@ index c7c3baf..9b5956a 100644 $user['compare_hosts'] = ($user['selected_tab'] == 'ch') ? 1 : NULL; diff --git a/graph_all_periods.php b/graph_all_periods.php -index 605e0b5..c18854d 100644 +index bd58bcb..95e31e5 100644 --- a/graph_all_periods.php +++ b/graph_all_periods.php -@@ -120,8 +120,8 @@ if ( ! isset($_GET['embed'] ) ) { +@@ -122,8 +122,8 @@ if ( ! isset($_GET['embed'] ) ) { ?> - - - - --Live Dashboard for <?php print $user['view_name']; ?> -+Live Dashboard for <?php print htmlentities($user['view_name']); ?> - - - -@@ -60,7 +60,7 @@ if ( ! isset($_REQUEST['view_name']) ) { - - -
    -- -+ -
    -
      -
    • diff --git a/ganglia.spec b/ganglia.spec index cb48b2f..4ef026b 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,5 +1,5 @@ %global gangver 3.6.0 -%global webver 3.5.10 +%global webver 3.5.12 %if 0%{?fedora} >= 18 %global systemd 1 @@ -13,7 +13,7 @@ Name: ganglia Version: %{gangver} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -25,9 +25,7 @@ Source3: gmetad.service Source4: ganglia-httpd24.conf.d Source5: ganglia-httpd.conf.d Source6: conf.php -Patch0: ganglia-web-3.5.8-xss.patch -Patch1: ganglia-web-3.5.7-statedir.patch -Patch2: ganglia-web-3.5.10-cve-2013-6395.patch +Patch0: ganglia-web-3.5.7-statedir.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?systemd} BuildRequires: systemd-units @@ -143,8 +141,6 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in mv ganglia-web-%{webver} web cd web %patch0 -p1 -%patch1 -p1 -%patch2 -p1 %build %configure \ @@ -415,7 +411,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog -* Wed Nov 30 2013 Terje Rosten - 3.6.0-3 +* Sat Jan 11 2014 Terje Rosten - 3.6.0-4 +- Update to ganglia-web 3.5.12 + +* Sat Nov 30 2013 Terje Rosten - 3.6.0-3 - Update to ganglia-web 3.5.10 - Add patch as workaround for CVE-2013-6395 (bz #1034527) diff --git a/sources b/sources index cfa24f6..5875160 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -2945275f8f2b24dd5fb820f2c309ee26 ganglia-web-3.5.10.tar.gz +c87c0001dd8769d91a1bec053b3cb472 ganglia-web-3.5.12.tar.gz 05926bb18c22af508a3718a90b2e9a2c ganglia-3.6.0.tar.gz From d009df3cc67f8c05c69c61c71059483cf5d4f31d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 08:19:48 -0500 Subject: [PATCH 053/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 4ef026b..bcd9cf4 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -13,7 +13,7 @@ Name: ganglia Version: %{gangver} -Release: 4%{?dist} +Release: 5%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -411,6 +411,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 3.6.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sat Jan 11 2014 Terje Rosten - 3.6.0-4 - Update to ganglia-web 3.5.12 From 37b931c2d5d3c308de840f50acb91a676cf83e02 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sat, 16 Aug 2014 13:39:54 +0000 Subject: [PATCH 054/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index bcd9cf4..25f2ea3 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -13,7 +13,7 @@ Name: ganglia Version: %{gangver} -Release: 5%{?dist} +Release: 6%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -411,6 +411,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sat Aug 16 2014 Fedora Release Engineering - 3.6.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sat Jun 07 2014 Fedora Release Engineering - 3.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 83ab84b999bf612076e0a7e36b374dca4f5a8fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Thu, 9 Apr 2015 20:47:50 +0200 Subject: [PATCH 055/124] 3.7.1 & ganglia-web 3.6.2 --- .gitignore | 2 + ganglia-3.7.1-py-syntax.patch | 13 +++++ ganglia.spec | 100 ++++++++-------------------------- sources | 4 +- 4 files changed, 40 insertions(+), 79 deletions(-) create mode 100644 ganglia-3.7.1-py-syntax.patch diff --git a/.gitignore b/.gitignore index 82bb3aa..50eaca1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.5.8.tar.gz /ganglia-web-3.5.10.tar.gz /ganglia-web-3.5.12.tar.gz +/ganglia-3.7.1.tar.gz +/ganglia-web-3.6.2.tar.gz diff --git a/ganglia-3.7.1-py-syntax.patch b/ganglia-3.7.1-py-syntax.patch new file mode 100644 index 0000000..8028e73 --- /dev/null +++ b/ganglia-3.7.1-py-syntax.patch @@ -0,0 +1,13 @@ +diff --git a/gmond/python_modules/db/DBUtil.py b/gmond/python_modules/db/DBUtil.py +index 3d46f98..2504c24 100644 +--- a/gmond/python_modules/db/DBUtil.py ++++ b/gmond/python_modules/db/DBUtil.py +@@ -268,7 +268,7 @@ if __name__ == '__main__': + parser.add_option("-H", "--Host", dest="host", help="Host running mysql", default="localhost") + parser.add_option("-u", "--user", dest="user", help="user to connect as", default="") + parser.add_option("-p", "--password", dest="passwd", help="password", default="") +- parser.add_option("-S", "--socket", dest="unix_socket", help="unix_socket", default="" ++ parser.add_option("-S", "--socket", dest="unix_socket", help="unix_socket", default="") + (options, args) = parser.parse_args() + + try: diff --git a/ganglia.spec b/ganglia.spec index 25f2ea3..c0bb949 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,34 +1,27 @@ -%global gangver 3.6.0 -%global webver 3.5.12 +%global gangver 3.7.1 +%global webver 3.6.2 -%if 0%{?fedora} >= 18 -%global systemd 1 -%else -%global systemd 0 -%endif - -%if 0%{?fedora} >= 19 +%global systemd 1 %global _hardened_build 1 -%endif Name: ganglia Version: %{gangver} -Release: 6%{?dist} +Release: 1%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ -Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz -Source1: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-web-%{webver}.tar.gz +Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz +Source1: http://downloads.sourceforge.net/project/ganglia/ganglia-web/%{webver}/ganglia-web-%{webver}.tar.gz Source2: gmond.service Source3: gmetad.service Source4: ganglia-httpd24.conf.d Source5: ganglia-httpd.conf.d Source6: conf.php Patch0: ganglia-web-3.5.7-statedir.patch -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch1: ganglia-3.7.1-py-syntax.patch %if 0%{?systemd} -BuildRequires: systemd-units +BuildRequires: systemd %endif BuildRequires: rrdtool-devel BuildRequires: apr-devel >= 1 @@ -42,7 +35,6 @@ BuildRequires: freetype-devel BuildRequires: pcre-devel BuildRequires: /usr/bin/pod2man - %description Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open @@ -58,7 +50,7 @@ Requires: php-gd Requires: php-ZendFramework Requires: %{name}-gmetad = %{gangver}-%{release} -%description web +%description web This package provides a web frontend to display the XML tree published by ganglia, and to provide historical graphs of collected metrics. This website is written in the PHP4 language. @@ -77,7 +69,7 @@ Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %endif #systemd -%description gmetad +%description gmetad Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. @@ -85,7 +77,7 @@ well-defined XML format. This gmetad daemon aggregates monitoring data from several clusters to form a monitoring grid. It also keeps metric history using rrdtool. -%package gmond +%package gmond Summary: Ganglia Monitoring daemon Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} @@ -99,7 +91,7 @@ Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %endif #systemd -%description gmond +%description gmond Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. @@ -107,13 +99,13 @@ well-defined XML format. This gmond daemon provides the ganglia service within a single cluster or Multicast domain. -%package gmond-python +%package gmond-python Summary: Ganglia Monitor daemon python DSO and metric modules Group: Applications/Internet Requires: ganglia-gmond Requires: python -%description gmond-python +%description gmond-python Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. @@ -121,12 +113,12 @@ well-defined XML format. This package provides the gmond python DSO and python gmond modules, which can be loaded via the DSO at gmond daemon start time. -%package devel +%package devel Summary: Ganglia Library Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} -%description devel +%description devel The Ganglia Monitoring Core library provides a set of functions that programmers can use to build scalable cluster or grid applications @@ -138,6 +130,7 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in # web part %setup -q -T -D -a 1 +%patch1 -p1 mv ganglia-web-%{webver} web cd web %patch0 -p1 @@ -169,8 +162,6 @@ cd web make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - make install DESTDIR=$RPM_BUILD_ROOT ## Create directory structures @@ -240,10 +231,7 @@ chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.cu chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.min.css # Remove shebang -%{__sed} -i '1{\@^#!@d}' $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py - -%clean -rm -rf $RPM_BUILD_ROOT +sed -i '1{\@^#!@d}' $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py %pre ## Add the "ganglia" user @@ -282,15 +270,13 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig --add gmetad %preun gmetad -if [ "$1" = 0 ] -then +if [ "$1" = 0 ]; then /sbin/service gmetad stop >/dev/null 2>&1 || : /sbin/chkconfig --del gmetad fi %preun gmond -if [ "$1" = 0 ] -then +if [ "$1" = 0 ]; then /sbin/service gmond stop >/dev/null 2>&1 || : /sbin/chkconfig --del gmond fi @@ -298,7 +284,6 @@ fi %endif # systemd %post devel -p /sbin/ldconfig - %postun devel -p /sbin/ldconfig %post web @@ -306,44 +291,7 @@ if [ ! -L /usr/share/ganglia/lib/Zend ]; then ln -s /usr/share/php/Zend /usr/share/ganglia/lib/Zend fi -### A sysv => systemd migration contains all of the same scriptlets as a -### systemd package. These are additional scriptlets - -# Note: the NEVR in trigger scripts should all be the version in -# which the package switched to systemd unit files and the comparision -# should be less than. Using <= the last version with the sysV script won't -# work for several reasons: -# 1) disttag is different between Fedora releases -# 2) An update in an old Fedora release may create a newer NEVR -# Note that this means an update in an older Fedora release must be NEVR -# lower than this. Freezing the version and release of the old package and -# using a number after the disttag is one way to do this. Example: -# httpd-1.0-1%{?dist} => httpd-1.0-1%{?dist}.1 - -%if 0%{?systemd} -%triggerun gmond -- ganglia-gmond < 3.3.7-1 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply gmond -# to migrate them to systemd targets -/usr/bin/systemd-sysv-convert --save gmond >/dev/null 2>&1 ||: - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del gmond >/dev/null 2>&1 || : -/bin/systemctl try-restart gmond.service >/dev/null 2>&1 || : - -%triggerun gmetad -- ganglia-gmetad < 3.3.7-1 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply gmetad -# to migrate them to systemd targets -/usr/bin/systemd-sysv-convert --save gmetad >/dev/null 2>&1 ||: - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del gmetad >/dev/null 2>&1 || : -/bin/systemctl try-restart gmetad.service >/dev/null 2>&1 || : -%endif # systemd - %files -%defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog %{_libdir}/libganglia*.so.* %dir %{_libdir}/ganglia @@ -351,7 +299,6 @@ fi %exclude %{_libdir}/ganglia/modpython.so %files gmetad -%defattr(-,root,root,-) %dir %{_localstatedir}/lib/%{name} %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad @@ -366,7 +313,6 @@ fi %config(noreplace) %{_sysconfdir}/ganglia/gmetad.conf %files gmond -%defattr(-,root,root,-) %{_bindir}/gmetric %{_bindir}/gstat %{_sbindir}/gmond @@ -386,7 +332,6 @@ fi %exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf %files gmond-python -%defattr(-,root,root,-) %dir %{_libdir}/ganglia/python_modules/ %{_libdir}/ganglia/python_modules/*.py* %{_libdir}/ganglia/modpython.so* @@ -394,13 +339,11 @@ fi %config(noreplace) %{_sysconfdir}/ganglia/conf.d/modpython.conf %files devel -%defattr(-,root,root,-) %{_bindir}/ganglia-config %{_includedir}/*.h %{_libdir}/libganglia*.so %files web -%defattr(-,root,root,-) %doc web/AUTHORS web/COPYING web/README web/TODO %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf @@ -411,6 +354,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Tue Apr 07 2015 Terje Rosten - 3.7.1-1 +- 3.7.1 & ganglia-web 3.6.2 + * Sat Aug 16 2014 Fedora Release Engineering - 3.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 5875160..3e0ed86 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -c87c0001dd8769d91a1bec053b3cb472 ganglia-web-3.5.12.tar.gz -05926bb18c22af508a3718a90b2e9a2c ganglia-3.6.0.tar.gz +8e9de3d5746896ad9aca1d94ca99e1eb ganglia-3.7.1.tar.gz +6d1ef0ffb1e4d842ec1dd6050a0d9710 ganglia-web-3.6.2.tar.gz From 19dda72329b911b8c199720082e55d3d0b105349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Tue, 9 Jun 2015 19:45:18 +0200 Subject: [PATCH 056/124] ganglia-web 3.7.0 --- .gitignore | 1 + ganglia.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 50eaca1..9cb42af 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.5.12.tar.gz /ganglia-3.7.1.tar.gz /ganglia-web-3.6.2.tar.gz +/ganglia-web-3.7.0.tar.gz diff --git a/ganglia.spec b/ganglia.spec index c0bb949..7d6def9 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,12 +1,12 @@ %global gangver 3.7.1 -%global webver 3.6.2 +%global webver 3.7.0 %global systemd 1 %global _hardened_build 1 Name: ganglia Version: %{gangver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -354,6 +354,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Tue Jun 09 2015 Terje Rosten - 3.7.1-2 +- ganglia-web 3.7.0 + * Tue Apr 07 2015 Terje Rosten - 3.7.1-1 - 3.7.1 & ganglia-web 3.6.2 diff --git a/sources b/sources index 3e0ed86..d7698fc 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 8e9de3d5746896ad9aca1d94ca99e1eb ganglia-3.7.1.tar.gz -6d1ef0ffb1e4d842ec1dd6050a0d9710 ganglia-web-3.6.2.tar.gz +d680a28813de5c37f41ac058f4d88f3a ganglia-web-3.7.0.tar.gz From a095f143731a09fc10654d95d1f35e096f50baae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Thu, 11 Jun 2015 20:08:38 +0200 Subject: [PATCH 057/124] Let gmond service start after network is ready (bz#585891) --- ganglia.spec | 5 ++++- gmond.service | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 7d6def9..e413185 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -354,6 +354,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Thu Jun 11 2015 Terje Rosten - 3.7.1-3 +- Let gmond service start after network is ready (bz#585891) + * Tue Jun 09 2015 Terje Rosten - 3.7.1-2 - ganglia-web 3.7.0 diff --git a/gmond.service b/gmond.service index a6b5032..e88411a 100644 --- a/gmond.service +++ b/gmond.service @@ -1,6 +1,7 @@ [Unit] Description=Ganglia Meta Daemon After=multi-user.target +After=network.target [Service] Type=forking From bdba066e6f5a5266478a9b124e6ea5c358908d04 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 06:57:12 +0000 Subject: [PATCH 058/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index e413185..b7e6ce1 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -354,6 +354,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 3.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Thu Jun 11 2015 Terje Rosten - 3.7.1-3 - Let gmond service start after network is ready (bz#585891) From a110947d2a6539fc25beddf2e2ec4910d0235cf6 Mon Sep 17 00:00:00 2001 From: Nick Le Mouton Date: Wed, 19 Aug 2015 09:45:25 +1200 Subject: [PATCH 059/124] Updated to ganglia 3.7.2 --- .gitignore | 1 + ganglia-3.7.1-py-syntax.patch | 13 ------------- ganglia-3.7.2-apache.patch | 11 +++++++++++ ganglia.spec | 13 +++++++++---- sources | 2 +- 5 files changed, 22 insertions(+), 18 deletions(-) delete mode 100644 ganglia-3.7.1-py-syntax.patch create mode 100644 ganglia-3.7.2-apache.patch diff --git a/.gitignore b/.gitignore index 9cb42af..33a05d3 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ ganglia-3.1.7.tar.gz /ganglia-3.7.1.tar.gz /ganglia-web-3.6.2.tar.gz /ganglia-web-3.7.0.tar.gz +/ganglia-3.7.2.tar.gz diff --git a/ganglia-3.7.1-py-syntax.patch b/ganglia-3.7.1-py-syntax.patch deleted file mode 100644 index 8028e73..0000000 --- a/ganglia-3.7.1-py-syntax.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/gmond/python_modules/db/DBUtil.py b/gmond/python_modules/db/DBUtil.py -index 3d46f98..2504c24 100644 ---- a/gmond/python_modules/db/DBUtil.py -+++ b/gmond/python_modules/db/DBUtil.py -@@ -268,7 +268,7 @@ if __name__ == '__main__': - parser.add_option("-H", "--Host", dest="host", help="Host running mysql", default="localhost") - parser.add_option("-u", "--user", dest="user", help="user to connect as", default="") - parser.add_option("-p", "--password", dest="passwd", help="password", default="") -- parser.add_option("-S", "--socket", dest="unix_socket", help="unix_socket", default="" -+ parser.add_option("-S", "--socket", dest="unix_socket", help="unix_socket", default="") - (options, args) = parser.parse_args() - - try: diff --git a/ganglia-3.7.2-apache.patch b/ganglia-3.7.2-apache.patch new file mode 100644 index 0000000..2f11ee4 --- /dev/null +++ b/ganglia-3.7.2-apache.patch @@ -0,0 +1,11 @@ +--- gmond/python_modules/apache_status/apache_status.py.orig 2015-08-19 09:34:42.310000000 +1200 ++++ gmond/python_modules/apache_status/apache_status.py 2015-08-19 09:35:33.989000000 +1200 +@@ -86,6 +86,8 @@ + for sck in split_line[1]: + metrics[ Scoreboard_bykey[sck] ] += 1 + else: ++ if len(split_line) == 1: ++ continue + if long_metric_name in Metric_Map: + metric_name = Metric_Map[long_metric_name] + else: diff --git a/ganglia.spec b/ganglia.spec index b7e6ce1..177ba3b 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,4 +1,4 @@ -%global gangver 3.7.1 +%global gangver 3.7.2 %global webver 3.7.0 %global systemd 1 @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 4%{?dist} +Release: 1%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -19,7 +19,7 @@ Source4: ganglia-httpd24.conf.d Source5: ganglia-httpd.conf.d Source6: conf.php Patch0: ganglia-web-3.5.7-statedir.patch -Patch1: ganglia-3.7.1-py-syntax.patch +Patch1: ganglia-3.7.2-apache.patch %if 0%{?systemd} BuildRequires: systemd %endif @@ -128,9 +128,10 @@ programmers can use to build scalable cluster or grid applications install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in +%patch1 -p0 + # web part %setup -q -T -D -a 1 -%patch1 -p1 mv ganglia-web-%{webver} web cd web %patch0 -p1 @@ -354,6 +355,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Aug 19 2015 Nick Le Mouton - 3.7.2-1 +- ganglia 3.7.2 +- fix for apache 2.4.16 + * Wed Jun 17 2015 Fedora Release Engineering - 3.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index d7698fc..692352a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -8e9de3d5746896ad9aca1d94ca99e1eb ganglia-3.7.1.tar.gz d680a28813de5c37f41ac058f4d88f3a ganglia-web-3.7.0.tar.gz +49c5cd0292fdfb57d098ac76b6e97672 ganglia-3.7.2.tar.gz From e015953dcd74211e06d75ff309206b2baf00c674 Mon Sep 17 00:00:00 2001 From: Nick Le Mouton Date: Tue, 25 Aug 2015 08:04:12 +1200 Subject: [PATCH 060/124] Added pod2html to build requires --- ganglia.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ganglia.spec b/ganglia.spec index 177ba3b..96f4ab3 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -34,6 +34,7 @@ BuildRequires: python-devel BuildRequires: freetype-devel BuildRequires: pcre-devel BuildRequires: /usr/bin/pod2man +BuildRequires: /usr/bin/pod2html %description Ganglia is a scalable, real-time monitoring and execution environment From 482632017721e2387664f03f594f32b193c809fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Fri, 28 Aug 2015 20:10:40 +0200 Subject: [PATCH 061/124] Increase release to 5 to get web subpackage forward --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 96f4ab3..7cd5024 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 1%{?dist} +Release: 5%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Fri Aug 28 2015 Terje Rosten - 3.7.2-5 +- Increase release to 5 to get web subpackage forward + * Wed Aug 19 2015 Nick Le Mouton - 3.7.2-1 - ganglia 3.7.2 - fix for apache 2.4.16 From 4889d5810137861ae6a9aa7d5ab7d81985557fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sun, 11 Oct 2015 18:13:38 +0200 Subject: [PATCH 062/124] ganglia-web 3.7.1 --- .gitignore | 1 + ganglia.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 33a05d3..6f5961d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.6.2.tar.gz /ganglia-web-3.7.0.tar.gz /ganglia-3.7.2.tar.gz +/ganglia-web-3.7.1.tar.gz diff --git a/ganglia.spec b/ganglia.spec index 7cd5024..b191559 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,12 +1,12 @@ %global gangver 3.7.2 -%global webver 3.7.0 +%global webver 3.7.1 %global systemd 1 %global _hardened_build 1 Name: ganglia Version: %{gangver} -Release: 5%{?dist} +Release: 6%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sun Oct 11 2015 Terje Rosten - 3.7.2-6 +- ganglia-web 3.7.1 + * Fri Aug 28 2015 Terje Rosten - 3.7.2-5 - Increase release to 5 to get web subpackage forward diff --git a/sources b/sources index 692352a..dc78abc 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -d680a28813de5c37f41ac058f4d88f3a ganglia-web-3.7.0.tar.gz +c3544e830568ec522cc1aefb63a882dd ganglia-web-3.7.1.tar.gz 49c5cd0292fdfb57d098ac76b6e97672 ganglia-3.7.2.tar.gz From 1ce5a3a1f933f338b6b23c5d681850046d934e42 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 20:58:29 +0000 Subject: [PATCH 063/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b191559..b9f821a 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 6%{?dist} +Release: 7%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 3.7.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Sun Oct 11 2015 Terje Rosten - 3.7.2-6 - ganglia-web 3.7.1 From 84911f29b131da7ab3442fe9780638cb6a984b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sat, 30 Apr 2016 20:01:00 +0200 Subject: [PATCH 064/124] rebuild: rrdtool 1.6 --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b9f821a..97aa077 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 7%{?dist} +Release: 8%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sat Apr 30 2016 Terje Rosten - 3.7.2-8 +- rebuild: rrdtool 1.6 + * Wed Feb 03 2016 Fedora Release Engineering - 3.7.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 636290614547efcbe91aacdff16c5eaa92fd66b1 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Wed, 15 Jun 2016 09:14:27 -0500 Subject: [PATCH 065/124] libconfuse rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 97aa077..a5572e9 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 8%{?dist} +Release: 9%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Jun 15 2016 Jon Ciesla - 3.7.2-9 +- libconfuse rebuild. + * Sat Apr 30 2016 Terje Rosten - 3.7.2-8 - rebuild: rrdtool 1.6 From c8565d6ce728103cdabd3c8c99a309593dd122f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Wed, 24 Aug 2016 19:49:11 +0200 Subject: [PATCH 066/124] ganglia-web 3.7.2 --- .gitignore | 1 + ganglia.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6f5961d..501d5cf 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.7.0.tar.gz /ganglia-3.7.2.tar.gz /ganglia-web-3.7.1.tar.gz +/ganglia-web-3.7.2.tar.gz diff --git a/ganglia.spec b/ganglia.spec index a5572e9..2cc1927 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,12 +1,12 @@ %global gangver 3.7.2 -%global webver 3.7.1 +%global webver 3.7.2 %global systemd 1 %global _hardened_build 1 Name: ganglia Version: %{gangver} -Release: 9%{?dist} +Release: 10%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -356,6 +356,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Wed Aug 24 2016 Terje Rosten - 3.7.2-10 +- ganglia-web 3.7.2 + * Wed Jun 15 2016 Jon Ciesla - 3.7.2-9 - libconfuse rebuild. diff --git a/sources b/sources index dc78abc..10c554f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -c3544e830568ec522cc1aefb63a882dd ganglia-web-3.7.1.tar.gz 49c5cd0292fdfb57d098ac76b6e97672 ganglia-3.7.2.tar.gz +a2d87edcf2914a053aa6be0ee4d57c29 ganglia-web-3.7.2.tar.gz From 53a66f4e01c0a70b0740e12a696044fd7ce6c582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sun, 2 Oct 2016 15:54:25 +0200 Subject: [PATCH 067/124] Subpackage -devel needs apr and confuse devel packages --- ganglia.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 2cc1927..139b10f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 10%{?dist} +Release: 11%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -118,7 +118,8 @@ can be loaded via the DSO at gmond daemon start time. Summary: Ganglia Library Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} - +Requires: apr-devel +Requires: libconfuse-devel %description devel The Ganglia Monitoring Core library provides a set of functions that programmers can use to build scalable cluster or grid applications @@ -294,7 +295,8 @@ if [ ! -L /usr/share/ganglia/lib/Zend ]; then fi %files -%doc AUTHORS COPYING NEWS README ChangeLog +%license COPYING +%doc AUTHORS NEWS README ChangeLog %{_libdir}/libganglia*.so.* %dir %{_libdir}/ganglia %{_libdir}/ganglia/*.so @@ -346,7 +348,8 @@ fi %{_libdir}/libganglia*.so %files web -%doc web/AUTHORS web/COPYING web/README web/TODO +%license web/COPYING +%doc web/AUTHORS web/README web/TODO %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} @@ -356,6 +359,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Sun Oct 02 2016 Terje Rosten - 3.7.2-11 +- Subpackage -devel needs apr and confuse devel packages + * Wed Aug 24 2016 Terje Rosten - 3.7.2-10 - ganglia-web 3.7.2 From 608b46446a2c94e5ea836a6844b120099b94b529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Mon, 5 Dec 2016 19:59:44 +0100 Subject: [PATCH 068/124] Add patch to fix sflow issue (rhbz#1400932), thanks to Glenn L. Jenkins! --- ganglia-3.7.2-sflow.patch | 13 +++++++++++++ ganglia.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ganglia-3.7.2-sflow.patch diff --git a/ganglia-3.7.2-sflow.patch b/ganglia-3.7.2-sflow.patch new file mode 100644 index 0000000..bb8132f --- /dev/null +++ b/ganglia-3.7.2-sflow.patch @@ -0,0 +1,13 @@ +--- gmond/sflow.c.orig 2016-12-02 09:56:38.744353600 +0000 ++++ gmond/sflow.c 2016-12-02 09:47:45.666353600 +0000 +@@ -303,7 +303,8 @@ + char mtitle_buf[SFLOW_MAX_METRIC_NAME_LEN]; + if(ok || sflowCFG.submit_null_str) { + set_metric_name_and_title(&mname, &mtitle, mname_buf, mtitle_buf, metric_prefix, tag); +- fmsg.id = vmsg.id = gmetric_uint; ++ //fmsg.id = vmsg.id = gmetric_uint; ++ fmsg.id = vmsg.id = gmetric_string; + fmsg.Ganglia_metadata_msg_u.gfull.metric.type = "string"; + vmsg.Ganglia_value_msg_u.gstr.metric_id.name = mname; + vmsg.Ganglia_value_msg_u.gstr.str = (ok ? (char *)val : sflowCFG.null_str); + diff --git a/ganglia.spec b/ganglia.spec index 139b10f..4639711 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 11%{?dist} +Release: 12%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -20,6 +20,7 @@ Source5: ganglia-httpd.conf.d Source6: conf.php Patch0: ganglia-web-3.5.7-statedir.patch Patch1: ganglia-3.7.2-apache.patch +Patch2: ganglia-3.7.2-sflow.patch %if 0%{?systemd} BuildRequires: systemd %endif @@ -131,6 +132,7 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 +%patch2 -p0 # web part %setup -q -T -D -a 1 @@ -359,6 +361,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled %changelog +* Mon Dec 05 2016 Terje Rosten - 3.7.2-12 +- Add patch to fix sflow issue (rhbz#1400932), thanks to Glenn L. Jenkins! + * Sun Oct 02 2016 Terje Rosten - 3.7.2-11 - Subpackage -devel needs apr and confuse devel packages From 936bf08e4c99d57ac3981248db1be9c7c3f61065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Thu, 26 Jan 2017 19:33:20 +0100 Subject: [PATCH 069/124] Reorg file locations to fix rhbz#1238325 --- ganglia-web-3.5.7-statedir.patch | 13 ---- ganglia-web-3.7.2-path.patch | 27 +++++++++ ganglia.spec | 101 ++++++++++++++++--------------- 3 files changed, 78 insertions(+), 63 deletions(-) delete mode 100644 ganglia-web-3.5.7-statedir.patch create mode 100644 ganglia-web-3.7.2-path.patch diff --git a/ganglia-web-3.5.7-statedir.patch b/ganglia-web-3.5.7-statedir.patch deleted file mode 100644 index f5ddaba..0000000 --- a/ganglia-web-3.5.7-statedir.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/conf_default.php b/conf_default.php -index 61e28e6..290c91f 100644 ---- a/conf_default.php -+++ b/conf_default.php -@@ -10,7 +10,7 @@ - # Gmetad-webfrontend version. Used to check for updates. - # - $conf['gweb_root'] = dirname(__FILE__); --$conf['gweb_confdir'] = "/var/lib/ganglia-web"; -+$conf['gweb_confdir'] = "/var/lib/ganglia"; - - include_once $conf['gweb_root'] . "/version.php"; - diff --git a/ganglia-web-3.7.2-path.patch b/ganglia-web-3.7.2-path.patch new file mode 100644 index 0000000..3b1ac73 --- /dev/null +++ b/ganglia-web-3.7.2-path.patch @@ -0,0 +1,27 @@ +diff --git a/Makefile b/Makefile +index cdba3b1..c6f6602 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,10 +2,10 @@ + # User configurables: + ########################################################## + # Location where gweb should be installed to (excluding conf, dwoo dirs). +-GDESTDIR = /usr/share/ganglia-webfrontend ++GDESTDIR = /usr/share/ganglia + + # Location where default apache configuration should be installed to. +-GCONFDIR = /etc/ganglia-web ++GCONFDIR = /etc/ganglia + + # Gweb statedir (where conf dir and Dwoo templates dir are stored) + GWEB_STATEDIR = /var/lib/ganglia-web +@@ -53,8 +53,7 @@ install: dist-dir + mkdir -p $(DESTDIR)/$(GWEB_STATEDIR) && \ + rsync -a $(DIST_DIR)/conf $(DESTDIR)/$(GWEB_STATEDIR) && \ + mkdir -p $(DESTDIR)/$(GDESTDIR) && \ +- rsync --exclude "conf" -a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR) && \ +- chown -R $(APACHE_USER):$(APACHE_USER) $(DESTDIR)/$(GWEB_STATEDIR) ++ rsync --exclude "conf" -a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR) + + dist-gzip: dist-dir + if [ -f $(DIST_TARBALL) ]; then \ diff --git a/ganglia.spec b/ganglia.spec index 4639711..d3090db 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 12%{?dist} +Release: 13%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -18,7 +18,7 @@ Source3: gmetad.service Source4: ganglia-httpd24.conf.d Source5: ganglia-httpd.conf.d Source6: conf.php -Patch0: ganglia-web-3.5.7-statedir.patch +Patch0: ganglia-web-3.7.2-path.patch Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch %if 0%{?systemd} @@ -34,9 +34,9 @@ BuildRequires: expat-devel BuildRequires: python-devel BuildRequires: freetype-devel BuildRequires: pcre-devel +BuildRequires: rsync BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2html - %description Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open @@ -51,11 +51,10 @@ Requires: php Requires: php-gd Requires: php-ZendFramework Requires: %{name}-gmetad = %{gangver}-%{release} - %description web -This package provides a web frontend to display the XML tree published by -ganglia, and to provide historical graphs of collected metrics. This website is -written in the PHP4 language. +This package provides a web frontend to display the XML tree published +by ganglia, and to provide historical graphs of collected +metrics. This website is written in the PHP. %package gmetad Summary: Ganglia Metadata collection daemon @@ -70,14 +69,13 @@ Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %endif #systemd - %description gmetad Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. -This gmetad daemon aggregates monitoring data from several clusters -to form a monitoring grid. It also keeps metric history using rrdtool. +This gmetad daemon aggregates monitoring data from several clusters to +form a monitoring grid. It also keeps metric history using rrdtool. %package gmond Summary: Ganglia Monitoring daemon @@ -92,28 +90,26 @@ Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %endif #systemd - %description gmond Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. -This gmond daemon provides the ganglia service within a single cluster or -Multicast domain. +This gmond daemon provides the ganglia service within a single cluster +or Multicast domain. %package gmond-python Summary: Ganglia Monitor daemon python DSO and metric modules Group: Applications/Internet Requires: ganglia-gmond Requires: python - %description gmond-python Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. -This package provides the gmond python DSO and python gmond modules, which -can be loaded via the DSO at gmond daemon start time. +This package provides the gmond python DSO and python gmond modules, +which can be loaded via the DSO at gmond daemon start time. %package devel Summary: Ganglia Library @@ -130,15 +126,14 @@ programmers can use to build scalable cluster or grid applications # fix broken systemd support install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in - %patch1 -p0 %patch2 -p0 - # web part %setup -q -T -D -a 1 mv ganglia-web-%{webver} web -cd web +pushd web %patch0 -p1 +popd %build %configure \ @@ -167,39 +162,40 @@ cd web make %{?_smp_mflags} %install -make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=%{buildroot} ## Create directory structures -mkdir -p $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/{rrds,conf} -mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/dwoo/{cache,compiled} +mkdir -p %{buildroot}%{_libdir}/ganglia/python_modules +mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/rrds ## Install services %if 0%{?systemd} install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/gmond.service install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/gmetad.service %else -install -Dp -m 0755 gmond/gmond.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmond -install -Dp -m 0755 gmetad/gmetad.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/gmetad +install -Dp -m 0755 gmond/gmond.init %{buildroot}%{_sysconfdir}/init.d/gmond +install -Dp -m 0755 gmetad/gmetad.init %{buildroot}%{_sysconfdir}/init.d/gmetad %endif # systemd ## Build default gmond.conf from gmond using the '-t' flag LD_LIBRARY_PATH=lib/.libs gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' \ - > $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/gmond.conf + > %{buildroot}%{_sysconfdir}/ganglia/gmond.conf ## Python bits # Copy the python metric modules and .conf files -cp -p gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ -cp -p gmond/modules/conf.d/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/ -cp -p gmond/python_modules/*/*.py $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ +cp -p gmond/python_modules/conf.d/*.pyconf %{buildroot}%{_sysconfdir}/ganglia/conf.d/ +cp -p gmond/modules/conf.d/*.conf %{buildroot}%{_sysconfdir}/ganglia/conf.d/ +cp -p gmond/python_modules/*/*.py %{buildroot}%{_libdir}/ganglia/python_modules/ ## Web bits -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} -cp -rp web/* $RPM_BUILD_ROOT%{_datadir}/%{name}/ +pushd web +make install DESTDIR=%{buildroot} install -p -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/ganglia/conf.php ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ - $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.php + %{buildroot}%{_datadir}/%{name}/conf.php +popd +## httpd config %if 0%{?fedora} >= 18 install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf %else @@ -209,34 +205,35 @@ install -Dp -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.c ## Various clean up after install: ## Don't install the status modules and example.conf -rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/{modgstatus,example}.conf +rm -f %{buildroot}%{_sysconfdir}/ganglia/conf.d/{modgstatus,example}.conf ## Disable the diskusage module until it is configured properly -## mv $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf \ -## $RPM_BUILD_ROOT%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off +## mv %{buildroot}%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf \ +## %{buildroot}%{_sysconfdir}/ganglia/conf.d/diskusage.pyconf.off ## Remove unwanted files from web dir -rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{Makefile*,debian,ganglia-web.spec*,ganglia-web} -rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{conf_default.php.in,version.php.in} +rm -rf %{buildroot}%{_datadir}/%{name}/{Makefile*,debian,ganglia-web.spec*,ganglia-web} +rm -rf %{buildroot}%{_datadir}/%{name}/{conf_default.php.in,version.php.in} +rm -rf %{buildroot}%{_localstatedir}/lib/%{name}-web/conf/sql ## Included as doc -rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{README,TODO,AUTHORS,COPYING} +rm -rf %{buildroot}%{_datadir}/%{name}/{README,TODO,AUTHORS,COPYING} ## House cleaning -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f %{buildroot}%{_libdir}/*.la ## Use system php-ZendFramework -rm -rf $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend -ln -s /usr/share/php/Zend $RPM_BUILD_ROOT/usr/share/ganglia/lib/Zend +rm -rf %{buildroot}/usr/share/ganglia/lib/Zend +ln -s /usr/share/php/Zend %{buildroot}/usr/share/ganglia/lib/Zend # Remove execute bit -chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/header.php -chmod 0644 $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py -chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.css -chmod 0644 $RPM_BUILD_ROOT%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.min.css +chmod 0644 %{buildroot}%{_datadir}/%{name}/header.php +chmod 0644 %{buildroot}%{_libdir}/%{name}/python_modules/*.py +chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.css +chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.min.css # Remove shebang -sed -i '1{\@^#!@d}' $RPM_BUILD_ROOT%{_libdir}/%{name}/python_modules/*.py +sed -i '1{\@^#!@d}' %{buildroot}%{_libdir}/%{name}/python_modules/*.py %pre ## Add the "ganglia" user @@ -355,12 +352,16 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/conf.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name} -%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/conf -%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo -%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/cache -%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/dwoo/compiled +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/conf +%config(noreplace) %attr(0644,apache,apache) %{_localstatedir}/lib/%{name}-web/conf/*.json +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/cache +%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Jan 23 2017 Terje Rosten - 3.7.2-13 +- Reorg file locations to fix rhbz#1238325 + * Mon Dec 05 2016 Terje Rosten - 3.7.2-12 - Add patch to fix sflow issue (rhbz#1400932), thanks to Glenn L. Jenkins! From 4369a967607ebbf871d213b0b3a4135f17fc55d0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 10:09:23 +0000 Subject: [PATCH 070/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index d3090db..16fecc4 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 13%{?dist} +Release: 14%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -359,6 +359,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 3.7.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Tue Jan 23 2017 Terje Rosten - 3.7.2-13 - Reorg file locations to fix rhbz#1238325 From aa1f4511c70ada9cfb705958720932273c63b8d7 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 25 May 2017 08:00:27 -0500 Subject: [PATCH 071/124] libconfuse rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 16fecc4..b6ff2ab 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 14%{?dist} +Release: 15%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -359,6 +359,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu May 25 2017 Gwyn Ciesla - 3.7.2-15 +- libconfuse rebuild. + * Fri Feb 10 2017 Fedora Release Engineering - 3.7.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 8b03c2244bd65dfc4a1ec9f569174be11f5b05d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 08:59:17 +0000 Subject: [PATCH 072/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b6ff2ab..7f8f460 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 15%{?dist} +Release: 16%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -359,6 +359,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 3.7.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Thu May 25 2017 Gwyn Ciesla - 3.7.2-15 - libconfuse rebuild. From 3255c34c64d3d1c43f99bf5ac8bf5b7e970eb7ae Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 20:55:29 +0000 Subject: [PATCH 073/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 7f8f460..30c3719 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 16%{?dist} +Release: 17%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -359,6 +359,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 3.7.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 3.7.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 33925f22f9cb2123d1070dcc9f56bf119baa19ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 8 Aug 2017 14:28:42 -0400 Subject: [PATCH 074/124] Python 2 binary package renamed to python2-ganglia-gmond --- ganglia.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 30c3719..a26e575 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 17%{?dist} +Release: 18%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -98,12 +98,15 @@ well-defined XML format. This gmond daemon provides the ganglia service within a single cluster or Multicast domain. -%package gmond-python +%package -n python2-ganglia-gmond Summary: Ganglia Monitor daemon python DSO and metric modules Group: Applications/Internet Requires: ganglia-gmond Requires: python -%description gmond-python +%{?python_provide:%python_provide python2-ganglia-gmond} +# Remove before F30 +Provides: ganglia-gmond-python = %{version}-%{release} +%description -n python2-ganglia-gmond Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. @@ -334,7 +337,7 @@ fi %config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.conf %exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf -%files gmond-python +%files -n python2-ganglia-gmond %dir %{_libdir}/ganglia/python_modules/ %{_libdir}/ganglia/python_modules/*.py* %{_libdir}/ganglia/modpython.so* @@ -359,6 +362,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Aug 08 2017 Zbigniew JÄ™drzejewski-Szmek - 3.7.2-18 +- Python 2 binary package renamed to python2-ganglia-gmond + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Wed Aug 02 2017 Fedora Release Engineering - 3.7.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 2ac2ac66409f80ea550bed4f3a96beed8e9993a1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 10:27:05 +0000 Subject: [PATCH 075/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index a26e575..5e3748e 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 18%{?dist} +Release: 19%{?dist} Summary: Distributed Monitoring System Group: Applications/Internet License: BSD @@ -362,6 +362,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 3.7.2-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Tue Aug 08 2017 Zbigniew JÄ™drzejewski-Szmek - 3.7.2-18 - Python 2 binary package renamed to python2-ganglia-gmond See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 From 409a6ff754ce1998aa0adaa01b08200ffde52445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Thu, 15 Feb 2018 21:31:00 +0100 Subject: [PATCH 076/124] Add patch to build with tirpc --- ganglia-3.7.2-tirpc-hack.patch | 232 +++++++++++++++++++++++++++++++++ ganglia.spec | 46 ++++--- 2 files changed, 260 insertions(+), 18 deletions(-) create mode 100644 ganglia-3.7.2-tirpc-hack.patch diff --git a/ganglia-3.7.2-tirpc-hack.patch b/ganglia-3.7.2-tirpc-hack.patch new file mode 100644 index 0000000..6f6ebf1 --- /dev/null +++ b/ganglia-3.7.2-tirpc-hack.patch @@ -0,0 +1,232 @@ +diff --git a/Makefile.am b/Makefile.am +index 95d0807..a918f57 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -9,7 +9,7 @@ GMETAD_SUBDIR = + endif + + EXTRA_SUBDIRS = "gmetad-python contrib solaris" +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + + AUTOMAKE_OPTIONS = dist-bzip2 dist-tarZ dist-zip + ACLOCAL_AMFLAGS = -I m4 +diff --git a/configure.ac b/configure.ac +index fe7983b..d98460a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -180,6 +180,10 @@ AC_ARG_WITH( libapr, + [ --with-libapr=PATH Specify location for libapr-1 or full path to apr-1-config], + [if test x"$withval" != xno; then libapr="yes"; libaprpath="$withval"; fi]) + ++AC_ARG_WITH( libtirpc, ++[ --with-libtirpc=PATH Specify location for libtirpc], ++[if test x"$withval" != xno; then libtirpc="yes"; libtirpcpath="$withval"; fi]) ++ + AC_ARG_WITH( libexpat, + [ --with-libexpat=DIR Specify location for libexpat], + [if test x"$withval" != xno; then libexpat="yes"; libexpatpath="$withval"; fi]) +@@ -426,6 +430,35 @@ else + fi + + echo ++echo Checking for tirpc ++if test x"$libtiprcpath" != x && test x"$libtirpcpath" != xyes; then ++ if test -f "$libtirpcpath" ; then ++ LIBTIRPC_INCLUDES=`$libtirpcpath --includes` ++ AC_SUBST(LIBTIRPC_INCLUDES) ++ LIBTIRPC_LIBPATH=`$libtirpcpath --link-ld` ++ LDFLAGS="$LDFLAGS -L`expr "x$LIBTIRPC_LIBPATH" : '.*-L\(.*\) '`" ++ AC_CHECK_LIB(tirpc, xdr_string,,,[`$libtirpcpath --libs`]) ++ else ++ CFLAGS="$CFLAGS -I$libtirpcpath/include/tirpc" ++ LDFLAGS="$LDFLAGS -L$libtirpcpath/${LIB_SUFFIX}" ++ echo "Added -I$libtirpcpath/include to CFLAGS" ++ echo "Added -L$libtirpcpath/${LIB_SUFFIX} to LDFLAGS" ++ AC_CHECK_LIB(tirpc, xdr_string) ++ fi ++ ++ if test x"$ac_cv_lib_tirpc_xdr_string" = xyes; then ++ echo "Found a suitable tirpc library" ++ else ++ echo "libtirpc not found" ++ exit 1; ++ fi ++else ++ PKG_CHECK_MODULES([LIBTIRPC],[libtirpc]) ++ LDFLAGS="$LDFLAGS $LIBS $LIBTIRPC_LIBS" ++ LIBTIRPC_INCLUDES="$LIBTIRPC_CFLAGS" ++fi ++ ++echo + echo Checking for libmemcached + AC_ARG_WITH( memcached, + [ --with-memcached enable memcached metrics publishing], +@@ -567,7 +600,6 @@ echo "Found a suitable zlib" + echo + + +-AC_CHECK_LIB(rpc, xdr_string) + AC_CHECK_LIB(socket, socket) + AC_CHECK_LIB(nsl, inet_addr) + AC_CHECK_LIB(nsl, gethostbyaddr_r) +@@ -606,14 +638,6 @@ AC_CHECK_HEADER([sys/mount.h], [], [], + #endif + ]) + +-AC_CHECK_HEADERS(rpc/types.h) +-AC_CHECK_HEADER([rpc/xdr.h], [], +- [AC_MSG_ERROR([your system is missing the Sun RPC (ONC/RPC) libraries])], +-[#ifdef HAVE_RPC_TYPES_H +-# include +-#endif +-]) +- + dnl ################################################################## + dnl Checks for typedefs. + dnl +diff --git a/gmetad/Makefile.am b/gmetad/Makefile.am +index 0a4e360..9eac377 100644 +--- a/gmetad/Makefile.am ++++ b/gmetad/Makefile.am +@@ -11,7 +11,7 @@ GLDADD = + GLDFLAGS = + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/gmond -I$(top_builddir)/libmetrics -I$(top_builddir)/include $(GCFLAGS) @PROTOBUF_C_CFLAGS@ + + sbin_PROGRAMS = gmetad +diff --git a/gmetric/Makefile.am b/gmetric/Makefile.am +index bc7807c..4aa9542 100644 +--- a/gmetric/Makefile.am ++++ b/gmetric/Makefile.am +@@ -10,7 +10,7 @@ GLDADD = + GLDFLAGS = + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + + AM_CFLAGS = -I../lib -I../include $(GCFLAGS) + +diff --git a/gmond/Makefile.am b/gmond/Makefile.am +index 256fee3..c9ab899 100644 +--- a/gmond/Makefile.am ++++ b/gmond/Makefile.am +@@ -44,7 +44,7 @@ if BUILD_SFLOW + GCFLAGS += -DSFLOW + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/include/ -I$(top_builddir)/libmetrics $(GCFLAGS) + + sbin_PROGRAMS = gmond +diff --git a/gmond/modules/cpu/Makefile.am b/gmond/modules/cpu/Makefile.am +index fd7457e..2c2b7ab 100644 +--- a/gmond/modules/cpu/Makefile.am ++++ b/gmond/modules/cpu/Makefile.am +@@ -25,4 +25,4 @@ modload_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la + + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/gmond/modules/disk/Makefile.am b/gmond/modules/disk/Makefile.am +index 0c78689..ce62aa5 100644 +--- a/gmond/modules/disk/Makefile.am ++++ b/gmond/modules/disk/Makefile.am +@@ -11,4 +11,4 @@ moddisk_la_LDFLAGS = -module -avoid-version + moddisk_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/gmond/modules/example/Makefile.am b/gmond/modules/example/Makefile.am +index e3bff6a..765b85d 100644 +--- a/gmond/modules/example/Makefile.am ++++ b/gmond/modules/example/Makefile.am +@@ -11,7 +11,7 @@ modexample_la_LDFLAGS = -module -avoid-version + EXTRA_DIST = ../conf.d/example.conf + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + + install: + @echo +diff --git a/gmond/modules/memory/Makefile.am b/gmond/modules/memory/Makefile.am +index 82336db..f606830 100644 +--- a/gmond/modules/memory/Makefile.am ++++ b/gmond/modules/memory/Makefile.am +@@ -12,4 +12,4 @@ modmem_la_LDFLAGS = -module -avoid-version + modmem_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/gmond/modules/network/Makefile.am b/gmond/modules/network/Makefile.am +index 72a4faf..4f12e91 100644 +--- a/gmond/modules/network/Makefile.am ++++ b/gmond/modules/network/Makefile.am +@@ -12,4 +12,4 @@ modnet_la_LDFLAGS = -module -avoid-version + modnet_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/gmond/modules/perl/Makefile.am b/gmond/modules/perl/Makefile.am +index b7b095c..c6d0cce 100644 +--- a/gmond/modules/perl/Makefile.am ++++ b/gmond/modules/perl/Makefile.am +@@ -28,4 +28,4 @@ install-exec-hook: ../conf.d/modperl.conf README + mkdir -p $(DESTDIR)$(sysconfdir)/conf.d && \ + $(INSTALL_DATA) ../conf.d/modperl.conf $(DESTDIR)$(sysconfdir)/conf.d/modperl.conf + +-INCLUDES = @APR_INCLUDES@ @PERL_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ @PERL_INCLUDES@ +diff --git a/gmond/modules/python/Makefile.am b/gmond/modules/python/Makefile.am +index f535b07..4b130a1 100644 +--- a/gmond/modules/python/Makefile.am ++++ b/gmond/modules/python/Makefile.am +@@ -27,4 +27,4 @@ install-exec-hook: ../conf.d/modpython.conf README + mkdir -p $(DESTDIR)$(sysconfdir)/conf.d && \ + $(INSTALL_DATA) ../conf.d/modpython.conf $(DESTDIR)$(sysconfdir)/conf.d/modpython.conf + +-INCLUDES = @APR_INCLUDES@ @PYTHON_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ @PYTHON_INCLUDES@ +diff --git a/gmond/modules/status/Makefile.am b/gmond/modules/status/Makefile.am +index cd84069..6ce9188 100644 +--- a/gmond/modules/status/Makefile.am ++++ b/gmond/modules/status/Makefile.am +@@ -11,4 +11,4 @@ modgstatus_la_LDFLAGS = -module -avoid-version + EXTRA_DIST = ../conf.d/modgstatus.conf + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/gmond/modules/system/Makefile.am b/gmond/modules/system/Makefile.am +index 5fc7fb3..f83a380 100644 +--- a/gmond/modules/system/Makefile.am ++++ b/gmond/modules/system/Makefile.am +@@ -16,4 +16,4 @@ modsys_la_LDFLAGS = -module -avoid-version + modsys_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ +diff --git a/lib/Makefile.am b/lib/Makefile.am +index 935c514..e2ec77b 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -14,7 +14,7 @@ if BUILD_SFLOW + GCFLAGS += -DSFLOW + endif + +-INCLUDES = @APR_INCLUDES@ ++INCLUDES = @APR_INCLUDES@ @LIBTIRPC_INCLUDES@ + AM_CFLAGS = -I.. -I. -I$(top_builddir)/include/ $(GCFLAGS) -DSYSCONFDIR='"$(sysconfdir)"' + + include_HEADERS = gm_protocol.h diff --git a/ganglia.spec b/ganglia.spec index 5e3748e..fcc49ab 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,9 +6,8 @@ Name: ganglia Version: %{gangver} -Release: 19%{?dist} +Release: 20%{?dist} Summary: Distributed Monitoring System -Group: Applications/Internet License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -21,9 +20,17 @@ Source6: conf.php Patch0: ganglia-web-3.7.2-path.patch Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch +Patch3: ganglia-3.7.2-tirpc-hack.patch %if 0%{?systemd} BuildRequires: systemd %endif +%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +BuildRequires: rpcgen +BuildRequires: libtirpc-devel +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +%endif BuildRequires: rrdtool-devel BuildRequires: apr-devel >= 1 BuildRequires: libpng-devel @@ -31,7 +38,7 @@ BuildRequires: libart_lgpl-devel BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel BuildRequires: expat-devel -BuildRequires: python-devel +BuildRequires: python2-devel BuildRequires: freetype-devel BuildRequires: pcre-devel BuildRequires: rsync @@ -44,7 +51,6 @@ well-defined XML format. %package web Summary: Ganglia Web Frontend -Group: Applications/Internet Version: %{webver} Requires: rrdtool Requires: php @@ -58,7 +64,6 @@ metrics. This website is written in the PHP. %package gmetad Summary: Ganglia Metadata collection daemon -Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} %if 0%{?systemd} Requires(post): systemd @@ -79,7 +84,6 @@ form a monitoring grid. It also keeps metric history using rrdtool. %package gmond Summary: Ganglia Monitoring daemon -Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} %if 0%{?systemd} Requires(post): systemd @@ -98,15 +102,14 @@ well-defined XML format. This gmond daemon provides the ganglia service within a single cluster or Multicast domain. -%package -n python2-ganglia-gmond +%package -n python2-ganglia-gmond Summary: Ganglia Monitor daemon python DSO and metric modules -Group: Applications/Internet Requires: ganglia-gmond Requires: python %{?python_provide:%python_provide python2-ganglia-gmond} # Remove before F30 Provides: ganglia-gmond-python = %{version}-%{release} -%description -n python2-ganglia-gmond +%description -n python2-ganglia-gmond Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. @@ -116,7 +119,6 @@ which can be loaded via the DSO at gmond daemon start time. %package devel Summary: Ganglia Library -Group: Applications/Internet Requires: %{name} = %{gangver}-%{release} Requires: apr-devel Requires: libconfuse-devel @@ -131,6 +133,9 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 %patch2 -p0 +%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%patch3 -p1 +%endif # web part %setup -q -T -D -a 1 mv ganglia-web-%{webver} web @@ -139,6 +144,15 @@ pushd web popd %build +touch Makefile.am +%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +aclocal -I m4 +autoheader +automake --add-missing --copy --foreign 2>/dev/null +libtoolize --automake --copy +automake --add-missing --copy --foreign +autoconf -f || exit 1 +%endif %configure \ --enable-setuid=ganglia \ --enable-setgid=ganglia \ @@ -242,10 +256,6 @@ sed -i '1{\@^#!@d}' %{buildroot}%{_libdir}/%{name}/python_modules/*.py ## Add the "ganglia" user /usr/sbin/useradd -c "Ganglia Monitoring System" \ -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : -/sbin/ldconfig - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig %if 0%{?systemd} %post gmond @@ -288,9 +298,6 @@ fi %endif # systemd -%post devel -p /sbin/ldconfig -%postun devel -p /sbin/ldconfig - %post web if [ ! -L /usr/share/ganglia/lib/Zend ]; then ln -s /usr/share/php/Zend /usr/share/ganglia/lib/Zend @@ -362,6 +369,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Feb 14 2018 Terje Rosten - 3.7.2-20 +- Add hack to build with tirpc + * Wed Feb 07 2018 Fedora Release Engineering - 3.7.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -381,7 +391,7 @@ fi * Fri Feb 10 2017 Fedora Release Engineering - 3.7.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild -* Tue Jan 23 2017 Terje Rosten - 3.7.2-13 +* Mon Jan 23 2017 Terje Rosten - 3.7.2-13 - Reorg file locations to fix rhbz#1238325 * Mon Dec 05 2016 Terje Rosten - 3.7.2-12 From cee5c0d65c035335ebe52d981d692e158545416e Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Tue, 20 Feb 2018 07:57:16 +0100 Subject: [PATCH 077/124] Update Python 2 dependency declarations to new packaging standards --- ganglia.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index fcc49ab..1940e9b 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 20%{?dist} +Release: 21%{?dist} Summary: Distributed Monitoring System License: BSD URL: http://ganglia.sourceforge.net/ @@ -105,7 +105,7 @@ or Multicast domain. %package -n python2-ganglia-gmond Summary: Ganglia Monitor daemon python DSO and metric modules Requires: ganglia-gmond -Requires: python +Requires: python2 %{?python_provide:%python_provide python2-ganglia-gmond} # Remove before F30 Provides: ganglia-gmond-python = %{version}-%{release} @@ -369,6 +369,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Feb 20 2018 Iryna Shcherbina - 3.7.2-21 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Wed Feb 14 2018 Terje Rosten - 3.7.2-20 - Add hack to build with tirpc From 3b2c678eacc235a6c7c4017fbae29e59e411ad2d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 01:01:22 +0000 Subject: [PATCH 078/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 1940e9b..21ca9b7 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -6,7 +6,7 @@ Name: ganglia Version: %{gangver} -Release: 21%{?dist} +Release: 22%{?dist} Summary: Distributed Monitoring System License: BSD URL: http://ganglia.sourceforge.net/ @@ -369,6 +369,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 3.7.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Feb 20 2018 Iryna Shcherbina - 3.7.2-21 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From b2b65add45628ea822407653b53e28478e472e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sat, 14 Jul 2018 13:23:58 +0200 Subject: [PATCH 079/124] Add path to python Add C compiler --- ganglia.spec | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 21ca9b7..9eabbf8 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -4,10 +4,10 @@ %global systemd 1 %global _hardened_build 1 +Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 22%{?dist} -Summary: Distributed Monitoring System +Release: 23%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -31,16 +31,17 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool %endif -BuildRequires: rrdtool-devel BuildRequires: apr-devel >= 1 -BuildRequires: libpng-devel +BuildRequires: expat-devel +BuildRequires: freetype-devel +BuildRequires: gcc BuildRequires: libart_lgpl-devel BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel -BuildRequires: expat-devel -BuildRequires: python2-devel -BuildRequires: freetype-devel +BuildRequires: libpng-devel BuildRequires: pcre-devel +BuildRequires: python2-devel +BuildRequires: rrdtool-devel BuildRequires: rsync BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2html @@ -49,7 +50,7 @@ Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open well-defined XML format. -%package web +%package web Summary: Ganglia Web Frontend Version: %{webver} Requires: rrdtool @@ -62,7 +63,7 @@ This package provides a web frontend to display the XML tree published by ganglia, and to provide historical graphs of collected metrics. This website is written in the PHP. -%package gmetad +%package gmetad Summary: Ganglia Metadata collection daemon Requires: %{name} = %{gangver}-%{release} %if 0%{?systemd} @@ -160,6 +161,7 @@ autoconf -f || exit 1 --with-memcached \ --disable-static \ --enable-shared \ + --with-python=%{__python2} \ --sysconfdir=%{_sysconfdir}/ganglia # Remove rpaths @@ -369,6 +371,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Sat Jul 14 2018 Terje Rosten - 3.7.2-23 +- Add path to python +- Add C compiler + * Fri Jul 13 2018 Fedora Release Engineering - 3.7.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 3a427df0515f4de7571df6af840e047054053414 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 20:24:57 +0000 Subject: [PATCH 080/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 9eabbf8..6b9a0dd 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -7,7 +7,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 23%{?dist} +Release: 24%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -371,6 +371,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 3.7.2-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 14 2018 Terje Rosten - 3.7.2-23 - Add path to python - Add C compiler From db44d33a4535fa042beac2ff1db15d0756471cbb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 01:17:37 +0000 Subject: [PATCH 081/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 6b9a0dd..e1d8fe6 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -7,7 +7,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 24%{?dist} +Release: 25%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -371,6 +371,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 3.7.2-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 3.7.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From e10067fade7191ca722d6c8ebb4cdea6d84f921b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Tue, 13 Aug 2019 19:51:42 +0200 Subject: [PATCH 082/124] Fix deps --- ganglia.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index e1d8fe6..0a7a043 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -7,7 +7,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 25%{?dist} +Release: 26%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -56,7 +56,11 @@ Version: %{webver} Requires: rrdtool Requires: php Requires: php-gd +%if 0%{?fedora} > 29 || 0%{?rhel} > 7 +Requires: php-zendframework +%else Requires: php-ZendFramework +%endif Requires: %{name}-gmetad = %{gangver}-%{release} %description web This package provides a web frontend to display the XML tree published @@ -371,6 +375,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Aug 13 2019 Terje Rosten - 3.7.2-26 +- Fix deps + * Thu Jul 25 2019 Fedora Release Engineering - 3.7.2-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From af3e172544d3e6b44ea06d227ee3ed53bd7f2f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Wed, 14 Aug 2019 20:26:39 +0200 Subject: [PATCH 083/124] Drop Python 2 stuff in newer distros --- ganglia.spec | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 0a7a043..bfffab8 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -4,6 +4,10 @@ %global systemd 1 %global _hardened_build 1 +%if 0%{?fedora} < 31 || 0%{?rhel} < 8 +%global py2 1 +%endif + Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} @@ -40,7 +44,7 @@ BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel BuildRequires: libpng-devel BuildRequires: pcre-devel -BuildRequires: python2-devel +%{?py2:BuildRequires: python2-devel} BuildRequires: rrdtool-devel BuildRequires: rsync BuildRequires: /usr/bin/pod2man @@ -107,6 +111,7 @@ well-defined XML format. This gmond daemon provides the ganglia service within a single cluster or Multicast domain. +%if 0%{?py2} %package -n python2-ganglia-gmond Summary: Ganglia Monitor daemon python DSO and metric modules Requires: ganglia-gmond @@ -121,6 +126,7 @@ well-defined XML format. This package provides the gmond python DSO and python gmond modules, which can be loaded via the DSO at gmond daemon start time. +%endif %package devel Summary: Ganglia Library @@ -165,7 +171,11 @@ autoconf -f || exit 1 --with-memcached \ --disable-static \ --enable-shared \ +%if 0%{?py2} --with-python=%{__python2} \ +%else + --disable-python \ +%endif --sysconfdir=%{_sysconfdir}/ganglia # Remove rpaths @@ -188,7 +198,7 @@ make %{?_smp_mflags} make install DESTDIR=%{buildroot} ## Create directory structures -mkdir -p %{buildroot}%{_libdir}/ganglia/python_modules +%{?py2:mkdir -p %{buildroot}%{_libdir}/ganglia/python_modules} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/rrds ## Install services @@ -204,11 +214,13 @@ install -Dp -m 0755 gmetad/gmetad.init %{buildroot}%{_sysconfdir}/init.d/gmetad LD_LIBRARY_PATH=lib/.libs gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' \ > %{buildroot}%{_sysconfdir}/ganglia/gmond.conf +%if 0%{?py2} ## Python bits # Copy the python metric modules and .conf files cp -p gmond/python_modules/conf.d/*.pyconf %{buildroot}%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/modules/conf.d/*.conf %{buildroot}%{_sysconfdir}/ganglia/conf.d/ cp -p gmond/python_modules/*/*.py %{buildroot}%{_libdir}/ganglia/python_modules/ +%endif ## Web bits pushd web @@ -251,12 +263,12 @@ ln -s /usr/share/php/Zend %{buildroot}/usr/share/ganglia/lib/Zend # Remove execute bit chmod 0644 %{buildroot}%{_datadir}/%{name}/header.php -chmod 0644 %{buildroot}%{_libdir}/%{name}/python_modules/*.py +%{?py2:chmod 0644 %{buildroot}%{_libdir}/%{name}/python_modules/*.py} chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.css chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.min.css # Remove shebang -sed -i '1{\@^#!@d}' %{buildroot}%{_libdir}/%{name}/python_modules/*.py +%{?py2:sed -i '1{\@^#!@d}' %{buildroot}%{_libdir}/%{name}/python_modules/*.py} %pre ## Add the "ganglia" user @@ -315,7 +327,7 @@ fi %{_libdir}/libganglia*.so.* %dir %{_libdir}/ganglia %{_libdir}/ganglia/*.so -%exclude %{_libdir}/ganglia/modpython.so +%{?py2:%exclude %{_libdir}/ganglia/modpython.so} %files gmetad %dir %{_localstatedir}/lib/%{name} @@ -345,17 +357,19 @@ fi %{_mandir}/man1/gstat.1* %{_mandir}/man1/gmetric.1* %dir %{_sysconfdir}/ganglia -%dir %{_sysconfdir}/ganglia/conf.d +%{?py2:%dir %{_sysconfdir}/ganglia/conf.d} %config(noreplace) %{_sysconfdir}/ganglia/gmond.conf -%config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.conf -%exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf +%{?py2:%config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.conf} +%{?py2:%exclude %{_sysconfdir}/ganglia/conf.d/modpython.conf} +%if 0%{?py2} %files -n python2-ganglia-gmond %dir %{_libdir}/ganglia/python_modules/ %{_libdir}/ganglia/python_modules/*.py* %{_libdir}/ganglia/modpython.so* %config(noreplace) %{_sysconfdir}/ganglia/conf.d/*.pyconf* %config(noreplace) %{_sysconfdir}/ganglia/conf.d/modpython.conf +%endif %files devel %{_bindir}/ganglia-config @@ -375,6 +389,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Aug 14 2019 Terje Rosten - 3.7.2-27 +- Drop Python 2 stuff in newer distros + * Tue Aug 13 2019 Terje Rosten - 3.7.2-26 - Fix deps From 2b7f20fa7c9a064cd23441d20c04567357e4a3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Wed, 14 Aug 2019 20:30:04 +0200 Subject: [PATCH 084/124] Fix release tag --- ganglia.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index bfffab8..1be334a 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 26%{?dist} +Release: 27%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz From 2b1a339ad10bb1b9bfe73def5a07f87f32590c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=C3=B8sten?= Date: Sun, 18 Aug 2019 12:52:04 +0200 Subject: [PATCH 085/124] Fix conditionals --- ganglia.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 1be334a..ee9c6d8 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -4,14 +4,18 @@ %global systemd 1 %global _hardened_build 1 -%if 0%{?fedora} < 31 || 0%{?rhel} < 8 +%if 0%{?fedora} && 0%{?fedora} < 31 +%global py2 1 +%endif + +%if 0%{?rhel} && 0%{?rhel} < 8 %global py2 1 %endif Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 27%{?dist} +Release: 28%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -389,6 +393,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Sun Aug 18 2019 Terje Rosten - 3.7.2-28 +- Fix conditionals + * Wed Aug 14 2019 Terje Rosten - 3.7.2-27 - Drop Python 2 stuff in newer distros From 2eafdfdf9f220d8a5583499c9f6294023375d3ca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 19:16:13 +0000 Subject: [PATCH 086/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index ee9c6d8..c3a67a3 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 28%{?dist} +Release: 29%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -393,6 +393,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 3.7.2-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Sun Aug 18 2019 Terje Rosten - 3.7.2-28 - Fix conditionals From d4b3a3a77f00fe045d30603ff3b5c50350e76832 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sun, 2 Feb 2020 10:15:42 +0100 Subject: [PATCH 087/124] Update to ganglia-web 3.7.5 + latest from git Add hack to fix GCC10 build issue --- .gitignore | 1 + ganglia-web-3.7.2-path.patch | 18 ++++- ganglia-web-5ee6b7.patch | 132 +++++++++++++++++++++++++++++++++++ ganglia.spec | 13 +++- sources | 4 +- 5 files changed, 160 insertions(+), 8 deletions(-) create mode 100644 ganglia-web-5ee6b7.patch diff --git a/.gitignore b/.gitignore index 501d5cf..ab98e71 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ ganglia-3.1.7.tar.gz /ganglia-3.7.2.tar.gz /ganglia-web-3.7.1.tar.gz /ganglia-web-3.7.2.tar.gz +/ganglia-web-3.7.5.tar.gz diff --git a/ganglia-web-3.7.2-path.patch b/ganglia-web-3.7.2-path.patch index 3b1ac73..34f3f55 100644 --- a/ganglia-web-3.7.2-path.patch +++ b/ganglia-web-3.7.2-path.patch @@ -1,5 +1,14 @@ +From 7ab35273917c5e6a9fa3d528053d146e32013def Mon Sep 17 00:00:00 2001 +From: Terje Rosten +Date: Sun, 2 Feb 2020 09:58:43 +0100 +Subject: [PATCH] Fix paths + +--- + Makefile | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + diff --git a/Makefile b/Makefile -index cdba3b1..c6f6602 100644 +index 2d04cd9..7a6d5fd 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ @@ -15,13 +24,16 @@ index cdba3b1..c6f6602 100644 # Gweb statedir (where conf dir and Dwoo templates dir are stored) GWEB_STATEDIR = /var/lib/ganglia-web -@@ -53,8 +53,7 @@ install: dist-dir +@@ -86,8 +86,7 @@ install: dist-dir mkdir -p $(DESTDIR)/$(GWEB_STATEDIR) && \ rsync -a $(DIST_DIR)/conf $(DESTDIR)/$(GWEB_STATEDIR) && \ mkdir -p $(DESTDIR)/$(GDESTDIR) && \ - rsync --exclude "conf" -a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR) && \ -- chown -R $(APACHE_USER):$(APACHE_USER) $(DESTDIR)/$(GWEB_STATEDIR) +- chown -R $(APACHE_USER):$(APACHE_GROUP) $(DESTDIR)/$(GWEB_STATEDIR) + rsync --exclude "conf" -a $(DIST_DIR)/* $(DESTDIR)/$(GDESTDIR) dist-gzip: dist-dir if [ -f $(DIST_TARBALL) ]; then \ +-- +2.24.1 + diff --git a/ganglia-web-5ee6b7.patch b/ganglia-web-5ee6b7.patch new file mode 100644 index 0000000..09ef455 --- /dev/null +++ b/ganglia-web-5ee6b7.patch @@ -0,0 +1,132 @@ +diff --git a/conf_default.php.in b/conf_default.php.in +index 9efa9ef..f7602cd 100644 +--- a/conf_default.php.in ++++ b/conf_default.php.in +@@ -135,6 +135,7 @@ $conf['cpu_gnice_color'] = "fff261"; + # Colors for the MEMORY report graph + # + $conf['mem_used_color'] = "5555cc"; ++$conf['mem_available_color'] = "2030F4"; + $conf['mem_shared_color'] = "0000aa"; + $conf['mem_cached_color'] = "33cc33"; + $conf['mem_slab_color'] = "66e533"; +diff --git a/functions.php b/functions.php +index be9fa4a..afbb586 100644 +--- a/functions.php ++++ b/functions.php +@@ -1121,8 +1121,8 @@ function build_aggregate_graph_config ($graph_type, + $line_width, + $hreg, + $mreg, +- $glegend, +- $exclude_host_from_legend_label, ++ $glegend = NULL, ++ $exclude_host_from_legend_label = false, + $sortit = true) { + + global $conf, $index_array, $hosts, $grid, $clusters, $debug, $metrics; +diff --git a/graph.d/mem_report.php b/graph.d/mem_report.php +index d443965..58d167d 100644 +--- a/graph.d/mem_report.php ++++ b/graph.d/mem_report.php +@@ -48,6 +48,8 @@ function graph_mem_report ( &$rrdtool_graph ) { + $bmem_slab_defs = ''; + $bmem_buffers_defs = ''; + $bmem_used_cdef = "CDEF:'bmem_used'='bmem_total','bmem_free',-,'bmem_cached',-"; ++ $bmem_available_defs = ''; ++ $bmem_realused_cdef = ''; + + if (file_exists("$rrd_dir/mem_shared.rrd")) { + $bmem_used_cdef .= ",'bmem_shared',UN,0,'bmem_shared',IF,-"; +@@ -67,6 +69,12 @@ function graph_mem_report ( &$rrdtool_graph ) { + ."CDEF:'bmem_buffers'=mem_buffers,1024,* "; + } + ++ if (file_exists("$rrd_dir/mem_available.rrd")) { ++ $bmem_realused_cdef = "CDEF:'bmem_realused'='bmem_total','bmem_available',- "; ++ $bmem_available_defs = "DEF:'mem_available'='${rrd_dir}/mem_available.rrd':'sum':AVERAGE " ++ ."CDEF:'bmem_available'=mem_available,1024,* "; ++ } ++ + $series = "DEF:'mem_total'='${rrd_dir}/mem_total.rrd':'sum':AVERAGE " + ."CDEF:'bmem_total'=mem_total,1024,* " + .$bmem_shared_defs +@@ -76,6 +84,8 @@ function graph_mem_report ( &$rrdtool_graph ) { + ."CDEF:'bmem_cached'=mem_cached,1024,* " + .$bmem_slab_defs + .$bmem_buffers_defs ++ .$bmem_available_defs ++ .$bmem_realused_cdef + ."$bmem_used_cdef " + ."AREA:'bmem_used'#${conf['mem_used_color']}:'Use${rmspace}' "; + +@@ -188,6 +198,22 @@ function graph_mem_report ( &$rrdtool_graph ) { + } + } + ++ if (file_exists("$rrd_dir/mem_available.rrd")) { ++ $series .= "LINE2:'bmem_realused'#${conf['mem_available_color']}:'Avail${rmspace}' "; ++ ++ if ( $conf['graphreport_stats'] ) { ++ $series .= "CDEF:available_pos=bmem_available,0,INF,LIMIT " ++ . "VDEF:available_last=available_pos,LAST " ++ . "VDEF:available_min=available_pos,MINIMUM " ++ . "VDEF:available_avg=available_pos,AVERAGE " ++ . "VDEF:available_max=available_pos,MAXIMUM " ++ . "GPRINT:'available_last':' ${space1}Now\:%6.1lf%s' " ++ . "GPRINT:'available_min':'${space1}Min\:%6.1lf%s${eol1}' " ++ . "GPRINT:'available_avg':'${space2}Avg\:%6.1lf%s' " ++ . "GPRINT:'available_max':'${space1}Max\:%6.1lf%s\\l' "; ++ } ++ } ++ + $series .= "LINE2:'bmem_total'#${conf['cpu_num_color']}:'Total${rmspace}' "; + + if ( $conf['graphreport_stats'] ) { +diff --git a/header.php b/header.php +index 91af0a2..729fe27 100644 +--- a/header.php ++++ b/header.php +@@ -263,7 +263,7 @@ if ($initgrid or $gridwalk) + # Use cookie so we dont have to pass gridstack around within this site. + # Cookie values are automatically urlencoded. Expires in a day. + if ( !isset($_COOKIE["gs"]) or $_COOKIE["gs"] != $gridstack_str ) +- setcookie("gs", $gridstack_str, time() + 86400); ++ setcookie("gs", $gridstack_str, time() + 86400, NULL, NULL, true, true); + } + + # Invariant: back pointer is second-to-last element of gridstack. Grid stack +diff --git a/lib/GangliaAuth.php b/lib/GangliaAuth.php +index 4a4d1da..01ca10d 100644 +--- a/lib/GangliaAuth.php ++++ b/lib/GangliaAuth.php +@@ -82,14 +82,14 @@ class GangliaAuth { + + // this is how a user 'logs in'. + public function setAuthCookie($user, $group=null) { +- setcookie('ganglia_auth', json_encode( array('user'=>$user, 'group'=>$group, 'token'=>$this->getAuthToken($user)) ) ); ++ setcookie('ganglia_auth', json_encode( array('user'=>$user, 'group'=>$group, 'token'=>$this->getAuthToken($user)) ), NULL, NULL, NULL, true, true ); + $this->user = $user; + $this->group = $group; + $this->tokenIsValid = true; + } + + public function destroyAuthCookie() { +- setcookie('ganglia_auth', '', time()); ++ setcookie('ganglia_auth', '', time(), NULL, NULL, true, true); + self::$auth = null; + } + +diff --git a/templates/default/cluster_host_metric_graphs.tpl b/templates/default/cluster_host_metric_graphs.tpl +index dbd80ab..95bc8aa 100644 +--- a/templates/default/cluster_host_metric_graphs.tpl ++++ b/templates/default/cluster_host_metric_graphs.tpl +@@ -42,7 +42,7 @@ + {/foreach} + {/if} + {/if} +- {if $index % $hostcols == 0} ++ {if $index % max(1, $hostcols) == 0} + + {/if} + {math "$index + 1" assign="index"} diff --git a/ganglia.spec b/ganglia.spec index c3a67a3..631eaef 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,5 +1,5 @@ %global gangver 3.7.2 -%global webver 3.7.2 +%global webver 3.7.5 %global systemd 1 %global _hardened_build 1 @@ -15,11 +15,11 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 29%{?dist} +Release: 30%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz -Source1: http://downloads.sourceforge.net/project/ganglia/ganglia-web/%{webver}/ganglia-web-%{webver}.tar.gz +Source1: https://github.com/ganglia/ganglia-web/archive/%{webver}/ganglia-web-%{webver}.tar.gz Source2: gmond.service Source3: gmetad.service Source4: ganglia-httpd24.conf.d @@ -29,6 +29,7 @@ Patch0: ganglia-web-3.7.2-path.patch Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch Patch3: ganglia-3.7.2-tirpc-hack.patch +Patch4: ganglia-web-5ee6b7.patch %if 0%{?systemd} BuildRequires: systemd %endif @@ -156,6 +157,7 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in mv ganglia-web-%{webver} web pushd web %patch0 -p1 +%patch4 -p1 popd %build @@ -168,6 +170,7 @@ libtoolize --automake --copy automake --add-missing --copy --foreign autoconf -f || exit 1 %endif +export CFLAGS="%{optflags} -fcommon" %configure \ --enable-setuid=ganglia \ --enable-setgid=ganglia \ @@ -393,6 +396,10 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Sat Feb 01 2020 Terje Rosten - 3.7.2-30 +- Update to ganglia-web 3.7.5 + latest from git +- Add hack to fix GCC10 build issue + * Tue Jan 28 2020 Fedora Release Engineering - 3.7.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 10c554f..12898fd 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -49c5cd0292fdfb57d098ac76b6e97672 ganglia-3.7.2.tar.gz -a2d87edcf2914a053aa6be0ee4d57c29 ganglia-web-3.7.2.tar.gz +SHA512 (ganglia-web-3.7.5.tar.gz) = 3df0c8dc51d411d29beb00bcd66d617115ad72a576bec25ce7e4e96ba9f2d7099daa1e6f738cfcc6cab60e9af72303e8af51eeaa2ade2fa219ac075106f2e521 +SHA512 (ganglia-3.7.2.tar.gz) = a88955e59421a447e5752a9bfe5f599d989a7a5a0141141ab3601d1ab250be4eebbede8bcef8baa151b2f9deaf3f56e30aef8ea709f3cc820a79fa3d3961e0df From dc9615ff6f0aa050476a71fe2dcda5ec00f39dcf Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Tue, 11 Feb 2020 19:16:34 +0100 Subject: [PATCH 088/124] Bring Zend back to fix rhbz#1797111 and rhbz#1734255 --- ganglia.spec | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index 631eaef..38a90fb 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 30%{?dist} +Release: 31%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -65,11 +65,6 @@ Version: %{webver} Requires: rrdtool Requires: php Requires: php-gd -%if 0%{?fedora} > 29 || 0%{?rhel} > 7 -Requires: php-zendframework -%else -Requires: php-ZendFramework -%endif Requires: %{name}-gmetad = %{gangver}-%{release} %description web This package provides a web frontend to display the XML tree published @@ -264,10 +259,6 @@ rm -rf %{buildroot}%{_datadir}/%{name}/{README,TODO,AUTHORS,COPYING} ## House cleaning rm -f %{buildroot}%{_libdir}/*.la -## Use system php-ZendFramework -rm -rf %{buildroot}/usr/share/ganglia/lib/Zend -ln -s /usr/share/php/Zend %{buildroot}/usr/share/ganglia/lib/Zend - # Remove execute bit chmod 0644 %{buildroot}%{_datadir}/%{name}/header.php %{?py2:chmod 0644 %{buildroot}%{_libdir}/%{name}/python_modules/*.py} @@ -323,10 +314,13 @@ fi %endif # systemd -%post web -if [ ! -L /usr/share/ganglia/lib/Zend ]; then - ln -s /usr/share/php/Zend /usr/share/ganglia/lib/Zend -fi +# https://fedoraproject.org/wiki/Packaging:Directory_Replacement#Scriptlet_to_replace_a_symlink_to_a_directory_with_a_directory +%pretrans web -p +path = "/usr/share/ganglia/lib/Zend" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end %files %license COPYING @@ -396,6 +390,9 @@ fi %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Mon Feb 10 2020 Terje Rosten - 3.7.2-31 +- Bring Zend back to fix rhbz#1797111 and rhbz#1734255 + * Sat Feb 01 2020 Terje Rosten - 3.7.2-30 - Update to ganglia-web 3.7.5 + latest from git - Add hack to fix GCC10 build issue From 2b729ed5d6a26a4e421a125645c109ebfe9b8f61 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 18:02:24 +0000 Subject: [PATCH 089/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 38a90fb..cabf2cd 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 31%{?dist} +Release: 32%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -390,6 +390,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 3.7.2-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Feb 10 2020 Terje Rosten - 3.7.2-31 - Bring Zend back to fix rhbz#1797111 and rhbz#1734255 From 8fdb37c5be4f2af723c9aa8240a4fe94ad30d4de Mon Sep 17 00:00:00 2001 From: Germano Massullo Date: Thu, 8 Oct 2020 23:40:40 +0200 Subject: [PATCH 090/124] removed all occurrencies of #systemd after endif --- ganglia.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index cabf2cd..c8f8a74 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 32%{?dist} +Release: 33%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -82,7 +82,7 @@ Requires(postun): systemd Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service -%endif #systemd +%endif %description gmetad Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open @@ -102,7 +102,7 @@ Requires(postun): systemd Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service -%endif #systemd +%endif %description gmond Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open @@ -210,7 +210,7 @@ install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/gmetad.service %else install -Dp -m 0755 gmond/gmond.init %{buildroot}%{_sysconfdir}/init.d/gmond install -Dp -m 0755 gmetad/gmetad.init %{buildroot}%{_sysconfdir}/init.d/gmetad -%endif # systemd +%endif ## Build default gmond.conf from gmond using the '-t' flag LD_LIBRARY_PATH=lib/.libs gmond/gmond -t | %{__perl} -pe 's|nobody|ganglia|g' \ @@ -312,7 +312,7 @@ if [ "$1" = 0 ]; then /sbin/chkconfig --del gmond fi -%endif # systemd +%endif # https://fedoraproject.org/wiki/Packaging:Directory_Replacement#Scriptlet_to_replace_a_symlink_to_a_directory_with_a_directory %pretrans web -p @@ -390,6 +390,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Oct 08 2020 Germano Massullo - 3.7.2-33 +- removed all occurrencies of "# systemd" after %%endif since they are not allowed. + * Mon Jul 27 2020 Fedora Release Engineering - 3.7.2-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 04abe53473c8133590069d75e71008159211683a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 18 Dec 2020 23:03:08 +0000 Subject: [PATCH 091/124] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- ganglia.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ganglia.spec b/ganglia.spec index c8f8a74..b0be916 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -54,6 +54,7 @@ BuildRequires: rrdtool-devel BuildRequires: rsync BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2html +BuildRequires: make %description Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open From d13c5c3863428aac7bfd58bf0a248aa0c3d87292 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 06:08:05 +0000 Subject: [PATCH 092/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b0be916..6fe7d5d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 33%{?dist} +Release: 34%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -391,6 +391,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 3.7.2-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Thu Oct 08 2020 Germano Massullo - 3.7.2-33 - removed all occurrencies of "# systemd" after %%endif since they are not allowed. From 7a6681606f6b26d428fd74a9c37ba783f4187635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 2 Mar 2021 16:13:45 +0100 Subject: [PATCH 093/124] Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. --- ganglia.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 6fe7d5d..d58197c 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 34%{?dist} +Release: 35%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -391,6 +391,10 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Mar 02 2021 Zbigniew JÄ™drzejewski-Szmek - 3.7.2-35 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + * Tue Jan 26 2021 Fedora Release Engineering - 3.7.2-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From bd93a38b4842cf99da91dee4b65b61d6ff47896f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 23:34:39 +0000 Subject: [PATCH 094/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index d58197c..b5dae82 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -15,7 +15,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 35%{?dist} +Release: 36%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -391,6 +391,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 3.7.2-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Mar 02 2021 Zbigniew JÄ™drzejewski-Szmek - 3.7.2-35 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. From e79cdf6807cdbb123475c57524b639395ae92e0e Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Thu, 9 Sep 2021 21:23:16 +0200 Subject: [PATCH 095/124] Minor cosmetics --- ganglia.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index b5dae82..468ad30 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -4,10 +4,6 @@ %global systemd 1 %global _hardened_build 1 -%if 0%{?fedora} && 0%{?fedora} < 31 -%global py2 1 -%endif - %if 0%{?rhel} && 0%{?rhel} < 8 %global py2 1 %endif @@ -48,13 +44,13 @@ BuildRequires: libart_lgpl-devel BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel BuildRequires: libpng-devel +BuildRequires: make BuildRequires: pcre-devel %{?py2:BuildRequires: python2-devel} BuildRequires: rrdtool-devel BuildRequires: rsync BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2html -BuildRequires: make %description Ganglia is a scalable, real-time monitoring and execution environment with all execution requests and statistics expressed in an open From 2bea70ceb032f1cd1607f6311a2d4755b826b018 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Thu, 9 Sep 2021 21:43:54 +0200 Subject: [PATCH 096/124] Need sasl bits to build --- ganglia.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 468ad30..86b5068 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 36%{?dist} +Release: 37%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -37,6 +37,7 @@ BuildRequires: automake BuildRequires: libtool %endif BuildRequires: apr-devel >= 1 +BuildRequires: cyrus-sasl-devel BuildRequires: expat-devel BuildRequires: freetype-devel BuildRequires: gcc @@ -387,6 +388,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Sep 09 2021 Terje Rosten - 3.7.2-37 +- Need sasl bits to build + * Wed Jul 21 2021 Fedora Release Engineering - 3.7.2-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From b8b2bfb7c7125b469efcc532aab5648ed13cd5b0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 03:39:44 +0000 Subject: [PATCH 097/124] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 86b5068..be43502 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 37%{?dist} +Release: 38%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -388,6 +388,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 3.7.2-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Sep 09 2021 Terje Rosten - 3.7.2-37 - Need sasl bits to build From 0cf91172b9897e49f896c11226eb2d454545c65b Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Mon, 31 Jan 2022 09:52:57 -0800 Subject: [PATCH 098/124] epel8-playground decommissioned : https://pagure.io/epel/issue/136 --- .cvsignore | 0 Makefile | 21 --------------------- dead.package | 1 + sources | 0 4 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .cvsignore delete mode 100644 Makefile create mode 100644 dead.package delete mode 100644 sources diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/Makefile b/Makefile deleted file mode 100644 index 8262c3d..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: ganglia -# $Id$ -NAME := ganglia -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..a72aec0 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +epel8-playground decommissioned : https://pagure.io/epel/issue/136 diff --git a/sources b/sources deleted file mode 100644 index e69de29..0000000 From 9a78407166a407fafc3eefc105f7871ad93bfdf6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 03:52:07 +0000 Subject: [PATCH 099/124] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index be43502..c28fbc7 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 38%{?dist} +Release: 39%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -388,6 +388,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 3.7.2-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 3.7.2-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 31762b54b340c0529bace759fca2d62d93a5d190 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Thu, 12 Jan 2023 18:04:18 +0100 Subject: [PATCH 100/124] Fix various bugs --- ganglia.spec | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/ganglia.spec b/ganglia.spec index c28fbc7..e9e961f 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 39%{?dist} +Release: 40%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -29,7 +29,7 @@ Patch4: ganglia-web-5ee6b7.patch %if 0%{?systemd} BuildRequires: systemd %endif -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: rpcgen BuildRequires: libtirpc-devel BuildRequires: autoconf @@ -46,7 +46,9 @@ BuildRequires: libconfuse-devel BuildRequires: libmemcached-devel BuildRequires: libpng-devel BuildRequires: make +%if 0%{?fedora} < 38 || 0%{?rhel} BuildRequires: pcre-devel +%endif %{?py2:BuildRequires: python2-devel} BuildRequires: rrdtool-devel BuildRequires: rsync @@ -64,6 +66,9 @@ Requires: rrdtool Requires: php Requires: php-gd Requires: %{name}-gmetad = %{gangver}-%{release} +%if 0%{?fedora} || 0%{?rhel} > 7 +Requires: php-xml +%endif %description web This package provides a web frontend to display the XML tree published by ganglia, and to provide historical graphs of collected @@ -142,7 +147,7 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 %patch2 -p0 -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 %patch3 -p1 %endif # web part @@ -155,7 +160,7 @@ popd %build touch Makefile.am -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 aclocal -I m4 autoheader automake --add-missing --copy --foreign 2>/dev/null @@ -163,6 +168,18 @@ libtoolize --automake --copy automake --add-missing --copy --foreign autoconf -f || exit 1 %endif + +%if 0%{?fedora} > 36 +pushd libmetrics +aclocal -I m4 +autoheader +automake --add-missing --copy --foreign 2>/dev/null +libtoolize --automake --copy +automake --add-missing --copy --foreign +autoconf -f || exit 1 +popd +%endif + export CFLAGS="%{optflags} -fcommon" %configure \ --enable-setuid=ganglia \ @@ -171,6 +188,9 @@ export CFLAGS="%{optflags} -fcommon" --with-memcached \ --disable-static \ --enable-shared \ +%if 0%{?fedora} > 37 + --with-libpcre=no \ +%endif %if 0%{?py2} --with-python=%{__python2} \ %else @@ -231,7 +251,7 @@ ln -s ../../..%{_sysconfdir}/%{name}/conf.php \ popd ## httpd config -%if 0%{?fedora} >= 18 +%if 0%{?fedora} || 0%{?rhel} > 6 install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf %else install -Dp -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf @@ -388,6 +408,13 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 12 2023 Terje Rosten - 3.7.2-40 +- Fix implicit dep on php-xml (rhbz#2016302) +- Remove dep on pcre in Fedora 38+ (rhbz#2128294) +- RHEL7+ have httpd 2.4 too +- Simplify fedora conditionals +- Fix autoconf problem in libmetrics + * Thu Jul 21 2022 Fedora Release Engineering - 3.7.2-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 8c6c2dff0742969b5e5f7bacad52e75df43640c8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 04:07:37 +0000 Subject: [PATCH 101/124] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index e9e961f..5ee1d9d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 40%{?dist} +Release: 41%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 3.7.2-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jan 12 2023 Terje Rosten - 3.7.2-40 - Fix implicit dep on php-xml (rhbz#2016302) - Remove dep on pcre in Fedora 38+ (rhbz#2128294) From fa7db9ef40325c6a0593cd807a72225cefbc17ec Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 20:31:28 +0000 Subject: [PATCH 102/124] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 5ee1d9d..75c5b21 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 41%{?dist} +Release: 42%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 3.7.2-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 3.7.2-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 559d39e862fef0bd712f0af8bb37b343045a4c8f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 20:02:23 +0000 Subject: [PATCH 103/124] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index 75c5b21..b7fe77a 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 42%{?dist} +Release: 43%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 3.7.2-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 3.7.2-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 1dc62b1ef92624008dec0c07389531092e7fe12f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 12:16:29 +0000 Subject: [PATCH 104/124] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ganglia.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ganglia.spec b/ganglia.spec index b7fe77a..c79f901 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 43%{?dist} +Release: 44%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -408,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 3.7.2-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 3.7.2-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 8648f6c3070fab47f0313eff9ddf634f828e7022 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Mon, 5 Feb 2024 19:57:00 +0100 Subject: [PATCH 105/124] Fix GCC 14 issue --- ganglia-3.7.2-gcc14-cast.patch | 11 +++++++++++ ganglia.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 ganglia-3.7.2-gcc14-cast.patch diff --git a/ganglia-3.7.2-gcc14-cast.patch b/ganglia-3.7.2-gcc14-cast.patch new file mode 100644 index 0000000..d7d1253 --- /dev/null +++ b/ganglia-3.7.2-gcc14-cast.patch @@ -0,0 +1,11 @@ +--- ganglia-3.7.2/gmond/gmond.c~ 2015-07-01 21:49:35.000000000 +0200 ++++ ganglia-3.7.2/gmond/gmond.c 2024-02-05 19:54:03.584404224 +0100 +@@ -2060,7 +2060,7 @@ + debug_msg("failed to allocate gzip stream"); + goto close_accept_socket; + } +- apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, &zstream_destroy); ++ apr_status_t r = apr_socket_data_set(client, strm, GZIP_KEY, (int (*)(void *))&zstream_destroy); + if (r != APR_SUCCESS) + { + debug_msg("failed to set socket user data"); diff --git a/ganglia.spec b/ganglia.spec index c79f901..bcb739d 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 44%{?dist} +Release: 45%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -26,6 +26,7 @@ Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch Patch3: ganglia-3.7.2-tirpc-hack.patch Patch4: ganglia-web-5ee6b7.patch +Patch5: ganglia-3.7.2-gcc14-cast.patch %if 0%{?systemd} BuildRequires: systemd %endif @@ -147,6 +148,7 @@ install -m 0644 %{SOURCE2} gmond/gmond.service.in install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %patch1 -p0 %patch2 -p0 +%patch5 -p1 %if 0%{?fedora} || 0%{?rhel} > 7 %patch3 -p1 %endif @@ -408,6 +410,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Mon Feb 05 2024 Terje Rosten - 3.7.2-45 +- Fix GCC 14 issue + * Wed Jan 24 2024 Fedora Release Engineering - 3.7.2-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From b17383b80bce15f4e9473d6de4a0243a25dc45d5 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sat, 24 Feb 2024 18:49:05 +0100 Subject: [PATCH 106/124] Upgrade to ganglia web 3.7.6 --- .gitignore | 1 + ganglia-3.7.2-gcc14-cast.patch | 22 ++++++++++++++++++++++ ganglia.spec | 9 +++++---- sources | 2 +- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ab98e71..141d6e8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ ganglia-3.1.7.tar.gz /ganglia-web-3.7.1.tar.gz /ganglia-web-3.7.2.tar.gz /ganglia-web-3.7.5.tar.gz +/ganglia-web-3.7.6.tar.gz diff --git a/ganglia-3.7.2-gcc14-cast.patch b/ganglia-3.7.2-gcc14-cast.patch index d7d1253..9cbac25 100644 --- a/ganglia-3.7.2-gcc14-cast.patch +++ b/ganglia-3.7.2-gcc14-cast.patch @@ -9,3 +9,25 @@ if (r != APR_SUCCESS) { debug_msg("failed to set socket user data"); +diff --git a/gmetad/rrd_helpers.c b/gmetad/rrd_helpers.c +index 740799a..3f39071 100644 +--- a/gmetad/rrd_helpers.c ++++ b/gmetad/rrd_helpers.c +@@ -199,7 +199,7 @@ reconnect: + static int + RRD_update( char *rrd, const char *sum, const char *num, unsigned int process_time ) + { +- char *argv[3]; ++ const char *argv[3]; + int argc = 3; + char val[128]; + +@@ -235,7 +235,7 @@ RRD_create( char *rrd, int summary, unsigned int step, + unsigned int process_time, ganglia_slope_t slope) + { + const char *data_source_type = "GAUGE"; +- char *argv[128]; ++ const char *argv[128]; + int argc=0; + int heartbeat; + char s[16], start[64]; diff --git a/ganglia.spec b/ganglia.spec index bcb739d..1e56614 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,5 +1,5 @@ %global gangver 3.7.2 -%global webver 3.7.5 +%global webver 3.7.6 %global systemd 1 %global _hardened_build 1 @@ -11,7 +11,7 @@ Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 45%{?dist} +Release: 46%{?dist} License: BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz @@ -25,7 +25,6 @@ Patch0: ganglia-web-3.7.2-path.patch Patch1: ganglia-3.7.2-apache.patch Patch2: ganglia-3.7.2-sflow.patch Patch3: ganglia-3.7.2-tirpc-hack.patch -Patch4: ganglia-web-5ee6b7.patch Patch5: ganglia-3.7.2-gcc14-cast.patch %if 0%{?systemd} BuildRequires: systemd @@ -157,7 +156,6 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in mv ganglia-web-%{webver} web pushd web %patch0 -p1 -%patch4 -p1 popd %build @@ -410,6 +408,9 @@ end %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Sat Feb 24 2024 Terje Rosten - 3.7.2-46 +- Upgrade to ganglia web 3.7.6 + * Mon Feb 05 2024 Terje Rosten - 3.7.2-45 - Fix GCC 14 issue diff --git a/sources b/sources index 12898fd..4bc88ef 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (ganglia-web-3.7.5.tar.gz) = 3df0c8dc51d411d29beb00bcd66d617115ad72a576bec25ce7e4e96ba9f2d7099daa1e6f738cfcc6cab60e9af72303e8af51eeaa2ade2fa219ac075106f2e521 SHA512 (ganglia-3.7.2.tar.gz) = a88955e59421a447e5752a9bfe5f599d989a7a5a0141141ab3601d1ab250be4eebbede8bcef8baa151b2f9deaf3f56e30aef8ea709f3cc820a79fa3d3961e0df +SHA512 (ganglia-web-3.7.6.tar.gz) = 6b84dfabfd37e4818c09824a64f4b7f8be30a21a7b4173df4562a4c42bf30115f1182489ab40b23193cc4ef2b15bd714e400203dabf45e6531068b5eb6c69f7d From 99c85226e855d9478675b5a06d982f9b9c7f8ec6 Mon Sep 17 00:00:00 2001 From: Terje Rosten Date: Sun, 3 Mar 2024 19:59:28 +0100 Subject: [PATCH 107/124] Add more PHP8 patches --- ganglia-web-3.7.6-pr-379.patch | 121 +++++++++++++++++++++++++++++++++ ganglia.spec | 7 +- 2 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 ganglia-web-3.7.6-pr-379.patch diff --git a/ganglia-web-3.7.6-pr-379.patch b/ganglia-web-3.7.6-pr-379.patch new file mode 100644 index 0000000..e33404a --- /dev/null +++ b/ganglia-web-3.7.6-pr-379.patch @@ -0,0 +1,121 @@ +diff --git a/Makefile b/Makefile +index 6d2dd1b..a3ab48a 100644 +--- a/Makefile ++++ b/Makefile +@@ -30,7 +30,7 @@ PHPCBF = phpcbf + ########################################################## + + # Gweb version +-GWEB_VERSION = 3.7.5 ++GWEB_VERSION = 3.7.7 + + DIST_NAME = ganglia-web + DIST_DIR = $(DIST_NAME)-$(GWEB_VERSION) +diff --git a/cluster_view.php b/cluster_view.php +index 998ad65..fed4ed8 100644 +--- a/cluster_view.php ++++ b/cluster_view.php +@@ -372,7 +372,7 @@ function get_cluster_overview($showhosts, + $overview["cluster_load"] = join(", ", $cluster_load); + + $avg_cpu_num = find_avg($clustername, "", "cpu_num"); +- if ($avg_cpu_num == 0) ++ if ((float)$avg_cpu_num == 0) + $avg_cpu_num = 1; + $cluster_util = + sprintf("%.0f%%", +diff --git a/ganglia.php b/ganglia.php +index 262b88e..3d1b325 100644 +--- a/ganglia.php ++++ b/ganglia.php +@@ -350,7 +350,7 @@ function Gmetad () { + } + + if ($debug) print "
      DEBUG: Creating parser\n"; +- if ( isset($context) && is_array($context) && isset($SKIP_GMETAD_CONTEXTS) && is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) { ++ if ( is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) { + return TRUE; + } + $parser = xml_parser_create(); +diff --git a/get_ganglia.php b/get_ganglia.php +index 50e5fe8..d9c4f2e 100644 +--- a/get_ganglia.php ++++ b/get_ganglia.php +@@ -7,7 +7,7 @@ + + # If we are in compare_hosts, views and decompose_graph context we shouldn't attempt + # any connections to the gmetad +-if (! in_array($context, $SKIP_GMETAD_CONTEXTS) ) { ++if (! ( is_array($SKIP_GMETAD_CONTEXTS) && in_array($context, $SKIP_GMETAD_CONTEXTS) ) ) { + if (! Gmetad($conf['ganglia_ip'], $conf['ganglia_port']) ) + { + print "

      There was an error collecting ganglia data ". +diff --git a/graph.php b/graph.php +index e8a7a9c..bf34014 100644 +--- a/graph.php ++++ b/graph.php +@@ -1552,7 +1552,7 @@ if ($sourcetime) { + + // Fix from Phil Radden, but step is not always 15 anymore. + if ($range == "month") +- $rrdtool_graph['end'] = floor($rrdtool_graph['end'] / 672) * 672; ++ $rrdtool_graph['end'] = floor((int)$rrdtool_graph['end'] / 672) * 672; + + /////////////////////////////////////////////////////////////////////////////// + // Are we generating aggregate graphs +diff --git a/meta_view.php b/meta_view.php +index aa79e15..e6490af 100644 +--- a/meta_view.php ++++ b/meta_view.php +@@ -119,7 +119,7 @@ foreach ( $sorted_sources as $source => $val ) + + $clusname = $source == $self ? '' : $source; + $avg_cpu_num = find_avg($clusname, "", "cpu_num"); +- if ($avg_cpu_num == 0) $avg_cpu_num = 1; ++ if ((float)$avg_cpu_num == 0) $avg_cpu_num = 1; + $cluster_util = sprintf("%.0f", ((double) find_avg($clusname, "", "load_one") / $avg_cpu_num ) * 100); + + $sources[$source]["name"] = $name; +diff --git a/mobile_helper.php b/mobile_helper.php +index db45bb7..d9e20cb 100644 +--- a/mobile_helper.php ++++ b/mobile_helper.php +@@ -266,7 +266,7 @@ foreach ($metrics as $metric_name => $metric_attributes) { + } else if (isset($reports[$metric_name]) and $reports[$metric]) + continue; + else { +- $metric_graphargs = "c=".rawurlencode($clustername)."&h=".rawurlencode($hostname)."&v=".rawurlencode($metric_attributes[VAL]) ++ $metric_graphargs = "c=".rawurlencode($clustername)."&h=".rawurlencode($hostname)."&v=".rawurlencode($metric_attributes['VAL']) + ."&m=$metric_name&r=".rawurlencode($range)."&z=$size&jr=$jobrange" + ."&js=$jobstart&st=$cluster[LOCALTIME]"; + if ($cs) +diff --git a/pie.php b/pie.php +index 0e94bbe..24afad9 100644 +--- a/pie.php ++++ b/pie.php +@@ -276,7 +276,11 @@ $to = 0; + + $x; //PHPCS + $y; //PHPCS +- $pie_count = count( $angles ); ++ if is_null( $angles ) { ++ $pie_count = 0; ++ } else { ++ $pie_count = count( $angles ); ++ } + $PIE_THICKNESS = ($this->diameter * 0.075); + + for( $j = ($this->center_y+$PIE_THICKNESS); $j > $this->center_y; $j-- ) { +diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl +index af9fb5e..548a8e4 100644 +--- a/templates/default/footer.tpl ++++ b/templates/default/footer.tpl +@@ -92,7 +92,7 @@ Loading view, please wait... +