From 252978238d594ad1a32e065ee4e14e8f7c84d497 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:37:15 +0100 Subject: [PATCH] build gmetad fix systemctl invocation [release 3.6.0-2mamba;Sat Feb 22 2014] --- README.md | 2 + ganglia-3.6.0-missing-gmetad.service.in.patch | 14 ++ ganglia-3.6.0-missing-gmond.service.in.patch | 14 ++ ganglia.spec | 129 ++++++++++++++++++ 4 files changed, 159 insertions(+) create mode 100644 ganglia-3.6.0-missing-gmetad.service.in.patch create mode 100644 ganglia-3.6.0-missing-gmond.service.in.patch create mode 100644 ganglia.spec diff --git a/README.md b/README.md index 0ef14e5..4fee840 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ganglia +Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. Supports clusters up to 2000 nodes in size. + diff --git a/ganglia-3.6.0-missing-gmetad.service.in.patch b/ganglia-3.6.0-missing-gmetad.service.in.patch new file mode 100644 index 0000000..f02ff3c --- /dev/null +++ b/ganglia-3.6.0-missing-gmetad.service.in.patch @@ -0,0 +1,14 @@ +diff -Nru ganglia-3.6.0/gmetad.orig/gmetad.service.in ganglia-3.6.0/gmetad/gmetad.service.in +--- ganglia-3.6.0/gmetad.orig/gmetad.service.in 1970-01-01 00:00:00.000000000 +0000 ++++ ganglia-3.6.0/gmetad/gmetad.service.in 2014-02-22 13:39:08.336503335 +0000 +@@ -0,0 +1,10 @@ ++[Unit] ++Description=Ganglia Meta Daemon ++After=network.target ++ ++[Service] ++ExecStart=@sbindir@/gmetad -f ++User=ganglia ++ ++[Install] ++WantedBy=multi-user.target diff --git a/ganglia-3.6.0-missing-gmond.service.in.patch b/ganglia-3.6.0-missing-gmond.service.in.patch new file mode 100644 index 0000000..35c399c --- /dev/null +++ b/ganglia-3.6.0-missing-gmond.service.in.patch @@ -0,0 +1,14 @@ +diff -Nru ganglia-3.6.0.orig/gmond/gmond.service.in ganglia-3.6.0/gmond/gmond.service.in +--- ganglia-3.6.0.orig/gmond/gmond.service.in 1970-01-01 01:00:00.000000000 +0100 ++++ ganglia-3.6.0/gmond/gmond.service.in 2013-11-27 17:05:38.784855444 +0100 +@@ -0,0 +1,10 @@ ++[Unit] ++Description=Ganglia Monitor Daemon ++After=network.target ++ ++[Service] ++ExecStart=@sbindir@/gmond -f ++User=nobody ++ ++[Install] ++WantedBy=multi-user.target diff --git a/ganglia.spec b/ganglia.spec new file mode 100644 index 0000000..811f7fa --- /dev/null +++ b/ganglia.spec @@ -0,0 +1,129 @@ +Name: ganglia +Version: 3.6.0 +Release: 2mamba +Summary: A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids +Group: Network/Monitoring +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://ganglia.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/%{version}/ganglia-%{version}.tar.gz +Patch0: ganglia-3.6.0-missing-gmond.service.in.patch +Patch1: ganglia-3.6.0-missing-gmetad.service.in.patch +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libapr-devel +BuildRequires: libconfuse-devel +BuildRequires: libexpat-devel +BuildRequires: libpcre-devel +BuildRequires: libpython27-devel +BuildRequires: libtirpc-devel +BuildRequires: libuuid-devel +BuildRequires: libz-devel +BuildRequires: rrdtool-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. Supports clusters up to 2000 nodes in size. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%configure \ + --with-gmetad \ + LIBS="-ltirpc" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +/sbin/ldconfig +systemctl -q daemon-reload +: + +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_sysconfdir}/conf.d/modpython.conf +%config(noreplace) %{_sysconfdir}/gmetad.conf +%{_bindir}/gmetric +%{_bindir}/gstat +%{_sbindir}/gmetad +%{_sbindir}/gmond +/lib/systemd/system/gmond.service +/lib/systemd/system/gmetad.service +%{_mandir}/man1/gmetad.1* +%{_mandir}/man1/gmetad.py.1* +%{_mandir}/man1/gmetric.1* +%{_mandir}/man1/gmond.1* +%{_mandir}/man1/gstat.1* +%{_mandir}/man5/gmond.conf.5* +%doc AUTHORS COPYING + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libganglia-%{version}.so.* +%dir %{_libdir}/ganglia +%{_libdir}/ganglia/modcpu.so +%{_libdir}/ganglia/moddisk.so +%{_libdir}/ganglia/modload.so +%{_libdir}/ganglia/modmem.so +%{_libdir}/ganglia/modmulticpu.so +%{_libdir}/ganglia/modnet.so +%{_libdir}/ganglia/modproc.so +%{_libdir}/ganglia/modpython.so +%{_libdir}/ganglia/modsys.so + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/ganglia-config +%{_includedir}/ganglia.h +%{_includedir}/ganglia_gexec.h +%{_includedir}/gm_file.h +%{_includedir}/gm_metric.h +%{_includedir}/gm_mmn.h +%{_includedir}/gm_msg.h +%{_includedir}/gm_protocol.h +%{_includedir}/gm_value.h +%{_libdir}/libganglia.a +%{_libdir}/libganglia.la +%{_libdir}/libganglia.so +%doc BUGS ChangeLog NEWS README README.AIX README.GIT README.WIN + +%changelog +* Sat Feb 22 2014 Silvan Calarco 3.6.0-2mamba +- build gmetad +- fix systemctl invocation + +* Wed Nov 27 2013 Silvan Calarco 3.6.0-1mamba +- package created using the webbuild interface