wok-next diff nagios-nsca/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 3765f181a6d5
children 757d032c55c7
line diff
     1.1 --- a/nagios-nsca/receipt	Sat Nov 30 17:02:58 2013 +0000
     1.2 +++ b/nagios-nsca/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.3 @@ -1,43 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="nagios-nsca"
     1.8  VERSION="2.9.1"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Service and network monitoring program, remote monitoring."
    1.11 +SHORT_DESC="Service and network monitoring program, remote monitoring"
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 -SOURCE="nsca"
    1.15 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.16  WEB_SITE="http://www.nagios.org/"
    1.17 +
    1.18 +TARBALL="nsca-$VERSION.tar.gz"
    1.19  #WGET_URL="$SF_MIRROR/nagios/$TARBALL"
    1.20  WGET_URL="http://prdownloads.sourceforge.net/sourceforge/nagios/$TARBALL"
    1.21  
    1.22  BUILD_DEPENDS="libmcrypt-dev perl libwrap-dev"
    1.23 -DEPENDS="libmcrypt"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	cd $src
    1.29 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.30 -	--localstatedir=/var --datadir=/usr/share/nagios \
    1.31 -	--sysconfdir=/etc/nagios --sbindir=/usr/sbin \
    1.32 -	--bindir=/usr/sbin --libexecdir=/usr/lib/nagios \
    1.33 -	--with-nsca-user=nagios \
    1.34 -	--with-nsca-group=nagios \
    1.35 -	--with-nsca-port=5667 \
    1.36 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.37 -	make all 
    1.38 +compile_rules() {
    1.39 +	./configure \
    1.40 +		--prefix=/usr \
    1.41 +		--infodir=/usr/share/info \
    1.42 +		--localstatedir=/var \
    1.43 +		--datadir=/usr/share/nagios \
    1.44 +		--sysconfdir=/etc/nagios \
    1.45 +		--sbindir=/usr/sbin \
    1.46 +		--bindir=/usr/sbin \
    1.47 +		--libexecdir=/usr/lib/nagios \
    1.48 +		--with-nsca-user=nagios \
    1.49 +		--with-nsca-group=nagios \
    1.50 +		--with-nsca-port=5667 \
    1.51 +		--mandir=/usr/share/man \
    1.52 +		$CONFIGURE_ARGS &&
    1.53 +	make all || return 1
    1.54 +
    1.55 +	mkdir -p \
    1.56 +		$install/usr/sbin/ \
    1.57 +		$install/etc/nagios/
    1.58 +	cp -a $src/src/nsca      $install/usr/sbin/
    1.59 +	cp -a $src/src/send_nsca $install/usr/sbin/
    1.60 +
    1.61 +	install -m644 $src/sample-config/nsca.cfg      $install/etc/nagios/
    1.62 +	install -m644 $src/sample-config/send_nsca.cfg $install/etc/nagios/
    1.63  }
    1.64  
    1.65 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.66 -genpkg_rules()
    1.67 -{
    1.68 -	mkdir -p $fs/usr/sbin \
    1.69 -		$fs/etc/nagios
    1.70 -	cp -a $src/src/nsca $fs/usr/sbin
    1.71 -	cp -a $src/src/send_nsca $fs/usr/sbin
    1.72 -	
    1.73 -	install -m 0644 $src/sample-config/nsca.cfg $fs/etc/nagios
    1.74 -	install -m 0644 $src/sample-config/send_nsca.cfg $fs/etc/nagios
    1.75 +genpkg_rules() {
    1.76 +	copy @std
    1.77 +	DEPENDS="libmcrypt"
    1.78  }