1
0

Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_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,${PKG_NAME},${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"
  30. endif
  31. XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
  32. INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_TCPDUMP}/usr/sbin
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tcpdump ${IDIR_TCPDUMP}/usr/sbin/
  36. ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
  37. ${INSTALL_DIR} ${IDIR_TCPDUMP}/var/lib/tcpdump
  38. endif
  39. include ${TOPDIR}/mk/pkg-bottom.mk