daq.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ################################################################################
  2. #
  3. # daq
  4. #
  5. ################################################################################
  6. DAQ_VERSION = 2.0.7
  7. # Upstream re-published a modified archive for the same 2.0.7 version, so change
  8. # its name locally, to avoid conflict with older BR versions which had a hash
  9. # for the previous archive.
  10. DAQ_SOURCE = daq-2.0.7-modified.tar.gz
  11. DAQ_SITE = https://www.snort.org/downloads/snort/daq-$(DAQ_VERSION).tar.gz?buildroot-path=filename
  12. DAQ_LICENSE = GPL-2.0
  13. DAQ_LICENSE_FILES = COPYING
  14. DAQ_INSTALL_STAGING = YES
  15. DAQ_DEPENDENCIES = host-bison host-flex
  16. # 0002-parallel-grammar.patch
  17. # 2.0.7 needs autoreconf due to configure being older than configure.ac
  18. DAQ_AUTORECONF = YES
  19. # disable ipq module as libipq is deprecated
  20. DAQ_CONF_OPTS += --disable-ipq-module
  21. # Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled
  22. # otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which
  23. # will result in a build failure if libdnet is installed on host
  24. DAQ_CONF_OPTS += \
  25. --with-dnet-includes=$(STAGING_DIR)/usr/include \
  26. --with-dnet-libraries=$(STAGING_DIR)/usr/lib
  27. ifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy)
  28. DAQ_DEPENDENCIES += libdnet libnetfilter_queue
  29. DAQ_CONF_OPTS += --enable-nfq-module
  30. else
  31. DAQ_CONF_OPTS += --disable-nfq-module
  32. endif
  33. ifeq ($(BR2_PACKAGE_LIBPCAP),y)
  34. DAQ_DEPENDENCIES += libpcap
  35. # assume these flags are available to prevent configure from running
  36. # test programs while cross compiling
  37. DAQ_CONF_ENV += \
  38. ac_cv_lib_pcap_pcap_lib_version=yes \
  39. daq_cv_libpcap_version_1x=yes
  40. DAQ_CONF_OPTS += --enable-pcap-module
  41. else
  42. DAQ_CONF_OPTS += --disable-pcap-module
  43. endif
  44. $(eval $(autotools-package))