1 ################################################################################
5 ################################################################################
7 NETSNIFF_NG_VERSION
= v0.6
.2
8 NETSNIFF_NG_SITE
= $(call github
,netsniff-ng
,netsniff-ng
,$(NETSNIFF_NG_VERSION
))
9 NETSNIFF_NG_LICENSE
= GPLv2
10 NETSNIFF_NG_LICENSE_FILES
= README COPYING
11 # Prevent netsniff-ng configure script from finding a host installed nacl
12 NETSNIFF_NG_CONF_ENV
= \
13 NACL_INC_DIR
=/dev
/null \
14 NACL_LIB_DIR
=/dev
/null
15 NETSNIFF_NG_DEPENDENCIES
= \
16 libnl libpcap libcli libnetfilter_conntrack \
19 ifeq ($(BR2_PACKAGE_GEOIP
),y
)
20 NETSNIFF_NG_DEPENDENCIES
+= geoip
23 ifeq ($(BR2_PACKAGE_NCURSES
),y
)
24 NETSNIFF_NG_DEPENDENCIES
+= ncurses
27 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
28 NETSNIFF_NG_DEPENDENCIES
+= zlib
31 # hand-written configure script and makefile
32 define NETSNIFF_NG_CONFIGURE_CMDS
34 $(NETSNIFF_NG_CONF_ENV
) \
35 $(TARGET_CONFIGURE_ARGS
) \
36 $(TARGET_CONFIGURE_OPTS
) \
38 --prefix=$(TARGET_DIR
)/usr \
42 define NETSNIFF_NG_BUILD_CMDS
43 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
)
46 define NETSNIFF_NG_INSTALL_TARGET_CMDS
47 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) \
48 PREFIX
=$(TARGET_DIR
)/usr ETCDIR
=$(TARGET_DIR
)/etc
install -C
$(@D
)
51 $(eval
$(generic-package
))