diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2012-07-31 21:53:01 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2012-07-31 21:53:01 +0000 |
commit | ec4aa871d03aeb99f52f504d8eadb20fda8100fc (patch) | |
tree | f5663a0b43515c5f3a060a4068973812b5dc68e2 /net-analyzer/nagios-plugins | |
parent | Stable for x86, wrt bug #422049 (diff) | |
download | gentoo-2-ec4aa871d03aeb99f52f504d8eadb20fda8100fc.tar.gz gentoo-2-ec4aa871d03aeb99f52f504d8eadb20fda8100fc.tar.bz2 gentoo-2-ec4aa871d03aeb99f52f504d8eadb20fda8100fc.zip |
Non-maitainer bump, fixes bug 428560, bug 411497 and bug 366403.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nagios-plugins')
3 files changed, 501 insertions, 1 deletions
diff --git a/net-analyzer/nagios-plugins/ChangeLog b/net-analyzer/nagios-plugins/ChangeLog index 3e16adb3032c..43d2bf5e2cb1 100644 --- a/net-analyzer/nagios-plugins/ChangeLog +++ b/net-analyzer/nagios-plugins/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/nagios-plugins # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.144 2012/06/12 02:44:29 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.145 2012/07/31 21:53:01 idl0r Exp $ + +*nagios-plugins-1.4.16 (31 Jul 2012) + + 31 Jul 2012; Christian Ruppert <idl0r@gentoo.org> + +nagios-plugins-1.4.16.ebuild, +files/nagios-plugins-1.4.16-contrib.patch: + Non-maitainer bump, fixes bug 428560, bug 411497 and bug 366403. 12 Jun 2012; Zac Medico <zmedico@gentoo.org> nagios-plugins-1.4.14-r2.ebuild, nagios-plugins-1.4.14.ebuild, nagios-plugins-1.4.15.ebuild: diff --git a/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.16-contrib.patch b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.16-contrib.patch new file mode 100644 index 000000000000..37f4fc3032ba --- /dev/null +++ b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.16-contrib.patch @@ -0,0 +1,351 @@ +From 48c83ab1bc1ef596129fad8634b8ec09f4a1e329 Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Tue, 31 Jul 2012 23:47:20 +0200 +Subject: [PATCH] Fix some paths, bug 366403 + +--- + contrib/check_apc_ups.pl | 2 +- + contrib/check_appletalk.pl | 2 +- + contrib/check_dns_random.pl | 9 ++++----- + contrib/check_flexlm.pl | 2 +- + contrib/check_ica_master_browser.pl | 2 +- + contrib/check_ica_metaframe_pub_apps.pl | 2 +- + contrib/check_inodes-freebsd.pl | 2 +- + contrib/check_linux_raid.pl | 2 +- + contrib/check_lmmon.pl | 2 +- + contrib/check_lotus.pl | 2 +- + contrib/check_ms_spooler.pl | 2 +- + contrib/check_nagios_db.pl | 4 ++-- + contrib/check_nmap.py | 2 +- + contrib/check_oracle_tbs | 4 ++-- + contrib/check_pfstate | 2 +- + contrib/check_snmp_disk_monitor.pl | 4 ++-- + contrib/check_snmp_printer.pl | 2 +- + contrib/check_snmp_process_monitor.pl | 6 +++--- + contrib/check_snmp_procs.pl | 2 +- + contrib/check_wins.pl | 2 +- + contrib/sched_downtime.pl | 2 +- + 21 files changed, 29 insertions(+), 30 deletions(-) + +diff --git a/contrib/check_apc_ups.pl b/contrib/check_apc_ups.pl +index 6bf1766..758da2f 100644 +--- a/contrib/check_apc_ups.pl ++++ b/contrib/check_apc_ups.pl +@@ -13,7 +13,7 @@ use strict; + use Getopt::Long; + use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r + $opt_L $opt_l $PROGNAME); +-use lib "/usr/local/nagios/libexec"; ++use lib "/usr/lib/nagios/plugins"; + use utils qw(%ERRORS &print_revision &support &usage); + + sub print_help (); +diff --git a/contrib/check_appletalk.pl b/contrib/check_appletalk.pl +index 9277686..2b18084 100644 +--- a/contrib/check_appletalk.pl ++++ b/contrib/check_appletalk.pl +@@ -22,7 +22,7 @@ BEGIN { + } + + use strict; +-use lib "/usr/local/nagios/libexec"; ++use lib "/usr/lib/nagios/plugins"; + + use utils qw($TIMEOUT %ERRORS &print_revision &support); + use vars qw($PROGNAME); +diff --git a/contrib/check_dns_random.pl b/contrib/check_dns_random.pl +index 4bed412..efd5587 100644 +--- a/contrib/check_dns_random.pl ++++ b/contrib/check_dns_random.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!/usr/bin/perl -w + # ------------------------------------------------------------------------------ + # File Name: check_dns_random.pl + # Author: Richard Mayhew - South Africa +@@ -33,9 +33,9 @@ $|=1; + + my $host = shift || &usage; + +-my $domainfile = "/usr/local/nagios/etc/domains.list"; ++my $domainfile = "/etc/domains.list"; + my $wc = `/usr/bin/wc -l $domainfile`; +-my $check = "/usr/local/nagios/libexec/check_dns"; ++my $check = "/usr/lib/nagios/plugins/check_dns"; + my $x = 0; + my $srv_file = ""; + my $z = ""; +@@ -49,8 +49,7 @@ open(DOMAIN,"<$domainfile") or die "Error Opening $domainfile File!\n"; + my @data = split(/\n/,$srv_file); + + chomp $wc; +-$wc =~ s/ //g; +-$wc =~ s/domains//g; ++$wc =~ s/([[:digit:]]+) .*/$1/g; + + $x = rand $wc; + ($z,$y) = split(/\./,$x); +diff --git a/contrib/check_flexlm.pl b/contrib/check_flexlm.pl +index 8fa0e33..3b9b57d 100644 +--- a/contrib/check_flexlm.pl ++++ b/contrib/check_flexlm.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + # + # usage: + # check_flexlm.pl license_file +diff --git a/contrib/check_ica_master_browser.pl b/contrib/check_ica_master_browser.pl +index 922e718..ed8b9db 100755 +--- a/contrib/check_ica_master_browser.pl ++++ b/contrib/check_ica_master_browser.pl +@@ -12,7 +12,7 @@ use IO::Socket; + use IO::Select; + use Getopt::Long ; + +-use lib qw(/usr/local/nagios/libexec) ; ++use lib qw(/usr/lib/nagios/plugins) ; + use utils qw(%ERRORS &print_revision &support &usage); + use packet_utils qw(&pdump &tethereal) ; + +diff --git a/contrib/check_ica_metaframe_pub_apps.pl b/contrib/check_ica_metaframe_pub_apps.pl +index 0edbdca..8110030 100755 +--- a/contrib/check_ica_metaframe_pub_apps.pl ++++ b/contrib/check_ica_metaframe_pub_apps.pl +@@ -17,7 +17,7 @@ use Getopt::Long ; + + my ($bcast_addr, $timeout, $debug, @citrix_servers, $crit_pub_apps, $warn_pub_apps, $long_list) ; + +-use lib qw(/usr/local/nagios/libexec) ; ++use lib qw(/usr/lib/nagios/plugins) ; + use utils qw(%ERRORS &print_revision &support &usage) ; + use packet_utils qw(&pdump &tethereal) ; + +diff --git a/contrib/check_inodes-freebsd.pl b/contrib/check_inodes-freebsd.pl +index d66e5e3..ebd1f49 100644 +--- a/contrib/check_inodes-freebsd.pl ++++ b/contrib/check_inodes-freebsd.pl +@@ -15,7 +15,7 @@ + use strict; + use Getopt::Long; + use vars qw($opt_V $opt_h $opt_w $opt_c $opt_f $verbose $PROGNAME); +-use lib "/usr/local/libexec/nagios" ; ++use lib "/usr/lib/nagios/plugins" ; + use utils qw($TIMEOUT %ERRORS &print_revision &support); + + my $df = "/bin/df"; +diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl +index 77e75f6..ab982cd 100644 +--- a/contrib/check_linux_raid.pl ++++ b/contrib/check_linux_raid.pl +@@ -23,7 +23,7 @@ + # WARNING md0 status=[UUU_U], recovery=46.4%, finish=123.0min + + use strict; +-use lib "/usr/local/nagios/libexec"; ++use lib "/usr/lib/nagios/plugins"; + use utils qw(%ERRORS); + + # die with an error if we're not on Linux +diff --git a/contrib/check_lmmon.pl b/contrib/check_lmmon.pl +index bf4b438..7fb471b 100644 +--- a/contrib/check_lmmon.pl ++++ b/contrib/check_lmmon.pl +@@ -6,7 +6,7 @@ if ($#ARGV < 1) { + print "Usage: $0 <critical temp> <warning temp> <normal temp>\n"; + exit; } $crit = shift; $warn = shift; $norm = shift; if ($warn > + $crit) { print "Warning level cannot be greater than critical +-level!\n"; exit; } @b = qx{/usr/local/bin/lmmon -s}; foreach(@b) { @c ++level!\n"; exit; } @b = qx{/usr/bin/lmmon -s}; foreach(@b) { @c + = split(/ \/ /, $_); $d = $c[1]; } @e = split(/F/, $d); $f = $e[0]; + + $status = "$f degrees F\n"; +diff --git a/contrib/check_lotus.pl b/contrib/check_lotus.pl +index 8bedced..9cda571 100755 +--- a/contrib/check_lotus.pl ++++ b/contrib/check_lotus.pl +@@ -17,7 +17,7 @@ use Getopt::Long ; + + my ($timeout, $debug, $lotus_host, $server, $indiv_dn, $packet_debug) ; + +-use lib qw(/usr/local/nagios/libexec) ; ++use lib qw(/usr/lib/nagios/plugins) ; + use utils qw($TIMEOUT %ERRORS &print_revision &support &usage) ; + use packet_utils qw(pdump &tethereal) ; + +diff --git a/contrib/check_ms_spooler.pl b/contrib/check_ms_spooler.pl +index 3a80a76..748203c 100755 +--- a/contrib/check_ms_spooler.pl ++++ b/contrib/check_ms_spooler.pl +@@ -52,7 +52,7 @@ sub version (); + + delete @ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; + +-use constant SMBCLIENT_PATH => '/usr/local/samba/bin/smbclient' ; ++use constant SMBCLIENT_PATH => '/usr/bin/smbclient' ; + use constant MAX_QUEUES_TO_CHECK => 20 ; # So that the check doesn't take longer than $TIMEOUT + + use constant SMBCLIENT_SVC => sub { return `${\SMBCLIENT_PATH} -L //$_[0] -U $_[1]%$_[2]` } ; +diff --git a/contrib/check_nagios_db.pl b/contrib/check_nagios_db.pl +index 5811d7c..3774ab0 100644 +--- a/contrib/check_nagios_db.pl ++++ b/contrib/check_nagios_db.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + + use strict; + $|++; +@@ -12,7 +12,7 @@ use DBI; + + my $driver = "mysql"; + +-my $CFG_DEF = "/opt/nagios/etc/cgi.cfg"; ++my $CFG_DEF = "/etc/nagios/cgi.cfg"; + my $QUERY = "select *, UNIX_TIMESTAMP(last_update) as ut from programstatus;"; + my $EXPIRE_DEF = 5; ## expressed in minutes + my $PROCCNT = 0; +diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py +index 07f6d7f..07e2e54 100644 +--- a/contrib/check_nmap.py ++++ b/contrib/check_nmap.py +@@ -54,7 +54,7 @@ from getopt import getopt + import utils + + # Where temp files should be placed +-tempfile.tempdir='/usr/local/nagios/var' ++tempfile.tempdir='/var/nagios' + + # Base name for tempfile + tempfile.template='check_nmap_tmp.' +diff --git a/contrib/check_oracle_tbs b/contrib/check_oracle_tbs +index 8281a4e..b35a232 100644 +--- a/contrib/check_oracle_tbs ++++ b/contrib/check_oracle_tbs +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + + # (c)2004 John Koyle, RFP Depot, LLC. + # This is free software use it however you would like. +@@ -6,7 +6,7 @@ + use strict; + use DBI; + use Getopt::Long 2.16; +-use lib "/usr/local/nagios/libexec"; ++use lib "/usr/lib/nagios/plugins"; + use utils qw(%ERRORS); + + +diff --git a/contrib/check_pfstate b/contrib/check_pfstate +index 57dde3f..14d15f4 100644 +--- a/contrib/check_pfstate ++++ b/contrib/check_pfstate +@@ -3,7 +3,7 @@ + use strict; + use Getopt::Long; + use vars qw($opt_V $opt_h $opt_P $opt_H $opt_w $opt_c $PROGNAME); +-use lib "/usr/local/nagios/libexec" ; ++use lib "/usr/lib/nagios/plugins" ; + use utils qw(%ERRORS &print_revision &support &usage); + + my $remote_user = "root"; +diff --git a/contrib/check_snmp_disk_monitor.pl b/contrib/check_snmp_disk_monitor.pl +index 9a2edaa..f752afb 100644 +--- a/contrib/check_snmp_disk_monitor.pl ++++ b/contrib/check_snmp_disk_monitor.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + # author: Al Tobey <albert.tobey@priority-health.com> + # what: monitor diskspace using the host-resources mib + # license: GPL - http://www.fsf.org/licenses/gpl.txt +@@ -7,7 +7,7 @@ + + use strict; + require 5.6.0; +-use lib qw( /opt/nagios/libexec ); ++use lib qw( /usr/lib/nagios/plugins ); + use utils qw(%ERRORS $TIMEOUT &print_revision &support &usage); + use SNMP 5.0; + use Getopt::Long; +diff --git a/contrib/check_snmp_printer.pl b/contrib/check_snmp_printer.pl +index cc7943b..83b05af 100755 +--- a/contrib/check_snmp_printer.pl ++++ b/contrib/check_snmp_printer.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!/usr/bin/perl -w + + # check_snmp_printer - check for printer status via snmp + # Supports both standard PRINT-MIB (RFC-1759) and HP Enterprise print-mib +diff --git a/contrib/check_snmp_process_monitor.pl b/contrib/check_snmp_process_monitor.pl +index 0f44597..abfd40a 100644 +--- a/contrib/check_snmp_process_monitor.pl ++++ b/contrib/check_snmp_process_monitor.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + # author: Al Tobey <albert.tobey@priority-health.com> + # what: monitor a process using the host-resources mib + # license: GPL - http://www.fsf.org/licenses/gpl.txt +@@ -15,7 +15,7 @@ + + use strict; + require 5.6.0; +-use lib qw( /opt/nagios/libexec /usr/local/libexec ); ++use lib qw( /usr/lib/nagios/plugins ); + use utils qw(%ERRORS $TIMEOUT &print_revision &support &usage); + use SNMP 5.0; + use Getopt::Long; +@@ -37,7 +37,7 @@ $opt_nocache = undef; + $cache_exp = 600; + $exit = $ERRORS{OK}; + $interpreters = '(perl|/bin/sh|/usr/bin/sh|/bin/bash|/bin/ksh|python)'; +-our $cachefile = '/var/opt/nagios/tmp/'; # completed later ++our $cachefile = '/var/nagios/tmp/'; # completed later + our %processes = (); + + sub process_options { +diff --git a/contrib/check_snmp_procs.pl b/contrib/check_snmp_procs.pl +index 4d19ff1..de5a8fe 100644 +--- a/contrib/check_snmp_procs.pl ++++ b/contrib/check_snmp_procs.pl +@@ -35,7 +35,7 @@ + #use strict; + use Getopt::Long; + use Net::SNMP qw (oid_lex_sort oid_base_match SNMP_VERSION_1); +-use lib "/usr/local/nagios/libexec"; ++use lib "/usr/lib/nagios/plugins"; + use utils qw(%ERRORS &print_revision &support &usage); + + my $PROGNAME="check_snmp_procs"; +diff --git a/contrib/check_wins.pl b/contrib/check_wins.pl +index f11f864..701fa30 100755 +--- a/contrib/check_wins.pl ++++ b/contrib/check_wins.pl +@@ -17,7 +17,7 @@ use strict ; + use Getopt::Long ; + use vars qw($opt_H $opt_D $opt_W $opt_T $debug @my_dcs); + +-use lib '/usr/local/nagios/libexec/' ; ++use lib '/usr/lib/nagios/plugins/' ; + use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); + + my $PROGNAME = 'check_wins' ; +diff --git a/contrib/sched_downtime.pl b/contrib/sched_downtime.pl +index b46b482..1e358f4 100644 +--- a/contrib/sched_downtime.pl ++++ b/contrib/sched_downtime.pl +@@ -7,7 +7,7 @@ + # + use POSIX qw(strtol); + +-my $command_file = '/usr/local/nagios/var/rw/nagios.cmd'; ++my $command_file = '/var/nagios/rw/nagios.cmd'; + + my $hour = (60*60); + my $next_day = (24*60*60); +-- +1.7.8.6 + diff --git a/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild new file mode 100644 index 000000000000..d37f53e46cbc --- /dev/null +++ b/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.16.ebuild,v 1.1 2012/07/31 21:53:01 idl0r Exp $ + +EAPI=4 + +inherit autotools eutils multilib user + +DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly" +HOMEPAGE="http://www.nagios.org/" +SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="+ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping nagios-ssh nagios-game ups ipv6 radius +suid jabber" + +DEPEND="ldap? ( >=net-nds/openldap-2.0.25 ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql-base ) + ssl? ( >=dev-libs/openssl-0.9.6g ) + radius? ( >=net-dialup/radiusclient-0.3.2 )" + +RESTRICT="test" + +RDEPEND="${DEPEND} + >=dev-lang/perl-5.6.1-r7 + samba? ( >=net-fs/samba-2.2.5-r1 ) + snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1 + >=net-analyzer/net-snmp-5.0.6 + ) + mysql? ( dev-perl/DBI + dev-perl/DBD-mysql ) + nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 ) + nagios-ntp? ( >=net-misc/ntp-4.1.1a ) + nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 ) + nagios-ssh? ( >=net-misc/openssh-3.5_p1 ) + ups? ( >=sys-power/nut-1.4 ) + !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) ) + jabber? ( >=dev-perl/Net-Jabber-2.0 )" + +pkg_setup() { + enewgroup nagios + enewuser nagios -1 /bin/bash /var/nagios/home nagios +} + +src_prepare() { + if ! use radius; then + EPATCH_OPTS="-p1 -d ${S}" epatch \ + "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch + fi + + # bug 366403 + epatch "${FILESDIR}"/${P}-contrib.patch + + epatch "${FILESDIR}"/${PN}-1.4.12-pgsqlconfigure.patch + epatch "${FILESDIR}"/${PN}-1.4.15-vserver.patch + epatch "${FILESDIR}"/${PN}-1.4.15-openldap.patch + + eautoreconf +} + +src_configure() { + local conf + if use ssl; then + conf="${conf} --with-openssl=/usr" + else + conf="${conf} --without-openssl" + fi + + if use postgres; then + conf="${conf} --with-pgsql=/usr" + fi + + econf \ + $(use_with mysql) \ + $(use_with ipv6) \ + $(use_with ldap) \ + ${conf} \ + --host=${CHOST} \ + --prefix=/usr \ + --libexecdir=/usr/$(get_libdir)/nagios/plugins \ + --sysconfdir=/etc/nagios || die "econf failed" + + # fix problem with additional - + sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed" +} + +src_install() { + mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg + chmod +x "${S}"/contrib/*.pl + + sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed" + sed -i -e s#/usr/nagios/libexec#/usr/$(get_libdir)/nagios/plugins#g "${S}"/contrib/*.pl || die "sed failed" + sed -i -e '30s/use lib utils.pm;/use utils;/' \ + "${S}"/plugins-scripts/check_file_age.pl || die "sed failed" + + dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \ + ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS + + emake DESTDIR="${D}" install || die "make install failed" + + if use mysql || use postgres; then + dodir /usr/$(get_libdir)/nagios/plugins + exeinto /usr/$(get_libdir)/nagios/plugins + doexe "${S}"/contrib/check_nagios_db.pl + fi + + if ! use snmp; then + rm "${D}"/usr/$(get_libdir)/nagios/plugins/check_if{operstatus,status} \ + || die "Failed to remove SNMP check plugins" + fi + + mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib + + if ! use jabber; then + rm "${D}"usr/$(get_libdir)/nagios/plugins/contrib/nagios_sendim.pl \ + || die "Failed to remove XMPP notification addon" + fi + + chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \ + || die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins" + + chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \ + || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins" + + if use suid ; then + + chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/{check_icmp,check_ide_smart,check_dhcp} \ + || die "Failed setting the suid bit for various plugins" + fi + + dosym /usr/$(get_libdir)/nagios/plugins/utils.sh /usr/$(get_libdir)/nagios/plugins/contrib/utils.sh + dosym /usr/$(get_libdir)/nagios/plugins/utils.pm /usr/$(get_libdir)/nagios/plugins/contrib/utils.pm +} + +pkg_postinst() { + einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor." + einfo "Depending on what you want to monitor with nagios, some or all of these USE" + einfo "flags need to be set for nagios to function correctly." + echo + einfo "contrib plugins are installed into /usr/$(get_libdir)/nagios/plugins/contrib" +} |