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
|
|
|
|
2013-04-12 01:49:41 +02:00
|
|
|
KISMET_VERSION = 2013-03-R1b
|
2013-09-06 08:14:15 +02:00
|
|
|
KISMET_SOURCE = kismet-$(KISMET_VERSION).tar.xz
|
2009-09-01 19:01:40 +02:00
|
|
|
KISMET_SITE = http://www.kismetwireless.net/code
|
2013-04-12 01:49:41 +02:00
|
|
|
KISMET_DEPENDENCIES = host-pkgconf libpcap ncurses libnl
|
|
|
|
KISMET_CONF_OPT += --with-netlink-version=3
|
2013-01-29 09:23:58 +01:00
|
|
|
KISMET_LICENSE = GPLv2+
|
2013-04-11 23:57:07 +02:00
|
|
|
KISMET_LICENSE_FILES = debian/copyright
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
KISMET_DEPENDENCIES += pcre
|
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_CLIENT),y)
|
|
|
|
KISMET_TARGET_BINARIES += kismet_client
|
|
|
|
endif
|
2007-10-31 13:46:52 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_SERVER),y)
|
|
|
|
KISMET_TARGET_BINARIES += kismet_server
|
|
|
|
KISMET_TARGET_CONFIGS += kismet.conf
|
|
|
|
endif
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_KISMET_DRONE),y)
|
|
|
|
KISMET_TARGET_BINARIES += kismet_drone
|
|
|
|
KISMET_TARGET_CONFIGS += kismet_drone.conf
|
|
|
|
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
|
|
|
|
|
2010-08-29 19:38:04 +02:00
|
|
|
ifdef KISMET_TARGET_BINARIES
|
2010-09-01 23:22:39 +02:00
|
|
|
define KISMET_UNINSTALL_TARGET_BINARIES
|
2009-09-01 19:01:40 +02:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(KISMET_TARGET_BINARIES))
|
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_UNINSTALL_TARGET_CONFIGS
|
2009-09-01 19:01:40 +02:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/etc/, $(KISMET_TARGET_CONFIGS))
|
2010-09-01 23:22:39 +02:00
|
|
|
endef
|
2010-01-19 20:13:55 +01:00
|
|
|
endif
|
2010-09-01 23:22:39 +02:00
|
|
|
|
|
|
|
define KISMET_UNINSTALL_TARGET_CMDS
|
|
|
|
$(KISMET_UNINSTALL_TARGET_BINARIES)
|
|
|
|
$(KISMET_UNINSTALL_TARGET_CONFIGS)
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|