# TODO
# - unpackaged:
-# /usr/sbin/fancontrol.pl
+# /usr/sbin/fancontrol.pl (isn't that the same as sh fancontrol script?)
+# - add fancontrol(d) subpackage
+# - update and use fancontrol.init
+# - a big trigger warning how to use fancontrol and to init it first
#
%include /usr/lib/rpm/macros.perl
Summary: Hardware health monitoring
# Source0-md5: cdc857b78e813b88cbf8be92441aa299
Source1: sensors.init
Source2: sensors.sysconfig
+Source3: fancontrol.init
Patch0: %{name}-make.patch
Patch1: %{name}-ppc.patch
Patch2: %{name}-iconv-in-libc.patch
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -I../../kernel/include"
+# PLD-ize fancontrol
+%{__sed} -i -e "s@/etc/fancontrol@%{_sysconfdir}/sysconfig/fancontrol@g" prog/pwm/fancontrol
+%{__sed} -i -e "s@/etc/fancontrol@%{_sysconfdir}/sysconfig/fancontrol@g" prog/pwm/pwmconfig
+
%install
rm -rf $RPM_BUILD_ROOT