wok annotate mk-livestatus/receipt @ rev 24877

updated makeself (2.4.0 -> 2.4.5)
author Hans-G?nter Theisgen
date Thu Mar 31 13:51:42 2022 +0100 (2022-03-31)
parents 31d5564e5f6b
children e197a1539e2e
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"
Hans-G?nter@21448 9 WEB_SITE="https://mathias-kettner.de/cms_livestatus.html"
Hans-G?nter@21448 10
erjo@8698 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20671 12 WGET_URL="https://mathias-kettner.de/download/$TARBALL"
erjo@8698 13
pascal@15611 14 DEPENDS="nagios"
Hans-G?nter@21453 15 BUILD_DEPENDS="gcc83 nagios-dev"
pascal@15611 16
pascal@24497 17 # What is the latest version available today?
pascal@24497 18 current_version()
pascal@24497 19 {
pascal@24497 20 wget -O - https://github.com/tribe29/checkmk/tags 2>/dev/null | \
pascal@24497 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24497 22 }
pascal@24497 23
erjo@8698 24 # Rules to configure and make the package.
erjo@8698 25 compile_rules()
erjo@8698 26 {
Hans-G?nter@21461 27 export CC=gcc-83
Hans-G?nter@21461 28 export CXX=g++-83
Hans-G?nter@21448 29
pascal@14465 30 ./configure &&
Hans-G?nter@21448 31 make -j1 &&
Hans-G?nter@21448 32 make -j1 install
erjo@8698 33 }
erjo@8698 34
erjo@8698 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8698 36 genpkg_rules()
erjo@8698 37 {
erjo@8698 38 mkdir -p $fs/usr
Hans-G?nter@21448 39
Hans-G?nter@21448 40 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21448 41 cp -a $install/usr/lib $fs/usr
erjo@8698 42 }
erjo@8698 43
erjo@8698 44 post_install()
erjo@8698 45 {
Hans-G?nter@21448 46 # Modify nagios configuration
al@18741 47 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
erjo@8698 48 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
erjo@8698 49 event_broker_options=-1
erjo@8698 50 EOT
erjo@8698 51 }