wok-next view lm-sensors/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | e8c84b81fa04 |
children | f48456621a9d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lm-sensors"
4 VERSION="3.4.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux hardware monitoring"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/groeck/lm-sensors/issues/3"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lm_sensors.html"
12 TARBALL="lm_sensors-$VERSION.tar.bz2"
13 WGET_URL="https://ftp.gwdg.de/pub/linux/misc/lm-sensors/$TARBALL"
15 BUILD_DEPENDS="rrdtool-dev"
16 SPLIT="lm-sensors-dev"
18 compile_rules() {
19 sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/detect/sensors-detect
21 make \
22 PREFIX=/usr \
23 BUILD_STATIC_LIB=0 \
24 MANDIR=/usr/share/man \
25 DESTDIR=$install \
26 PROG_EXTRA=sensord \
27 install || return 1
29 cook_pick_docs README INSTALL doc/*
31 install -D -m755 "$stuff/healthd" "$install/usr/bin/healthd"
32 install -D -m644 "$stuff/healthd.conf" "$install/etc/healthd.conf"
33 install -D -m644 "$stuff/sensord.conf" "$install/etc/conf.d/sensord"
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 lm-sensors)
39 copy @std
40 DEPENDS="bash linux-hwmon perl rrdtool"
41 SUGGESTED="rrdtool"
42 ;;
43 *-dev)
44 copy @dev
45 ;;
46 esac
47 }