2007-10-30 10:16:51 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# kismet
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
KISMET_VERSION = 2009-06-R1
|
|
|
|
KISMET_SOURCE = kismet-$(KISMET_VERSION).tar.gz
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,kismet))
|
2007-10-30 10:16:51 +01:00
|
|
|
|
2009-09-01 19:01:40 +02:00
|
|
|
$(KISMET_TARGET_INSTALL_TARGET):
|
|
|
|
$(call MESSAGE,"Installing")
|
|
|
|
$(INSTALL) -m 755 $(addprefix $(KISMET_DIR)/, $(KISMET_TARGET_BINARIES)) $(TARGET_DIR)/usr/bin
|
|
|
|
$(INSTALL) -m 644 $(addprefix $(KISMET_DIR)/conf/, $(KISMET_TARGET_CONFIGS)) $(TARGET_DIR)/etc
|
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),)
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(addprefix $(TARGET_DIR)/usr/bin/, $(KISMET_TARGET_BINARIES))
|
2007-10-30 10:16:51 +01:00
|
|
|
endif
|
2009-09-01 19:01:40 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(KISMET_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(KISMET_TARGET_BINARIES))
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/etc/, $(KISMET_TARGET_CONFIGS))
|
|
|
|
rm -f $(KISMET_TARGET_INSTALL_TARGET) $(KISMET_HOOK_POST_INSTALL)
|