summaryrefslogtreecommitdiff
path: root/package/kismet/kismet.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/kismet/kismet.mk')
-rw-r--r--package/kismet/kismet.mk32
1 files changed, 23 insertions, 9 deletions
diff --git a/package/kismet/kismet.mk b/package/kismet/kismet.mk
index 6135c8873..482c7dbec 100644
--- a/package/kismet/kismet.mk
+++ b/package/kismet/kismet.mk
@@ -4,7 +4,7 @@
#
#############################################################
-KISMET_VERSION = 2010-01-R1
+KISMET_VERSION = 2010-07-R1
KISMET_SITE = http://www.kismetwireless.net/code
KISMET_DEPENDENCIES = libpcap ncurses
@@ -29,24 +29,38 @@ ifeq ($(BR2_PACKAGE_KISMET_DRONE),y)
KISMET_TARGET_CONFIGS += kismet_drone.conf
endif
-$(eval $(call AUTOTARGETS,package,kismet))
-
-$(KISMET_TARGET_INSTALL_TARGET):
- $(call MESSAGE,"Installing")
ifdef KISMET_TARGET_BINARIES
+define KISMET_INSTALL_TARGET_BINARIES
$(INSTALL) -m 755 $(addprefix $(KISMET_DIR)/, $(KISMET_TARGET_BINARIES)) $(TARGET_DIR)/usr/bin
+endef
endif
+
ifdef KISMET_TARGET_CONFIGS
+define KISMET_INSTALL_TARGET_CONFIGS
$(INSTALL) -m 644 $(addprefix $(KISMET_DIR)/conf/, $(KISMET_TARGET_CONFIGS)) $(TARGET_DIR)/etc
+endef
endif
- touch $@
-$(KISMET_TARGET_UNINSTALL):
- $(call MESSAGE,"Uninstalling")
+define KISMET_INSTALL_TARGET_CMDS
+ $(KISMET_INSTALL_TARGET_BINARIES)
+ $(KISMET_INSTALL_TARGET_CONFIGS)
+endef
+
ifdef KISMET_TARGET_BINARIES
+define KISMET_UNINSTALL_TARGET_BINARIES
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(KISMET_TARGET_BINARIES))
+endef
endif
+
ifdef KISMET_TARGET_CONFIGS
+define KISMET_UNINSTALL_TARGET_CONFIGS
rm -f $(addprefix $(TARGET_DIR)/etc/, $(KISMET_TARGET_CONFIGS))
+endef
endif
- rm -f $(KISMET_TARGET_INSTALL_TARGET) $(KISMET_HOOK_POST_INSTALL)
+
+define KISMET_UNINSTALL_TARGET_CMDS
+ $(KISMET_UNINSTALL_TARGET_BINARIES)
+ $(KISMET_UNINSTALL_TARGET_CONFIGS)
+endef
+
+$(eval $(call AUTOTARGETS,package,kismet))