wok-next annotate muninlite/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | 9e01bc6321ea |
children | d5aab818505e |
rev | line source |
---|---|
al@20481 | 1 # SliTaz package receipt v2. |
pascal@11224 | 2 |
pascal@11224 | 3 PACKAGE="muninlite" |
pascal@11224 | 4 VERSION="1.0.4" |
pascal@11224 | 5 CATEGORY="network" |
al@20481 | 6 SHORT_DESC="Simple Munin node" |
pascal@11224 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15583 | 8 LICENSE="GPL2" |
al@20481 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
al@20481 | 10 |
pascal@11224 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11224 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11224 | 13 |
pascal@11224 | 14 BUILD_DEPENDS="perl" |
pascal@11224 | 15 |
al@20481 | 16 compile_rules() { |
al@20481 | 17 make && |
al@20481 | 18 install -Dm 755 $src/munin-node $install/usr/bin/munin-node |
pascal@11224 | 19 } |
pascal@11224 | 20 |
al@20481 | 21 genpkg_rules() { |
al@20481 | 22 copy @std |
pascal@11224 | 23 } |
pascal@11224 | 24 |
al@20481 | 25 post_install() { |
pascal@18730 | 26 grep -q 4949 "$1/etc/services" || |
pascal@18730 | 27 echo "munin 4949/tcp" >> "$1/etc/services" |
pascal@18730 | 28 grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT |
pascal@11224 | 29 munin stream tcp nowait root /usr/bin/munin-node |
pascal@11224 | 30 EOT |
pascal@11224 | 31 echo "/etc/inetd.conf is up to date" |
pascal@11224 | 32 } |