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