build gmetad
fix systemctl invocation [release 3.6.0-2mamba;Sat Feb 22 2014]
This commit is contained in:
parent
f54d41fda5
commit
252978238d
@ -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.
|
||||
|
||||
|
14
ganglia-3.6.0-missing-gmetad.service.in.patch
Normal file
14
ganglia-3.6.0-missing-gmetad.service.in.patch
Normal file
@ -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
|
14
ganglia-3.6.0-missing-gmond.service.in.patch
Normal file
14
ganglia-3.6.0-missing-gmond.service.in.patch
Normal file
@ -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
|
129
ganglia.spec
Normal file
129
ganglia.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||
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 <silvan.calarco@mambasoft.it> 3.6.0-2mamba
|
||||
- build gmetad
|
||||
- fix systemctl invocation
|
||||
|
||||
* Wed Nov 27 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.0-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user