wok-current annotate muninlite/receipt @ rev 12851

Up: libvlc-dev (2.0.1)
author Dominique Corbex <domcox@slitaz.org>
date Wed May 23 13:02:34 2012 +0200 (2012-05-23)
parents
children bb009a6ef036
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@11224 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11224 9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
pascal@11224 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11224 11
pascal@11224 12 BUILD_DEPENDS="perl"
pascal@11224 13
pascal@11224 14 # Rules to configure and make the package.
pascal@11224 15 compile_rules()
pascal@11224 16 {
pascal@11224 17 cd $src
pascal@11224 18 make
pascal@11224 19 }
pascal@11224 20
pascal@11224 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11224 22 genpkg_rules()
pascal@11224 23 {
pascal@11224 24 mkdir -p $fs/usr/bin
pascal@11224 25 cp -a $src/munin-node $fs/usr/bin
pascal@11224 26 }
pascal@11224 27
pascal@11224 28 # Pre and post install commands for Tazpkg.
pascal@11224 29 post_install()
pascal@11224 30 {
pascal@11224 31 grep -q 4949 $1/etc/services ||
pascal@11224 32 echo "munin 4949/tcp" >> $1/etc/services
pascal@11224 33 grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
pascal@11224 34 munin stream tcp nowait root /usr/bin/munin-node
pascal@11224 35 EOT
pascal@11224 36 echo "/etc/inetd.conf is up to date"
pascal@11224 37 }