debianutils: bump to version 4.8.1
[buildroot-gz.git] / package / netsniff-ng / netsniff-ng.mk
blob4ec7e743f50b6fe622c05140c3689e58401771a9
1 ################################################################################
3 # netsniff-ng
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 \
17 liburcu libnet
19 ifeq ($(BR2_PACKAGE_GEOIP),y)
20 NETSNIFF_NG_DEPENDENCIES += geoip
21 endif
23 ifeq ($(BR2_PACKAGE_NCURSES),y)
24 NETSNIFF_NG_DEPENDENCIES += ncurses
25 endif
27 ifeq ($(BR2_PACKAGE_ZLIB),y)
28 NETSNIFF_NG_DEPENDENCIES += zlib
29 endif
31 # hand-written configure script and makefile
32 define NETSNIFF_NG_CONFIGURE_CMDS
33 (cd $(@D); \
34 $(NETSNIFF_NG_CONF_ENV) \
35 $(TARGET_CONFIGURE_ARGS) \
36 $(TARGET_CONFIGURE_OPTS) \
37 ./configure \
38 --prefix=$(TARGET_DIR)/usr \
40 endef
42 define NETSNIFF_NG_BUILD_CMDS
43 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
44 endef
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)
49 endef
51 $(eval $(generic-package))