wok annotate mk-livestatus/receipt @ rev 16663
steadyflow: glib patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 14 07:55:49 2014 +0000 (2014-05-14) |
parents | 00ec8a4f1615 |
children | 9e01bc6321ea |
rev | line source |
---|---|
erjo@8698 | 1 # SliTaz package receipt. |
erjo@8698 | 2 |
erjo@8698 | 3 PACKAGE="mk-livestatus" |
erjo@14464 | 4 VERSION="1.2.2" |
erjo@8698 | 5 CATEGORY="system-tools" |
erjo@8698 | 6 SHORT_DESC="Nagios status broker module" |
erjo@8698 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15611 | 8 LICENSE="GPL2" |
erjo@8698 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@8698 | 10 WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html" |
erjo@8698 | 11 WGET_URL="http://mathias-kettner.de/download/$TARBALL" |
erjo@8698 | 12 |
pascal@15611 | 13 DEPENDS="nagios" |
pascal@15611 | 14 BUILD_DEPENDS="nagios-dev" |
pascal@15611 | 15 |
erjo@8698 | 16 # Rules to configure and make the package. |
erjo@8698 | 17 compile_rules() |
erjo@8698 | 18 { |
erjo@8698 | 19 cd $src |
pascal@14465 | 20 ./configure && |
gokhlayeh@8841 | 21 make && make -j1 install |
erjo@8698 | 22 } |
erjo@8698 | 23 |
erjo@8698 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8698 | 25 genpkg_rules() |
erjo@8698 | 26 { |
erjo@8698 | 27 mkdir -p $fs/usr |
pascal@14465 | 28 cp -a $install/usr/bin $fs/usr |
pascal@14465 | 29 cp -a $install/usr/lib $fs/usr |
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 } |