wok-current view mk-livestatus/receipt @ rev 8737

libsvn: improve depends.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Feb 19 21:38:24 2011 +0100 (2011-02-19)
parents
children 7a28450bc868
line source
1 # SliTaz package receipt.
3 PACKAGE="mk-livestatus"
4 VERSION="1.1.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="Nagios status broker module"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="nagios"
9 BUILD_DEPENDS="nagios-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://mathias-kettner.de/checkmk_livestatus.html"
12 WGET_URL="http://mathias-kettner.de/download/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make && make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
33 strip -s $fs/usr/lib/*
34 }
36 post_install()
37 {
38 echo "Processing post-install commands..."
39 # Modify nagios config
40 cat <<EOT>> $1/etc/nagios/nagios.cfg
41 broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
42 event_broker_options=-1
43 EOT
44 }