wok-6.x annotate muninlite/receipt @ rev 22664
updated duviz (09032015 -> 1.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 17 09:29:55 2020 +0100 (2020-01-17) |
parents | bb009a6ef036 |
children | afae00265386 |
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@18730 | 32 grep -q 4949 "$1/etc/services" || |
pascal@18730 | 33 echo "munin 4949/tcp" >> "$1/etc/services" |
pascal@18730 | 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 } |