Adding Kismet, closing #1557
authorThomas Lundquist <lists@zelow.no>
Tue, 30 Oct 2007 09:16:51 +0000 (09:16 -0000)
committerThomas Lundquist <lists@zelow.no>
Tue, 30 Oct 2007 09:16:51 +0000 (09:16 -0000)
package/Config.in
package/kismet/Config.in [new file with mode: 0644]
package/kismet/kismet.mk [new file with mode: 0644]

index 0583a5aa04423d120250ed3be03eca849c173116..ce8ca44d6835d934b159c2f4edbd2737472bfea0 100644 (file)
@@ -148,6 +148,7 @@ source "package/iperf/Config.in"
 source "package/iproute2/Config.in"
 source "package/ipsec-tools/Config.in"
 source "package/iptables/Config.in"
+source "package/kismet/Config.in"
 source "package/l2tp/Config.in"
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
diff --git a/package/kismet/Config.in b/package/kismet/Config.in
new file mode 100644 (file)
index 0000000..8b35e94
--- /dev/null
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_KISMET
+       bool "kismet"
+       select BR2_PACKAGE_NCURSES 
+       select BR2_PACKAGE_LIBPCAP
+       default n
+       help
+               Kismet - 802.11 layer2 wireless network detector, sniffer, and intrusion detection system
+
+               Kismet will work with any wireless card which supports raw monitoring (rfmon) mode, and can
+               sniff 802.11b, 802.11a, and 802.11g traffic.
+               
+               Kismet identifies networks by passively collecting packets and detecting standard named
+               networks, detecting (and given time, decloaking) hidden networks, and infering the presence
+               of nonbeaconing networks via data traffic. 
+
diff --git a/package/kismet/kismet.mk b/package/kismet/kismet.mk
new file mode 100644 (file)
index 0000000..77bac33
--- /dev/null
@@ -0,0 +1,79 @@
+#############################################################
+#
+# kismet
+#
+#############################################################
+KISMET_VERSION:=2007-10-R1
+KISMET_SOURCE:=kismet-$(KISMET_VERSION).tar.gz
+KISMET_SITE:=http://www.kismetwireless.net/code/
+KISMET_DIR:=$(BUILD_DIR)/kismet-$(KISMET_VERSION)
+KISMET_CAT:=$(ZCAT)
+KISMET_BINARY:=kismet
+KISMET_TARGET_DIRECTORY=usr/bin/
+
+$(DL_DIR)/$(KISMET_SOURCE):
+       $(WGET) -P $(DL_DIR) $(KISMET_SITE)/$(KISMET_SOURCE)
+
+kismet-source: $(DL_DIR)/$(KISMET_SOURCE)
+
+$(KISMET_DIR)/.patched: $(DL_DIR)/$(KISMET_SOURCE)
+       $(KISMET_CAT) $(DL_DIR)/$(KISMET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+       toolchain/patch-kernel.sh $(KISMET_DIR) package/kismet/ kismet\*.patch
+       touch $@
+
+$(KISMET_DIR)/.configured: $(KISMET_DIR)/.patched
+       (cd $(KISMET_DIR); rm -rf config.cache; \
+               $(TARGET_CONFIGURE_OPTS) \
+               $(TARGET_CONFIGURE_ARGS) \
+               ./configure \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
+       )
+       touch $@
+
+$(KISMET_DIR)/$(KISMET_BINARY): $(KISMET_DIR)/.configured
+       $(MAKE) CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" \
+               -C $(KISMET_DIR)
+
+$(TARGET_DIR)/$(KISMET_TARGET_BINARY): $(KISMET_DIR)/$(KISMET_BINARY)
+       install -m 755 $(KISMET_DIR)/kismet $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet
+       install -m 755 $(KISMET_DIR)/kismet_client $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_client
+       install -m 755 $(KISMET_DIR)/kismet_drone $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_drone
+       install -m 755 $(KISMET_DIR)/kismet_server $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_server
+       install -m 755 $(KISMET_DIR)/conf/kismet.conf $(TARGET_DIR)/etc/kismet.conf
+
+kismet: uclibc ncurses libpcap $(TARGET_DIR)/$(KISMET_TARGET_BINARY)
+
+kismet-clean:
+       rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet
+       rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_client
+       rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_drone
+       rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_server
+       rm -f $(KISMET_DIR)/conf/kismet.conf $(TARGET_DIR)/etc/kismet.conf
+
+
+       -$(MAKE) -C $(KISMET_DIR) clean
+
+kismet-dirclean:
+       rm -rf $(KISMET_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_KISMET)),y)
+TARGETS+=kismet
+endif