--- /dev/null
+###############################################################################
+# 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