# packages/tcpdump/auxbuild
#

# download and unpack tarball
TARVERSION="4.3.0"
TARDIR="${BUILD_PACKAGE}-${TARVERSION}"
TARBALL="${TARDIR}.tar.gz"
build_download "http://www.tcpdump.org/release/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

# invoke configure (directory, prefix, extra arguments)
export ac_cv_linux_vers="2"
export td_cv_buggygetaddrinfo="no"
build_autoconf "${PKGDIR}" "" "--enable-ipv6 --disable-smb --without-crypto"

# run make, make install (directory, extra arguments)
build_make "${PKGDIR}"
build_make "${PKGDIR}" "install"

# prune an unnecessary hardlink
rm -f "${BUILDROOT}/usr/sbin/tcpdump.${TARVERSION}"

true
# vim: ts=4:sw=4:expandtab:syntax=sh
