wok-next diff collectd/receipt @ rev 11932
lxpanel: Patch cpu plugin to get monochrome style
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 01 02:13:36 2012 +0100 (2012-03-01) |
parents | |
children | 59c4d2ad4e3f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/collectd/receipt Thu Mar 01 02:13:36 2012 +0100 1.3 @@ -0,0 +1,61 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="collectd" 1.7 +VERSION="4.7.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="System Stattistics Collection Daemon" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="rrdtool perl" 1.12 +BUILD_DEPENDS="slitaz-toolchain rrdtool-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://collectd.org" 1.15 +WGET_URL="http://collectd.org/files/$TARBALL" 1.16 +CONFIG_FILES="/etc/collectd/collectd.conf" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + sed -i 's/ipt_error_target/ipt2_error_target/' src/libiptc/libiptc.c 1.23 + ./configure \ 1.24 + --prefix=/usr \ 1.25 + --localstatedir=/var \ 1.26 + --enable-interface \ 1.27 + --enable-load \ 1.28 + --enable-cpu \ 1.29 + --enable-disk \ 1.30 + --enable-logfile \ 1.31 + --enable-syslog \ 1.32 + --enable-csv\ 1.33 + --enable-rrdtool \ 1.34 + --with-librrdtool=/usr/include \ 1.35 + --disable-all-plugins \ 1.36 + --sysconfdir=/etc/collectd \ 1.37 + --localstatedir=/var \ 1.38 + $CONFIGURE_ARGS && 1.39 + make && make DESTDIR=$PWD/_pkg install 1.40 +} 1.41 + 1.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 +genpkg_rules() 1.44 +{ 1.45 + 1.46 + mkdir -p $fs/usr/lib/collectd \ 1.47 + $fs/usr/share \ 1.48 + $fs/etc/init.d 1.49 + 1.50 + 1.51 + cp -a $_pkg/etc $fs/ 1.52 + cp -a $_pkg/var $fs/ 1.53 + cp -a $_pkg/usr/share/collectd $fs/usr/share 1.54 + cp -a $_pkg/usr/bin $fs/usr 1.55 + cp -a $_pkg/usr/sbin $fs/usr 1.56 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.57 + cp -a $_pkg/usr/lib/collectd/*.so $fs/usr/lib/collectd 1.58 + cp -a $_pkg/usr/lib/perl5 $fs/usr/lib 1.59 + 1.60 + # Add init script and fixes 1.61 + install -g root -o root -m 0755 stuff/collectd $fs/etc/init.d 1.62 + chmod 0644 $fs/etc/collectd/* 1.63 +} 1.64 +