wok-next view mk-livestatus/receipt @ rev 20035

geos: tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 22 19:26:43 2017 +0300 (2017-10-22)
parents 9e01bc6321ea
children 306a4f258013
line source
1 # SliTaz package receipt.
3 PACKAGE="mk-livestatus"
4 VERSION="1.2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Nagios status broker module"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html"
11 WGET_URL="http://mathias-kettner.de/download/$TARBALL"
13 DEPENDS="nagios"
14 BUILD_DEPENDS="nagios-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure &&
20 make && make -j1 install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr
27 cp -a $install/usr/bin $fs/usr
28 cp -a $install/usr/lib $fs/usr
29 }
31 post_install()
32 {
33 # Modify nagios config
34 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
35 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
36 event_broker_options=-1
37 EOT
38 }