2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-10-30 10:16:51 +01:00
|
|
|
#
|
|
|
|
# kismet
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2020-12-22 17:46:26 +01:00
|
|
|
KISMET_VERSION = 2020-12-R3
|
2017-07-24 22:06:55 +02:00
|
|
|
KISMET_SOURCE = kismet-$(KISMET_VERSION).tar.xz
|
|
|
|
KISMET_SITE = http://www.kismetwireless.net/code
|
2020-10-04 17:50:03 +02:00
|
|
|
KISMET_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
libpcap \
|
|
|
|
$(if $(BR2_PACKAGE_LIBNL),libnl) \
|
|
|
|
$(if $(BR2_PACKAGE_PROTOBUF),protobuf) \
|
|
|
|
protobuf-c \
|
|
|
|
sqlite \
|
|
|
|
zlib
|
2017-03-30 15:43:32 +02:00
|
|
|
KISMET_LICENSE = GPL-2.0+
|
2020-10-04 17:50:03 +02:00
|
|
|
KISMET_LICENSE_FILES = LICENSE
|
2021-01-28 10:27:55 +01:00
|
|
|
KISMET_SELINUX_MODULES = kismet
|
2021-04-02 20:14:58 +02:00
|
|
|
# Needed because tarball configure has not been rebuilt after
|
|
|
|
# https://github.com/kismetwireless/kismet/commit/e70968bcbca86dd448d619c40cdeaae8b7dcee98
|
|
|
|
KISMET_AUTORECONF = YES
|
2021-01-28 10:27:55 +01:00
|
|
|
|
2020-10-04 17:50:04 +02:00
|
|
|
KISMET_CONF_OPTS = --disable-debuglibs
|
2014-12-26 22:08:00 +01:00
|
|
|
|
2019-05-21 15:39:29 +02:00
|
|
|
KISMET_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
KISMET_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
KISMET_CONF_ENV += CXXFLAGS="$(KISMET_CXXFLAGS)"
|
|
|
|
|
2020-10-16 08:43:20 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
KISMET_CONF_ENV += LIBS=-latomic
|
|
|
|
endif
|
|
|
|
|
2016-02-21 15:48:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
KISMET_DEPENDENCIES += libcap
|
2020-10-04 17:50:03 +02:00
|
|
|
KISMET_CONF_OPTS += --enable-libcap
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-libcap
|
2016-02-21 15:48:42 +01:00
|
|
|
endif
|
|
|
|
|
2020-10-04 17:50:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
KISMET_DEPENDENCIES += libusb
|
|
|
|
KISMET_CONF_OPTS += --enable-libusb
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-libusb
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-31 13:46:52 +01:00
|
|
|
|
2020-12-22 17:46:26 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
|
|
|
|
KISMET_DEPENDENCIES += libwebsockets
|
|
|
|
KISMET_CONF_OPTS += --enable-libwebsockets
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-libwebsockets
|
|
|
|
endif
|
|
|
|
|
2020-10-04 17:50:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
|
|
|
KISMET_DEPENDENCIES += lm-sensors
|
|
|
|
KISMET_CONF_OPTS += --enable-lmsensors
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-lmsensors
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2020-10-04 17:50:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
KISMET_DEPENDENCIES += pcre
|
|
|
|
KISMET_CONF_OPTS += --enable-pcre
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-pcre
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2020-10-04 17:50:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_PYTHON_TOOLS),y)
|
|
|
|
KISMET_DEPENDENCIES += python3 python-setuptools
|
|
|
|
KISMET_CONF_OPTS += \
|
|
|
|
--enable-python-tools \
|
|
|
|
--with-python-interpreter=$(HOST_DIR)/bin/python$(PYTHON3_VERSION_MAJOR)
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --disable-python-tools
|
|
|
|
endif
|
|
|
|
|
2020-10-04 17:50:03 +02:00
|
|
|
KISMET_INSTALL_TARGET_OPTS += \
|
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
INSTUSR=$(shell id -u) \
|
|
|
|
INSTGRP=$(shell id -g) \
|
|
|
|
SUIDGROUP=$(shell id -g)
|
2010-09-01 23:22:39 +02:00
|
|
|
|
2020-10-04 17:50:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_SERVER),y)
|
|
|
|
KISMET_CONF_OPTS += --disable-capture-tools-only
|
|
|
|
KISMET_INSTALL_TARGET_OPTS += install
|
|
|
|
else
|
|
|
|
KISMET_CONF_OPTS += --enable-capture-tools-only
|
|
|
|
KISMET_INSTALL_TARGET_OPTS += binsuidinstall
|
2007-10-30 10:16:51 +01:00
|
|
|
endif
|
2009-09-01 19:01:40 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|