# HG changeset patch # User Pascal Bellard # Date 1298626399 -3600 # Node ID 34b95fc7d2cd6e73a0d53dee39e6effc8696f1dc # Parent 6355beac422f0dc2e9736c6012fa29d892de27be Add lm-sensors diff -r 6355beac422f -r 34b95fc7d2cd lm-sensors-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lm-sensors-dev/receipt Fri Feb 25 10:33:19 2011 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="lm-sensors-dev" +WANTED="lm-sensors" +VERSION="3.2.0" +CATEGORY="development" +SHORT_DESC="Linux hardware monitoring, development files." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.lm-sensors.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/*.a $fs/usr/lib +} diff -r 6355beac422f -r 34b95fc7d2cd lm-sensors/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lm-sensors/receipt Fri Feb 25 10:33:19 2011 +0100 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="lm-sensors" +SOURCE="lm_sensors" +VERSION="3.2.0" +CATEGORY="system-tools" +SHORT_DESC="Linux hardware monitoring." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$SOURCE-$VERSION.tar.bz2" +DEPENDS="perl" +BUILD_DEPENDS="bison flex rrdtool-dev" +SUGGESTED="rrdtool" +WEB_SITE="http://www.lm-sensors.org/" +WGET_URL="http://dl.lm-sensors.org/lm-sensors/releases/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i 's|/usr/local|/usr|' Makefile + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/etc $fs + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib +}