ngrep.mk 921 B

12345678910111213141516171819202122232425262728293031323334
  1. ################################################################################
  2. #
  3. # ngrep
  4. #
  5. ################################################################################
  6. NGREP_VERSION = 1.47
  7. NGREP_SITE = $(call github,jpr5,ngrep,$(subst .,_,V$(NGREP_VERSION)))
  8. NGREP_LICENSE = BSD-4-Clause-like, BSD-3-Clause (tcpkill)
  9. NGREP_LICENSE_FILES = LICENSE
  10. NGREP_INSTALL_STAGING = YES
  11. # We're patching configure.in
  12. NGREP_AUTORECONF = YES
  13. ifeq ($(BR2_STATIC_LIBS),y)
  14. NGREP_CONF_ENV += LIBS=`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
  15. endif
  16. NGREP_CONF_OPTS = \
  17. --with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
  18. --enable-pcre \
  19. --disable-dropprivs \
  20. --disable-pcap-restart
  21. NGREP_DEPENDENCIES = host-pkgconf libpcap pcre
  22. ifeq ($(BR2_PACKAGE_LIBNET),y)
  23. NGREP_DEPENDENCIES += libnet
  24. NGREP_CONF_OPTS += --enable-tcpkill
  25. else
  26. NGREP_CONF_OPTS += --disable-tcpkill
  27. endif
  28. $(eval $(autotools-package))