mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
94daade68d
Upstream has changed the archive for the 2.0.7 release since we bumped inc1f820bd88
(package/daq: bump version to 2.0.7). Comparing the old archive as it is on s.b.o. with the one currently available on upstream, gives a few deltas, mostly; - (C) years changed in comments - version string changed from 2.0.6 to 2.0.7 - changes (that look legit) to autostuff - a file dropped (Visual Studio related) Of course, that means the hashes changed, and no longer match what we have. Downloading the file manually and letting wget set the timestamp on it, reveals the archive is dated 2022-06-08T13:51:59. So, for more than two years now, we've been relying on the archive we cached on s.b.o. So, we can't just change the hashes to the new ones, nor can we replace the archive on s.b.o. Instead, we use the same trick as was used inc617ebbc97
(package/python-*: fix hashes for cargo-vendored python packages): we use the actual, real URL with a query parameter as the _SITE, and we set _SOURCE to a different name so as not to conflict with the previous archive. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commit9e00cceb60
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# daq
|
|
#
|
|
################################################################################
|
|
|
|
DAQ_VERSION = 2.0.7
|
|
# Upstream re-published a modified archive for the same 2.0.7 version, so change
|
|
# its name locally, to avoid conflict with older BR versions which had a hash
|
|
# for the previous archive.
|
|
DAQ_SOURCE = daq-2.0.7-modified.tar.gz
|
|
DAQ_SITE = https://www.snort.org/downloads/snort/daq-$(DAQ_VERSION).tar.gz?buildroot-path=filename
|
|
DAQ_LICENSE = GPL-2.0
|
|
DAQ_LICENSE_FILES = COPYING
|
|
DAQ_INSTALL_STAGING = YES
|
|
DAQ_DEPENDENCIES = host-bison host-flex
|
|
# 0002-parallel-grammar.patch
|
|
# 2.0.7 needs autoreconf due to configure being older than configure.ac
|
|
DAQ_AUTORECONF = YES
|
|
|
|
# disable ipq module as libipq is deprecated
|
|
DAQ_CONF_OPTS += --disable-ipq-module
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
|
DAQ_DEPENDENCIES += libpcap
|
|
# assume these flags are available to prevent configure from running
|
|
# test programs while cross compiling
|
|
DAQ_CONF_ENV += \
|
|
ac_cv_lib_pcap_pcap_lib_version=yes \
|
|
daq_cv_libpcap_version_1x=yes
|
|
DAQ_CONF_OPTS += --enable-pcap-module
|
|
else
|
|
DAQ_CONF_OPTS += --disable-pcap-module
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|