2007-10-30 10:16:51 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# kismet
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-04-27 20:05:09 +02:00
|
|
|
KISMET_VERSION = 2011-03-R2
|
2009-09-01 19:01:40 +02:00
|
|
|
KISMET_SITE = http://www.kismetwireless.net/code
|
|
|
|
KISMET_DEPENDENCIES = libpcap ncurses
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
KISMET_DEPENDENCIES += libnl
|
2011-12-03 18:03:32 +01:00
|
|
|
KISMET_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/"
|
2009-09-01 19:01:40 +02:00
|
|
|
endif
|
|
|
|
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
|
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|