wok view collectd/receipt @ rev 15312
nss-ldapd: fix dirs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 27 15:47:37 2013 +0000 (2013-09-27) |
parents | 59c4d2ad4e3f |
children | e4f78af785ff |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://collectd.org"
11 WGET_URL="http://collectd.org/files/$TARBALL"
12 CONFIG_FILES="/etc/collectd/collectd.conf"
14 DEPENDS="rrdtool perl"
15 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --localstatedir=/var \
24 --enable-interface \
25 --enable-load \
26 --enable-cpu \
27 --enable-disk \
28 --enable-logfile \
29 --enable-syslog \
30 --enable-csv\
31 --enable-rrdtool \
32 --with-librrdtool=/usr/include \
33 --disable-all-plugins \
34 --sysconfdir=/etc/collectd \
35 --localstatedir=/var \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
44 mkdir -p $fs/usr/lib/collectd \
45 $fs/usr/share \
46 $fs/etc/init.d
49 cp -a $install/etc $fs/
50 cp -a $install/var $fs/
51 cp -a $install/usr/share/collectd $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd
56 cp -a $install/usr/lib/perl5 $fs/usr/lib
58 # Add init script and fixes
59 install -g root -o root -m 0755 $stuff/collectd $fs/etc/init.d
60 chmod 0644 $fs/etc/collectd/*
61 }