wok-current annotate muninlite/receipt @ rev 25234

updated python-routes (2.4.1 -> 2.5.1)
author Hans-G?nter Theisgen
date Wed Jul 13 17:31:59 2022 +0100 (2022-07-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 }