![Vadim Kochan](/assets/img/avatar_default.png)
Update to new released version: https://github.com/netsniff-ng/netsniff-ng/releases/tag/v0.6.6 Changelog: implement rotating capture files in netsniff-ng fixed '--in -' to work again with STDIN in trafgen fixed -t 0 option to use sendto in trafgen checksum calculation for ICMP and TCP in astraceroute fix for reading mirrors from file in astraceroute use GZIP_ENV instead of GZIP in build system added error handling for mismatched address families in mausezahn Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# netsniff-ng
|
|
#
|
|
################################################################################
|
|
|
|
NETSNIFF_NG_VERSION = 0.6.6
|
|
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 = libnl libpcap libnetfilter_conntrack liburcu
|
|
|
|
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
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
NETSNIFF_NG_DEPENDENCIES += ncurses
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
NETSNIFF_NG_DEPENDENCIES += 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 \
|
|
--prefix=$(TARGET_DIR)/usr \
|
|
)
|
|
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))
|