]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - smartmontools/smartmontools.nm
smartmontools: Update to version 7.4-1
[people/pmueller/ipfire-3.x.git] / smartmontools / smartmontools.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = smartmontools
7 version = 7.4
8 release = 1
9
10 groups = System/Statistics
11 url = https://www.smartmontools.org
12 license = GPLv2
13 summary = A set of tools that watches HDD S.M.A.R.T status
14
15 description
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
21 and failure.
22 end
23
24 source_dl = https://sourceforge.net/projects/smartmontools/files/smartmontools/%{version}
25
26 build
27 requires
28 gcc-c++
29 libcap-ng-devel
30 systemd-devel
31 end
32
33 configure_options += \
34 --sysconfdir=%{sysconfdir}/%{name} \
35 --with-libcap-ng=yes \
36 --with-libsystemd \
37 --with-systemdsystemunitdir=%{unitdir}
38
39 test
40 make check
41 end
42 end
43
44 packages
45 package %{name}
46 configfiles
47 %{sysconfdir}/smartmontools/smartd.conf
48 end
49
50 prerequires
51 systemd-units
52 end
53
54 script postin
55 systemctl daemon-reload >/dev/null 2>&1 || :
56 end
57
58 script preun
59 systemctl --no-reload disable smartd.service >/dev/null 2>&1 || :
60 systemctl stop smartd.service >/dev/null 2>&1 || :
61 end
62
63 script postun
64 systemctl daemon-reload >/dev/null 2>&1 || :
65 end
66
67 script postup
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 systemctl try-restart smartd.service >/dev/null 2>&1 || :
70 end
71 end
72
73 package %{name}-debuginfo
74 template DEBUGINFO
75 end
76 end