2017-12-24 22:18:05 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# daq
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
DAQ_VERSION = 2.0.6
|
|
|
|
DAQ_SITE = https://www.snort.org/downloads/snort
|
|
|
|
DAQ_LICENSE = GPL-2.0
|
|
|
|
DAQ_LICENSE_FILES = COPYING
|
|
|
|
DAQ_INSTALL_STAGING = YES
|
2018-01-23 23:37:59 +01:00
|
|
|
DAQ_DEPENDENCIES = host-bison host-flex
|
2017-12-24 22:18:05 +01:00
|
|
|
|
|
|
|
# package does not build in parallel due to improper make rules
|
|
|
|
# related to the generation of the tokdefs.h header file
|
|
|
|
DAQ_MAKE = $(MAKE1)
|
|
|
|
|
2018-01-07 15:30:30 +01:00
|
|
|
# disable ipq module as libipq is deprecated
|
|
|
|
DAQ_CONF_OPTS += --disable-ipq-module
|
|
|
|
|
2019-08-14 19:51:35 +02:00
|
|
|
# Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled
|
|
|
|
# otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which
|
|
|
|
# will result in a build failure if libdnet is installed on host
|
|
|
|
DAQ_CONF_OPTS += \
|
|
|
|
--with-dnet-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-dnet-libraries=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2018-01-07 15:30:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy)
|
|
|
|
DAQ_DEPENDENCIES += libdnet libnetfilter_queue
|
|
|
|
DAQ_CONF_OPTS += --enable-nfq-module
|
|
|
|
else
|
|
|
|
DAQ_CONF_OPTS += --disable-nfq-module
|
|
|
|
endif
|
|
|
|
|
2018-01-04 20:17:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
|
|
|
DAQ_DEPENDENCIES += libpcap
|
2017-12-24 22:18:05 +01:00
|
|
|
# assume these flags are available to prevent configure from running
|
|
|
|
# test programs while cross compiling
|
2018-01-04 20:17:39 +01:00
|
|
|
DAQ_CONF_ENV += \
|
2017-12-24 22:18:05 +01:00
|
|
|
ac_cv_lib_pcap_pcap_lib_version=yes \
|
|
|
|
daq_cv_libpcap_version_1x=yes
|
2018-01-04 20:17:39 +01:00
|
|
|
DAQ_CONF_OPTS += --enable-pcap-module
|
|
|
|
else
|
|
|
|
DAQ_CONF_OPTS += --disable-pcap-module
|
|
|
|
endif
|
2017-12-24 22:18:05 +01:00
|
|
|
|
|
|
|
$(eval $(autotools-package))
|