wok-6.x view collectd/receipt @ rev 12248
Up: tazweb (1.6.2)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 09 18:39:47 2012 +0200 (2012-04-09) |
parents | |
children | 59c4d2ad4e3f |
line source
1 # SliTaz package receipt.
3 PACKAGE="collectd"
4 VERSION="4.7.0"
5 CATEGORY="network"
6 SHORT_DESC="System Stattistics Collection Daemon"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="rrdtool perl"
9 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://collectd.org"
12 WGET_URL="http://collectd.org/files/$TARBALL"
13 CONFIG_FILES="/etc/collectd/collectd.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's/ipt_error_target/ipt2_error_target/' src/libiptc/libiptc.c
20 ./configure \
21 --prefix=/usr \
22 --localstatedir=/var \
23 --enable-interface \
24 --enable-load \
25 --enable-cpu \
26 --enable-disk \
27 --enable-logfile \
28 --enable-syslog \
29 --enable-csv\
30 --enable-rrdtool \
31 --with-librrdtool=/usr/include \
32 --disable-all-plugins \
33 --sysconfdir=/etc/collectd \
34 --localstatedir=/var \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
43 mkdir -p $fs/usr/lib/collectd \
44 $fs/usr/share \
45 $fs/etc/init.d
48 cp -a $_pkg/etc $fs/
49 cp -a $_pkg/var $fs/
50 cp -a $_pkg/usr/share/collectd $fs/usr/share
51 cp -a $_pkg/usr/bin $fs/usr
52 cp -a $_pkg/usr/sbin $fs/usr
53 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
54 cp -a $_pkg/usr/lib/collectd/*.so $fs/usr/lib/collectd
55 cp -a $_pkg/usr/lib/perl5 $fs/usr/lib
57 # Add init script and fixes
58 install -g root -o root -m 0755 stuff/collectd $fs/etc/init.d
59 chmod 0644 $fs/etc/collectd/*
60 }