Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 1 | ################################################################################ |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 2 | # |
| 3 | # ngrep |
| 4 | # |
Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 5 | ################################################################################ |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 6 | |
| 7 | NGREP_VERSION = 1.45 |
| 8 | NGREP_SOURCE = ngrep-$(NGREP_VERSION).tar.bz2 |
Stefan Fröberg | 23ef45c | 2012-08-26 02:52:48 +0300 | [diff] [blame] | 9 | NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSION) |
Rahul Bedarkar | ceeef31 | 2017-03-30 19:13:40 +0530 | [diff] [blame] | 10 | NGREP_LICENSE = BSD-4-Clause-like |
Phil Eichinger | f87f067 | 2013-10-14 16:05:41 +0200 | [diff] [blame] | 11 | NGREP_LICENSE_FILES = LICENSE.txt |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 12 | NGREP_INSTALL_STAGING = YES |
Bernd Kuhls | f68d9bc | 2014-08-09 17:54:42 +0200 | [diff] [blame] | 13 | |
| 14 | NGREP_LIBS = -lpcap -lpcre |
Thomas Petazzoni | 665e13c | 2014-12-03 22:41:29 +0100 | [diff] [blame] | 15 | ifeq ($(BR2_STATIC_LIBS),y) |
Arnout Vandecappelle | 7d69a79 | 2015-07-12 16:35:26 +0200 | [diff] [blame] | 16 | NGREP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs` |
Bernd Kuhls | f68d9bc | 2014-08-09 17:54:42 +0200 | [diff] [blame] | 17 | endif |
| 18 | NGREP_CONF_ENV += LIBS+="$(NGREP_LIBS)" |
| 19 | |
Adam Duskett | e2a7822 | 2017-04-21 11:24:48 -0400 | [diff] [blame] | 20 | NGREP_CONF_OPTS = \ |
Thomas De Schampheleire | 879255a | 2014-10-20 21:54:26 +0200 | [diff] [blame] | 21 | --with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \ |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 22 | --enable-pcre \ |
| 23 | --with-pcre=$(STAGING_DIR)/usr \ |
Baruch Siach | d54d05b | 2016-10-27 08:04:04 +0300 | [diff] [blame] | 24 | --disable-dropprivs \ |
| 25 | --disable-pcap-restart |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 26 | |
Wade Berrier | fa3410b | 2011-09-10 12:59:16 -0600 | [diff] [blame] | 27 | NGREP_DEPENDENCIES = libpcap pcre |
| 28 | |
Arnout Vandecappelle (Essensium/Mind) | e1502eb | 2012-07-03 00:07:32 +0200 | [diff] [blame] | 29 | $(eval $(autotools-package)) |