updated to fping 4.0
Costa Tsaousis (ktsaou) committed
May 6, 2017 at 17:49 UTC
b953dab59df675c0ad82a6bf5f0f7df5e979f50d
3 files changed
+7
-19
Makefile.am
+1
-1
@@ -82,7 +82,7 @@ dist_noinst_SCRIPTS= \
82
makeself/jobs/10-prepare-destination.install.sh \
83
makeself/jobs/50-curl-7.53.1.install.sh \
84
makeself/jobs/50-bash-4.4.install.sh \
85
- makeself/jobs/50-fping-3.16.install.sh \
85
+ makeself/jobs/50-fping-4.0.install.sh \
86
makeself/jobs/70-netdata-git.install.sh \
87
makeself/jobs/99-makeself.install.sh \
88
makeself/run-all-jobs.sh \
makeself/jobs/50-fping-4.0.install.sh
renamed
+1
-3
@@ -2,12 +2,10 @@
2
3
. $(dirname "${0}")/../functions.sh "${@}" || exit 1
4
5
-fetch "fping-3.16" "https://github.com/schweikert/fping/archive/3.16.tar.gz"
5
+fetch "fping-4.0" "https://github.com/schweikert/fping/releases/download/v4.0/fping-4.0.tar.gz"
6
7
export CFLAGS="-static"
8
9
-run ./autogen.sh
10
-
9
run ./configure \
10
--prefix=${NETDATA_INSTALL_PATH} \
11
--enable-ipv4 \
plugins.d/fping.plugin
+5
-15
@@ -37,25 +37,15 @@ if [ "${1}" = "install" ]
37
38
run cd /usr/src
39
40
- if [ -d fping-3.15 ]
40
+ if [ -d fping-4.0 ]
41
then
42
- run rm -rf fping-3.15 || exit 1
42
+ run rm -rf fping-4.0 || exit 1
43
fi
44
45
- download 'https://github.com/schweikert/fping/archive/3.15.tar.gz' | run tar -zxvpf -
45
+ download 'https://github.com/schweikert/fping/releases/download/v4.0/fping-4.0.tar.gz' | run tar -zxvpf -
46
[ $? -ne 0 ] && exit 1
47
- run cd fping-3.15 || exit 1
48
-
49
- #if [ -d fping-ktsaou.git ]
50
- # then
51
- # run cd fping-ktsaou.git
52
- # run git pull
53
- #else
54
- # run git clone https://github.com/ktsaou/fping.git fping-ktsaou.git
55
- # run cd fping-ktsaou.git
56
- #fi
57
-
58
- run ./autogen.sh
47
+ run cd fping-4.0 || exit 1
48
+
49
run ./configure --prefix=/usr/local
50
run make clean
51
run make