wok-next view collectd/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 757d032c55c7
children d5aab818505e
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="erjo@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="collectd collectd-dev collectd-apache:apache collectd-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=$DESTDIR 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=$DESTDIR 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=$DESTDIR 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 }