wok annotate nagios-nsca/receipt @ rev 15949
compton: avoid source tarball collisions
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 23 12:17:31 2014 +0000 (2014-02-23) |
parents | 98890599a932 |
children | a78610b2eb47 |
rev | line source |
---|---|
erjo@8332 | 1 # SliTaz package receipt. |
erjo@8332 | 2 |
erjo@8332 | 3 PACKAGE="nagios-nsca" |
erjo@14458 | 4 VERSION="2.9.1" |
erjo@8332 | 5 CATEGORY="network" |
erjo@8332 | 6 SHORT_DESC="Service and network monitoring program, remote monitoring." |
erjo@8332 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
erjo@8332 | 9 SOURCE="nsca" |
erjo@8332 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
erjo@8332 | 11 WEB_SITE="http://www.nagios.org/" |
erjo@8332 | 12 #WGET_URL="$SF_MIRROR/nagios/$TARBALL" |
erjo@8332 | 13 WGET_URL="http://prdownloads.sourceforge.net/sourceforge/nagios/$TARBALL" |
pascal@15584 | 14 |
erjo@8332 | 15 BUILD_DEPENDS="libmcrypt-dev perl libwrap-dev" |
erjo@8332 | 16 DEPENDS="libmcrypt" |
erjo@8332 | 17 |
erjo@8332 | 18 # Rules to configure and make the package. |
erjo@8332 | 19 compile_rules() |
erjo@8332 | 20 { |
erjo@8332 | 21 cd $src |
erjo@8332 | 22 ./configure --prefix=/usr --infodir=/usr/share/info \ |
erjo@8332 | 23 --localstatedir=/var --datadir=/usr/share/nagios \ |
erjo@8332 | 24 --sysconfdir=/etc/nagios --sbindir=/usr/sbin \ |
erjo@8332 | 25 --bindir=/usr/sbin --libexecdir=/usr/lib/nagios \ |
erjo@8332 | 26 --with-nsca-user=nagios \ |
erjo@8332 | 27 --with-nsca-group=nagios \ |
erjo@8332 | 28 --with-nsca-port=5667 \ |
erjo@8332 | 29 --mandir=/usr/share/man $CONFIGURE_ARGS && |
erjo@8332 | 30 make all |
erjo@8332 | 31 } |
erjo@8332 | 32 |
erjo@8332 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8332 | 34 genpkg_rules() |
erjo@8332 | 35 { |
erjo@8332 | 36 mkdir -p $fs/usr/sbin \ |
erjo@8332 | 37 $fs/etc/nagios |
erjo@8332 | 38 cp -a $src/src/nsca $fs/usr/sbin |
erjo@8332 | 39 cp -a $src/src/send_nsca $fs/usr/sbin |
erjo@8332 | 40 |
erjo@8332 | 41 install -m 0644 $src/sample-config/nsca.cfg $fs/etc/nagios |
erjo@8332 | 42 install -m 0644 $src/sample-config/send_nsca.cfg $fs/etc/nagios |
erjo@8332 | 43 } |