# HG changeset patch # User Eric Joseph-Alexandre # Date 1296605880 -3600 # Node ID 18ef1a1df017c0978c5f09ad8c61477721e03363 # Parent f898e6080f920b9bb0f5af623666140030083f5f Add: nagios-nsca diff -r f898e6080f92 -r 18ef1a1df017 nagios-nsca/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nagios-nsca/receipt Wed Feb 02 01:18:00 2011 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="nagios-nsca" +VERSION="2.7.2" +CATEGORY="network" +SHORT_DESC="Service and network monitoring program, remote monitoring." +MAINTAINER="erjo@slitaz.org" +SOURCE="nsca" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.nagios.org/" +#WGET_URL="$SF_MIRROR/nagios/$TARBALL" +WGET_URL="http://prdownloads.sourceforge.net/sourceforge/nagios/$TARBALL" +BUILD_DEPENDS="libmcrypt-dev perl libwrap-dev" +DEPENDS="libmcrypt" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --localstatedir=/var --datadir=/usr/share/nagios \ + --sysconfdir=/etc/nagios --sbindir=/usr/sbin \ + --bindir=/usr/sbin --libexecdir=/usr/lib/nagios \ + --with-nsca-user=nagios \ + --with-nsca-group=nagios \ + --with-nsca-port=5667 \ + --mandir=/usr/share/man $CONFIGURE_ARGS && + make all +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/sbin \ + $fs/etc/nagios + cp -a $src/src/nsca $fs/usr/sbin + cp -a $src/src/send_nsca $fs/usr/sbin + + install -m 0644 $src/sample-config/nsca.cfg $fs/etc/nagios + install -m 0644 $src/sample-config/send_nsca.cfg $fs/etc/nagios +}