wok-6.x view collectd/receipt @ rev 23592
created recipe for python-pbr
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 08 11:05:31 2020 +0100 (2020-04-08) |
parents | e4f78af785ff |
children | fffdfda5962b |
line source
1 # SliTaz package receipt.
3 PACKAGE="collectd"
4 VERSION="5.10.0"
5 CATEGORY="network"
6 SHORT_DESC="System Statistics Collection Daemon."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://collectd.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://collectd.org/files/$TARBALL"
14 DEPENDS="perl rrdtool"
15 BUILD_DEPENDS="rrdtool-dev slitaz-toolchain"
17 CONFIG_FILES="/etc/collectd/collectd.conf"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --prefix=/usr \
24 --localstatedir=/var \
25 --enable-interface \
26 --enable-load \
27 --enable-cpu \
28 --enable-disk \
29 --enable-logfile \
30 --enable-syslog \
31 --enable-csv \
32 --enable-rrdtool \
33 --with-librrdtool=/usr/include \
34 --disable-all-plugins \
35 --sysconfdir=/etc/collectd \
36 --localstatedir=/var \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
46 mkdir -p $fs/usr/lib/collectd
47 mkdir -p $fs/usr/share
48 mkdir -p $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 \
61 $fs/etc/init.d
62 chmod 0644 $fs/etc/collectd/*
63 }