wok annotate mk-livestatus/receipt @ rev 20922

updated flam3 again (3.0 -> 3.1.1)
author Hans-G?nter Theisgen
date Fri Mar 01 17:48:33 2019 +0100 (2019-03-01)
parents 6fab3264ba87
children 2616f64bb879
rev   line source
erjo@8698 1 # SliTaz package receipt.
erjo@8698 2
erjo@8698 3 PACKAGE="mk-livestatus"
erjo@14464 4 VERSION="1.2.2"
erjo@8698 5 CATEGORY="system-tools"
erjo@8698 6 SHORT_DESC="Nagios status broker module"
erjo@8698 7 MAINTAINER="erjo@slitaz.org"
pascal@15611 8 LICENSE="GPL2"
erjo@8698 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20671 10 WEB_SITE="https://mathias-kettner.de/checkmk_livestatus.html"
pascal@20671 11 WGET_URL="https://mathias-kettner.de/download/$TARBALL"
erjo@8698 12
pascal@15611 13 DEPENDS="nagios"
pascal@15611 14 BUILD_DEPENDS="nagios-dev"
pascal@15611 15
erjo@8698 16 # Rules to configure and make the package.
erjo@8698 17 compile_rules()
erjo@8698 18 {
pascal@14465 19 ./configure &&
gokhlayeh@8841 20 make && make -j1 install
erjo@8698 21 }
erjo@8698 22
erjo@8698 23 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8698 24 genpkg_rules()
erjo@8698 25 {
erjo@8698 26 mkdir -p $fs/usr
pascal@14465 27 cp -a $install/usr/bin $fs/usr
pascal@14465 28 cp -a $install/usr/lib $fs/usr
erjo@8698 29 }
erjo@8698 30
erjo@8698 31 post_install()
erjo@8698 32 {
erjo@8698 33 # Modify nagios config
al@18741 34 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
erjo@8698 35 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
erjo@8698 36 event_broker_options=-1
erjo@8698 37 EOT
erjo@8698 38 }