buildroot/package/netsniff-ng/Config.in
Vadim Kochan b0f98d5800 package/netsniff-ng: allow to build with uclibc but w/o mausezahn
mausezahn can't be build with uclibc because uclibc does not provide
ceill() function, so it does not allow to build all netsniff-ng's
tools with uclibc.

Fix it by moving mausezahn under separate config option, which has own
dependencies and packages selection (libnet & libcli).

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[Thomas:
 - use the allbutmausezahn and install_allbutmausezahn targets inside
   of enumerating all the tools in the .mk file
 - stick to a "config" instead of introducing a "menuconfig"]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-28 18:46:56 +01:00

36 lines
1,021 B
Plaintext

config BR2_PACKAGE_NETSNIFF_NG
bool "netsniff-ng"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
select BR2_PACKAGE_LIBNL
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/ threads, headers >= 3.0"
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0