mirror of
https://github.com/hak5/nano-tetra-packages-community.git
synced 2025-10-29 16:59:28 +00:00
Packages: Add initial files for Kismet package
This commit is contained in:
parent
e757499530
commit
fa069d1840
76
network/kismet/Makefile
Normal file
76
network/kismet/Makefile
Normal file
@ -0,0 +1,76 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=kismet
|
||||
PKG_VERSION:=master
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://www.kismetwireless.net/git/kismet.git
|
||||
PKG_SOURCE_VERSION:=HEAD
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
HOST_BUILD_DEPENDS:=protobuf/host
|
||||
|
||||
define Package/kismet
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Kismet
|
||||
URL:=https://www.kismetwireless.net/
|
||||
DEPENDS:=+libpthread +libpcap +libpcre +libmicrohttpd +libnl +libcap +libstdcpp +libncurses +libsqlite3 +zlib +protobuf +libprotobuf-c
|
||||
endef
|
||||
|
||||
define Package/kismet/description
|
||||
Kismet wireless capture and IDS
|
||||
Latest web-ui based Kismet
|
||||
Linux Wi-Fi and Bluetooth capture tools
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--sysconfdir=/etc/kismet \
|
||||
--bindir=/usr/bin \
|
||||
--disable-python-tools \
|
||||
--with-protoc=$(STAGING_DIR_HOST)/bin/protoc
|
||||
# We should be using protoc-c from the host binaries here, but the openwrt
|
||||
# protoc-c package doesn't build a host tool
|
||||
# --with-protoc-c=$(STAGING_DIR_HOST)/bin/protoc-c
|
||||
|
||||
# Override libs to force lpthread because we don't detect it properly on openwrt
|
||||
CONFIGURE_VARS += \
|
||||
CXXFLAGS="$$$$CXXFLAGS" \
|
||||
LIBS="-lm -lpthread"
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
LD="$(TARGET_CXX)" \
|
||||
all
|
||||
endef
|
||||
|
||||
define Package/kismet-2018-tetra/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_cap_pcapfile $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_wifi/kismet_cap_linux_wifi $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_bluetooth/kismet_cap_linux_bluetooth $(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/kismet/
|
||||
$(INSTALL_CONF) ./files/kismet_site.conf $(1)/etc/kismet/
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_alerts.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_httpd.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_logging.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_memory.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_storage.conf $(1)/etc/kismet
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_uav.conf $(1)/etc/kismet
|
||||
cp -Rv $(PKG_BUILD_DIR)/http_data $(1)/etc/kismet/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,kismet))
|
||||
16
network/kismet/files/kismet_site.conf
Normal file
16
network/kismet/files/kismet_site.conf
Normal file
@ -0,0 +1,16 @@
|
||||
# Insecure defaults for tetra; before making it a proper module
|
||||
# we should integrate with the tetra ui
|
||||
httpd_username=kismet
|
||||
httpd_password=kismet
|
||||
|
||||
httpd_home=/etc/kismet/http_data
|
||||
|
||||
# Save memory on Tetra
|
||||
keep_location_cloud_history=false
|
||||
keep_datasource_signal_history=false
|
||||
|
||||
packet_dedup_size=512
|
||||
|
||||
packet_backlog_warning=512
|
||||
packet_backlog_limit=1024
|
||||
|
||||
1
network/kismet/src
Submodule
1
network/kismet/src
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 70bd0c0464ce26b6bce6f1be103747c56ce6af88
|
||||
Loading…
x
Reference in New Issue
Block a user