wok-current diff nagios-nrpe/receipt @ rev 22559
updated bogofilter (1.2.4 -> 1.2.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 04 16:49:42 2020 +0100 (2020-01-04) |
parents | a78610b2eb47 |
children | 02aa9958ad62 |
line diff
1.1 --- a/nagios-nrpe/receipt Mon Jan 21 12:26:11 2019 +0100 1.2 +++ b/nagios-nrpe/receipt Sat Jan 04 16:49:42 2020 +0100 1.3 @@ -1,60 +1,67 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="nagios-nrpe" 1.7 -VERSION="2.14" 1.8 +VERSION="3.2.1" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Service and network monitoring program, remote monitoring." 1.11 MAINTAINER="erjo@slitaz.org" 1.12 LICENSE="GPL2" 1.13 +WEB_SITE="https://www.nagios.org/" 1.14 + 1.15 SOURCE="nrpe" 1.16 TARBALL="$SOURCE-$VERSION.tar.gz" 1.17 -WEB_SITE="https://www.nagios.org/" 1.18 WGET_URL="$SF_MIRROR/nagios/$TARBALL" 1.19 1.20 -BUILD_DEPENDS="libcrypto-dev openssl-dev openssl libwrap-dev" 1.21 -DEPENDS="nagios-plugins libssl libcrypto" 1.22 +BUILD_DEPENDS="libcrypto-dev libwrap-dev openssl openssl-dev" 1.23 +DEPENDS="libcrypto libssl nagios-plugins" 1.24 1.25 # Rules to configure and make the package. 1.26 compile_rules() 1.27 { 1.28 - while read patch_file; do 1.29 + while read patch_file 1.30 + do 1.31 if [ ! -f done.$patch_file ]; then 1.32 patch -p1 < $stuff/$patch_file || return 1 1.33 touch done.$patch_file 1.34 fi 1.35 - done <<EOT 1.36 + done <<EOT 1.37 $PACKAGE-$VERSION-Makefile.u 1.38 EOT 1.39 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.40 - --localstatedir=/var \ 1.41 - --datadir=/usr/share/nagios \ 1.42 - --sysconfdir=/etc/nagios \ 1.43 - --sbindir=/usr/lib/nagios \ 1.44 - --bindir=/usr/bin \ 1.45 - --libexecdir=/usr/lib/nagios/plugins \ 1.46 - --enable-ssl \ 1.47 - --with-nagios-user=nagios \ 1.48 - --with-nagios-group=nagios \ 1.49 - --with-nrpe-user=nagios \ 1.50 - --with-nrpe-group=nagios \ 1.51 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.52 + 1.53 + ./configure \ 1.54 + --prefix=/usr \ 1.55 + --infodir=/usr/share/info \ 1.56 + --localstatedir=/var \ 1.57 + --datadir=/usr/share/nagios \ 1.58 + --sysconfdir=/etc/nagios \ 1.59 + --sbindir=/usr/lib/nagios \ 1.60 + --bindir=/usr/bin \ 1.61 + --libexecdir=/usr/lib/nagios/plugins \ 1.62 + --enable-ssl \ 1.63 + --with-nagios-user=nagios \ 1.64 + --with-nagios-group=nagios \ 1.65 + --with-nrpe-user=nagios \ 1.66 + --with-nrpe-group=nagios \ 1.67 + --mandir=/usr/share/man \ 1.68 + $CONFIGURE_ARGS && 1.69 make all && 1.70 - make install 1.71 + make install 1.72 } 1.73 1.74 # Rules to gen a SliTaz package suitable for Tazpkg. 1.75 genpkg_rules() 1.76 { 1.77 - mkdir -p $fs/etc/nagios/objects \ 1.78 - $fs/etc/init.d 1.79 - 1.80 - cp -a $install/usr $fs 1.81 - install -m 0644 $src/sample-config/nrpe.cfg $fs/etc/nagios 1.82 + mkdir -p $fs/etc/nagios/objects 1.83 + mkdir -p $fs/etc/init.d 1.84 + 1.85 + cp -a $install/usr $fs 1.86 + install -m 0644 $src/sample-config/nrpe.cfg $fs/etc/nagios 1.87 + 1.88 sed -i 's|/var/run|/var/run/nagios|' $fs/etc/nagios/nrpe.cfg 1.89 - 1.90 - # Install config file nd init script 1.91 - install -o root -g root -m 644 $stuff/nrpe.cfg $fs/etc/nagios/objects 1.92 - install -o root -g root -m 755 $stuff/nrpe $fs/etc/init.d 1.93 + 1.94 + # Install configuration file and init script 1.95 + install -o root -g root -m 644 $stuff/nrpe.cfg $fs/etc/nagios/objects 1.96 + install -o root -g root -m 755 $stuff/nrpe $fs/etc/init.d 1.97 } 1.98 1.99 post_install() 1.100 @@ -66,11 +73,11 @@ 1.101 status 1.102 fi 1.103 1.104 - # Set perms for files and directories 1.105 - chroot "$1/" chown -R nagios.nagios /usr/lib/nagios/plugins 1.106 - chroot "$1/" chown nagios.nagios /etc/nagios/* 1.107 + # Set permissions for files and directories 1.108 + chroot "$1/" chown -R nagios.nagios /usr/lib/nagios/plugins 1.109 + chroot "$1/" chown nagios.nagios /etc/nagios/* 1.110 1.111 - # Add check_nrpe in nagios config file 1.112 + # Add check_nrpe in nagios configuration file 1.113 echo "cfg_file=/etc/nagios/objects/nrpe.cfg" >> "$1/etc/nagios/nagios.cfg" 1.114 } 1.115