代码拉取完成,页面将自动刷新
Name: hwcheck
Version: 0.2
Release: 2%{?dist}
Summary: Scirpts for hardware info check and monitor
Group: Applications/System
License: Apache
URL: http://git.51web.net/os/hwcheck
Source0: hwcheck-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: python
Requires: srvadmin-omacore, srvadmin-omcommon, srvadmin-storage-cli, smbios-utils-bin, lm_sensors, dmidecode, cronie
%description
Provides scripts for server hardware infomation gathering and monitoring,just
support DELL server now.
%prep
%setup -q
%build
rm -f *.swp
rm -f *.pyc
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}/cron.d
install -pm 755 hwcheck %{buildroot}%{_bindir}/hwcheck
install -pm 755 hwinfo %{buildroot}%{_bindir}/hwinfo
install -pm 644 hwcheck.cron %{buildroot}%{_sysconfdir}/cron.d/hwcheck
%post
if /usr/sbin/dmidecode | grep -iq 'kvm'; then
/opt/dell/srvadmin/sbin/srvadmin-services.sh disable >/dev/null
else
/opt/dell/srvadmin/sbin/srvadmin-services.sh enable >/dev/null
/opt/dell/srvadmin/sbin/srvadmin-services.sh restart >/dev/null
echo yes|/usr/sbin/sensors-detect >/dev/null
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/hwcheck
%{_bindir}/hwinfo
%{_sysconfdir}/cron.d/hwcheck
%changelog
* Sat Jul 18 2015 Gaoyongwei <gaoyongwei@51web.com> - 0.2-2
- rebuilt
* Fri Jul 17 2015 Gaoyongwei <gaoyongwei@51web.com> - 0.2-1
- Update to version 0.2,support open-falcon agent
* Fri Jun 19 2015 Gaoyongwei <gaoyongwei@51web.com> - 0.1-1
- First release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。