libgpg-error: fix riscv64
[openadk.git] / package / tcpdump / Makefile
blob85ef22357ebeb58cab4b84b902587ff9107ca3e9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= tcpdump
7 PKG_VERSION:= 4.99.5
8 PKG_RELEASE:= 1
9 PKG_HASH:= 8c75856e00addeeadf70dad67c9ff3dd368536b2b8563abf6854d7c764cd3adb
10 PKG_DESCR:= tool for network monitoring and data acquisition
11 PKG_SECTION:= net/debug
12 PKG_DEPENDS:= libpcap
13 PKG_BUILDDEP:= libpcap
14 PKG_URL:= http://www.tcpdump.org/
15 PKG_SITES:= http://www.tcpdump.org/release/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_FLAVOURS_TCPDUMP:= WITH_IPV6 WITH_CHROOT
20 PKGFD_WITH_IPV6:= enable IPv6 support
21 PKGFD_WITH_CHROOT:= enable chrooting to /var/lib/tcpdump
23 include ${ADK_TOPDIR}/mk/package.mk
25 $(eval $(call PKG_template,TCPDUMP,tcpdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${CC_FOR_BUILD} \
28 td_cv_buggygetaddrinfo="no"
29 CONFIGURE_ARGS+= --without-crypto
30 ifneq (${ADK_PACKAGE_TCPDUMP_WITH_IPV6},)
31 CONFIGURE_ARGS+= --enable-ipv6
32 else
33 CONFIGURE_ARGS+= --disable-ipv6
34 endif
35 ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
36 CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump" --with-user="nobody"
37 endif
38 XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
39 INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
41 tcpdump-install:
42 ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/bin
43 ${INSTALL_BIN} ${WRKINST}/usr/bin/tcpdump ${IDIR_TCPDUMP}/usr/bin
45 include ${ADK_TOPDIR}/mk/pkg-bottom.mk