summaryrefslogtreecommitdiffstats
path: root/plugins.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-05-06 17:49:18 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-05-06 17:49:18 +0300
commitb953dab59df675c0ad82a6bf5f0f7df5e979f50d (patch)
tree8900addb1665d771cedcf79562d19d243b1658ea /plugins.d
parent63c96aa96f96f3aea10bdcd2ecd92c889f26b3af (diff)
updated to fping 4.0
Diffstat (limited to 'plugins.d')
-rwxr-xr-xplugins.d/fping.plugin20
1 files changed, 5 insertions, 15 deletions
diff --git a/plugins.d/fping.plugin b/plugins.d/fping.plugin
index 232c00630f..050fd891cb 100755
--- a/plugins.d/fping.plugin
+++ b/plugins.d/fping.plugin
@@ -37,25 +37,15 @@ if [ "${1}" = "install" ]
run cd /usr/src
- if [ -d fping-3.15 ]
+ if [ -d fping-4.0 ]
then
- run rm -rf fping-3.15 || exit 1
+ run rm -rf fping-4.0 || exit 1
fi
- download 'https://github.com/schweikert/fping/archive/3.15.tar.gz' | run tar -zxvpf -
+ download 'https://github.com/schweikert/fping/releases/download/v4.0/fping-4.0.tar.gz' | run tar -zxvpf -
[ $? -ne 0 ] && exit 1
- run cd fping-3.15 || exit 1
-
- #if [ -d fping-ktsaou.git ]
- # then
- # run cd fping-ktsaou.git
- # run git pull
- #else
- # run git clone https://github.com/ktsaou/fping.git fping-ktsaou.git
- # run cd fping-ktsaou.git
- #fi
-
- run ./autogen.sh
+ run cd fping-4.0 || exit 1
+
run ./configure --prefix=/usr/local
run make clean
run make