# HG changeset patch # User Eric Joseph-Alexandre # Date 1297980471 -3600 # Node ID 8dd571badab06cb1b984028d5af5f6031769e452 # Parent f99b65d1546be00a9cdd98a668f97fca96a06ede add: mk-livestatus diff -r f99b65d1546b -r 8dd571badab0 mk-livestatus/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mk-livestatus/receipt Thu Feb 17 23:07:51 2011 +0100 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="mk-livestatus" +VERSION="1.1.8" +CATEGORY="system-tools" +SHORT_DESC="Nagios status broker module" +MAINTAINER="erjo@slitaz.org" +DEPENDS="nagios" +BUILD_DEPENDS="nagios-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html" +WGET_URL="http://mathias-kettner.de/download/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + + strip -s $fs/usr/lib/* +} + +post_install() +{ + echo "Processing post-install commands..." + # Modify nagios config + cat <> $1/etc/nagios/nagios.cfg +broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live +event_broker_options=-1 +EOT +}