wok-next view collectd/receipt @ rev 21726

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents e73490c990e2
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="collectd"
4 VERSION="5.10.0"
5 CATEGORY="network"
6 SHORT_DESC="System Statistics Collection Daemon"
7 MAINTAINER="maintainer@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 BUILD_DEPENDS="autoconf automake curl-dev libxml2-dev perl rrdtool-dev slitaz-toolchain"
15 SPLIT="$PACKAGE-dev $PACKAGE-apache:apache $PACKAGE-bind:bind"
17 compile_rules()
18 {
19 case $SET in
20 '')
21 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' src/*.c configure*
23 ./configure \
24 --enable-interface \
25 --enable-load \
26 --enable-cpu \
27 --enable-disk \
28 --enable-logfile \
29 --enable-syslog \
30 --enable-csv \
31 --enable-rrdtool \
32 --with-librrd=/usr/include \
33 --disable-all-plugins \
34 --sysconfdir=/etc/collectd \
35 $CONFIGURE_ARGS &&
36 fix libtool &&
37 make &&
38 make DESTDIR=$install install || return 1
40 # Add init script and fixes
41 install -Dm755 $stuff/collectd $install/etc/init.d/collectd
42 chmod 0644 $install/etc/collectd/*
43 ;;
44 apache)
45 ./configure \
46 --enable-apache \
47 --disable-all-plugins \
48 --sysconfdir=/etc/collectd \
49 $CONFIGURE_ARGS &&
50 fix libtool &&
51 make &&
52 make DESTDIR=$install install
53 ;;
54 bind)
55 sed -i 's/ipt_error_target/ipt2_error_target/' src/libiptc/libiptc.c
57 ./configure \
58 --enable-bind \
59 --disable-all-plugins \
60 --sysconfdir=/etc/collectd \
61 $CONFIGURE_ARGS &&
62 fix libtool &&
63 make &&
64 make DESTDIR=$install install
65 ;;
66 esac
67 }
69 genpkg_rules()
70 {
71 case $PACKAGE in
72 collectd)
73 copy @std
74 DEPENDS="perl rrdtool"
75 CONFIG_FILES="/etc/collectd/collectd.conf"
76 ;;
77 collectd-dev)
78 copy @dev
79 ;;
80 collectd-apache)
81 copy @std
82 DEPENDS="apache libcurl"
83 CAT="network|Apache plugin"
84 #CONFIG_FILES="/etc/collectd/collectd.conf"
85 ;;
86 collectd-bind)
87 copy bind.so*
88 DEPENDS="libcurl libxml2"
89 CAT="network|Bind plugin"
90 #CONFIG_FILES="/etc/collectd/collectd.conf"
91 ;;
92 esac
93 }