* [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/, net-libs/daq/files/
@ 2025-04-04 19:33 Arthur Zamarin
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2025-04-04 19:33 UTC (permalink / raw
To: gentoo-commits
commit: d32abde3460a19cce033cff6660f06b86ad5dce9
Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Wed May 8 11:13:40 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 4 19:33:11 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32abde3
net-libs/daq: Fix passing from incompatible pointer type
And update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/921572
Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
net-libs/daq/daq-2.0.7-r1.ebuild | 83 ++++++++++++++++++++++
net-libs/daq/files/daq-2.0.7-gcc14-build-fix.patch | 12 ++++
2 files changed, 95 insertions(+)
diff --git a/net-libs/daq/daq-2.0.7-r1.ebuild b/net-libs/daq/daq-2.0.7-r1.ebuild
new file mode 100644
index 000000000000..ef6d948ceb97
--- /dev/null
+++ b/net-libs/daq/daq-2.0.7-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Data Acquisition library, for packet I/O"
+HOMEPAGE="https://www.snort.org/"
+SRC_URI="https://www.snort.org/downloads/snort/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs"
+
+PCAP_DEPEND=">=net-libs/libpcap-1.0.0"
+IPT_DEPEND="
+ >=net-firewall/iptables-1.4.10
+ dev-libs/libdnet
+ net-libs/libnetfilter_queue
+"
+DEPEND="
+ dump? ( ${PCAP_DEPEND} )
+ ipq? ( ${IPT_DEPEND} )
+ nfq? ( ${IPT_DEPEND} )
+ pcap? ( ${PCAP_DEPEND} )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390
+ "${FILESDIR}"/${PN}-2.0.6-static-libs.patch
+ "${FILESDIR}"/${PN}-2.0.7-gcc14-build-fix.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # We forced libpcap to 1.x, so we can set this cache var so
+ # cross-compiling doesn't break on us.
+ local myeconfargs=(
+ $(use_enable afpacket afpacket-module)
+ $(use_enable dump dump-module)
+ $(use_enable ipq ipq-module)
+ $(use_enable ipv6)
+ $(use_enable nfq nfq-module)
+ $(use_enable pcap pcap-module)
+ $(use_enable static-libs static)
+ --disable-bundled-modules
+ --disable-ipfw-module
+ --enable-shared
+ )
+ daq_cv_libpcap_version_1x=yes \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -delete || die
+
+ # If not using static-libs don't install the static libraries
+ # This has been bugged upstream
+ if ! use static-libs; then
+ for z in libdaq_static libdaq_static_modules; do
+ rm -f "${ED}"/usr/$(get_libdir)/${z}.a || die
+ done
+ fi
+}
+
+pkg_postinst() {
+ einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct"
+ einfo "calls to PCAP functions with an abstraction layer that facilitates"
+ einfo "operation on a variety of hardware and software interfaces without"
+ einfo "requiring changes to application such as Snort."
+ einfo
+ einfo "Please see the README file for DAQ for information about specific"
+ einfo "DAQ modules."
+}
diff --git a/net-libs/daq/files/daq-2.0.7-gcc14-build-fix.patch b/net-libs/daq/files/daq-2.0.7-gcc14-build-fix.patch
new file mode 100644
index 000000000000..67e03b7671f0
--- /dev/null
+++ b/net-libs/daq/files/daq-2.0.7-gcc14-build-fix.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/921572
+--- a/os-daq-modules/daq_nfq.c
++++ b/os-daq-modules/daq_nfq.c
+@@ -391,7 +391,7 @@ static inline int SetPktHdr (
+ DAQ_PktHdr_t* hdr,
+ uint8_t** pkt
+ ) {
+- int len = nfq_get_payload(nfad, (char**)pkt);
++ int len = nfq_get_payload(nfad, (unsigned char**)pkt);
+
+ if ( len <= 0 )
+ return -1;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/, net-libs/daq/files/
@ 2025-04-04 19:33 Arthur Zamarin
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2025-04-04 19:33 UTC (permalink / raw
To: gentoo-commits
commit: b01d9b01543b659c8a6ebceb4ada54ae5979cec5
Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Fri Apr 4 18:50:54 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 4 19:33:19 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b01d9b01
net-libs/daq: Fix sys/unistd.h: No such file or directory
Closes: https://bugs.gentoo.org/833613
Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Closes: https://github.com/gentoo/gentoo/pull/36600
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
net-libs/daq/daq-2.0.7-r1.ebuild | 1 +
net-libs/daq/files/daq-2.0.7-musl-unistd-fix.patch | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/net-libs/daq/daq-2.0.7-r1.ebuild b/net-libs/daq/daq-2.0.7-r1.ebuild
index ef6d948ceb97..0de3cddd72f7 100644
--- a/net-libs/daq/daq-2.0.7-r1.ebuild
+++ b/net-libs/daq/daq-2.0.7-r1.ebuild
@@ -32,6 +32,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390
"${FILESDIR}"/${PN}-2.0.6-static-libs.patch
"${FILESDIR}"/${PN}-2.0.7-gcc14-build-fix.patch
+ "${FILESDIR}"/${PN}-2.0.7-musl-unistd-fix.patch
)
src_prepare() {
diff --git a/net-libs/daq/files/daq-2.0.7-musl-unistd-fix.patch b/net-libs/daq/files/daq-2.0.7-musl-unistd-fix.patch
new file mode 100644
index 000000000000..fe29d012e799
--- /dev/null
+++ b/net-libs/daq/files/daq-2.0.7-musl-unistd-fix.patch
@@ -0,0 +1,12 @@
+# https://bugs.gentoo.org/833613
+--- a/os-daq-modules/daq_nfq.c
++++ b/os-daq-modules/daq_nfq.c
+@@ -27,7 +27,7 @@
+
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <netinet/ip.h>
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-04 19:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-04 19:33 [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/, net-libs/daq/files/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2025-04-04 19:33 Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox