summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlarig Le Lay <alarig@swordarmor.fr>2020-12-02 23:12:15 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-12-10 09:31:00 +0200
commita68b270f4ad7f907280b48193c18e2c781791860 (patch)
tree7407a649b00ad1a8987b07b59886c93917e84bb6 /net-wireless/wavemon
parentnet-wireless/wavemon: Co-maintening the package (diff)
downloadgentoo-a68b270f4ad7f907280b48193c18e2c781791860.tar.gz
gentoo-a68b270f4ad7f907280b48193c18e2c781791860.tar.bz2
gentoo-a68b270f4ad7f907280b48193c18e2c781791860.zip
net-wireless/wavemon: Version bump and CONFIG_CFG80211_WEXT check
Closes: https://bugs.gentoo.org/649632 Closes: https://bugs.gentoo.org/703030 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr> Closes: https://github.com/gentoo/gentoo/pull/18478 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-wireless/wavemon')
-rw-r--r--net-wireless/wavemon/Manifest1
-rw-r--r--net-wireless/wavemon/files/wavemon-0.9.1-build.patch48
-rw-r--r--net-wireless/wavemon/wavemon-0.9.2.ebuild54
3 files changed, 103 insertions, 0 deletions
diff --git a/net-wireless/wavemon/Manifest b/net-wireless/wavemon/Manifest
index 9887e58fb26a..19538cded9c5 100644
--- a/net-wireless/wavemon/Manifest
+++ b/net-wireless/wavemon/Manifest
@@ -1 +1,2 @@
DIST wavemon-0.8.0.tar.gz 196353 BLAKE2B 90d358d325b62ba9379ea525c4399e38c38043e67460b20188c4d81261d290e8e3f154a33240882f8b2611e4db1862d7bd33c87e168569be9d751d431602da81 SHA512 2df48eb300e9b30e0cb7a0ab41ba5e10b2a6e8170dbd11a4c978462c8cd6dc1171f79ceadfdb7344c495420a4e87b7dd723efea4f1af59a6d0312d93049ee798
+DIST wavemon-0.9.2.tar.gz 202575 BLAKE2B 0a1afe1081bbbeb2ba0fec4741df7da846b65bbf182e886b2185c5e406258a1ecf912509b1a8f4862f37ba92832240dc6db4305a8d5cfb6f4876f3e93b04ccc7 SHA512 f1ee2e4602e93f0639c10067d23df021101bfc0496e53b221cd1553ebc90876cdd963cd64d5ef503da6d4dc4fbcf640e78873df1bdf64272e70dfa3c53ec1706
diff --git a/net-wireless/wavemon/files/wavemon-0.9.1-build.patch b/net-wireless/wavemon/files/wavemon-0.9.1-build.patch
new file mode 100644
index 000000000000..2a63694e10fc
--- /dev/null
+++ b/net-wireless/wavemon/files/wavemon-0.9.1-build.patch
@@ -0,0 +1,48 @@
+--- a/configure.ac 2020-05-17 14:27:27.982637232 +0200
++++ b/configure.ac 2020-05-17 14:29:33.157206097 +0200
+@@ -8,8 +8,6 @@
+ AC_CONFIG_AUX_DIR([config])
+ AC_CONFIG_FILES([Makefile])
+
+-CFLAGS="-O2 -Wall"
+-
+ # wavemon is only supported on Linux, warn user about futile compilations
+ AC_CANONICAL_HOST
+ case "$host_os" in
+@@ -22,12 +20,15 @@
+ AC_PROG_CPP
+ AC_PROG_INSTALL
+
++PKG_PROG_PKG_CONFIG()
++
+ # Checks for header files.
+ AC_HEADER_STDC
+ AC_HEADER_TIME
+ AC_CHECK_HEADERS([ncurses.h fcntl.h netdb.h sys/ioctl.h sys/time.h unistd.h\
+ net/if_arp.h netinet/ether.h net/ethernet.h pthread.h],
+ [], [AC_MSG_ERROR($ac_header not found)])
++PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",)
+
+ # linux/if.h needs 'struct sockaddr'
+ # linux/wireless.h in turn depends on linux/if.h
+--- a/Makefile.in 2017-07-14 21:35:18.154423280 +0300
++++ b/Makefile.in 2017-07-14 21:35:34.613402738 +0300
+@@ -9,7 +9,7 @@
+ install-suid-root: exec_perms = 4755
+
+ CC ?= @CC@
+-CFLAGS ?= @CFLAGS@ @LIBNL3_CFLAGS@
++CFLAGS = @CFLAGS@ @LIBNL3_CFLAGS@
+ CPPFLAGS ?= @CPPFLAGS@
+ LDFLAGS ?= @LDFLAGS@
+ DEFS ?= @DEFS@
+@@ -25,8 +25,7 @@
+ DOCS = README.md NEWS THANKS AUTHORS COPYING ChangeLog
+
+ %.o: %.c $(HEADERS)
+- @echo ' CC ' $<
+- @$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
+
+ all: @PACKAGE_NAME@
+ @PACKAGE_NAME@: $(MAIN) $(OBJS)
diff --git a/net-wireless/wavemon/wavemon-0.9.2.ebuild b/net-wireless/wavemon/wavemon-0.9.2.ebuild
new file mode 100644
index 000000000000..63fb2ad9d14b
--- /dev/null
+++ b/net-wireless/wavemon/wavemon-0.9.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info toolchain-funcs
+
+DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
+HOMEPAGE="https://github.com/uoaerg/wavemon/"
+SRC_URI="https://github.com/uoaerg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
+
+IUSE="caps"
+RDEPEND="dev-libs/libnl:3
+ sys-libs/ncurses:0=
+ caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( COPYING README.md THANKS )
+PATCHES=(
+ "${FILESDIR}/${PN}-0.9.1-build.patch"
+)
+
+pkg_pretend() {
+ local CONFIG_CHECK="~CFG80211_WEXT"
+
+ check_extra_config
+}
+
+src_prepare() {
+ # Do not install docs to /usr/share
+ sed -i -e '/^install:/s/install-docs//' Makefile.in || die \
+ 'sed on Makefile.in failed'
+
+ # automagic on libcap, discovered in bug #448406
+ use caps || export ac_cv_lib_cap_cap_get_flag=false
+
+ # Respect CC
+ tc-export CC
+
+ default_src_prepare
+ eautoreconf
+}
+
+src_install() {
+ default_src_install
+ # Install man files manually(bug #397807)
+ doman wavemon.1
+ doman wavemonrc.5
+}