wok-next view collectd/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 835b3b8ce6ac |
children | e73490c990e2 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="collectd"
4 VERSION="5.1.0"
5 CATEGORY="network"
6 SHORT_DESC="System Statistics Collection Daemon"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://collectd.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://collectd.org/files/$TARBALL"
14 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev perl curl-dev libxml2-dev"
15 SPLIT="$PACKAGE-dev $PACKAGE-apache:apache $PACKAGE-bind:bind"
17 compile_rules() {
18 case $SET in
19 '')
20 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' src/*.c configure*
22 ./configure \
23 --enable-interface \
24 --enable-load \
25 --enable-cpu \
26 --enable-disk \
27 --enable-logfile \
28 --enable-syslog \
29 --enable-csv\
30 --enable-rrdtool \
31 --with-librrdtool=/usr/include \
32 --disable-all-plugins \
33 --sysconfdir=/etc/collectd \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make &&
37 make DESTDIR=$install install || return 1
39 # Add init script and fixes
40 install -Dm755 $stuff/collectd $install/etc/init.d/collectd
41 chmod 0644 $install/etc/collectd/*
42 ;;
43 apache)
44 ./configure \
45 --enable-apache \
46 --disable-all-plugins \
47 --sysconfdir=/etc/collectd \
48 $CONFIGURE_ARGS &&
49 fix libtool &&
50 make &&
51 make DESTDIR=$install install
52 ;;
53 bind)
54 sed -i 's/ipt_error_target/ipt2_error_target/' src/libiptc/libiptc.c
56 ./configure \
57 --enable-bind \
58 --disable-all-plugins \
59 --sysconfdir=/etc/collectd \
60 $CONFIGURE_ARGS &&
61 fix libtool &&
62 make &&
63 make DESTDIR=$install install
64 ;;
65 esac
66 }
68 genpkg_rules() {
69 case $PACKAGE in
70 collectd)
71 copy @std
72 DEPENDS="rrdtool perl"
73 CONFIG_FILES="/etc/collectd/collectd.conf"
74 ;;
75 collectd-dev)
76 copy @dev
77 ;;
78 collectd-apache)
79 copy @std
80 DEPENDS="libcurl apache"
81 CAT="network|Apache plugin"
82 #CONFIG_FILES="/etc/collectd/collectd.conf"
83 ;;
84 collectd-bind)
85 copy bind.so*
86 DEPENDS="libcurl libxml2"
87 CAT="network|Bind plugin"
88 #CONFIG_FILES="/etc/collectd/collectd.conf"
89 ;;
90 esac
91 }