2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-09-10 20:59:16 +02:00
|
|
|
#
|
|
|
|
# ngrep
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-09-10 20:59:16 +02:00
|
|
|
|
2018-11-04 13:14:26 +01:00
|
|
|
NGREP_VERSION = 1_47
|
|
|
|
NGREP_SITE = $(call github,jpr5,ngrep,V$(NGREP_VERSION))
|
2018-11-04 13:14:27 +01:00
|
|
|
NGREP_LICENSE = BSD-4-Clause-like, BSD-3-Clause (tcpkill)
|
2018-11-04 13:14:26 +01:00
|
|
|
NGREP_LICENSE_FILES = LICENSE
|
2011-09-10 20:59:16 +02:00
|
|
|
NGREP_INSTALL_STAGING = YES
|
2018-11-04 13:14:26 +01:00
|
|
|
# We're patching configure.in
|
|
|
|
NGREP_AUTORECONF = YES
|
2014-08-09 17:54:42 +02:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2018-11-05 19:24:57 +01:00
|
|
|
NGREP_CONF_ENV += LIBS=`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
|
2014-08-09 17:54:42 +02:00
|
|
|
endif
|
|
|
|
|
2017-04-21 17:24:48 +02:00
|
|
|
NGREP_CONF_OPTS = \
|
2014-10-20 21:54:26 +02:00
|
|
|
--with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
|
2011-09-10 20:59:16 +02:00
|
|
|
--enable-pcre \
|
2016-10-27 07:04:04 +02:00
|
|
|
--disable-dropprivs \
|
2018-11-04 13:14:27 +01:00
|
|
|
--disable-pcap-restart
|
2011-09-10 20:59:16 +02:00
|
|
|
|
|
|
|
NGREP_DEPENDENCIES = libpcap pcre
|
|
|
|
|
2018-11-04 13:14:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNET),y)
|
|
|
|
NGREP_DEPENDENCIES += libnet
|
|
|
|
NGREP_CONF_OPTS += --enable-tcpkill
|
|
|
|
else
|
|
|
|
NGREP_CONF_OPTS += --disable-tcpkill
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|