wok annotate mk-livestatus/receipt @ rev 9173

wvstreams: needs -j1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 08 18:20:44 2011 +0100 (2011-03-08)
parents 8dd571badab0
children e5ae411e1d8c
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 strip -s $fs/usr/lib/*
erjo@8698 30 }
erjo@8698 31
erjo@8698 32 post_install()
erjo@8698 33 {
erjo@8698 34 echo "Processing post-install commands..."
erjo@8698 35 # Modify nagios config
erjo@8698 36 cat <<EOT>> $1/etc/nagios/nagios.cfg
erjo@8698 37 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
erjo@8698 38 event_broker_options=-1
erjo@8698 39 EOT
erjo@8698 40 }