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.
29 lines
627 B
Bash
29 lines
627 B
Bash
10 years ago
|
#!/bin/bash
|
||
|
set -x
|
||
11 years ago
|
|
||
|
PATH=$(pwd)/ci/build/bin:$PATH
|
||
11 years ago
|
|
||
|
if [ ! -d ci ]; then
|
||
|
echo "you must run this in the root fping directory" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
autoreconf -i
|
||
8 years ago
|
./configure --enable-ipv4 --enable-ipv6 --enable-safe-limits --prefix=/opt/fping
|
||
8 years ago
|
make CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
|
||
8 years ago
|
## setcap currently doesn't work anymore on travis-ci
|
||
10 years ago
|
#sudo setcap cap_net_raw+ep src/fping
|
||
|
## setcap debugging:
|
||
|
#pwd
|
||
|
#df -k .
|
||
|
#which setcap
|
||
|
#uname -a
|
||
|
#mount
|
||
|
#
|
||
|
#sudo apt-get install strace
|
||
|
#sudo strace setcap cap_net_raw+ep src/fping
|
||
10 years ago
|
|
||
10 years ago
|
# use setuid, since setcap is not available
|
||
10 years ago
|
sudo chown root src/fping
|
||
10 years ago
|
sudo chmod u+s src/fping
|