wok annotate collectd/receipt @ rev 13207

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