mpd: update to 0.20.13
[openadk.git] / package / tcpdump / Makefile
blob2d320f480fda3fe50e94ff4c1cebd35a8da50a61
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.9.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= eae98121cbb1c9adbedd9a777bf2eae9fa1c1c676424a54740311c8abcee5a5e
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/sbin
43 ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin
45 include ${ADK_TOPDIR}/mk/pkg-bottom.mk