wok annotate mk-livestatus/receipt @ rev 19994
get-opera-blink: latest i386 release is 45.0.2552.898
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 22 10:30:29 2017 +0300 (2017-07-22) |
parents | 9e01bc6321ea |
children | 6e8b1bcb30e2 |
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" |
erjo@8698 | 10 WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html" |
erjo@8698 | 11 WGET_URL="http://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 } |