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