From 41acfb9ada63b7bb894514afc53465b37f8b46a8 Mon Sep 17 00:00:00 2001 From: AlmaLinux RelEng Bot Date: Mon, 30 Mar 2026 11:05:07 -0400 Subject: [PATCH] import CS smartmontools-7.2-10.el9 --- SOURCES/smartmontools.tmpfilesd | 3 +++ SPECS/smartmontools.spec | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 SOURCES/smartmontools.tmpfilesd diff --git a/SOURCES/smartmontools.tmpfilesd b/SOURCES/smartmontools.tmpfilesd new file mode 100644 index 0000000..ee5f117 --- /dev/null +++ b/SOURCES/smartmontools.tmpfilesd @@ -0,0 +1,3 @@ +d /var/lib/smartmontools 0755 root root - - + + diff --git a/SPECS/smartmontools.spec b/SPECS/smartmontools.spec index f954493..9475ee3 100644 --- a/SPECS/smartmontools.spec +++ b/SPECS/smartmontools.spec @@ -1,7 +1,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 7.2 -Release: 9%{?dist} +Release: 10%{?dist} Epoch: 1 License: GPLv2+ URL: http://smartmontools.sourceforge.net/ @@ -11,6 +11,7 @@ Source4: smartdnotify #semi-automatic update of drivedb.h %global UrlSource5 https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw Source5: drivedb.h +Source9: smartmontools.tmpfilesd #fedora/rhel specific Patch1: smartmontools-5.38-defaultconf.patch @@ -28,6 +29,8 @@ BuildRequires: make BuildRequires: gcc-c++ readline-devel ncurses-devel automake util-linux groff gettext BuildRequires: libselinux-devel libcap-ng-devel BuildRequires: systemd systemd-devel +# For the _tmpfilesdir macro. +BuildRequires: systemd-rpm-macros %{?systemd_requires} %description @@ -67,6 +70,7 @@ chmod a-x -R examplescripts/* install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/smartmontools install -D -p -m 755 %{SOURCE4} $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/smartdnotify mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smartd_warning.d +install -p -D -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf rm -rf $RPM_BUILD_ROOT/etc/{rc.d,init.d} rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} @@ -93,6 +97,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} %{_sbindir}/smartd %{_sbindir}/update-smart-drivedb %{_sbindir}/smartctl +%{_tmpfilesdir}/%{name}.conf %{_mandir}/man?/smart*.* %{_mandir}/man?/update-smart*.* %{_libexecdir}/%{name} @@ -100,6 +105,9 @@ mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} %{_sharedstatedir}/%{name} %changelog +* Mon Dec 08 2025 Michal Hlavinka - 1:7.2-10 +- use tmpfiles.d to create /var/lib/smartmontools (RHEL-132500) + * Tue Jan 16 2024 Michal Hlavinka - 1:7.2-9 - smartd would not start with huge FD limits (#RHEL-15505)