wok-6.x annotate collectd-bind/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (18 months ago) |
parents | 2a0479881723 |
children |
rev | line source |
---|---|
pascal@11218 | 1 # SliTaz package receipt. |
pascal@11218 | 2 |
pascal@11218 | 3 PACKAGE="collectd-bind" |
pascal@11218 | 4 SOURCE="collectd" |
pascal@21220 | 5 VERSION="5.8.1" |
pascal@11218 | 6 CATEGORY="network" |
pascal@11218 | 7 SHORT_DESC="Apache plugin for Collectd" |
pascal@11218 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15579 | 9 LICENSE="GPL2" |
pascal@21229 | 10 WEB_SITE="http://collectd.org" |
pascal@21229 | 11 |
pascal@21229 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@25540 | 13 WGET_URL="https://collectd.org/files/$TARBALL" |
pascal@21229 | 14 #CONFIG_FILES="/etc/collectd/collectd.conf" |
pascal@21229 | 15 |
pascal@11218 | 16 DEPENDS="libcurl libxml2" |
pascal@11218 | 17 BUILD_DEPENDS="libcurl curl-dev libxml2 libxml2-dev" |
pascal@11218 | 18 |
pascal@24436 | 19 # What is the latest version available today? |
pascal@24436 | 20 current_version() |
pascal@24436 | 21 { |
pascal@24436 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24436 | 23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24436 | 24 } |
pascal@24436 | 25 |
pascal@11218 | 26 # Rules to configure and make the package. |
pascal@11218 | 27 compile_rules() |
pascal@11218 | 28 { |
pascal@11218 | 29 ./configure \ |
pascal@11218 | 30 --prefix=/usr \ |
pascal@11218 | 31 --localstatedir=/var \ |
pascal@11218 | 32 --enable-bind \ |
pascal@11218 | 33 --disable-all-plugins \ |
pascal@11218 | 34 --sysconfdir=/etc/collectd \ |
pascal@11218 | 35 $CONFIGURE_ARGS && |
pascal@21229 | 36 make && |
pascal@21229 | 37 make DESTDIR=$DESTDIR install |
pascal@11218 | 38 } |
pascal@11218 | 39 |
pascal@11218 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11218 | 41 genpkg_rules() |
pascal@11218 | 42 { |
pascal@11218 | 43 mkdir -p $fs/usr/lib/collectd |
pascal@15579 | 44 cp -a $install/usr/lib/collectd/bind.so* $fs/usr/lib/collectd |
pascal@11218 | 45 } |