wok rev 21512

updated nagios-plugins (1.4.16 -> 2.2.1)
author Hans-G?nter Theisgen
date Fri May 03 12:54:18 2019 +0100 (2019-05-03)
parents 0fda98eeae85
children e52525c59210
files nagios-plugins/receipt
line diff
     1.1 --- a/nagios-plugins/receipt	Fri May 03 12:32:48 2019 +0100
     1.2 +++ b/nagios-plugins/receipt	Fri May 03 12:54:18 2019 +0100
     1.3 @@ -1,31 +1,32 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nagios-plugins"
     1.7 -VERSION="1.4.16"
     1.8 +VERSION="2.2.1"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Plugins for host, service and network monitoring program."
    1.11 +SHORT_DESC="Plugins for host, service and network monitoring program nagios."
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 +WEB_SITE="https://www.nagios-plugins.org/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="https://www.nagios.org/"
    1.18 -WGET_URL="$SF_MIRROR/nagiosplug/$TARBALL"
    1.19 +WGET_URL="https://www.nagios-plugins.org//$TARBALL"
    1.20  
    1.21 -DEPENDS="libssl fping"
    1.22 -BUILD_DEPENDS="openssl-dev radiusclient-ng-dev radiusclient-ng openldap-dev
    1.23 - mysql-dev libmysqlclient"
    1.24 +DEPENDS="fping libssl"
    1.25 +BUILD_DEPENDS="libmysqlclient mysql-dev openldap-dev openssl-dev \
    1.26 +	radiusclient-ng radiusclient-ng-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	cd $src
    1.32 -	./configure --prefix=/usr \
    1.33 -	--libexecdir=/usr/lib/nagios/plugins \
    1.34 -	--with-nagios-user=nobody \
    1.35 -	--with-nagios-group=nogroup \
    1.36 -	--with-ping-command="/bin/ping -w %d -c %d %s" \
    1.37 -	--with-fping-command="/usr/sbin/fping" \
    1.38 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.39 -	
    1.40 +	./configure						\
    1.41 +		--prefix=/usr					\
    1.42 +		--libexecdir=/usr/lib/nagios/plugins		\
    1.43 +		--with-nagios-user=nobody			\
    1.44 +		--with-nagios-group=nogroup			\
    1.45 +		--with-ping-command="/bin/ping -w %d -c %d %s"	\
    1.46 +		--with-fping-command="/usr/sbin/fping"		\
    1.47 +		--mandir=/usr/share/man				\
    1.48 +		$CONFIGURE_ARGS
    1.49  	make &&
    1.50  	make DESTDIR=$DESTDIR install &&
    1.51  	make DESTDIR=$DESTDIR install-root
    1.52 @@ -34,16 +35,16 @@
    1.53  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.54  genpkg_rules()
    1.55  {
    1.56 -	mkdir -p $fs/usr/lib $fs/etc/nagios/objects
    1.57 -	
    1.58 +	mkdir -p $fs/usr/lib
    1.59 +	mkdir -p $fs/etc/nagios/objects
    1.60 +
    1.61  	cp -a $install/usr/lib/nagios/ $fs/usr/lib
    1.62  
    1.63  	# 
    1.64  	stuff/convertcfg $src/command.cfg commands > $fs/etc/nagios/objects/command.cfg
    1.65  	
    1.66 -	# Move mySQL plugins in separate package.
    1.67 +	# Move mySQL plugins in a separate package.
    1.68  	rm -f $fs/usr/lib/nagios/plugins/*mysql*
    1.69 -
    1.70  }
    1.71  
    1.72  post_install()
    1.73 @@ -60,7 +61,8 @@
    1.74  		sed -i 's|/usr/lib/nagios|/usr/lib/nagios/plugins|' \
    1.75  		   "$1/etc/nagios/resource.cfg"
    1.76  	fi
    1.77 -	# Set perms for files and directories
    1.78 +
    1.79 +	# Set permissions for files and directories
    1.80  	chroot "$1/" chown -R nagios.nagios /usr/lib/nagios/plugins 
    1.81  	chroot "$1/" chown -R nagios.nagios /etc/nagios/objects
    1.82  }