1 Star 0 Fork 0

glaye/hwcheck

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hwcheck.spec 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
gaoyongwei 提交于 2015-07-18 14:41 . fix typo
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/glaye/hwcheck.git
git@gitee.com:glaye/hwcheck.git
glaye
hwcheck
hwcheck
master

搜索帮助