wok view muninlite/receipt @ rev 12088

busybox: su should not chdir (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 10 09:31:50 2012 +0100 (2012-03-10)
parents
children bb009a6ef036
line source
1 # SliTaz package receipt.
3 PACKAGE="muninlite"
4 VERSION="1.0.4"
5 CATEGORY="network"
6 SHORT_DESC="Simple Munin node."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 BUILD_DEPENDS="perl"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 make
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin
25 cp -a $src/munin-node $fs/usr/bin
26 }
28 # Pre and post install commands for Tazpkg.
29 post_install()
30 {
31 grep -q 4949 $1/etc/services ||
32 echo "munin 4949/tcp" >> $1/etc/services
33 grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
34 munin stream tcp nowait root /usr/bin/munin-node
35 EOT
36 echo "/etc/inetd.conf is up to date"
37 }