Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= tool for network monitoring and data acquisition
  9. PKG_SECTION:= net/debug
  10. PKG_DEPENDS:= libpcap
  11. PKG_BUILDDEP:= libpcap
  12. PKG_URL:= http://www.tcpdump.org/
  13. PKG_SITES:= http://www.tcpdump.org/release/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_FLAVOURS_TCPDUMP:= WITH_IPV6 WITH_CHROOT
  16. PKGFD_WITH_IPV6:= enable IPv6 support
  17. PKGFD_WITH_CHROOT:= enable chrooting to /var/lib/tcpdump
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,TCPDUMP,tcpdump,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${CC_FOR_BUILD} \
  21. ac_cv_linux_vers=2 \
  22. td_cv_buggygetaddrinfo="no"
  23. CONFIGURE_ARGS+= --without-crypto
  24. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_IPV6},)
  25. CONFIGURE_ARGS+= --enable-ipv6
  26. else
  27. CONFIGURE_ARGS+= --disable-ipv6
  28. endif
  29. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
  30. CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump" --with-user="nobody"
  31. endif
  32. XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
  33. INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
  34. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  35. tcpdump-install:
  36. ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/
  38. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
  39. ${INSTALL_DIR} ${IDIR_TCPDUMP}/var/lib/tcpdump
  40. endif
  41. include ${TOPDIR}/mk/pkg-bottom.mk