500d287b07
[Thomas: - add comment in Config.in to explain why this package depends on glibc, and specifically why it doesn't build for uClibc and musl. - add hash file. - add 'COPYING' to the list of LICENSE_FILES - add themissing <pkg>_DEPENDENCIES variable in the .mk file, to make sure dependencies are built before netsniff-ng. - add comment in the .mk file explain why we're using the generic-package infrastructure even if the build procedure is essentially ./configure, make, make install. - fix indentation in NETSNIFF_NG_CONFIGURE_CMDS.] Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
959 B
Makefile
35 lines
959 B
Makefile
################################################################################
|
|
#
|
|
# netsniff-ng
|
|
#
|
|
################################################################################
|
|
|
|
NETSNIFF_NG_VERSION = v0.5.9
|
|
NETSNIFF_NG_SITE = $(call github,netsniff-ng,netsniff-ng,$(NETSNIFF_NG_VERSION))
|
|
NETSNIFF_NG_LICENSE = GPLv2
|
|
NETSNIFF_NG_LICENSE_FILES = README COPYING
|
|
NETSNIFF_NG_DEPENDENCIES = \
|
|
libnl libpcap libcli libnetfilter_conntrack \
|
|
liburcu libnet
|
|
|
|
# hand-written configure script and makefile
|
|
define NETSNIFF_NG_CONFIGURE_CMDS
|
|
(cd $(@D); \
|
|
$(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))
|