packages/net/kismet/Makefile
nbd ced97d6ec2 PATCH: upgrades kismet to 2007-10-R1
This patch updates kismet to 2007-10-R1.  I have been using
kismet_server compiled from this on r9512 for about a month on a
wgt634u with no problems.

Signed-off-by: Russell Senior <seniorr@aracnet.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@9653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-04 01:34:51 +00:00

140 lines
3.5 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=kismet
PKG_VERSION:=2007-10-R1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.kismetwireless.net/code
PKG_MD5SUM:=2100c667e69db0cde35fa2d06c8516e2
PKG_BUILD_DEPENDS:=libnotimpl libpcap libncurses uclibcxx
include $(INCLUDE_DIR)/package.mk
define Package/kismet/Default
SECTION:=net
CATEGORY:=Network
TITLE:=Kismet
DEPENDS:= +uclibcxx
URL:=http://www.kismetwireless.net/
SUBMENU:=wireless
endef
define Package/kismet/Default/description
An 802.11 layer2 wireless network detector, sniffer, and intrusion
detection system.
endef
define Package/kismet-client
$(call Package/kismet/Default)
TITLE+= client
DEPENDS+= +libncurses
endef
define Package/kismet-client/conffiles
/etc/kismet/ap_manuf
/etc/kismet/client_manuf
/etc/kismet/kismet.conf
/etc/kismet/kismet_ui.conf
endef
define Package/kismet-client/description
$(call Package/kismet/Default/description)
This package contains the kismet text interface client.
endef
define Package/kismet-drone
$(call Package/kismet/Default)
DEPENDS+= +libpcap
TITLE+= drone
endef
define Package/kismet-drone/conffiles
/etc/kismet/kismet_drone.conf
endef
define Package/kismet-drone/description
$(call Package/kismet/Default/description)
This package contains the kismet remote sniffing.and monitoring drone.
endef
define Package/kismet-server
$(call Package/kismet/Default)
DEPENDS+= +libpcap +dbus
TITLE+= server
endef
define Package/kismet-server/conffiles
/etc/kismet/ap_manuf
/etc/kismet/client_manuf
/etc/kismet/kismet.conf
endef
define Package/kismet-server/description
$(call Package/kismet/Default/description)
This package contains the kismet server.
endef
CONFIGURE_ARGS += \
--enable-syspcap=yes \
--disable-setuid \
--disable-wsp100 \
--disable-gpsmap \
CONFIGURE_VARS += \
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
LDFLAGS="$$$$LDFLAGS" \
LIBS="-nodefaultlibs -luClibc++ -lm -lnotimpl" \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
LD="\$$$$(CC)" \
all
endef
#FIXME: remove this package?
define Package/kismet/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
endef
define Package/kismet-client/install
$(INSTALL_DIR) $(1)/etc/kismet/
$(INSTALL_DATA) ./files/ap_manuf $(1)/etc/kismet/
$(INSTALL_DATA) ./files/client_manuf $(1)/etc/kismet/
$(INSTALL_DATA) ./files/kismet.conf $(1)/etc/kismet/
$(INSTALL_DATA) ./files/kismet_ui.conf $(1)/etc/kismet/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
endef
define Package/kismet-drone/install
$(INSTALL_DIR) $(1)/etc/kismet/
$(INSTALL_DATA) ./files/kismet_drone.conf $(1)/etc/kismet/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
endef
define Package/kismet-server/install
$(INSTALL_DIR) $(1)/etc/kismet/
$(INSTALL_DATA) ./files/ap_manuf $(1)/etc/kismet/
$(INSTALL_DATA) ./files/client_manuf $(1)/etc/kismet/
$(INSTALL_DATA) ./files/kismet.conf $(1)/etc/kismet/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
endef
$(eval $(call BuildPackage,kismet-client))
$(eval $(call BuildPackage,kismet-drone))
$(eval $(call BuildPackage,kismet-server))