2015-11-09 10:03:32 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# netsniff-ng
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-12-17 15:33:57 +01:00
|
|
|
NETSNIFF_NG_VERSION = v0.6.0
|
2015-11-09 10:03:32 +01:00
|
|
|
NETSNIFF_NG_SITE = $(call github,netsniff-ng,netsniff-ng,$(NETSNIFF_NG_VERSION))
|
|
|
|
NETSNIFF_NG_LICENSE = GPLv2
|
|
|
|
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
|
2015-11-09 10:03:32 +01:00
|
|
|
NETSNIFF_NG_DEPENDENCIES = \
|
|
|
|
libnl libpcap libcli libnetfilter_conntrack \
|
|
|
|
liburcu libnet
|
|
|
|
|
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
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETSNIFF_NG_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
PREFIX=$(TARGET_DIR)/usr ETCDIR=$(TARGET_DIR)/etc install -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|