wok diff nagios-nrpe/receipt @ rev 23954

updated smplayer (20.4.2 -> 20.6.0)
author Hans-G?nter Theisgen
date Tue Sep 22 17:05:06 2020 +0100 (2020-09-22)
parents 0fda98eeae85
children 5ea0ce1cecc0
line diff
     1.1 --- a/nagios-nrpe/receipt	Fri May 03 12:32:48 2019 +0100
     1.2 +++ b/nagios-nrpe/receipt	Tue Sep 22 17:05:06 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  }