wok-current diff nagios-nrpe/receipt @ rev 8468
Fixed libboost-system and libboost-system-dev. It was add both libboost-system and libboost-filesystem files.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 07 14:43:59 2011 +0000 (2011-02-07) |
parents | |
children | 0b4cf0d9e1b5 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nagios-nrpe/receipt Mon Feb 07 14:43:59 2011 +0000 1.3 @@ -0,0 +1,78 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nagios-nrpe" 1.7 +VERSION="2.12" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Service and network monitoring program, remote monitoring." 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +SOURCE="nrpe" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.nagios.org/" 1.14 +WGET_URL="$SF_MIRROR/nagios/$TARBALL" 1.15 +BUILD_DEPENDS="libcrypto-dev openssl-dev libwrap-dev" 1.16 +DEPENDS="nagios-plugins libssl libcrypto" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + while read patch_file; do 1.23 + if [ ! -f done.$patch_file ]; then 1.24 + patch -p1 < ../stuff/$patch_file || exit 1 1.25 + touch done.$patch_file 1.26 + fi 1.27 + done <<EOT 1.28 +$PACKAGE-$VERSION-Makefile.u 1.29 +EOT 1.30 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.31 + --localstatedir=/var \ 1.32 + --datadir=/usr/share/nagios \ 1.33 + --sysconfdir=/etc/nagios \ 1.34 + --sbindir=/usr/lib/nagios \ 1.35 + --bindir=/usr/bin \ 1.36 + --libexecdir=/usr/lib/nagios/plugins \ 1.37 + --with-nagios-user=nagios \ 1.38 + --with-nagios-group=nagios \ 1.39 + --with-nrpe-user=nagios \ 1.40 + --with-nrpe-group=nagios \ 1.41 + --mandir=/usr/share/man $CONFIGURE_ARGS && 1.42 + make all && 1.43 + make DESTDIR=$PWD/_pkg install 1.44 +} 1.45 + 1.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 +genpkg_rules() 1.48 +{ 1.49 + mkdir -p $fs/etc/nagios/objects \ 1.50 + $fs/etc/init.d \ 1.51 + $fs/var/run/nagios 1.52 + 1.53 + cp -a $_pkg/usr $fs 1.54 + install -m 0644 $src/sample-config/nrpe.cfg $fs/etc/nagios 1.55 + sed -i 's|/var/run|/var/run/nagios|' $fs/etc/nagios/nrpe.cfg 1.56 + 1.57 + # Install config file nd init script 1.58 + install -o root -g root -m 644 stuff/nrpe.cfg $fs/etc/nagios/objects 1.59 + install -o root -g root -m 755 stuff/nrpe $fs/etc/init.d 1.60 +} 1.61 + 1.62 +post_install() 1.63 +{ 1.64 + if ! grep -q nagios $1/etc/passwd; then 1.65 + echo -n "Adding user nagios..." 1.66 + chroot $1/ adduser -S -D -H nagios 1.67 + status 1.68 + fi 1.69 + 1.70 + # Set perms for files and directories 1.71 + chroot $1/ chown -R nagios.nagios /usr/lib/nagios/plugins /var/run/nagios 1.72 + chroot $1/ chown nagios.nagios /etc/nagios/* 1.73 + 1.74 + # Add check_nrpe in nagios config file 1.75 + echo "cfg_file=/etc/nagios/objects/nrpe.cfg" >> $1/etc/nagios/nagios.cfg 1.76 +} 1.77 + 1.78 +post_remove() 1.79 +{ 1.80 + [ -f $1/etc/nagios/nagios.cfg ] && sed -i 's/.*nrpe.cfg//' $1/etc/nagios/nagios.cfg 1.81 +}