aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-09-09 05:20:32 +0800
committermat <mat@FreeBSD.org>2015-09-09 05:20:32 +0800
commit801b2343f12af00a111f212ee03fb3e6d8bd9909 (patch)
tree13dee7e6a7cb21362147ab3c551345fd255b9b83 /net-mgmt
parent628bf248ecbc9851aae1b050f556d08b0f7d2a83 (diff)
downloadfreebsd-ports-gnome-801b2343f12af00a111f212ee03fb3e6d8bd9909.tar.gz
freebsd-ports-gnome-801b2343f12af00a111f212ee03fb3e6d8bd9909.tar.zst
freebsd-ports-gnome-801b2343f12af00a111f212ee03fb3e6d8bd9909.zip
Fix check_file_age.
PR: 202973 Sponsored by: Absolight
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-plugins/Makefile2
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__file__age.pl12
2 files changed, 13 insertions, 1 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index cb7d236540d5..3f8ff195cb2d 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 2.1.1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://www.nagios-plugins.org/download/ \
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__file__age.pl b/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__file__age.pl
new file mode 100644
index 000000000000..293fdea1b59e
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__file__age.pl
@@ -0,0 +1,12 @@
+--- plugins-scripts/check_file_age.pl.orig 2015-09-08 21:18:08 UTC
++++ plugins-scripts/check_file_age.pl
+@@ -26,7 +26,8 @@ use English;
+ use Getopt::Long;
+ use File::stat;
+ use vars qw($PROGNAME);
+-use lib ".";
++use FindBin;
++use lib "$FindBin::Bin";
+ use utils qw (%ERRORS &print_revision &support);
+
+ sub print_help ();