wok-next diff lm-sensors/receipt @ rev 20616

xrdp: up 0.9.3.1; zopfli: fix build; gcc61: attempt to fix; add gcc6 (latest among 6.x.x).
gcc61 and gcc6 are broken now.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 21 05:15:11 2018 +0300 (2018-04-21)
parents e8c84b81fa04
children f48456621a9d
line diff
     1.1 --- a/lm-sensors/receipt	Wed Jul 06 12:08:46 2016 +0200
     1.2 +++ b/lm-sensors/receipt	Sat Apr 21 05:15:11 2018 +0300
     1.3 @@ -1,35 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="lm-sensors"
     1.8 -SOURCE="lm_sensors"
     1.9 -VERSION="3.3.3"
    1.10 +VERSION="3.4.0"
    1.11  CATEGORY="system-tools"
    1.12 -SHORT_DESC="Linux hardware monitoring."
    1.13 +SHORT_DESC="Linux hardware monitoring"
    1.14  MAINTAINER="pascal.bellard@slitaz.org"
    1.15  LICENSE="GPL2"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.17 -SUGGESTED="rrdtool"
    1.18 -WEB_SITE="http://www.lm-sensors.org/"
    1.19 -WGET_URL="http://dl.lm-sensors.org/lm-sensors/releases/$TARBALL"
    1.20 +WEB_SITE="https://github.com/groeck/lm-sensors/issues/3"
    1.21 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lm_sensors.html"
    1.22  
    1.23 -DEPENDS="perl linux-hwmon"
    1.24 -BUILD_DEPENDS="bison flex rrdtool-dev"
    1.25 +TARBALL="lm_sensors-$VERSION.tar.bz2"
    1.26 +WGET_URL="https://ftp.gwdg.de/pub/linux/misc/lm-sensors/$TARBALL"
    1.27  
    1.28 -# Rules to configure and make the package.
    1.29 -compile_rules()
    1.30 -{
    1.31 -	sed -i 's|/man|/share&|' Makefile
    1.32 -	patch -p0 < $stuff/linux-3.0.patch &&
    1.33 -	make PREFIX=/usr PROG_EXTRA=sensord DESTDIR=$DESTDIR install 2>&1 | \
    1.34 -	sed 's/d: No such file/d: no such file/'
    1.35 +BUILD_DEPENDS="rrdtool-dev"
    1.36 +SPLIT="lm-sensors-dev"
    1.37 +
    1.38 +compile_rules() {
    1.39 +	sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/detect/sensors-detect
    1.40 +
    1.41 +	make \
    1.42 +		PREFIX=/usr \
    1.43 +		BUILD_STATIC_LIB=0 \
    1.44 +		MANDIR=/usr/share/man \
    1.45 +		DESTDIR=$install \
    1.46 +		PROG_EXTRA=sensord \
    1.47 +		install || return 1
    1.48 +
    1.49 +	cook_pick_docs README INSTALL doc/*
    1.50 +
    1.51 +	install -D -m755 "$stuff/healthd"      "$install/usr/bin/healthd"
    1.52 +	install -D -m644 "$stuff/healthd.conf" "$install/etc/healthd.conf"
    1.53 +	install -D -m644 "$stuff/sensord.conf" "$install/etc/conf.d/sensord"
    1.54  }
    1.55  
    1.56 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.57 -genpkg_rules()
    1.58 -{
    1.59 -	mkdir -p $fs/usr/lib
    1.60 -	cp -a $install/etc $fs
    1.61 -	cp -a $install/usr/bin $fs/usr
    1.62 -	cp -a $install/usr/sbin $fs/usr
    1.63 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.64 +genpkg_rules() {
    1.65 +	case $PACKAGE in
    1.66 +		lm-sensors)
    1.67 +			copy @std
    1.68 +			DEPENDS="bash linux-hwmon perl rrdtool"
    1.69 +			SUGGESTED="rrdtool"
    1.70 +			;;
    1.71 +		*-dev)
    1.72 +			copy @dev
    1.73 +			;;
    1.74 +	esac
    1.75  }