1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Statistics
11 url = http://smartmontools.sourceforge.net/
13 summary = A set of tools that watches HDD S.M.A.R.T status.
16 The smartmontools package contains two utility programs (smartctl
17 and smartd) to control and monitor storage systems using the
18 Self-Monitoring, Analysis and Reporting Technology System (SMART)
19 built into most modern ATA and SCSI harddisks. In many cases,
20 these utilities will provide advanced warning of disk degradation
24 source_dl = http://sourceforge.net/projects/smartmontools/files/smartmontools/%{version}
32 configure_options += \
34 --sysconfdir=%{sysconfdir}/%{name} \
35 --with-libcap-ng=yes \
36 --with-systemdsystemunitdir=%{unitdir}
43 # Drop old sysvinit script.
44 rm -rvf %{BUILDROOT}/etc/rc.d
46 # Fix sysconfig path in systemd file.
47 sed -i 's|/etc/smartmontools/sysconfig|/etc/sysconfig|g' \
48 %{BUILDROOT}%{unitdir}/smartd.service
55 %{sysconfdir}/smartmontools/smartd.conf
63 systemctl daemon-reload >/dev/null 2>&1 || :
67 systemctl --no-reload disable smartd.service >/dev/null 2>&1 || :
68 systemctl stop smartd.service >/dev/null 2>&1 || :
72 systemctl daemon-reload >/dev/null 2>&1 || :
76 systemctl daemon-reload >/dev/null 2>&1 || :
77 systemctl try-restart smartd.service >/dev/null 2>&1 || :
81 package %{name}-debuginfo