From 6fc382cca60d7d0364abc09d1d3df7932d41debf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:37:15 +0100 Subject: [PATCH] fixed rundir in service files and provide directory /var/lib/ganglia [release 3.7.2-2mamba;Sun Feb 28 2021] --- ganglia-3.7.2-rundir.patch | 24 ++++++++++++++++++++++++ ganglia.spec | 10 +++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ganglia-3.7.2-rundir.patch diff --git a/ganglia-3.7.2-rundir.patch b/ganglia-3.7.2-rundir.patch new file mode 100644 index 0000000..b0346f7 --- /dev/null +++ b/ganglia-3.7.2-rundir.patch @@ -0,0 +1,24 @@ +diff -Nru ganglia-3.7.2.orig/scripts/fixconfig ganglia-3.7.2/scripts/fixconfig +--- ganglia-3.7.2.orig/scripts/fixconfig 2015-07-01 21:49:35.000000000 +0200 ++++ ganglia-3.7.2/scripts/fixconfig 2021-02-28 10:21:18.486789796 +0100 +@@ -25,7 +25,7 @@ + sbindir="${exec_prefix}/sbin" + sysconfdir="${prefix}/etc" + includedir="${prefix}/include" +-runstatedir="${prefix}/var/run" # @runstatedir@ if autoconf >= 2.70 ++runstatedir="/run" # @runstatedir@ if autoconf >= 2.70 + if [ -d "${prefix}/etc/sysconfig" ] + then + envdir="${prefix}/etc/sysconfig" +diff -Nru ganglia-3.7.2.orig/scripts/fixconfig.in ganglia-3.7.2/scripts/fixconfig.in +--- ganglia-3.7.2.orig/scripts/fixconfig.in 2015-07-01 21:49:35.000000000 +0200 ++++ ganglia-3.7.2/scripts/fixconfig.in 2021-02-28 10:21:36.581143532 +0100 +@@ -25,7 +25,7 @@ + sbindir="@sbindir@" + sysconfdir="@sysconfdir@" + includedir="@includedir@" +-runstatedir="@localstatedir@/run" # @runstatedir@ if autoconf >= 2.70 ++runstatedir="/run" # @runstatedir@ if autoconf >= 2.70 + if [ -d "@sysconfdir@/sysconfig" ] + then + envdir="@sysconfdir@/sysconfig" diff --git a/ganglia.spec b/ganglia.spec index e4ff400..2b16aad 100644 --- a/ganglia.spec +++ b/ganglia.spec @@ -1,6 +1,6 @@ Name: ganglia Version: 3.7.2 -Release: 1mamba +Release: 2mamba Summary: A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids Group: Network/Monitoring Vendor: openmamba @@ -10,6 +10,7 @@ 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 +Patch2: ganglia-3.7.2-rundir.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -55,6 +56,7 @@ This package contains libraries and header files for developing applications tha %setup -q #%patch0 -p1 #%patch1 -p1 +%patch2 -p1 %build %configure \ @@ -68,6 +70,8 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +install -d -m0755 %{buildroot}/var/lib/ganglia + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -105,6 +109,7 @@ This package contains libraries and header files for developing applications tha %{_mandir}/man1/gmond.1* %{_mandir}/man1/gstat.1* %{_mandir}/man5/gmond.conf.5* +%dir /var/lib/ganglia %doc AUTHORS COPYING %files -n lib%{name} @@ -138,6 +143,9 @@ This package contains libraries and header files for developing applications tha %doc BUGS ChangeLog NEWS README README.AIX README.GIT README.WIN %changelog +* Sun Feb 28 2021 Silvan Calarco 3.7.2-2mamba +- fixed rundir in service files and provide directory /var/lib/ganglia + * Tue Dec 15 2020 Silvan Calarco 3.7.2-1mamba - update to 3.7.2