wok-next view collectd/receipt @ rev 20202

gst0-plugins-ugly: add cdio-cd-text-api patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 03 22:12:56 2017 +0100 (2017-11-03)
parents 408c87fa22ca
children 650b75e18a32
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"
15 SPLIT="collectd collectd-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --prefix=/usr \
22 --localstatedir=/var \
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 --localstatedir=/var \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 collectd)
44 DEPENDS="rrdtool perl"
45 mkdir -p $fs/usr/lib/collectd \
46 $fs/usr/share \
47 $fs/etc/init.d
49 cp -a $install/etc $fs/
50 cp -a $install/var $fs/
51 cp -a $install/usr/share/collectd $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/collectd/*.so $fs/usr/lib/collectd
56 cp -a $install/usr/lib/perl5 $fs/usr/lib
58 # Add init script and fixes
59 install -g root -o root -m 0755 $stuff/collectd $fs/etc/init.d
60 chmod 0644 $fs/etc/collectd/*
61 ;;
62 collectd-dev)
63 CAT="network|System Stattistics Collection Daemon"
64 DEPENDS="pkg-config"
65 mkdir -p $fs/usr/lib
66 cp -a $install/usr/include $fs/usr
67 cp -a $install/usr/lib/*.*a $fs/usr/lib
68 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
69 ;;
70 esac
71 }