Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (24 sloc) 0.496 kB
#!/bin/bash
SOURCES=(libpcap-1.2.1.tar.gz tcpdump-4.2.1.tar.gz)
cd /tmp
for s in ${SOURCES[@]}; do
cp /mnt/files/"$s" .
tar xzf "$s"
cd "${s%.tar.gz}"
case $s in
libpcap*)
./configure
make
libpcap=${s%.tar.gz}
;;
tcpdump*)
LDFLAGS=-static ./configure "--with-libpcap=../$libpcap"
LDFLAGS=-static make
strip tcpdump
tcpdump=${s%.tar.gz}
;;
esac
cd ..
done
[[ -x $tcpdump/tcpdump ]] || exit 1
cp "$tcpdump/tcpdump" /mnt/files
Jump to Line
Something went wrong with that request. Please try again.