You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
368 B
Bash
25 lines
368 B
Bash
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
# make sure that the .tar.gz file contains everything necessary
|
||
|
# to build fping
|
||
|
|
||
|
set -e
|
||
|
set -x
|
||
|
|
||
|
TARFILE=fping-*.tar.gz
|
||
|
if [ ! -f "$TARFILE" ]; then
|
||
|
echo "tar.gz file not found." >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# unarchive
|
||
|
TMPDIR=$(mktemp -d --tmpdir=.)
|
||
|
cd $TMPDIR
|
||
|
tar xf ../$TARFILE
|
||
|
DIRNAME=$(ls)
|
||
|
|
||
|
# build
|
||
|
cd $DIRNAME
|
||
|
./configure --enable-ipv4 --enable-ipv6
|
||
|
make
|