wok annotate mk-livestatus/receipt @ rev 25407
updated wayland and wayland-dev (1.4.0 -> 1.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Aug 03 16:34:53 2022 +0100 (2022-08-03) |
parents | e197a1539e2e |
children |
rev | line source |
---|---|
erjo@8698 | 1 # SliTaz package receipt. |
erjo@8698 | 2 |
erjo@8698 | 3 PACKAGE="mk-livestatus" |
Hans-G?nter@21448 | 4 VERSION="1.2.8p25" |
erjo@8698 | 5 CATEGORY="system-tools" |
Hans-G?nter@21448 | 6 SHORT_DESC="Nagios status broker module." |
erjo@8698 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15611 | 8 LICENSE="GPL2" |
pascal@24954 | 9 #WEB_SITE="https://mathias-kettner.de/cms_livestatus.html" |
pascal@24954 | 10 WEB_SITE="https://github.com/tribe29/checkmk/" |
Hans-G?nter@21448 | 11 |
erjo@8698 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24980 | 13 WGET_URL="https://github.com/tribe29/checkmk/archive/refs/tags/v$VERSION.tar.gz" |
erjo@8698 | 14 |
pascal@15611 | 15 DEPENDS="nagios" |
Hans-G?nter@21453 | 16 BUILD_DEPENDS="gcc83 nagios-dev" |
pascal@15611 | 17 |
pascal@24497 | 18 # What is the latest version available today? |
pascal@24497 | 19 current_version() |
pascal@24497 | 20 { |
pascal@24497 | 21 wget -O - https://github.com/tribe29/checkmk/tags 2>/dev/null | \ |
pascal@24497 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24497 | 23 } |
pascal@24497 | 24 |
erjo@8698 | 25 # Rules to configure and make the package. |
erjo@8698 | 26 compile_rules() |
erjo@8698 | 27 { |
Hans-G?nter@21461 | 28 export CC=gcc-83 |
Hans-G?nter@21461 | 29 export CXX=g++-83 |
Hans-G?nter@21448 | 30 |
pascal@14465 | 31 ./configure && |
Hans-G?nter@21448 | 32 make -j1 && |
Hans-G?nter@21448 | 33 make -j1 install |
erjo@8698 | 34 } |
erjo@8698 | 35 |
erjo@8698 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8698 | 37 genpkg_rules() |
erjo@8698 | 38 { |
erjo@8698 | 39 mkdir -p $fs/usr |
Hans-G?nter@21448 | 40 |
Hans-G?nter@21448 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21448 | 42 cp -a $install/usr/lib $fs/usr |
erjo@8698 | 43 } |
erjo@8698 | 44 |
erjo@8698 | 45 post_install() |
erjo@8698 | 46 { |
Hans-G?nter@21448 | 47 # Modify nagios configuration |
al@18741 | 48 cat >> "$1/etc/nagios/nagios.cfg" <<EOT |
erjo@8698 | 49 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live |
erjo@8698 | 50 event_broker_options=-1 |
erjo@8698 | 51 EOT |
erjo@8698 | 52 } |