2015-11-09 10:03:32 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# netsniff-ng
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-01-12 09:30:43 +01:00
|
|
|
NETSNIFF_NG_VERSION = 0.6.8
|
2017-04-19 20:31:45 +02:00
|
|
|
NETSNIFF_NG_SITE = http://pub.netsniff-ng.org/netsniff-ng
|
|
|
|
NETSNIFF_NG_SOURCE = netsniff-ng-$(NETSNIFF_NG_VERSION).tar.xz
|
2017-03-30 15:43:32 +02:00
|
|
|
NETSNIFF_NG_LICENSE = GPL-2.0
|
2015-11-09 10:03:32 +01:00
|
|
|
NETSNIFF_NG_LICENSE_FILES = README COPYING
|
2015-11-30 15:28:30 +01:00
|
|
|
# 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
|
2021-09-03 06:39:28 +02:00
|
|
|
NETSNIFF_NG_DEPENDENCIES = host-pkgconf libnl libpcap libnetfilter_conntrack liburcu
|
2019-03-04 09:57:41 +01:00
|
|
|
|
|
|
|
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
|
2015-11-09 10:03:32 +01:00
|
|
|
|
2015-12-17 15:33:56 +01:00
|
|
|
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
|
|
|
|
|
2015-11-09 10:03:32 +01:00
|
|
|
# hand-written configure script and makefile
|
|
|
|
define NETSNIFF_NG_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); \
|
2015-11-30 15:28:30 +01:00
|
|
|
$(NETSNIFF_NG_CONF_ENV) \
|
2015-11-09 10:03:32 +01:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--prefix=$(TARGET_DIR)/usr \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETSNIFF_NG_BUILD_CMDS
|
2019-03-04 09:57:41 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(NETSNIFF_NG_BUILD_MAKE_TARGET)
|
2015-11-09 10:03:32 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define NETSNIFF_NG_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2019-04-02 16:23:58 +02:00
|
|
|
PREFIX=$(TARGET_DIR)/usr ETCDIR=$(TARGET_DIR)/etc \
|
2019-03-04 09:57:41 +01:00
|
|
|
-C $(@D) $(NETSNIFF_NG_INSTALL_MAKE_TARGET)
|
2015-11-09 10:03:32 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|