wok view muninlite/receipt @ rev 20515

bluez: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 01 19:22:49 2018 +0100 (2018-11-01)
parents bb009a6ef036
children afae00265386
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="perl"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp -a $src/munin-node $fs/usr/bin
27 }
29 # Pre and post install commands for Tazpkg.
30 post_install()
31 {
32 grep -q 4949 "$1/etc/services" ||
33 echo "munin 4949/tcp" >> "$1/etc/services"
34 grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
35 munin stream tcp nowait root /usr/bin/munin-node
36 EOT
37 echo "/etc/inetd.conf is up to date"
38 }