net-wireless/kismet: live updates

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
This commit is contained in:
Rick Farina
2019-12-19 11:18:11 -05:00
parent 1d20566ed4
commit 00a53abc26
2 changed files with 13 additions and 6 deletions
+10 -6
View File
@@ -33,8 +33,8 @@ HOMEPAGE="https://www.kismetwireless.net"
LICENSE="GPL-2"
SLOT="0/${PV}"
IUSE="lm-sensors mousejack networkmanager +pcre selinux +suid"
REQUIRED_USE=${PYTHON_REQUIRED_USE}
IUSE="libusb lm-sensors networkmanager +pcre rtlsdr selinux +suid ubertooth"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
CDEPEND="
${PYTHON_DEPS}
@@ -48,7 +48,7 @@ CDEPEND="
dev-libs/libnl:3
net-libs/libpcap
)
mousejack? ( virtual/libusb:1 )
libusb? ( virtual/libusb:1 )
dev-libs/protobuf-c:=
dev-libs/protobuf:=
dev-python/protobuf-python[${PYTHON_USEDEP}]
@@ -56,6 +56,7 @@ CDEPEND="
lm-sensors? ( sys-apps/lm-sensors )
pcre? ( dev-libs/libpcre )
suid? ( sys-libs/libcap )
ubertooth? ( net-wireless/ubertooth:= )
"
DEPEND="${CDEPEND}
@@ -66,6 +67,8 @@ RDEPEND="${CDEPEND}
dev-python/pyserial[${PYTHON_USEDEP}]
selinux? ( sec-policy/selinux-kismet )
"
PDEPEND="rtlsdr? ( dev-python/numpy[${PYTHON_USEDEP}]
net-wireless/rtl-sdr )"
src_prepare() {
sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
@@ -88,10 +91,11 @@ src_prepare() {
src_configure() {
econf \
$(use_enable libusb libusb) \
$(use_enable pcre) \
$(use_enable lm-sensors lmsensors) \
$(use_enable mousejack libusb) \
$(use_enable networkmanager libnm) \
$(use_enable ubertooth) \
--sysconfdir=/etc/kismet \
--disable-optimization
}
@@ -133,9 +137,9 @@ pkg_preinst() {
migrate_config() {
einfo "Kismet Configuration files are now read from /etc/kismet/"
if [ -n "$(ls ${EROOT}/etc/kismet_*.conf)" ]; then
ewarn "Please keep user specific settings in /etc/kismet/kismet_site.conf"
if [ -n "$(ls ${EROOT}/etc/kismet_*.conf 2> /dev/null)" ]; then
ewarn "Files at /etc/kismet_*.conf will not be read and should be removed"
ewarn "Please keep user specific settings in /etc/kismet/kismet_site.conf"
fi
if [ -f "${EROOT}/etc/kismet_site.conf" ] && [ ! -f "${EROOT}/etc/kismet/kismet_site.conf" ]; then
mv /etc/kismet_site.conf /etc/kismet/kismet_site.conf || die "Failed to migrate kismet_site.conf to new location"
+3
View File
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="client">Build the ncurses-based user interface</flag>
<flag name="libusb">Support libusb based capture sources such as mousejack, cc2540(ble), and nrf51822(ble)</flag>
<flag name="suid">
Install a setuid root helper binary with limited functionality;
this allows running kismet as a normal user, significantly
@@ -21,6 +22,8 @@
<flag name="plugin-ptw">Build the ptw plugin</flag>
<flag name="plugin-spectools">Build the spectools plugin. This uses <pkg>net-wireless/spectools</pkg></flag>
<flag name="plugin-syslog">Build the syslog plugin.</flag>
<flag name="rtlsdr">Enable rtlsdr based kismet capture sources</flag>
<flag name="ruby">Build extras which are written in ruby, example plugins and the like.</flag>
<flag name="ubertooth">Enable capture source for ubertooth to sniff bluetooth low energy</flag>
</use>
</pkgmetadata>