Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
From 1af7ae33e3e8178ab5c649c3a52838d4375c4228 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
|
||||
Date: Tue, 10 Jun 2025 14:47:54 +0200
|
||||
Subject: [PATCH] mausezahn: fixed compilation with gcc-15
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
gcc-15 by default uses C23 standard which is more strict on forward
|
||||
declarations.
|
||||
|
||||
Original report: https://bugzilla.redhat.com/show_bug.cgi?id=2340924
|
||||
|
||||
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
|
||||
|
||||
Upstream: https://github.com/netsniff-ng/netsniff-ng/commit/1af7ae33e3e8178ab5c649c3a52838d4375c4228
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
staging/mops.h | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/staging/mops.h b/staging/mops.h
|
||||
index cf19f098..ae3769a7 100644
|
||||
--- a/staging/mops.h
|
||||
+++ b/staging/mops.h
|
||||
@@ -940,9 +940,9 @@ int mops_direct(char* dev, int mops_type, char* argstring);
|
||||
|
||||
|
||||
struct automops * automops_init(void);
|
||||
-struct automops * automops_alloc_protocol();
|
||||
-struct automops * automops_delete_protocol();
|
||||
-struct automops * automops_search_protocol();
|
||||
+struct automops * automops_alloc_protocol(struct automops *cur);
|
||||
+struct automops * automops_delete_protocol(struct automops *cur);
|
||||
+struct automops * automops_search_protocol(struct automops *list, char *name);
|
||||
int automops_dump_all (struct automops* list);
|
||||
void automops_set_defaults(struct automops * cur);
|
||||
struct fields * automops_add_field (struct automops *amp);
|
||||
36
package/netsniff-ng/Config.in
Normal file
36
package/netsniff-ng/Config.in
Normal file
@@ -0,0 +1,36 @@
|
||||
config BR2_PACKAGE_NETSNIFF_NG
|
||||
bool "netsniff-ng"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_spin_lock
|
||||
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
|
||||
depends on BR2_INSTALL_LIBSTDCPP # liburcu
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
|
||||
select BR2_PACKAGE_LIBURCU
|
||||
help
|
||||
netsniff-ng is a free, performant Linux network analyzer and
|
||||
networking toolkit. If you will, the Swiss army knife for
|
||||
network packets.
|
||||
|
||||
http://netsniff-ng.org
|
||||
|
||||
if BR2_PACKAGE_NETSNIFF_NG
|
||||
|
||||
config BR2_PACKAGE_NETSNIFF_NG_MAUSEZAHN
|
||||
bool "mausezahn"
|
||||
default y
|
||||
# Build with uClibc fails due to missing ceill()
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC
|
||||
select BR2_PACKAGE_LIBCLI
|
||||
select BR2_PACKAGE_LIBNET
|
||||
|
||||
comment "mausezahn needs glibc or musl toolchain"
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
endif
|
||||
|
||||
comment "netsniff-ng needs a toolchain w/ NPTL, C++, headers >= 3.0"
|
||||
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
||||
5
package/netsniff-ng/netsniff-ng.hash
Normal file
5
package/netsniff-ng/netsniff-ng.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking signature
|
||||
sha256 027840fa3c4e11abfe4fd0fffe9909c5c4ed1428d4b9397fb6d2f5ea69325918 netsniff-ng-0.6.9.tar.xz
|
||||
# Locally computed
|
||||
sha256 b353349ba51e0d4b59cf2f188f0c285296e154ce8c58954bc5e0dc0282a4db2d README
|
||||
sha256 8f6d85366f3763557d6ddd0637988b9ba11edef354e3c9302fff4262a235c387 COPYING
|
||||
72
package/netsniff-ng/netsniff-ng.mk
Normal file
72
package/netsniff-ng/netsniff-ng.mk
Normal file
@@ -0,0 +1,72 @@
|
||||
################################################################################
|
||||
#
|
||||
# netsniff-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NETSNIFF_NG_VERSION = 0.6.9
|
||||
NETSNIFF_NG_SITE = http://pub.netsniff-ng.org/netsniff-ng
|
||||
NETSNIFF_NG_SOURCE = netsniff-ng-$(NETSNIFF_NG_VERSION).tar.xz
|
||||
NETSNIFF_NG_LICENSE = GPL-2.0
|
||||
NETSNIFF_NG_LICENSE_FILES = README COPYING
|
||||
# Prevent netsniff-ng configure script from finding a host installed nacl
|
||||
NETSNIFF_NG_CONF_ENV = \
|
||||
NACL_INC_DIR=/dev/null \
|
||||
NACL_LIB_DIR=/dev/null
|
||||
NETSNIFF_NG_DEPENDENCIES = host-pkgconf libpcap libnetfilter_conntrack liburcu
|
||||
NETSNIFF_NG_CONF_OPTS = --prefix=$(TARGET_DIR)/usr
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NETSNIFF_NG_MAUSEZAHN),y)
|
||||
NETSNIFF_NG_DEPENDENCIES += libcli libnet
|
||||
NETSNIFF_NG_BUILD_MAKE_TARGET = all
|
||||
NETSNIFF_NG_INSTALL_MAKE_TARGET = install
|
||||
else
|
||||
NETSNIFF_NG_BUILD_MAKE_TARGET = allbutmausezahn
|
||||
NETSNIFF_NG_INSTALL_MAKE_TARGET = install_allbutmausezahn
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
||||
NETSNIFF_NG_DEPENDENCIES += geoip
|
||||
else
|
||||
NETSNIFF_NG_CONF_OPTS += --disable-geoip
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
||||
NETSNIFF_NG_DEPENDENCIES += libnl
|
||||
else
|
||||
NETSNIFF_NG_CONF_OPTS += --disable-libnl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
||||
NETSNIFF_NG_DEPENDENCIES += ncurses
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
NETSNIFF_NG_DEPENDENCIES += zlib
|
||||
else
|
||||
NETSNIFF_NG_CONF_OPTS += --disable-zlib
|
||||
endif
|
||||
|
||||
# hand-written configure script and makefile
|
||||
define NETSNIFF_NG_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(NETSNIFF_NG_CONF_ENV) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
$(NETSNIFF_NG_CONF_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define NETSNIFF_NG_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
||||
$(NETSNIFF_NG_BUILD_MAKE_TARGET)
|
||||
endef
|
||||
|
||||
define NETSNIFF_NG_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
PREFIX=$(TARGET_DIR)/usr ETCDIR=$(TARGET_DIR)/etc \
|
||||
-C $(@D) $(NETSNIFF_NG_INSTALL_MAKE_TARGET)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user