85 lines
2.9 KiB
Makefile
85 lines
2.9 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=kismet
|
|
PKG_VERSION:=2020-04-R3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/kismetwireless/kismet/tar.gz/kismet-$(PKG_VERSION)?
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
#PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
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-lite +libprotobuf-c +libdw
|
|
SUBMENU:=wireless
|
|
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_HOSTPKG)/bin/protoc \
|
|
--enable-protobuflite
|
|
|
|
# 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/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_80211.conf $(1)/etc/kismet
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_alerts.conf $(1)/etc/kismet
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_filter.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
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_manuf.txt.gz $(1)/etc/kismet
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_adsb_icao.txt.gz $(1)/etc/kismet
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_bluetooth_ids.txt.gz $(1)/etc/kismet
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_bluetooth_manuf.txt.gz $(1)/etc/kismet
|
|
cp -Rv $(PKG_BUILD_DIR)/http_data $(1)/etc/kismet/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,kismet))
|
|
|