diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-17 23:17:45 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-17 23:17:45 -0300 |
commit | 8957aacc4eb300354a4df98ab41985aec68c5d4c (patch) | |
tree | 48a4a2f2020a89d6ef1c17d32ca222a74cff79a3 /community/wavemon | |
parent | 383c33c9817d73771d7a4c6054770f3b0ef13d99 (diff) | |
download | aports-8957aacc4eb300354a4df98ab41985aec68c5d4c.tar.bz2 aports-8957aacc4eb300354a4df98ab41985aec68c5d4c.tar.xz |
community/wavemon: upgrade to 0.9.0
Diffstat (limited to 'community/wavemon')
-rw-r--r-- | community/wavemon/APKBUILD | 15 | ||||
-rw-r--r-- | community/wavemon/use-atexit.patch | 14 |
2 files changed, 20 insertions, 9 deletions
diff --git a/community/wavemon/APKBUILD b/community/wavemon/APKBUILD index 0f52e175a5..862f002b8c 100644 --- a/community/wavemon/APKBUILD +++ b/community/wavemon/APKBUILD @@ -2,7 +2,7 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=wavemon -pkgver=0.8.2 +pkgver=0.9.0 pkgrel=0 pkgdesc="Ncurses-based monitoring application for wireless network devices" url="https://github.com/uoaerg/wavemon" @@ -10,13 +10,13 @@ arch="all" license="GPL-2.0-or-later" makedepends="ncurses-dev libcap-dev libnl3-dev autoconf automake" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/uoaerg/$pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" +source="$pkgname-$pkgver.tar.gz::https://github.com/uoaerg/$pkgname/archive/v$pkgver.tar.gz + use-atexit.patch + " prepare() { default_prepare - cd "$builddir" update_config_sub sed -i '/^CFLAGS/d' configure.ac @@ -24,8 +24,6 @@ prepare() { } build() { - cd "$builddir" - ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -37,12 +35,11 @@ build() { } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/ } -sha512sums="383e8444602f1262015e5706ad76ae0cfd5ff9560cf8037edc92242bd89c1f8d4044a83d24009cac2c25b5bf3bda3ef52f0302d2ff0f21959c51ffdebe76ef25 wavemon-0.8.2.tar.gz" +sha512sums="027e52c2096e36cdb34081b6accbb83943d0337da75d66de3ff61cc3a255faa2b129c2a8c9f72680fc9cd7a1bc9f837d52611b141d5855e01a82ff8e5739cd80 wavemon-0.9.0.tar.gz +9d7edc6c1c2dc1f835c051c7fd4c6c2c71265c092e1a7be5f90107ddd6d75dc6af272af740b7bb84c92bde06c822c5bfbb2c100447245d8ca8eb261bf94cc98b use-atexit.patch" diff --git a/community/wavemon/use-atexit.patch b/community/wavemon/use-atexit.patch new file mode 100644 index 0000000000..0b135f21c0 --- /dev/null +++ b/community/wavemon/use-atexit.patch @@ -0,0 +1,14 @@ +diff --git a/iw_scan.c b/iw_scan.c +index 18e9e06..92350ca 100644 +--- a/iw_scan.c ++++ b/iw_scan.c +@@ -430,7 +430,7 @@ void *do_scan(void *sr_ptr) + + 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) ++ if (atexit(if_set_down_on_exit)) + snprintf(sr->msg, sizeof(sr->msg), "Warning: unable to restore %s down state on exit", conf_ifname()); + break; + } + |