wok view mk-livestatus/receipt @ rev 22926
Up jp2a (1.0.9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 26 12:40:52 2020 +0100 (2020-02-26) |
parents | 63f065bf57f8 |
children | 34e801e0eb52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mk-livestatus"
4 VERSION="1.2.8p25"
5 CATEGORY="system-tools"
6 SHORT_DESC="Nagios status broker module."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mathias-kettner.de/cms_livestatus.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://mathias-kettner.de/download/$TARBALL"
14 DEPENDS="nagios"
15 BUILD_DEPENDS="gcc83 nagios-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CC=gcc-83
21 export CXX=g++-83
23 ./configure &&
24 make -j1 &&
25 make -j1 install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib $fs/usr
35 }
37 post_install()
38 {
39 # Modify nagios configuration
40 cat >> "$1/etc/nagios/nagios.cfg" <<EOT
41 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
42 event_broker_options=-1
43 EOT
44 }