Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37039738
en ru br
ALT Linux repos
S:0.4.3-alt1
5.0: 0.3-alt6.15
4.1: 0.3-alt6.15
4.0: 0.3-alt5.15
3.0: 0.3-alt1.14

Group :: Monitoring
RPM: hddtemp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: hddtemp
Version: 0.4.3
Release: alt1
Epoch: 20110629

Summary: Hard Drive Temperature Monitoring

License: GPLv2+
Group: Monitoring
Url: https://github.com/vitlav/hddtemp

# Source-url: https://github.com/vitlav/hddtemp/archive/v%version.tar.gz

Source: %name-%version.tar

Source2: hddtemp.control
Source3: hddtemp.init
Source4: hddtemp.sysconfig
Source6: hddtemp.service

%description
hddtemp is a tool that gives you the temperature of your IDE, NVME,
SATA or SCSI hard drive by reading S.M.A.R.T. information.

%prep
%setup

%build
%autoreconf
%configure
%make_build

%install
install -pDm644 data/hddtemp.db %buildroot%_datadir/misc/hddtemp.db
install -pDm755 %SOURCE2 %buildroot%_controldir/hddtemp
install -pDm755 %SOURCE3 %buildroot%_initdir/hddtemp
install -pDm755 %SOURCE4 %buildroot%_sysconfdir/sysconfig/hddtemp
install -pDm644 %SOURCE6 %buildroot%_unitdir/hddtemp.service
install -d %buildroot%_man8dir

%makeinstall_std

%find_lang %name

%pre
%pre_control %name

%post
%post_service %name
%post_control -s wheelonly %name

%preun
%preun_service %name

%files -f %name.lang
%doc README TODO contribs
%_sbindir/hddtemp
%_initdir/hddtemp
%_unitdir/hddtemp.service
%_man8dir/*
%_datadir/misc/hddtemp.db
%config(noreplace) %_sysconfdir/control.d/facilities/hddtemp
%config(noreplace) %_sysconfdir/sysconfig/hddtemp

# TODO:

# - find someone to do privsep/chroot on hddtemp?

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin