diff options
author | Jeroen Roovers <jer@gentoo.org> | 2019-05-08 13:30:04 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2019-05-08 13:33:26 +0200 |
commit | bf46e3f05a79890825eb62d08346d751a98a5d89 (patch) | |
tree | 19769873fb8e131edd9b62d9a2e1ce7605fd08e2 /net-analyzer/ifstatus | |
parent | app-admin/keepass: version bump 2.42.1 (diff) | |
download | gentoo-bf46e3f05a79890825eb62d08346d751a98a5d89.tar.gz gentoo-bf46e3f05a79890825eb62d08346d751a98a5d89.tar.bz2 gentoo-bf46e3f05a79890825eb62d08346d751a98a5d89.zip |
net-analyzer/ifstatus: Version 2.0.0
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/ifstatus')
-rw-r--r-- | net-analyzer/ifstatus/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch | 11 | ||||
-rw-r--r-- | net-analyzer/ifstatus/ifstatus-2.0.0.ebuild | 42 |
3 files changed, 54 insertions, 0 deletions
diff --git a/net-analyzer/ifstatus/Manifest b/net-analyzer/ifstatus/Manifest index a245375aa517..699157aedea9 100644 --- a/net-analyzer/ifstatus/Manifest +++ b/net-analyzer/ifstatus/Manifest @@ -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 index 000000000000..ab2f5a921368 --- /dev/null +++ b/net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch @@ -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 index 000000000000..7b2612d29fee --- /dev/null +++ b/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild @@ -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." +} |