blob: 3f569374b4ae0f2f4c85556e47f557db98a8cbe0 [file] [log] [blame]
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00001################################################################################
Wade Berrierfa3410b2011-09-10 12:59:16 -06002#
3# ngrep
4#
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00005################################################################################
Wade Berrierfa3410b2011-09-10 12:59:16 -06006
7NGREP_VERSION = 1.45
8NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2
Stefan Fröberg23ef45c2012-08-26 02:52:48 +03009NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSION)
Rahul Bedarkarceeef312017-03-30 19:13:40 +053010NGREP_LICENSE = BSD-4-Clause-like
Phil Eichingerf87f0672013-10-14 16:05:41 +020011NGREP_LICENSE_FILES = LICENSE.txt
Wade Berrierfa3410b2011-09-10 12:59:16 -060012NGREP_INSTALL_STAGING = YES
Bernd Kuhlsf68d9bc2014-08-09 17:54:42 +020013
14NGREP_LIBS = -lpcap -lpcre
Thomas Petazzoni665e13c2014-12-03 22:41:29 +010015ifeq ($(BR2_STATIC_LIBS),y)
Arnout Vandecappelle7d69a792015-07-12 16:35:26 +020016NGREP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
Bernd Kuhlsf68d9bc2014-08-09 17:54:42 +020017endif
18NGREP_CONF_ENV += LIBS+="$(NGREP_LIBS)"
19
Adam Duskette2a78222017-04-21 11:24:48 -040020NGREP_CONF_OPTS = \
Thomas De Schampheleire879255a2014-10-20 21:54:26 +020021 --with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
Wade Berrierfa3410b2011-09-10 12:59:16 -060022 --enable-pcre \
23 --with-pcre=$(STAGING_DIR)/usr \
Baruch Siachd54d05b2016-10-27 08:04:04 +030024 --disable-dropprivs \
25 --disable-pcap-restart
Wade Berrierfa3410b2011-09-10 12:59:16 -060026
Wade Berrierfa3410b2011-09-10 12:59:16 -060027NGREP_DEPENDENCIES = libpcap pcre
28
Arnout Vandecappelle (Essensium/Mind)e1502eb2012-07-03 00:07:32 +020029$(eval $(autotools-package))