# SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) PKG_NAME="tcpdump" PKG_VERSION="4.99.3" PKG_SHA256="ad75a6ed3dc0d9732945b2e5483cb41dc8b4b528a169315e499c6861952e73b3" PKG_SITE="https://www.tcpdump.org/" PKG_URL="https://www.tcpdump.org/release/tcpdump-${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain libpcap libtirpc" PKG_LONGDESC="A program that allows you to dump the traffic on a network." PKG_BUILD_FLAGS="-sysroot" # use configure, not cmake. review cmake in future release. PKG_TOOLCHAIN="configure" PKG_CONFIGURE_OPTS_TARGET="--with-crypto=no" pre_configure_target() { # When cross-compiling, configure can't set linux version # forcing it sed -i -e 's/ac_cv_linux_vers=unknown/ac_cv_linux_vers=2/' ../configure CFLAGS+=" -I${SYSROOT_PREFIX}/usr/include/tirpc" LDFLAGS+=" -ltirpc" } post_configure_target() { # discard native system includes sed -i "s%-I/usr/include%%g" Makefile }