wok-undigest view collectd/receipt @ rev 251
add mingw32-* from wok
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 28 18:09:06 2011 +0200 (2011-05-28) |
parents | |
children | 8eaa019fac26 |
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 ./configure \
20 --prefix=/usr \
21 --localstatedir=/var \
22 --enable-interface \
23 --enable-load \
24 --enable-cpu \
25 --enable-disk \
26 --enable-logfile \
27 --enable-syslog \
28 --enable-csv\
29 --enable-rrdtool \
30 --with-librrdtool=/usr/include \
31 --disable-all-plugins \
32 --sysconfdir=/etc/collectd \
33 --localstatedir=/var \
34 $CONFIGURE_ARGS &&
35 make && make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
42 mkdir -p $fs/usr/lib/collectd \
43 $fs/usr/share \
44 $fs/etc/init.d
47 cp -a $_pkg/etc $fs/
48 cp -a $_pkg/var $fs/
49 cp -a $_pkg/usr/share/collectd $fs/usr/share
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/sbin $fs/usr
52 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
53 cp -a $_pkg/usr/lib/collectd/*.so $fs/usr/lib/collectd
54 cp -a $_pkg/usr/lib/perl5 $fs/usr/lib
56 # Add init script and fixes
57 install -g root -o root -m 0755 stuff/collectd $fs/etc/init.d
58 chmod 0644 $fs/etc/collectd/*
59 }