wok-6.x annotate netdata/receipt @ rev 25324
updated squid, squid-auth-helpers and squid-langpack (3.4.2 -> 5.6)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 17:10:45 2022 +0100 (2022-07-22) |
parents | ac8ca9758df1 |
children |
rev | line source |
---|---|
pascal@20037 | 1 # SliTaz package receipt. |
pascal@20037 | 2 |
pascal@20037 | 3 PACKAGE="netdata" |
pascal@20529 | 4 VERSION="1.11.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@20529 | 9 TARBALL="$PACKAGE-v$VERSION.tar.gz" |
pascal@20037 | 10 WEB_SITE="https://my-netdata.io/" |
pascal@20529 | 11 WGET_URL="https://github.com/netdata/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@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24340 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@20037 | 25 # Rules to configure and make the package. |
pascal@20037 | 26 compile_rules() |
pascal@20037 | 27 { |
pascal@20037 | 28 ./configure --prefix=/usr \ |
pascal@20037 | 29 --sysconfdir=/etc \ |
pascal@20037 | 30 --localstatedir=/var \ |
pascal@20037 | 31 --with-zlib \ |
pascal@20037 | 32 --with-math \ |
pascal@20037 | 33 --with-user=netdata \ |
pascal@20037 | 34 $CONFIGURE_ARGS && |
pascal@20037 | 35 make && |
pascal@20037 | 36 make DESTDIR=$DESTDIR install |
pascal@20037 | 37 } |
pascal@20037 | 38 |
pascal@20037 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20037 | 40 genpkg_rules() |
pascal@20037 | 41 { |
pascal@20037 | 42 mkdir -p $install/usr/share/doc $fs/etc/logrotate.d $fs/etc/init.d |
pascal@20037 | 43 cp $src/README* $install/usr/share/doc |
pascal@20037 | 44 cp -a $install/* $fs/ |
pascal@20037 | 45 cp $src/system/netdata.conf $fs/etc/netdata |
pascal@20037 | 46 cp $src/system/netdata.logrotate $fs/etc/logrotate.d/netdata |
pascal@20037 | 47 ln -s daemon $fs/etc/init.d/netdata |
pascal@20037 | 48 } |