[Buildroot] [PATCH] daq: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Dec 30 20:18:22 UTC 2017


Hello,

On Sun, 24 Dec 2017 19:18:05 -0200, Sergio Prado wrote:
> Signed-off-by: Sergio Prado <sergio.prado at e-labworks.com>

Thanks, I've applied, after doing a few changes. See below.

> diff --git a/package/daq/Config.in b/package/daq/Config.in
> new file mode 100644
> index 000000000000..0627274b52ad
> --- /dev/null
> +++ b/package/daq/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_DAQ
> +	bool "daq"
> +	select BR2_PACKAGE_LIBPCAP
> +	select BR2_PACKAGE_LIBDNET
> +	depends on !BR2_STATIC_LIBS # dlfcn.h

By convention, "depends on" lines go before "select" lines. This is
verified by check-package.

> diff --git a/package/daq/daq.mk b/package/daq/daq.mk
> new file mode 100644
> index 000000000000..f10c31d4a157
> --- /dev/null
> +++ b/package/daq/daq.mk
> @@ -0,0 +1,26 @@
> +################################################################################
> +#
> +# daq
> +#
> +################################################################################
> +
> +DAQ_VERSION = 2.0.6
> +DAQ_SITE = https://www.snort.org/downloads/snort
> +DAQ_SOURCE = daq-$(DAQ_VERSION).tar.gz
> +
> +DAQ_LICENSE = GPL-2.0
> +DAQ_LICENSE_FILES = COPYING

Since it's a library, it felt weird to not have DAQ_INSTALL_STAGING =
YES, so I've added that.

> +# 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"

The double quotes around the "yes" were not needed, and we don't do
that elsewhere in Buildroot, so I've dropped them.

Applied with those changes. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list