wok rev 23211

updated nagios-nrpe (3.2.1 -> 4.0.2)
author Hans-G?nter Theisgen
date Sat Mar 21 14:35:39 2020 +0100 (2020-03-21)
parents 9181c7e3baef
children f3fb994aac6d
files nagios-nrpe/receipt nagios-nrpe/stuff/nagios-nrpe-4.0.2-Makefile.u
line diff
     1.1 --- a/nagios-nrpe/receipt	Sat Mar 21 13:53:08 2020 +0100
     1.2 +++ b/nagios-nrpe/receipt	Sat Mar 21 14:35:39 2020 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nagios-nrpe"
     1.7 -VERSION="3.2.1"
     1.8 +VERSION="4.0.2"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Service and network monitoring program, remote monitoring."
    1.11  MAINTAINER="erjo@slitaz.org"
    1.12 @@ -10,7 +10,7 @@
    1.13  
    1.14  SOURCE="nrpe"
    1.15  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.16 -WGET_URL="$SF_MIRROR/nagios/$TARBALL"
    1.17 +WGET_URL="https://github.com/NagiosEnterprises/$SOURCE/releases/download/$SOURCE-$VERSION/$TARBALL"
    1.18  
    1.19  BUILD_DEPENDS="libcrypto-dev libwrap-dev openssl openssl-dev"
    1.20  DEPENDS="libcrypto libssl nagios-plugins"
    1.21 @@ -19,15 +19,19 @@
    1.22  compile_rules()
    1.23  {
    1.24  	while read patch_file
    1.25 -	 do
    1.26 -		if [ ! -f done.$patch_file ]; then
    1.27 +	  do
    1.28 +		if [ ! -f done.$patch_file ]
    1.29 +		  then
    1.30  			patch -p1 < $stuff/$patch_file || return 1
    1.31  			touch done.$patch_file
    1.32  		fi
    1.33 -	 done <<EOT
    1.34 +	  done <<EOT
    1.35  $PACKAGE-$VERSION-Makefile.u
    1.36  EOT
    1.37  
    1.38 +	addgroup nagios
    1.39 +	adduser -D -G nagios nagios
    1.40 +	
    1.41  	./configure					\
    1.42  		--prefix=/usr				\
    1.43  		--infodir=/usr/share/info		\
    1.44 @@ -66,7 +70,8 @@
    1.45  
    1.46  post_install()
    1.47  {
    1.48 -	if ! grep -q nagios "$1/etc/passwd"; then
    1.49 +	if ! grep -q nagios "$1/etc/passwd"
    1.50 +	  then
    1.51  		echo
    1.52  		echo -n "Adding user nagios..."
    1.53  		chroot "$1/" adduser -S -D -H nagios
    1.54 @@ -83,5 +88,6 @@
    1.55  
    1.56  post_remove()
    1.57  {
    1.58 -	[ -f "$1/etc/nagios/nagios.cfg" ] && sed -i 's/.*nrpe.cfg//' "$1/etc/nagios/nagios.cfg"
    1.59 +	[ -f "$1/etc/nagios/nagios.cfg" ] &&
    1.60 +	sed -i 's/.*nrpe.cfg//' "$1/etc/nagios/nagios.cfg"
    1.61  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nagios-nrpe/stuff/nagios-nrpe-4.0.2-Makefile.u	Sat Mar 21 14:35:39 2020 +0100
     2.3 @@ -0,0 +1,13 @@
     2.4 +--- nrpe-2.12-ori/src/Makefile.in	Mon Aug 13 19:10:07 2007
     2.5 ++++ nrpe-2.12/src/Makefile.in	Tue Jun  8 21:16:02 2010
     2.6 +@@ -24,8 +24,8 @@
     2.7 + SBINDIR=@sbindir@
     2.8 + LIBEXECDIR=@libexecdir@
     2.9 + INSTALL=@INSTALL@
    2.10 +-NAGIOS_INSTALL_OPTS=@NAGIOS_INSTALL_OPTS@
    2.11 +-NRPE_INSTALL_OPTS=@NRPE_INSTALL_OPTS@
    2.12 ++NAGIOS_INSTALL_OPTS=
    2.13 ++NRPE_INSTALL_OPTS=
    2.14 + 
    2.15 + # Generated automatically from configure script
    2.16 + SNPRINTF_O=@SNPRINTF_O@