wok annotate mk-livestatus/receipt @ rev 14416

new: python-edje
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 19:18:28 2013 +0200 (2013-04-23)
parents 7a28450bc868
children 2a2adc3727af
rev   line source
erjo@8698 1 # SliTaz package receipt.
erjo@8698 2
erjo@8698 3 PACKAGE="mk-livestatus"
erjo@8698 4 VERSION="1.1.8"
erjo@8698 5 CATEGORY="system-tools"
erjo@8698 6 SHORT_DESC="Nagios status broker module"
erjo@8698 7 MAINTAINER="erjo@slitaz.org"
erjo@8698 8 DEPENDS="nagios"
erjo@8698 9 BUILD_DEPENDS="nagios-dev"
erjo@8698 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@8698 11 WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html"
erjo@8698 12 WGET_URL="http://mathias-kettner.de/download/$TARBALL"
erjo@8698 13
erjo@8698 14 # Rules to configure and make the package.
erjo@8698 15 compile_rules()
erjo@8698 16 {
erjo@8698 17 cd $src
gokhlayeh@8841 18 ./configure && \
gokhlayeh@8841 19 make && make -j1 install
erjo@8698 20 }
erjo@8698 21
erjo@8698 22 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8698 23 genpkg_rules()
erjo@8698 24 {
erjo@8698 25 mkdir -p $fs/usr
erjo@8698 26 cp -a $_pkg/usr/bin $fs/usr
erjo@8698 27 cp -a $_pkg/usr/lib $fs/usr
erjo@8698 28 }
erjo@8698 29
erjo@8698 30 post_install()
erjo@8698 31 {
erjo@8698 32 echo "Processing post-install commands..."
erjo@8698 33 # Modify nagios config
erjo@8698 34 cat <<EOT>> $1/etc/nagios/nagios.cfg
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 }