wok-next diff nagisk/receipt @ rev 21382

updated nbd (3.3 -> 3.20)
author Hans-G?nter Theisgen
date Thu Apr 16 17:27:00 2020 +0100 (2020-04-16)
parents 9e01bc6321ea
children
line diff
     1.1 --- a/nagisk/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/nagisk/receipt	Thu Apr 16 17:27:00 2020 +0100
     1.3 @@ -1,29 +1,28 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="nagisk"
     1.8  VERSION="1.2.5"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Simple tool to monitor Asterisk from a Nagios server."
    1.11 +SHORT_DESC="Simple tool to monitor Asterisk from a Nagios server"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 +WEB_SITE="https://github.com/nicolargo/nagisk"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="https://github.com/nicolargo/nagisk"
    1.18  WGET_URL="https://codeload.github.com/nicolargo/nagisk/tar.gz/v$VERSION"
    1.19  
    1.20 -DEPENDS="nagios-nrpe perl sudo"
    1.21 -BUILD_DEPENDS="wget"
    1.22 -
    1.23 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.24 -genpkg_rules()
    1.25 -{
    1.26 -	mkdir -p $fs/usr/share/nagios/libexec
    1.27 -	cp -a $src/nagisk.pl $fs/usr/share/nagios/libexec
    1.28 -	sed -i 's/^elsif/} &/' $fs/usr/share/nagios/libexec/nagisk.pl
    1.29 +compile_rules() {
    1.30 +	mkdir -p                 $install/usr/share/nagios/libexec/
    1.31 +	cp    -a $src/nagisk.pl  $install/usr/share/nagios/libexec/
    1.32 +	sed   -i 's/^elsif/} &/' $install/usr/share/nagios/libexec/nagisk.pl
    1.33  }
    1.34  
    1.35 -# Pre and post install commands for Tazpkg.
    1.36 -post_install()
    1.37 -{
    1.38 +genpkg_rules() {
    1.39 +	copy @std
    1.40 +	DEPENDS="nagios-nrpe perl sudo"
    1.41 +}
    1.42 +
    1.43 +post_install() {
    1.44  	grep -qs check_asterisk_version "$1/etc/nagios/nrpe.cfg" ||
    1.45  	cat >> "$1/etc/nagios/nrpe.cfg" <<EOT
    1.46  command[check_asterisk_version]=/usr/share/nagios/libexec/nagisk.pl -c version