net-wireless/wavemon: New ebuild
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
faa7f637e1
commit
1f22b9f6ed
1
net-wireless/wavemon/Manifest
Normal file
1
net-wireless/wavemon/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST wavemon-0.9.1.tar.gz 209240 BLAKE2B d7c423cd23efb0ff998461b1e29fd2310c597d7a5b67e967206fcaaa2ea574682646d6fa9dfca89153ecb7e45de886cc07fcffad3d7b65fb52d63894d1f73b0a SHA512 c05e9ea488d3fb9bfdb15419aadc54bed08d338dba7c118d2a2ff6423ffe31c16ff8e9e05fc2e39fffb069f28fa7daef30f079ca63186064c0ade4f9fe98864c
|
48
net-wireless/wavemon/files/wavemon-0.9.1-build.patch
Normal file
48
net-wireless/wavemon/files/wavemon-0.9.1-build.patch
Normal file
|
@ -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)
|
8
net-wireless/wavemon/metadata.xml
Normal file
8
net-wireless/wavemon/metadata.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alarig@swordarmor.fr</email>
|
||||
<name>Alarig Le Lay</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
48
net-wireless/wavemon/wavemon-0.9.1.ebuild
Normal file
48
net-wireless/wavemon/wavemon-0.9.1.ebuild
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools 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}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-build.patch"
|
||||
)
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue