wok-6.x annotate muninlite/receipt @ rev 24990

idesk: imlib2 >= 1.7.5 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 13 20:03:04 2022 +0000 (2022-05-13)
parents 9e01bc6321ea
children 7dd01dedad38
rev   line source
pascal@11224 1 # SliTaz package receipt.
pascal@11224 2
pascal@11224 3 PACKAGE="muninlite"
pascal@11224 4 VERSION="1.0.4"
pascal@11224 5 CATEGORY="network"
pascal@11224 6 SHORT_DESC="Simple Munin node."
pascal@11224 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
pascal@11224 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11224 10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
pascal@11224 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11224 12
pascal@11224 13 BUILD_DEPENDS="perl"
pascal@11224 14
pascal@24402 15 # What is the latest version available today?
pascal@24402 16 current_version()
pascal@24402 17 {
pascal@24402 18 wget -O - 'https://sourceforge.net/projects/muninlite/files/muninlite - stable/' 2>/dev/null | \
pascal@24402 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*stable/||;s|/.*||;q'
pascal@24402 21 }
pascal@24402 22
pascal@11224 23 # Rules to configure and make the package.
pascal@11224 24 compile_rules()
pascal@11224 25 {
pascal@11224 26 cd $src
pascal@11224 27 make
pascal@11224 28 }
pascal@11224 29
pascal@11224 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11224 31 genpkg_rules()
pascal@11224 32 {
pascal@11224 33 mkdir -p $fs/usr/bin
pascal@11224 34 cp -a $src/munin-node $fs/usr/bin
pascal@11224 35 }
pascal@11224 36
pascal@11224 37 # Pre and post install commands for Tazpkg.
pascal@11224 38 post_install()
pascal@11224 39 {
pascal@18730 40 grep -q 4949 "$1/etc/services" ||
pascal@18730 41 echo "munin 4949/tcp" >> "$1/etc/services"
pascal@18730 42 grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
pascal@11224 43 munin stream tcp nowait root /usr/bin/munin-node
pascal@11224 44 EOT
pascal@11224 45 echo "/etc/inetd.conf is up to date"
pascal@11224 46 }