1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# daq 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunDAQ_VERSION = 2.0.7 8*4882a593SmuzhiyunDAQ_SITE = https://www.snort.org/downloads/snort 9*4882a593SmuzhiyunDAQ_LICENSE = GPL-2.0 10*4882a593SmuzhiyunDAQ_LICENSE_FILES = COPYING 11*4882a593SmuzhiyunDAQ_INSTALL_STAGING = YES 12*4882a593SmuzhiyunDAQ_DEPENDENCIES = host-bison host-flex 13*4882a593Smuzhiyun# 0002-parallel-grammar.patch 14*4882a593Smuzhiyun# 2.0.7 needs autoreconf due to configure being older than configure.ac 15*4882a593SmuzhiyunDAQ_AUTORECONF = YES 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# disable ipq module as libipq is deprecated 18*4882a593SmuzhiyunDAQ_CONF_OPTS += --disable-ipq-module 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun# Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled 21*4882a593Smuzhiyun# otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which 22*4882a593Smuzhiyun# will result in a build failure if libdnet is installed on host 23*4882a593SmuzhiyunDAQ_CONF_OPTS += \ 24*4882a593Smuzhiyun --with-dnet-includes=$(STAGING_DIR)/usr/include \ 25*4882a593Smuzhiyun --with-dnet-libraries=$(STAGING_DIR)/usr/lib 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy) 28*4882a593SmuzhiyunDAQ_DEPENDENCIES += libdnet libnetfilter_queue 29*4882a593SmuzhiyunDAQ_CONF_OPTS += --enable-nfq-module 30*4882a593Smuzhiyunelse 31*4882a593SmuzhiyunDAQ_CONF_OPTS += --disable-nfq-module 32*4882a593Smuzhiyunendif 33*4882a593Smuzhiyun 34*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPCAP),y) 35*4882a593SmuzhiyunDAQ_DEPENDENCIES += libpcap 36*4882a593Smuzhiyun# assume these flags are available to prevent configure from running 37*4882a593Smuzhiyun# test programs while cross compiling 38*4882a593SmuzhiyunDAQ_CONF_ENV += \ 39*4882a593Smuzhiyun ac_cv_lib_pcap_pcap_lib_version=yes \ 40*4882a593Smuzhiyun daq_cv_libpcap_version_1x=yes 41*4882a593SmuzhiyunDAQ_CONF_OPTS += --enable-pcap-module 42*4882a593Smuzhiyunelse 43*4882a593SmuzhiyunDAQ_CONF_OPTS += --disable-pcap-module 44*4882a593Smuzhiyunendif 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun$(eval $(autotools-package)) 47