diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2019-08-12 10:35:01 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2019-08-12 10:35:01 +0000 |
commit | cb31f1a63f19104a3fae0c9cd4c02b391be40888 (patch) | |
tree | 83e189484b0df234e8a0970dc054b6cd725a0490 /net-mgmt/pandorafms_agent | |
parent | 525f53f0169a8c97c850b274e2e017fa8bbcc319 (diff) | |
download | ports-cb31f1a63f19104a3fae0c9cd4c02b391be40888.tar.gz ports-cb31f1a63f19104a3fae0c9cd4c02b391be40888.zip |
Fix install with Perl 5.30 and all future possible versions.
PR: 239742.
Notes
Notes:
svn path=/head/; revision=508720
Diffstat (limited to 'net-mgmt/pandorafms_agent')
-rw-r--r-- | net-mgmt/pandorafms_agent/files/patch-pandora__agent__installer | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-mgmt/pandorafms_agent/files/patch-pandora__agent__installer b/net-mgmt/pandorafms_agent/files/patch-pandora__agent__installer new file mode 100644 index 000000000000..61a71caf4bb7 --- /dev/null +++ b/net-mgmt/pandorafms_agent/files/patch-pandora__agent__installer @@ -0,0 +1,17 @@ +--- pandora_agent_installer.orig 2019-08-12 10:17:59 UTC ++++ pandora_agent_installer +@@ -88,13 +88,9 @@ fi + + [ "$4" ] && PANDORA_PERL_PATH=$4 + +-# Check for Perl 5.6.x or higher available +-PERL_VERSION=`$PANDORA_PERL_PATH -v | egrep 'v5.[6-9]|v5.[12][0-9]' | grep perl` +- +-if [ -z "$PERL_VERSION" ] ++if ! perl -M5.006 -e 1 + then + echo "Perl 5.6.x or higher is not detected. This is required for Pandora FMS" +- echo "Detected: $PERL_VERSION " + echo "Aborting install..." + exit 2 + fi |