# $Id: smeserver-sysmon.spec,v 1.5 2022/08/15 10:54:52 trevorb Exp $ # Authority: slords # Name: Shad L. Lords Summary: sme server system monitor %define name smeserver-sysmon Name: %{name} %define version 6.5 %define release 4 Version: %{version} Release: %{release}%{?dist} License: Freely distributable Group: Service Source: %{name}-%{version}.tar.gz BuildRoot: /var/tmp/e-smith-buildroot BuildRequires: e-smith-devtools BuildArchitectures: noarch Requires: smeserver-release >= 10 Requires: sysstat >= 5 Requires: rrdtool >= 1.2 Requires: perl(RRDs) Requires: fping Requires: perl(File::Find::Rule) Requires: perl(File::Slurp) AutoReqProv: no Patch0: smeserver-sysmon-6.5-bz4449.patch Patch1: smeserver-sysmon-backup-12024.patch Patch2: smeserver-sysmon-systemd-11072.patch Patch3: smeserver-sysmon-remove-unecessary-50koozali-12191.patch %changelog * Wed Sep 21 2022 Trevor Batley 6.5-4.sme - remove superflous and incorrect references to 50koozali.conf [SME: 12191] * Mon Aug 15 2022 Trevor Batley 6.5-3.sme - add -U parameter to sadf call to enforce datetime type [SME: 11702] - alter sysmon service to use to use systemd [SME: 11072] - initial release to contribs10 * Sun Jul 31 2022 Trevor Batley 6.5-2.sme - add to backup [SME: 12024] * Fri Dec 27 2019 Jean-Philipe Pialasse 6.5-1.sme - fix utf8 error - fix ups not displaying [SME: 4449] - fix broken image when DS not all available for ups, fan, temperature and voltage graphs * Thu Jan 18 2018 John Crisp 6.4-6.sme - Fix database backups iunspec file [[SME: 7096]] * Mon Jan 15 2018 John Crisp 6.4-5.sme - Fix missing swap information [[SME: 10493]] - Remove unnecessary daemonising line * Thu Sep 24 2015 stephane de Labrusse 6.4-4.sme - Network labels have changed in rrdtools - Added smeserver-sysmon-6.4.change_rrd_network_label.patch * Thu Sep 24 2015 stephane de Labrusse 6.4-2.sme - Initial release to contribs9 * Wed Aug 15 2012 JP Pialasse 6.2-2.sme - patch for sysstats 7 and for 64 bit systems * Thu Aug 9 2012 Shad L. Lords 6.2-1.sme - Initial version %description System monitor for SME Server version 9 %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %build perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist echo "%doc COPYING" >> %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %pre if [ $1 -ge 1 ]; then /sbin/service sysmon stop &> /dev/null || : fi %post if [ $1 -ge 2 ]; then /sbin/service sysmon restart &> /dev/null || : fi %preun if [ $1 -eq 0 ]; then /sbin/service sysmon stop &> /dev/null || : fi %postun if [ $1 -ge 1 ]; then /sbin/service sysmon restart &> /dev/null || : fi %files -f %{name}-%{version}-filelist %defattr(-,root,root)