wok-6.x annotate collectd/receipt @ rev 21122
fbida: jpeg 9 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 20 11:08:01 2019 +0100 (2019-03-20) |
parents | 408c87fa22ca |
children | 466f9b8e7e27 |
rev | line source |
---|---|
pascal@11218 | 1 # SliTaz package receipt. |
pascal@11218 | 2 |
pascal@11218 | 3 PACKAGE="collectd" |
Hans-G?nter@20801 | 4 VERSION="5.8.1" |
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 WEB_SITE="http://collectd.org" |
Hans-G?nter@20801 | 10 |
Hans-G?nter@20801 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@11218 | 12 WGET_URL="http://collectd.org/files/$TARBALL" |
pascal@11218 | 13 CONFIG_FILES="/etc/collectd/collectd.conf" |
pascal@11218 | 14 |
pascal@13207 | 15 DEPENDS="rrdtool perl" |
pascal@13207 | 16 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev" |
pascal@13207 | 17 |
pascal@11218 | 18 # Rules to configure and make the package. |
pascal@11218 | 19 compile_rules() |
pascal@11218 | 20 { |
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 && |
Hans-G?nter@20801 | 37 make && |
Hans-G?nter@20801 | 38 make DESTDIR=$DESTDIR install |
pascal@11218 | 39 } |
pascal@11218 | 40 |
pascal@11218 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11218 | 42 genpkg_rules() |
pascal@11218 | 43 { |
pascal@11218 | 44 |
pascal@11218 | 45 mkdir -p $fs/usr/lib/collectd \ |
pascal@11218 | 46 $fs/usr/share \ |
pascal@11218 | 47 $fs/etc/init.d |
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 } |