]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/commitdiff
libdaq: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Dec 2022 18:50:53 +0000 (18:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Dec 2022 18:50:53 +0000 (18:50 +0000)
Required by snort

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
libdaq/libdaq.nm [new file with mode: 0644]

diff --git a/libdaq/libdaq.nm b/libdaq/libdaq.nm
new file mode 100644 (file)
index 0000000..aa2dc28
--- /dev/null
@@ -0,0 +1,61 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libdaq
+version    = 3.0.10
+release    = 1
+
+groups     = System/Libraries
+url        = https://github.com/snort3/libdaq
+license    = GPLv2
+summary    = LibDAQ: The Data AcQuisition Library
+
+description
+       LibDAQ is a pluggable abstraction layer for interacting with a data
+       source (traditionally a network interface or network data plane).
+       Applications using LibDAQ use the library API defined in daq.h to load,
+       configure, and interact with pluggable DAQ modules.
+end
+
+source_dl  = https://github.com/snort3/libdaq/archive/refs/tags/v%{version}.tar.gz#/
+
+build
+       requires
+               autoconf
+               automake
+               cmocka-devel
+               libmnl-devel
+               libnetfilter_queue-devel
+               libpcap-devel
+               libtool
+       end
+
+       prepare_cmds
+               ./bootstrap
+       end
+
+       configure_options += \
+               --disable-static
+
+       # TODO Sadly the testsuite does not compile:
+       # /usr/bin/ld: ../api/.libs/libdaq.a(libdaq_la-daq_base.o): in function `daq_load_dynamic_module':
+       # /usr/src/debug/libdaq-3.0.10/api/daq_base.c:207: undefined reference to `__wrap_stat'
+
+       test
+               make check || :
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end