]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - smartmontools/smartmontools.nm
squid: Update to version 6.3-1
[people/pmueller/ipfire-3.x.git] / smartmontools / smartmontools.nm
CommitLineData
18ca76c1 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
18ca76c1
BS
4###############################################################################
5
802ea3af 6name = smartmontools
3112a0d0
AB
7version = 7.4
8release = 1
18ca76c1 9
802ea3af 10groups = System/Statistics
345961d2 11url = https://www.smartmontools.org
802ea3af 12license = GPLv2
345961d2 13summary = A set of tools that watches HDD S.M.A.R.T status
18ca76c1 14
802ea3af 15description
7dcf09a6
SS
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
18ca76c1 21 and failure.
802ea3af
MT
22end
23
345961d2 24source_dl = https://sourceforge.net/projects/smartmontools/files/smartmontools/%{version}
802ea3af
MT
25
26build
27 requires
28 gcc-c++
7dcf09a6 29 libcap-ng-devel
345961d2 30 systemd-devel
802ea3af
MT
31 end
32
33 configure_options += \
7dcf09a6
SS
34 --sysconfdir=%{sysconfdir}/%{name} \
35 --with-libcap-ng=yes \
345961d2 36 --with-libsystemd \
7dcf09a6
SS
37 --with-systemdsystemunitdir=%{unitdir}
38
39 test
40 make check
41 end
802ea3af
MT
42end
43
44packages
45 package %{name}
7dcf09a6
SS
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
802ea3af 71 end
1f9bc2f0
MT
72
73 package %{name}-debuginfo
74 template DEBUGINFO
75 end
802ea3af 76end