wok-next annotate muninlite/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents b278b2018965
children
rev   line source
al@20481 1 # SliTaz package receipt v2.
pascal@11224 2
pascal@11224 3 PACKAGE="muninlite"
pascal@11224 4 VERSION="1.0.4"
pascal@11224 5 CATEGORY="network"
al@20481 6 SHORT_DESC="Simple Munin node"
pascal@11224 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://muninlite.sourceforge.net/"
al@20481 10
pascal@11224 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11224 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11224 13
pascal@11224 14 BUILD_DEPENDS="perl"
pascal@11224 15
al@20481 16 compile_rules() {
al@20481 17 make &&
al@21020 18 install -Dm755 $src/munin-node $install/usr/bin/munin-node
pascal@11224 19 }
pascal@11224 20
al@20481 21 genpkg_rules() {
al@20481 22 copy @std
pascal@11224 23 }
pascal@11224 24
al@20481 25 post_install() {
pascal@18730 26 grep -q 4949 "$1/etc/services" ||
pascal@18730 27 echo "munin 4949/tcp" >> "$1/etc/services"
pascal@18730 28 grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
pascal@11224 29 munin stream tcp nowait root /usr/bin/munin-node
pascal@11224 30 EOT
pascal@11224 31 echo "/etc/inetd.conf is up to date"
pascal@11224 32 }