wok view mk-livestatus/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | e197a1539e2e |
children |
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"
10 WEB_SITE="https://github.com/tribe29/checkmk/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/tribe29/checkmk/archive/refs/tags/v$VERSION.tar.gz"
15 DEPENDS="nagios"
16 BUILD_DEPENDS="gcc83 nagios-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/tribe29/checkmk/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CC=gcc-83
29 export CXX=g++-83
31 ./configure &&
32 make -j1 &&
33 make -j1 install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 }
45 post_install()
46 {
47 # Modify nagios configuration
48 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
49 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
50 event_broker_options=-1
51 EOT
52 }