wok-current annotate mk-livestatus/receipt @ rev 14465
nconf: remove compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 27 09:10:25 2013 +0200 (2013-04-27) |
parents | 2a2adc3727af |
children | f13bd223c231 |
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" |
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 |
pascal@14465 | 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 |
pascal@14465 | 26 cp -a $install/usr/bin $fs/usr |
pascal@14465 | 27 cp -a $install/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 } |