wok annotate collectd-bind/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents a92b20152ab0
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@25651 5 VERSION="5.12.0"
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@25652 13 WGET_URL="https://github.com/collectd/collectd/releases/download/$SOURCE-$VERSION/$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@25674 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25674 23 sed '/rc[0-9]/d;/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;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 }