wok-current view collectd/receipt @ rev 24429
updated collectd (5.10.0 -> 5.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 15:50:46 2022 +0100 (2022-02-12) |
parents | 466f9b8e7e27 |
children | 471c4bad5183 |
line source
1 # SliTaz package receipt.
3 PACKAGE="collectd"
4 VERSION="5.12.0"
5 CATEGORY="network"
6 SHORT_DESC="System Statistics Collection Daemon."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://collectd.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://collectd.org/files/$TARBALL"
14 DEPENDS="perl rrdtool"
15 BUILD_DEPENDS="rrdtool-dev slitaz-toolchain"
17 CONFIG_FILES="/etc/collectd/collectd.conf"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --prefix=/usr \
24 --localstatedir=/var \
25 --sysconfdir=/etc/collectd \
26 --enable-cpu \
27 --enable-csv \
28 --enable-disk \
29 --enable-interface \
30 --enable-load \
31 --enable-logfile \
32 --enable-rrdtool \
33 --enable-syslog \
34 --with-librrdtool=/usr/include \
35 --disable-all-plugins \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/collectd
45 mkdir -p $fs/usr/share
46 mkdir -p $fs/etc/init.d
48 cp -a $install/etc $fs
49 cp -a $install/usr/share/collectd $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/sbin $fs/usr
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd
54 cp -a $install/usr/lib/perl5 $fs/usr/lib
55 cp -a $install/var $fs
57 # Add init script and fixes
58 install -g root -o root -m 0755 $stuff/collectd \
59 $fs/etc/init.d
60 chmod 0644 $fs/etc/collectd/*
61 }