From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 30 Dec 2017 21:18:22 +0100 Subject: [Buildroot] [PATCH] daq: new package In-Reply-To: <1514150285-19871-1-git-send-email-sergio.prado@e-labworks.com> References: <1514150285-19871-1-git-send-email-sergio.prado@e-labworks.com> Message-ID: <20171230211822.7967e315@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Sun, 24 Dec 2017 19:18:05 -0200, Sergio Prado wrote: > Signed-off-by: Sergio Prado 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