wok-6.x rev 13615
Up+fix: lm-sensors (3.3.3) Add kernel patch, linux-hwmon as dep (we need more i2c mods)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Nov 13 10:01:24 2012 +0100 (2012-11-13) |
parents | cdd889b7f8a7 |
children | 10b80db82747 |
files | lm-sensors-dev/receipt lm-sensors/receipt lm-sensors/stuff/linux-3.0.patch |
line diff
1.1 --- a/lm-sensors-dev/receipt Tue Nov 13 00:20:26 2012 +0100 1.2 +++ b/lm-sensors-dev/receipt Tue Nov 13 10:01:24 2012 +0100 1.3 @@ -2,7 +2,7 @@ 1.4 1.5 PACKAGE="lm-sensors-dev" 1.6 WANTED="lm-sensors" 1.7 -VERSION="3.3.0" 1.8 +VERSION="3.3.3" 1.9 CATEGORY="development" 1.10 SHORT_DESC="Linux hardware monitoring, development files." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -12,6 +12,6 @@ 1.13 genpkg_rules() 1.14 { 1.15 mkdir -p $fs/usr/lib 1.16 - cp -a $_pkg/usr/include $fs/usr 1.17 - cp -a $_pkg/usr/lib/*.a $fs/usr/lib 1.18 + cp -a $install/usr/include $fs/usr 1.19 + cp -a $install/usr/lib/*.a $fs/usr/lib 1.20 }
2.1 --- a/lm-sensors/receipt Tue Nov 13 00:20:26 2012 +0100 2.2 +++ b/lm-sensors/receipt Tue Nov 13 10:01:24 2012 +0100 2.3 @@ -2,31 +2,33 @@ 2.4 2.5 PACKAGE="lm-sensors" 2.6 SOURCE="lm_sensors" 2.7 -VERSION="3.3.0" 2.8 +VERSION="3.3.3" 2.9 CATEGORY="system-tools" 2.10 SHORT_DESC="Linux hardware monitoring." 2.11 MAINTAINER="pascal.bellard@slitaz.org" 2.12 TARBALL="$SOURCE-$VERSION.tar.bz2" 2.13 -DEPENDS="perl" 2.14 -BUILD_DEPENDS="bison flex rrdtool-dev" 2.15 SUGGESTED="rrdtool" 2.16 WEB_SITE="http://www.lm-sensors.org/" 2.17 WGET_URL="http://dl.lm-sensors.org/lm-sensors/releases/$TARBALL" 2.18 2.19 +DEPENDS="perl linux-hwmon" 2.20 +BUILD_DEPENDS="bison flex rrdtool-dev" 2.21 + 2.22 # Rules to configure and make the package. 2.23 compile_rules() 2.24 { 2.25 cd $src 2.26 - sed -i 's|/usr/local|/usr|' Makefile 2.27 - make && make DESTDIR=$PWD/_pkg install 2.28 + patch -p0 < $stuff/linux-3.0.patch && 2.29 + make PREFIX=/usr && 2.30 + make PREFIX=/usr PROG_EXTRA=sensord DESTDIR=$DESTDIR install 2.31 } 2.32 2.33 # Rules to gen a SliTaz package suitable for Tazpkg. 2.34 genpkg_rules() 2.35 { 2.36 mkdir -p $fs/usr/lib 2.37 - cp -a $_pkg/etc $fs 2.38 - cp -a $_pkg/usr/bin $fs/usr 2.39 - cp -a $_pkg/usr/sbin $fs/usr 2.40 - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 2.41 + cp -a $install/etc $fs 2.42 + cp -a $install/usr/bin $fs/usr 2.43 + cp -a $install/usr/sbin $fs/usr 2.44 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.45 }
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/lm-sensors/stuff/linux-3.0.patch Tue Nov 13 10:01:24 2012 +0100 3.3 @@ -0,0 +1,11 @@ 3.4 +--- prog/detect/sensors-detect 2011-08-02 10:23:46.000000000 +0200 3.5 ++++ prog/detect/sensors-detect 2011-08-02 10:24:04.000000000 +0200 3.6 +@@ -2472,7 +2472,7 @@ 3.7 + 3.8 + sub initialize_kernel_version 3.9 + { 3.10 +- `uname -r` =~ /(\d+)\.(\d+)\.(\d+)(.*)/; 3.11 ++ `uname -r` =~ /(\d+)\.(\d+)(.*)/; 3.12 + @kernel_version = ($1, $2, $3, $4); 3.13 + chomp($kernel_arch = `uname -m`); 3.14 +