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
|
|
|
|
2017-07-24 22:06:55 +02:00
|
|
|
KISMET_VERSION = 2016-07-R1
|
|
|
|
KISMET_SOURCE = kismet-$(KISMET_VERSION).tar.xz
|
|
|
|
KISMET_SITE = http://www.kismetwireless.net/code
|
2013-04-12 01:49:41 +02:00
|
|
|
KISMET_DEPENDENCIES = host-pkgconf libpcap ncurses libnl
|
2014-09-27 21:32:44 +02:00
|
|
|
KISMET_CONF_OPTS += --with-netlink-version=3
|
2017-03-30 15:43:32 +02:00
|
|
|
KISMET_LICENSE = GPL-2.0+
|
2013-04-11 23:57:07 +02:00
|
|
|
KISMET_LICENSE_FILES = debian/copyright
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2014-12-26 22:08:00 +01:00
|
|
|
# We touch configure.in:
|
|
|
|
KISMET_AUTORECONF = YES
|
|
|
|
|
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)"
|
|
|
|
|
2016-02-21 15:48:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
KISMET_DEPENDENCIES += libcap
|
|
|
|
endif
|
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
KISMET_DEPENDENCIES += pcre
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_CLIENT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
KISMET_TARGET_BINARIES += kismet_client
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-31 13:46:52 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_SERVER),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
KISMET_TARGET_BINARIES += kismet_server
|
|
|
|
KISMET_TARGET_CONFIGS += kismet.conf
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_DRONE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
KISMET_TARGET_BINARIES += kismet_drone
|
|
|
|
KISMET_TARGET_CONFIGS += kismet_drone.conf
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2010-08-29 19:38:04 +02:00
|
|
|
ifdef KISMET_TARGET_BINARIES
|
2010-09-01 23:22:39 +02:00
|
|
|
define KISMET_INSTALL_TARGET_BINARIES
|
2009-09-01 19:01:40 +02:00
|
|
|
$(INSTALL) -m 755 $(addprefix $(KISMET_DIR)/, $(KISMET_TARGET_BINARIES)) $(TARGET_DIR)/usr/bin
|
2010-09-01 23:22:39 +02:00
|
|
|
endef
|
2010-08-29 19:38:04 +02:00
|
|
|
endif
|
2010-09-01 23:22:39 +02:00
|
|
|
|
2010-01-19 20:13:55 +01:00
|
|
|
ifdef KISMET_TARGET_CONFIGS
|
2010-09-01 23:22:39 +02:00
|
|
|
define KISMET_INSTALL_TARGET_CONFIGS
|
2009-09-01 19:01:40 +02:00
|
|
|
$(INSTALL) -m 644 $(addprefix $(KISMET_DIR)/conf/, $(KISMET_TARGET_CONFIGS)) $(TARGET_DIR)/etc
|
2010-09-01 23:22:39 +02:00
|
|
|
endef
|
2007-10-30 10:16:51 +01:00
|
|
|
endif
|
2009-09-01 19:01:40 +02:00
|
|
|
|
2010-09-01 23:22:39 +02:00
|
|
|
define KISMET_INSTALL_TARGET_CMDS
|
|
|
|
$(KISMET_INSTALL_TARGET_BINARIES)
|
|
|
|
$(KISMET_INSTALL_TARGET_CONFIGS)
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|