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 17 lines (16 sloc) 0.587 kB
#!/bin/bash
bc_needs_build() {
[[ ! -x $BC_CACHE/files/tcpdump ]]
}
bc_build() {
sudo cp "$BC_DIR/build_tcpdump_chroot.sh" "$CHROOT/tmp/"
if [[ $OS_TOKEN = redhat-6.2 ]]; then
cd "$BC_CACHE/$OS_TOKEN/pkgs"
[[ -f glibc-static-2.12-1.47.el6.x86_64.rpm ]] || \
wget http://centos.mirror.lstn.net/6.2/os/x86_64/Packages/glibc-static-2.12-1.47.el6.x86_64.rpm
in_chroot rpm -Uvh "/mnt/$OS_TOKEN/pkgs/glibc-static-2.12-1.47.el6.x86_64.rpm"
elif [[ $OS_TOKEN = centos-6* ]]; then
in_chroot yum -y install glibc-static
fi
in_chroot /tmp/build_tcpdump_chroot.sh
}
Jump to Line
Something went wrong with that request. Please try again.