wok view mk-livestatus/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents 31d5564e5f6b
children e197a1539e2e
line source
1 # SliTaz package receipt.
3 PACKAGE="mk-livestatus"
4 VERSION="1.2.8p25"
5 CATEGORY="system-tools"
6 SHORT_DESC="Nagios status broker module."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mathias-kettner.de/cms_livestatus.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://mathias-kettner.de/download/$TARBALL"
14 DEPENDS="nagios"
15 BUILD_DEPENDS="gcc83 nagios-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/tribe29/checkmk/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 export CXX=g++-83
30 ./configure &&
31 make -j1 &&
32 make -j1 install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 }
44 post_install()
45 {
46 # Modify nagios configuration
47 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
48 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
49 event_broker_options=-1
50 EOT
51 }