wok annotate netdata/receipt @ rev 20037

Add netdata
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 24 17:42:58 2017 +0200 (2017-08-24)
parents
children 1e49fb3e5dd0
rev   line source
pascal@20037 1 # SliTaz package receipt.
pascal@20037 2
pascal@20037 3 PACKAGE="netdata"
pascal@20037 4 VERSION="1.7.0"
pascal@20037 5 CATEGORY="system-tools"
pascal@20037 6 SHORT_DESC="Real-time performance monitoring, done right"
pascal@20037 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20037 8 LICENSE="GPL3"
pascal@20037 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20037 10 WEB_SITE="https://my-netdata.io/"
pascal@20037 11 WGET_URL="https://github.com/firehol/netdata/releases/download/v$VERSION/$TARBALL"
pascal@20037 12 TAGS="monitoring"
pascal@20037 13 CONFIG_FILES="/etc/netdata"
pascal@20037 14
pascal@20037 15 DEPENDS="python-pyyaml util-linux-uuid zlib"
pascal@20037 16 BUILD_DEPENDS="pkg-config util-linux-uuid-dev"
pascal@20037 17 SUGGESTED="psycopg2 python-mysql lm-sensors curl node iproute2 gnu-netcat"
pascal@20037 18
pascal@20037 19 # Rules to configure and make the package.
pascal@20037 20 compile_rules()
pascal@20037 21 {
pascal@20037 22 ./configure --prefix=/usr \
pascal@20037 23 --sysconfdir=/etc \
pascal@20037 24 --localstatedir=/var \
pascal@20037 25 --with-zlib \
pascal@20037 26 --with-math \
pascal@20037 27 --with-user=netdata \
pascal@20037 28 $CONFIGURE_ARGS &&
pascal@20037 29 make &&
pascal@20037 30 make DESTDIR=$DESTDIR install
pascal@20037 31 }
pascal@20037 32
pascal@20037 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20037 34 genpkg_rules()
pascal@20037 35 {
pascal@20037 36 mkdir -p $install/usr/share/doc $fs/etc/logrotate.d $fs/etc/init.d
pascal@20037 37 cp $src/README* $install/usr/share/doc
pascal@20037 38 cp -a $install/* $fs/
pascal@20037 39 cp $src/system/netdata.conf $fs/etc/netdata
pascal@20037 40 cp $src/system/netdata.logrotate $fs/etc/logrotate.d/netdata
pascal@20037 41 ln -s daemon $fs/etc/init.d/netdata
pascal@20037 42 }