fixed rundir in service files and provide directory /var/lib/ganglia [release 3.7.2-2mamba;Sun Feb 28 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 22:37:15 +01:00
parent a7e78d52bd
commit 6fc382cca6
2 changed files with 33 additions and 1 deletions

View File

@ -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"

View File

@ -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 <silvan.calarco@mambasoft.it> 3.7.2-2mamba
- fixed rundir in service files and provide directory /var/lib/ganglia
* Tue Dec 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.2-1mamba
- update to 3.7.2