2006-07-24 07:07:41 +00:00
|
|
|
#
|
2010-07-11 00:37:05 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-24 07:07:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kismet
|
2010-08-13 13:13:45 +00:00
|
|
|
PKG_VERSION:=2010-07-R1
|
2010-06-23 14:48:11 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-24 07:07:41 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.kismetwireless.net/code
|
2010-08-13 13:13:45 +00:00
|
|
|
PKG_MD5SUM:=85e59186eb529889118b5635f35cf57d
|
2006-07-24 07:07:41 +00:00
|
|
|
|
2010-10-27 17:43:47 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libpcap libncurses uclibcxx libpcre libnl-tiny
|
2006-07-24 07:07:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/kismet/Default
|
2006-07-24 07:07:41 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-09-03 15:58:55 +00:00
|
|
|
TITLE:=Kismet
|
2010-10-27 17:43:47 +00:00
|
|
|
DEPENDS:= +uclibcxx +libnl-tiny
|
2006-07-24 07:07:41 +00:00
|
|
|
URL:=http://www.kismetwireless.net/
|
2007-10-18 18:37:22 +00:00
|
|
|
SUBMENU:=wireless
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/kismet/Default/description
|
2008-07-06 14:12:39 +00:00
|
|
|
An 802.11 layer2 wireless network detector, sniffer, and intrusion
|
2007-09-03 15:58:55 +00:00
|
|
|
detection system.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-client
|
|
|
|
$(call Package/kismet/Default)
|
|
|
|
TITLE+= client
|
|
|
|
DEPENDS+= +libncurses
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:07:41 +00:00
|
|
|
define Package/kismet-client/conffiles
|
|
|
|
/etc/kismet/kismet.conf
|
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/kismet-client/description
|
|
|
|
$(call Package/kismet/Default/description)
|
|
|
|
This package contains the kismet text interface client.
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:07:41 +00:00
|
|
|
define Package/kismet-drone
|
2007-09-03 15:58:55 +00:00
|
|
|
$(call Package/kismet/Default)
|
2009-08-13 10:42:02 +00:00
|
|
|
DEPENDS+= +libpcap +libpcre
|
2007-09-03 15:58:55 +00:00
|
|
|
TITLE+= drone
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-drone/conffiles
|
|
|
|
/etc/kismet/kismet_drone.conf
|
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/kismet-drone/description
|
|
|
|
$(call Package/kismet/Default/description)
|
|
|
|
This package contains the kismet remote sniffing.and monitoring drone.
|
|
|
|
endef
|
|
|
|
|
2006-07-24 07:07:41 +00:00
|
|
|
define Package/kismet-server
|
2007-09-03 15:58:55 +00:00
|
|
|
$(call Package/kismet/Default)
|
2009-08-13 10:42:02 +00:00
|
|
|
DEPENDS+= +libpcap +libpcre
|
2007-09-03 15:58:55 +00:00
|
|
|
TITLE+= server
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-server/conffiles
|
|
|
|
/etc/kismet/kismet.conf
|
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/kismet-server/description
|
|
|
|
$(call Package/kismet/Default/description)
|
|
|
|
This package contains the kismet server.
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2009-03-25 10:15:26 +00:00
|
|
|
--sysconfdir=/etc/kismet \
|
2007-09-03 15:58:55 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
2010-02-21 21:37:29 +00:00
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
2007-09-03 15:58:55 +00:00
|
|
|
LDFLAGS="$$$$LDFLAGS" \
|
2012-02-14 17:34:08 +00:00
|
|
|
LIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S)" \
|
2012-02-15 09:34:08 +00:00
|
|
|
CLIENTCLIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S)" \
|
2010-10-27 17:43:47 +00:00
|
|
|
libnl1_LIBS="-libnl-tiny"
|
2007-09-03 15:58:55 +00:00
|
|
|
|
2006-07-24 07:07:41 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-08-03 21:49:31 +00:00
|
|
|
LD="$(TARGET_CXX)" \
|
2006-07-24 07:07:41 +00:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
#FIXME: remove this package?
|
|
|
|
define Package/kismet/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/kismet $(1)/usr/bin/kismet
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-client/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/kismet/
|
2009-08-13 10:37:14 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-drone/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/kismet/
|
2009-08-13 10:37:14 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_drone.conf $(1)/etc/kismet/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kismet-server/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/kismet/
|
2009-08-13 10:37:14 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
|
2006-07-24 07:07:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,kismet-client))
|
|
|
|
$(eval $(call BuildPackage,kismet-drone))
|
|
|
|
$(eval $(call BuildPackage,kismet-server))
|