wok-next annotate muninlite/receipt @ rev 17370

Add linux64-module-headers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 13:38:52 2014 +0100 (2014-11-21)
parents 1311ba9fe4bf
children 9e01bc6321ea
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@11224 15 # Rules to configure and make the package.
pascal@11224 16 compile_rules()
pascal@11224 17 {
pascal@11224 18 cd $src
pascal@11224 19 make
pascal@11224 20 }
pascal@11224 21
pascal@11224 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11224 23 genpkg_rules()
pascal@11224 24 {
pascal@11224 25 mkdir -p $fs/usr/bin
pascal@11224 26 cp -a $src/munin-node $fs/usr/bin
pascal@11224 27 }
pascal@11224 28
pascal@11224 29 # Pre and post install commands for Tazpkg.
pascal@11224 30 post_install()
pascal@11224 31 {
pascal@11224 32 grep -q 4949 $1/etc/services ||
pascal@11224 33 echo "munin 4949/tcp" >> $1/etc/services
pascal@11224 34 grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
pascal@11224 35 munin stream tcp nowait root /usr/bin/munin-node
pascal@11224 36 EOT
pascal@11224 37 echo "/etc/inetd.conf is up to date"
pascal@11224 38 }