Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.5.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 973a2513d0076e34aa9da7e15ed98e1b
  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_TCPDUMP:= WITH_IPV6 WITH_CHROOT
  15. PKGFD_WITH_IPV6:= enable IPv6 support
  16. PKGFD_WITH_CHROOT:= enable chrooting to /var/lib/tcpdump
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,TCPDUMP,tcpdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${CC_FOR_BUILD} \
  20. ac_cv_linux_vers=2 \
  21. td_cv_buggygetaddrinfo="no"
  22. CONFIGURE_ARGS+= --without-crypto
  23. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_IPV6},)
  24. CONFIGURE_ARGS+= --enable-ipv6
  25. else
  26. CONFIGURE_ARGS+= --disable-ipv6
  27. endif
  28. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
  29. CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump" --with-user="nobody"
  30. endif
  31. XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
  32. INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
  33. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  34. tcpdump-install:
  35. ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin
  36. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/
  37. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
  38. ${INSTALL_DIR} ${IDIR_TCPDUMP}/var/lib/tcpdump
  39. endif
  40. include ${TOPDIR}/mk/pkg-bottom.mk