wok-current view muninlite/receipt @ rev 25619

Use default gcc 6.3 for cifs-utils
author Stanislas Leduc <shann@slitaz.org>
date Sun Sep 03 20:04:11 2023 +0000 (14 months ago)
parents afae00265386
children
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="https://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="perl"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - 'https://sourceforge.net/projects/muninlite/files/muninlite - stable/' 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*stable/||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/munin-node $fs/usr/bin
35 }
37 # Pre and post install commands for Tazpkg.
38 post_install()
39 {
40 grep -q 4949 "$1/etc/services" ||
41 echo "munin 4949/tcp" >> "$1/etc/services"
42 grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
43 munin stream tcp nowait root /usr/bin/munin-node
44 EOT
45 echo "/etc/inetd.conf is up to date"
46 }