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.
fping/ci/build-2-install.sh

22 lines
430 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
./configure --enable-ipv4 --enable-ipv6 --prefix=/opt/fping
11 years ago
make CFLAGS="-g -fprofile-arcs -ftest-coverage"
pwd
df -k .
which setcap
uname -a
mount
11 years ago
sudo setcap cap_net_raw+ep src/fping
sudo setcap cap_net_raw+ep src/fping6
10 years ago
sudo strace setcap cap_net_raw+ep src/fping