Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= tcpdump
  5. PKG_VERSION:= 4.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d0dd58bbd6cd36795e05c6f1f74420b0
  8. PKG_DESCR:= A tool for network monitoring and data acquisition
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://www.tcpdump.org/
  13. PKG_SITES:= http://www.tcpdump.org/release/
  14. PKG_FLAVOURS:= WITH_IPV6
  15. PKGFD_WITH_IPV6:= enable IPv6 support
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,TCPDUMP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${HOSTCC} \
  19. ac_cv_linux_vers=2 \
  20. td_cv_buggygetaddrinfo="no"
  21. CONFIGURE_ARGS+= --without-crypto
  22. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_IPV6},)
  23. CONFIGURE_ARGS+= --enable-ipv6
  24. else
  25. CONFIGURE_ARGS+= --disable-ipv6
  26. endif
  27. XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
  28. INCLS="-I. -I${STAGING_DIR}/usr/include"
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin
  31. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/
  32. include ${TOPDIR}/mk/pkg-bottom.mk