wok annotate mk-livestatus/receipt @ rev 8698
add: mk-livestatus
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Feb 17 23:07:51 2011 +0100 (2011-02-17) |
parents | |
children | 7a28450bc868 |
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 |
erjo@8698 | 18 ./configure \ |
erjo@8698 | 19 --prefix=/usr \ |
erjo@8698 | 20 --infodir=/usr/share/info \ |
erjo@8698 | 21 --mandir=/usr/share/man \ |
erjo@8698 | 22 $CONFIGURE_ARGS && |
erjo@8698 | 23 make && make DESTDIR=$PWD/_pkg install |
erjo@8698 | 24 } |
erjo@8698 | 25 |
erjo@8698 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8698 | 27 genpkg_rules() |
erjo@8698 | 28 { |
erjo@8698 | 29 mkdir -p $fs/usr |
erjo@8698 | 30 cp -a $_pkg/usr/bin $fs/usr |
erjo@8698 | 31 cp -a $_pkg/usr/lib $fs/usr |
erjo@8698 | 32 |
erjo@8698 | 33 strip -s $fs/usr/lib/* |
erjo@8698 | 34 } |
erjo@8698 | 35 |
erjo@8698 | 36 post_install() |
erjo@8698 | 37 { |
erjo@8698 | 38 echo "Processing post-install commands..." |
erjo@8698 | 39 # Modify nagios config |
erjo@8698 | 40 cat <<EOT>> $1/etc/nagios/nagios.cfg |
erjo@8698 | 41 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live |
erjo@8698 | 42 event_broker_options=-1 |
erjo@8698 | 43 EOT |
erjo@8698 | 44 } |