wok-6.x annotate collectd/receipt @ rev 23188
updated motion (4.2.2 -> 4.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 20 08:50:20 2020 +0100 (2020-03-20) |
parents | e4f78af785ff |
children | fffdfda5962b |
rev | line source |
---|---|
pascal@11218 | 1 # SliTaz package receipt. |
pascal@11218 | 2 |
pascal@11218 | 3 PACKAGE="collectd" |
Hans-G?nter@22608 | 4 VERSION="5.10.0" |
pascal@11218 | 5 CATEGORY="network" |
Hans-G?nter@22608 | 6 SHORT_DESC="System Statistics Collection Daemon." |
pascal@11218 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
Hans-G?nter@22608 | 9 WEB_SITE="https://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" |
Hans-G?nter@22608 | 13 |
Hans-G?nter@22608 | 14 DEPENDS="perl rrdtool" |
Hans-G?nter@22608 | 15 BUILD_DEPENDS="rrdtool-dev slitaz-toolchain" |
Hans-G?nter@22608 | 16 |
pascal@11218 | 17 CONFIG_FILES="/etc/collectd/collectd.conf" |
pascal@11218 | 18 |
pascal@11218 | 19 # Rules to configure and make the package. |
pascal@11218 | 20 compile_rules() |
pascal@11218 | 21 { |
Hans-G?nter@22608 | 22 ./configure \ |
Hans-G?nter@22608 | 23 --prefix=/usr \ |
Hans-G?nter@22608 | 24 --localstatedir=/var \ |
Hans-G?nter@22608 | 25 --enable-interface \ |
Hans-G?nter@22608 | 26 --enable-load \ |
Hans-G?nter@22608 | 27 --enable-cpu \ |
Hans-G?nter@22608 | 28 --enable-disk \ |
Hans-G?nter@22608 | 29 --enable-logfile \ |
Hans-G?nter@22608 | 30 --enable-syslog \ |
Hans-G?nter@22608 | 31 --enable-csv \ |
Hans-G?nter@22608 | 32 --enable-rrdtool \ |
Hans-G?nter@22608 | 33 --with-librrdtool=/usr/include \ |
Hans-G?nter@22608 | 34 --disable-all-plugins \ |
Hans-G?nter@22608 | 35 --sysconfdir=/etc/collectd \ |
Hans-G?nter@22608 | 36 --localstatedir=/var \ |
pascal@11218 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@20801 | 38 make && |
Hans-G?nter@20801 | 39 make DESTDIR=$DESTDIR install |
pascal@11218 | 40 } |
pascal@11218 | 41 |
pascal@11218 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11218 | 43 genpkg_rules() |
pascal@11218 | 44 { |
pascal@11218 | 45 |
Hans-G?nter@22608 | 46 mkdir -p $fs/usr/lib/collectd |
Hans-G?nter@22608 | 47 mkdir -p $fs/usr/share |
Hans-G?nter@22608 | 48 mkdir -p $fs/etc/init.d |
Hans-G?nter@22608 | 49 |
Hans-G?nter@22608 | 50 cp -a $install/etc $fs |
Hans-G?nter@22608 | 51 cp -a $install/var $fs |
Hans-G?nter@22608 | 52 cp -a $install/usr/share/collectd $fs/usr/share |
Hans-G?nter@22608 | 53 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22608 | 54 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22608 | 55 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22608 | 56 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd |
Hans-G?nter@22608 | 57 cp -a $install/usr/lib/perl5 $fs/usr/lib |
Hans-G?nter@22608 | 58 |
pascal@11218 | 59 # Add init script and fixes |
Hans-G?nter@22608 | 60 install -g root -o root -m 0755 $stuff/collectd \ |
Hans-G?nter@22608 | 61 $fs/etc/init.d |
Hans-G?nter@22608 | 62 chmod 0644 $fs/etc/collectd/* |
pascal@11218 | 63 } |