termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.24k stars 3.05k forks source link

Package Request: Kismet #10162

Open Camperor opened 4 years ago

Camperor commented 4 years ago

Package description Kismet is a wireless network and device detector, sniffer, wardriving tool, and WIDS (wireless intrusion detection) framework.

Kismet works with Wi-Fi interfaces, Bluetooth interfaces, some SDR (software defined radio) hardware like the RTLSDR, and other specialized capture hardware.

On Android devices kismet would be able to use USB wifi cards in monitor mode, RTL-SDR, or the device's internal wifi card in monitor mode (thanks to nexmon and Qualcomm)

Link to home page and sources

  1. Home page: https://kismetwireless.net/
  2. Source code: https://github.com/kismetwireless/kismet

Additional information Have you compiled or tried to compile the package on device? No

Camperor commented 4 years ago

Here are the docs for compiling

Camperor commented 4 years ago

I've cloned termux-packages and termux-root-packages and setup the docker image to try to build it myself but I'm running into issues when build-package.sh runs ./configure. It's not finding libpcap even though I've listed it as a dependency. Here is my build.sh

TERMUX_PKG_HOMEPAGE=https://www.kismetwireless.net/ TERMUX_PKG_DESCRIPTION="Wireless network and device detector, sniffer, wardriving tool, and WIDS (wireless intrusion detection) framework" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=2020-04-R3 TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://kismetwireless.net/code/kismet-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=4438608778ea256937264a25ef78faf971f46a9db66ee7a3b88582f8605261b8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-capture-tools-only" TERMUX_PKG_DEPENDS="libpcap, libnl, libprotobuf-c" TERMUX_PKG_BUILD_DEPENDS="libpcap" TERMUX_PKG_BUILD_IN_SRC=true

And here is the error I'm getting in config.log. Seems like it's not using LDFLAGS.

configure:10472: checking for pcap_open_live in -lpcap configure:10497: aarch64-linux-android-clang++ -std=gnu++17 -o conftest -fstack-protector-strong -Oz -O3 -I/data/data/com.termux/files/usr/include -I/data/data/com.termux/files/usr/include conftest.cpp -lpcap -ldl -lz >&5 /home/builder/.termux-build/_cache/android-r20-api-24-v3/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: error: cannot find -lpcap /tmp/conftest-7a4f17.o:conftest.cpp:function main: error: undefined reference to 'pcap_open_live' clang++: error: linker command failed with exit code 1 (use -v to see invocation)