wok view mk-livestatus/receipt @ rev 17071

tcpcrypt: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 22 18:46:29 2014 +0200 (2014-08-22)
parents 00ec8a4f1615
children 9e01bc6321ea
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 cd $src
20 ./configure &&
21 make && make -j1 install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 cp -a $install/usr/lib $fs/usr
30 }
32 post_install()
33 {
34 echo "Processing post-install commands..."
35 # Modify nagios config
36 cat <<EOT>> $1/etc/nagios/nagios.cfg
37 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
38 event_broker_options=-1
39 EOT
40 }