wok-current annotate collectd/receipt @ rev 24882
updated mc (4.8.24 -> 4.8.28)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 31 17:36:19 2022 +0100 (2022-03-31) |
parents | 471c4bad5183 |
children |
rev | line source |
---|---|
pascal@11218 | 1 # SliTaz package receipt. |
pascal@11218 | 2 |
pascal@11218 | 3 PACKAGE="collectd" |
Hans-G?nter@24429 | 4 VERSION="5.12.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" |
Hans-G?nter@24429 | 12 WGET_URL="https://collectd.org/files/$TARBALL" |
Hans-G?nter@22608 | 13 |
Hans-G?nter@24430 | 14 DEPENDS="flex 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@24433 | 19 # What is the latest version available today? |
pascal@24433 | 20 current_version() |
pascal@24433 | 21 { |
pascal@24433 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24433 | 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24433 | 24 } |
pascal@24433 | 25 |
pascal@11218 | 26 # Rules to configure and make the package. |
pascal@11218 | 27 compile_rules() |
pascal@11218 | 28 { |
Hans-G?nter@22608 | 29 ./configure \ |
Hans-G?nter@22608 | 30 --prefix=/usr \ |
Hans-G?nter@22608 | 31 --localstatedir=/var \ |
Hans-G?nter@24429 | 32 --sysconfdir=/etc/collectd \ |
Hans-G?nter@24429 | 33 --enable-cpu \ |
Hans-G?nter@24429 | 34 --enable-csv \ |
Hans-G?nter@24429 | 35 --enable-disk \ |
Hans-G?nter@22608 | 36 --enable-interface \ |
Hans-G?nter@22608 | 37 --enable-load \ |
Hans-G?nter@22608 | 38 --enable-logfile \ |
Hans-G?nter@24429 | 39 --enable-rrdtool \ |
Hans-G?nter@22608 | 40 --enable-syslog \ |
Hans-G?nter@22608 | 41 --with-librrdtool=/usr/include \ |
Hans-G?nter@22608 | 42 --disable-all-plugins \ |
pascal@11218 | 43 $CONFIGURE_ARGS && |
Hans-G?nter@20801 | 44 make && |
Hans-G?nter@20801 | 45 make DESTDIR=$DESTDIR install |
pascal@11218 | 46 } |
pascal@11218 | 47 |
pascal@11218 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11218 | 49 genpkg_rules() |
pascal@11218 | 50 { |
Hans-G?nter@22608 | 51 mkdir -p $fs/usr/lib/collectd |
Hans-G?nter@22608 | 52 mkdir -p $fs/usr/share |
Hans-G?nter@22608 | 53 mkdir -p $fs/etc/init.d |
Hans-G?nter@22608 | 54 |
Hans-G?nter@22608 | 55 cp -a $install/etc $fs |
Hans-G?nter@22608 | 56 cp -a $install/usr/share/collectd $fs/usr/share |
Hans-G?nter@22608 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22608 | 58 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22608 | 59 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22608 | 60 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd |
Hans-G?nter@22608 | 61 cp -a $install/usr/lib/perl5 $fs/usr/lib |
Hans-G?nter@24429 | 62 cp -a $install/var $fs |
Hans-G?nter@22608 | 63 |
pascal@11218 | 64 # Add init script and fixes |
Hans-G?nter@22608 | 65 install -g root -o root -m 0755 $stuff/collectd \ |
Hans-G?nter@22608 | 66 $fs/etc/init.d |
Hans-G?nter@22608 | 67 chmod 0644 $fs/etc/collectd/* |
pascal@11218 | 68 } |