wok-stable annotate collectd/receipt @ rev 12262
graphviz: remove librsvg depends. It break the package.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Apr 15 15:41:24 2012 +0200 (2012-04-15) |
parents | |
children |
rev | line source |
---|---|
pascal@11218 | 1 # SliTaz package receipt. |
pascal@11218 | 2 |
pascal@11218 | 3 PACKAGE="collectd" |
pascal@11218 | 4 VERSION="4.7.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 DEPENDS="rrdtool perl" |
pascal@11218 | 9 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev" |
pascal@11218 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11218 | 11 WEB_SITE="http://collectd.org" |
pascal@11218 | 12 WGET_URL="http://collectd.org/files/$TARBALL" |
pascal@11218 | 13 CONFIG_FILES="/etc/collectd/collectd.conf" |
pascal@11218 | 14 |
pascal@11218 | 15 # Rules to configure and make the package. |
pascal@11218 | 16 compile_rules() |
pascal@11218 | 17 { |
pascal@11218 | 18 cd $src |
pascal@11218 | 19 sed -i 's/ipt_error_target/ipt2_error_target/' src/libiptc/libiptc.c |
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@11218 | 36 make && make DESTDIR=$PWD/_pkg 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@11218 | 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 |