net-analyzer/ifstatus: Version 2.0.0
authorJeroen Roovers <jer@gentoo.org>
Wed, 8 May 2019 11:30:04 +0000 (13:30 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 8 May 2019 11:33:26 +0000 (13:33 +0200)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/ifstatus/Manifest
net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch [new file with mode: 0644]
net-analyzer/ifstatus/ifstatus-2.0.0.ebuild [new file with mode: 0644]

index a245375aa517910eadd2ab012f8aaf10698b5b50..699157aedea9e8caa78b9b4d8cda59630c901e31 100644 (file)
@@ -1 +1,2 @@
 DIST ifstatus-v1.1.0.tar.gz 25233 BLAKE2B de9d088bf7001799c3a54775c0c63d5dcf4f1f3f4998ce02b82a11bea7a6dabb1263829ff42ba1cd05ebd6b202827196757727c24db022ffa7d06ece38db6616 SHA512 2660310be7186067315414218e3d3d269499e391c7ffa12022ac53a0456ddbe0f7d5562b788fe6b2569b7d0eba7acf5699e0386769a91606a3e14b51239a2766
+DIST ifstatus-v2.0.0.tar.gz 24058 BLAKE2B 09a2b0af26cb05dfc24eefdbb6ac52b0ac289a687301f5fa67f0fcaf2622da96e149af3f7c08257e0ef8418f4f08b5ca1b77af71ba7c00dabddcb87cc95ddce7 SHA512 e1720f5dcc26788149cc72ccb72b85fffc72b367f2268e1e4f06a8fe4d80685146d310746c0b1a913e24995f6e93011d7d75ea5b4f9ca479af2d79264b89e27d
diff --git a/net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch b/net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch
new file mode 100644 (file)
index 0000000..ab2f5a9
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@
+ # Gabriel Montenegro 
+ GCC = g++
+-LDFLAGS = -lncurses
++LDFLAGS += $(shell $(PKG_CONFIG) --libs ncurses)
+ CFLAGS = -O2 -Wall
+ BIN = ifstatus
diff --git a/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild b/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..7b2612d
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+
+DESCRIPTION="A simple CLI program for displaying network statistics in real time"
+HOMEPAGE="http://ifstatus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="
+       >=sys-libs/ncurses-4.2:0=
+"
+DEPEND="
+       ${RDEPEND}
+       virtual/pkgconfig
+"
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.0.0-tinfo.patch
+)
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_compile() {
+       tc-export CXX PKG_CONFIG
+       emake GCC=$(tc-getCXX) ${PN}
+}
+
+src_install() {
+       dobin ifstatus
+       dodoc AUTHORS README
+}
+
+pkg_postinst() {
+       elog    "You may want to configure ~/.ifstatus/ifstatus.cfg"
+       elog    "before running ifstatus. For example, you may add"
+       elog    "Interfaces = eth0 there. Read the README file for"
+       elog    "more information."
+}