wok-6.x diff muninlite/receipt @ rev 12158

Up slitaz-tools (4.8)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 16:12:20 2012 +0100 (2012-03-17)
parents
children bb009a6ef036
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/muninlite/receipt	Sat Mar 17 16:12:20 2012 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="muninlite"
     1.7 +VERSION="1.0.4"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Simple Munin node."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +BUILD_DEPENDS="perl"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	make
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.25 +genpkg_rules()                                      
    1.26 +{
    1.27 +	mkdir -p $fs/usr/bin
    1.28 +	cp -a $src/munin-node $fs/usr/bin
    1.29 +}
    1.30 +
    1.31 +# Pre and post install commands for Tazpkg.
    1.32 +post_install()
    1.33 +{
    1.34 +	grep -q 4949 $1/etc/services ||
    1.35 +	echo "munin		4949/tcp" >> $1/etc/services
    1.36 +	grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    1.37 +munin   stream  tcp     nowait  root    /usr/bin/munin-node
    1.38 +EOT
    1.39 +	echo "/etc/inetd.conf is up to date"
    1.40 +}