2019-09-30 11:17:14 -04:00
|
|
|
Name: smartmontools
|
2022-08-08 16:52:04 +07:00
|
|
|
Version: 7.3
|
2020-07-16 20:06:12 +08:00
|
|
|
Release: 1
|
2019-09-30 11:17:14 -04:00
|
|
|
Epoch: 1
|
|
|
|
|
Summary: S.M.A.R.T. utility toolset
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://smartmontools.sourceforge.net/
|
|
|
|
|
|
2020-07-17 16:43:03 +08:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2020-01-17 16:16:18 +08:00
|
|
|
Source1: smartmontools.sysconf
|
2019-09-30 11:17:14 -04:00
|
|
|
|
|
|
|
|
BuildRequires: groff gcc-c++ automake
|
2020-07-17 16:43:03 +08:00
|
|
|
BuildRequires: libselinux-devel libcap-ng-devel systemd systemd-units systemd-devel
|
2019-09-30 11:17:14 -04:00
|
|
|
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
smartmontools contains utilities that control and monitor storage
|
|
|
|
|
devices using the Self-Monitoring, Analysis and Reporting Technology
|
|
|
|
|
(SMART) system build into ATA/SATA and SCSI/SAS hard drives and
|
|
|
|
|
solid-state drives. This is used to check the reliability of the
|
|
|
|
|
drive and to predict drive failures.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Including man files for smartmontools
|
|
|
|
|
Requires: man
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This contains man files for the using of smartmontools.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p2
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -i
|
2020-07-17 16:43:03 +08:00
|
|
|
%configure --with-selinux --with-libcap-ng=yes --with-libsystemd --with-systemdsystemunitdir=%{_unitdir} --sysconfdir=%{_sysconfdir}/%{name}/ --with-systemdenvfile=%{_sysconfdir}/sysconfig/%{name}
|
2019-09-30 11:17:14 -04:00
|
|
|
make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
|
|
|
|
|
2020-01-17 16:16:18 +08:00
|
|
|
sed -i 's|/etc/smartmontools/sysconfig|/etc/sysconfig|g' smartd.service
|
2019-09-30 11:17:14 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2020-01-17 16:16:18 +08:00
|
|
|
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/smartmontools
|
2019-09-30 11:17:14 -04:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/smartd_warning.d
|
|
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun smartd.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post smartd.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart smartd.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
|
%dir %{_sysconfdir}/%{name}/smartd_warning.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/smartd.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/smartd_warning.sh
|
2020-01-17 16:16:18 +08:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
2019-09-30 11:17:14 -04:00
|
|
|
%{_unitdir}/smartd.service
|
|
|
|
|
%{_sbindir}/{smartd,update-smart-drivedb,smartctl}
|
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
%{_sharedstatedir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man*/{smart*,update-smart*}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-08-08 16:52:04 +07:00
|
|
|
* Mon Aug 08 2022 hkgy <kaguyahatu@outlook.com> - 1:7.3-1
|
|
|
|
|
- update package to 7.3
|
|
|
|
|
|
2021-01-28 16:02:14 +08:00
|
|
|
* Thu Jan 14 2021 yanglongkang <yanglongkang@huawei.com> - 7.2-1
|
|
|
|
|
- update package to 7.2
|
|
|
|
|
|
2020-07-16 20:06:12 +08:00
|
|
|
* Thu Jul 16 2020 yanglongkang <yanglongkang@huawei.com> - 7.1-1
|
|
|
|
|
- update package to 7.1
|
|
|
|
|
|
2020-06-30 09:59:27 +08:00
|
|
|
* Tue Jun 30 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1:6.6-9
|
|
|
|
|
- renumber patches.
|
|
|
|
|
|
2020-01-17 16:16:18 +08:00
|
|
|
* Fri Jan 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:6.6-8
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add the "-q never" option while executing smartd command in smartd.service
|
|
|
|
|
|
2020-01-11 14:24:26 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:6.6-7
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Repackage
|
|
|
|
|
|
2019-09-30 11:17:14 -04:00
|
|
|
* Wed Aug 21 2019 zhanghaibo <ted.zhang@huawei.com> - 1:6.6-6
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2020-01-11 14:24:26 +08:00
|
|
|
- DESC:openEuler Debranding
|
2019-09-30 11:17:14 -04:00
|
|
|
|
|
|
|
|
* Wed Aug 21 2019 Su Weifeng <suweifeng1@huawei.com> - 1:6.6-5.h2
|
|
|
|
|
- Type:other
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:rename patches
|
|
|
|
|
|
|
|
|
|
* Thu Apr 18 2019 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 1:6.6-5.h1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:os_linux.cpp/os_netbsd.cpp: fix crash on --scan if WITH_NVME_DEVICESC is not set and '-d <type>' is not specified
|
|
|
|
|
ataprint.cpp: Fix detection of Device Statistics log with 256 sectors (#922)
|
|
|
|
|
drivedb.h: - Western Digital Red: WD80EZZX - USB: WD
|
|
|
|
|
update-smart-drivedb.in: Include configured PATH in help and error messages
|
|
|
|
|
os_linux.cpp: Add missing braces to 3ware SELinux code
|
|
|
|
|
drivedb.h: fix Innolite Satadom D150QV entry (#939)
|
|
|
|
|
os_freebsd.cpp: on error was setting set_nvme_err() to 1
|
|
|
|
|
os_linux.cpp: Fix device scan crash on missing /proc/devices
|
|
|
|
|
smartd.cpp: Always ignore failure of ATA SMART ENABLE command if
|
|
|
|
|
os_linux.cpp: Fix '-d megaraid' open crash on missing /proc/devices
|
|
|
|
|
os_darwin.cpp, os_freebsd.cpp: fix return value in error paths
|
|
|
|
|
ataprint.cpp: Fix Form Factor string with bits set in reserved area
|
|
|
|
|
- Package init
|