wavemon: update to 0.9.1

This commit is contained in:
Henrik Grimler 2020-01-02 11:35:24 +01:00 committed by Yaksh Bariya
parent af5f0672f0
commit d9d48cd5b6
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 2 additions and 27 deletions

View File

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/uoaerg/wavemon
TERMUX_PKG_DESCRIPTION="Ncurses-based monitoring application for wireless network devices"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=0.9.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_VERSION=0.9.1
TERMUX_PKG_SRCURL=https://github.com/uoaerg/wavemon/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=5823ef9459d6147a457b390b6744a77465584e93d37c2809fa7a0be557070166
TERMUX_PKG_SHA256=5ebd5b79d3b7c546bc16b95161872c699a75e9acdfc6e3f02ec48dad10802067
TERMUX_PKG_DEPENDS="libcap, libnl, ncurses"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_pthread_pthread_create=yes"

View File

@ -1,24 +0,0 @@
diff -uNr wavemon-0.9.0/iw_scan.c wavemon-0.9.0.mod/iw_scan.c
--- wavemon-0.9.0/iw_scan.c 2018-12-30 03:08:25.000000000 +0200
+++ wavemon-0.9.0.mod/iw_scan.c 2019-07-03 19:33:39.729820897 +0300
@@ -368,6 +368,10 @@
sr->num.ch_stats = n < MAX_CH_STATS ? n : MAX_CH_STATS;
}
+void on_exit_hook() {
+ if_set_down_on_exit(0, conf_ifname());
+}
+
/** The actual scan thread. */
void *do_scan(void *sr_ptr)
{
@@ -430,8 +434,7 @@
if (if_set_up(conf_ifname()) < 0)
err_sys("Can not bring up interface '%s'", conf_ifname());
- if (on_exit(if_set_down_on_exit, (void *)conf_ifname()) < 0)
- snprintf(sr->msg, sizeof(sr->msg), "Warning: unable to restore %s down state on exit", conf_ifname());
+ atexit(on_exit_hook);
break;
}
/* fall through */