kumquat-buildroot/package/kismet/kismet.mk
Fabrice Fontaine d4aaa7ac4d package/kismet: bump to version 2022-02-R1
Linking with -latomic is handled by configure.ac since version
2022-01-R3 and
bbdfd21e2b

https://www.kismetwireless.net/release/kismet-2022-02-R1
https://www.kismetwireless.net/release/kismet-2022-01-R3
https://www.kismetwireless.net/release/kismet-2022-01-R2
https://www.kismetwireless.net/release/kismet-2022-01-R1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-03-14 13:17:39 +01:00

91 lines
2.1 KiB
Makefile

################################################################################
#
# kismet
#
################################################################################
KISMET_VERSION = 2022-02-R1
KISMET_SOURCE = kismet-$(KISMET_VERSION).tar.xz
KISMET_SITE = http://www.kismetwireless.net/code
KISMET_DEPENDENCIES = \
host-pkgconf \
libpcap \
$(if $(BR2_PACKAGE_LIBNL),libnl) \
$(if $(BR2_PACKAGE_PROTOBUF),protobuf) \
protobuf-c \
sqlite \
zlib
KISMET_LICENSE = GPL-2.0+
KISMET_LICENSE_FILES = LICENSE
KISMET_SELINUX_MODULES = kismet
KISMET_CONF_OPTS = --disable-debuglibs
KISMET_CXXFLAGS = $(TARGET_CXXFLAGS)
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
KISMET_CXXFLAGS += -O0
endif
KISMET_CONF_ENV += CXXFLAGS="$(KISMET_CXXFLAGS)"
ifeq ($(BR2_PACKAGE_LIBCAP),y)
KISMET_DEPENDENCIES += libcap
KISMET_CONF_OPTS += --enable-libcap
else
KISMET_CONF_OPTS += --disable-libcap
endif
ifeq ($(BR2_PACKAGE_LIBUSB),y)
KISMET_DEPENDENCIES += libusb
KISMET_CONF_OPTS += --enable-libusb
else
KISMET_CONF_OPTS += --disable-libusb
endif
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
KISMET_DEPENDENCIES += libwebsockets
KISMET_CONF_OPTS += --enable-libwebsockets
else
KISMET_CONF_OPTS += --disable-libwebsockets
endif
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
KISMET_DEPENDENCIES += lm-sensors
KISMET_CONF_OPTS += --enable-lmsensors
else
KISMET_CONF_OPTS += --disable-lmsensors
endif
ifeq ($(BR2_PACKAGE_PCRE),y)
KISMET_DEPENDENCIES += pcre
KISMET_CONF_OPTS += --enable-pcre
else
KISMET_CONF_OPTS += --disable-pcre
endif
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
KISMET_INSTALL_TARGET_OPTS += \
DESTDIR=$(TARGET_DIR) \
INSTUSR=$(shell id -u) \
INSTGRP=$(shell id -g) \
SUIDGROUP=$(shell id -g)
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
endif
$(eval $(autotools-package))