wok view collectd/receipt @ rev 13320

postgresql: add perl & python support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 31 13:28:08 2012 +0200 (2012-08-31)
parents 55d75f0e3533
children 408c87fa22ca
line source
1 # SliTaz package receipt.
3 PACKAGE="collectd"
4 VERSION="5.1.0"
5 CATEGORY="network"
6 SHORT_DESC="System Stattistics Collection Daemon"
7 MAINTAINER="erjo@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://collectd.org"
10 WGET_URL="http://collectd.org/files/$TARBALL"
11 CONFIG_FILES="/etc/collectd/collectd.conf"
13 DEPENDS="rrdtool perl"
14 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
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=$DESTDIR 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 }