wok-next view collectd/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | 9600efd55009 |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="collectd"
4 VERSION="5.1.0"
5 CATEGORY="network"
6 SHORT_DESC="System Stattistics Collection Daemon"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://collectd.org"
11 WGET_URL="http://collectd.org/files/$TARBALL"
12 CONFIG_FILES="/etc/collectd/collectd.conf"
14 BUILD_DEPENDS="slitaz-toolchain rrdtool-dev perl"
15 SPLIT="collectd collectd-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|_BSD_SOURCE|_DEFAULT_SOURCE|' src/*.c configure*
21 ./configure \
22 --prefix=/usr \
23 --localstatedir=/var \
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-librrdtool=/usr/include \
33 --disable-all-plugins \
34 --sysconfdir=/etc/collectd \
35 --localstatedir=/var \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 collectd)
45 DEPENDS="rrdtool perl"
46 mkdir -p $fs/usr/lib/collectd \
47 $fs/usr/share \
48 $fs/etc/init.d
50 cp -a $install/etc $fs/
51 cp -a $install/var $fs/
52 cp -a $install/usr/share/collectd $fs/usr/share
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd
57 cp -a $install/usr/lib/perl5 $fs/usr/lib
59 # Add init script and fixes
60 install -g root -o root -m 0755 $stuff/collectd $fs/etc/init.d
61 chmod 0644 $fs/etc/collectd/*
62 ;;
63 collectd-dev)
64 CAT="network|System Stattistics Collection Daemon"
65 DEPENDS="pkg-config"
66 mkdir -p $fs/usr/lib
67 cp -a $install/usr/include $fs/usr
68 cp -a $install/usr/lib/*.*a $fs/usr/lib
69 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
70 ;;
71 esac
72 }