mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
kismet: added new version of the kismet wireless network system
Signed-off-by: Sebastian Wendel <packages@sourceindex.de>
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
#
|
||||
# Copyright (C) 2006-2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=kismet
|
||||
PKG_VERSION:=2013-03-R1b
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.kismetwireless.net/code
|
||||
PKG_MD5SUM:=6cdcd78baf2e15edbe8a9de3c5493f02
|
||||
|
||||
PKG_BUILD_DEPENDS:=libpcap libncurses libpcre
|
||||
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/kismet/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Kismet
|
||||
MAINTAINER:=Sebastian Wendel <packages@sourceindex.de>
|
||||
DEPENDS:= $(CXX_DEPENDS) +libnl
|
||||
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/conffiles
|
||||
/etc/kismet/kismet.conf
|
||||
endef
|
||||
|
||||
define Package/kismet-drone/conffiles
|
||||
/etc/kismet/kismet_drone.conf
|
||||
endef
|
||||
|
||||
define Package/kismet-server/conffiles
|
||||
/etc/kismet/kismet.conf
|
||||
endef
|
||||
|
||||
define Package/kismet-client
|
||||
$(call Package/kismet/Default)
|
||||
TITLE+= client
|
||||
DEPENDS+= +libncurses
|
||||
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 +libpcre +libcap +wireless-tools
|
||||
TITLE+= drone
|
||||
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 +libpcre +libcap +wireless-tools
|
||||
TITLE+= server
|
||||
endef
|
||||
|
||||
define Package/kismet-server/description
|
||||
$(call Package/kismet/Default/description)
|
||||
This package contains the kismet server.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--sysconfdir=/etc/kismet \
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
|
||||
LIBS="-lm" \
|
||||
CLIENTCLIBS="-lm"
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
LD="$(TARGET_CXX)" \
|
||||
all
|
||||
endef
|
||||
|
||||
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)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_client $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/kismet/
|
||||
$(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
|
||||
endef
|
||||
|
||||
define Package/kismet-drone/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_drone $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/kismet/
|
||||
$(INSTALL_CONF) ./files/kismet_drone.conf $(1)/etc/kismet/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/kismet_drone.config $(1)/etc/config/kismet_drone
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/kismet_drone.init $(1)/etc/init.d/kismet_drone
|
||||
endef
|
||||
|
||||
define Package/kismet-server/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_server $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/kismet/
|
||||
$(INSTALL_CONF) ./files/kismet.conf $(1)/etc/kismet/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/kismet_server.config $(1)/etc/config/kismet_server
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/kismet_server.init $(1)/etc/init.d/kismet_server
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,kismet-client))
|
||||
$(eval $(call BuildPackage,kismet-drone))
|
||||
$(eval $(call BuildPackage,kismet-server))
|
||||
Reference in New Issue
Block a user