mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
11
net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch
Normal file
11
net-analyzer/ifstatus/files/ifstatus-2.0.0-tinfo.patch
Normal file
@@ -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
|
||||
42
net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
Normal file
42
net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
Normal file
@@ -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."
|
||||
}
|
||||
Reference in New Issue
Block a user