wok view collectd/receipt @ rev 24590
syslinux: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 28 14:39:39 2022 +0000 (2022-02-28) |
parents | 471c4bad5183 |
children | 0a9d0d18ca64 |
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="flex perl rrdtool"
15 BUILD_DEPENDS="rrdtool-dev slitaz-toolchain"
17 CONFIG_FILES="/etc/collectd/collectd.conf"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --localstatedir=/var \
32 --sysconfdir=/etc/collectd \
33 --enable-cpu \
34 --enable-csv \
35 --enable-disk \
36 --enable-interface \
37 --enable-load \
38 --enable-logfile \
39 --enable-rrdtool \
40 --enable-syslog \
41 --with-librrdtool=/usr/include \
42 --disable-all-plugins \
43 $CONFIGURE_ARGS &&
44 make &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib/collectd
52 mkdir -p $fs/usr/share
53 mkdir -p $fs/etc/init.d
55 cp -a $install/etc $fs
56 cp -a $install/usr/share/collectd $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/sbin $fs/usr
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd
61 cp -a $install/usr/lib/perl5 $fs/usr/lib
62 cp -a $install/var $fs
64 # Add init script and fixes
65 install -g root -o root -m 0755 $stuff/collectd \
66 $fs/etc/init.d
67 chmod 0644 $fs/etc/collectd/*
68 }