summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-07-16 16:37:48 +0000
committerJeroen Roovers <jer@gentoo.org>2014-07-16 16:37:48 +0000
commit4cece10670300bda8b1a27834512437d4f868867 (patch)
tree306deaca97742abcef87826a54a6c229c753d341 /net-analyzer/pktstat
parentversion bump wrt #517204 (diff)
downloadgentoo-2-4cece10670300bda8b1a27834512437d4f868867.tar.gz
gentoo-2-4cece10670300bda8b1a27834512437d4f868867.tar.bz2
gentoo-2-4cece10670300bda8b1a27834512437d4f868867.zip
Fix building against sys-libs/ncurses[tinfo].
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/pktstat')
-rw-r--r--net-analyzer/pktstat/ChangeLog8
-rw-r--r--net-analyzer/pktstat/files/pktstat-1.8.5-tinfo.patch10
-rw-r--r--net-analyzer/pktstat/pktstat-1.8.5.ebuild26
3 files changed, 34 insertions, 10 deletions
diff --git a/net-analyzer/pktstat/ChangeLog b/net-analyzer/pktstat/ChangeLog
index 65871b8a7e49..4b6ab5d2c7e8 100644
--- a/net-analyzer/pktstat/ChangeLog
+++ b/net-analyzer/pktstat/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/pktstat
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pktstat/ChangeLog,v 1.26 2012/06/14 14:24:34 jer Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pktstat/ChangeLog,v 1.27 2014/07/16 16:37:47 jer Exp $
+
+ 16 Jul 2014; Jeroen Roovers <jer@gentoo.org> pktstat-1.8.5.ebuild,
+ +files/pktstat-1.8.5-tinfo.patch:
+ Fix building against sys-libs/ncurses[tinfo].
14 Jun 2012; Jeroen Roovers <jer@gentoo.org> -pktstat-1.8.4.ebuild:
Old.
diff --git a/net-analyzer/pktstat/files/pktstat-1.8.5-tinfo.patch b/net-analyzer/pktstat/files/pktstat-1.8.5-tinfo.patch
new file mode 100644
index 000000000000..5181124b8053
--- /dev/null
+++ b/net-analyzer/pktstat/files/pktstat-1.8.5-tinfo.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,6 +18,7 @@
+ AC_SEARCH_LIBS(gethostbyname, [nsl]) dnl for Solaris
+ AC_SEARCH_LIBS(pcap_open_live, [pcap])
+ AC_SEARCH_LIBS(exp, [m])
++PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",AC_MSG_ERROR[ncurses is required])
+ AC_SEARCH_LIBS(tgoto, [termlib termcap curses ncurses ocurses])
+ AC_SEARCH_LIBS(initscr, [curses ncurses ocurses])
+ AC_SEARCH_LIBS(nanosleep, [posix4])
diff --git a/net-analyzer/pktstat/pktstat-1.8.5.ebuild b/net-analyzer/pktstat/pktstat-1.8.5.ebuild
index ffa7f88411af..ad9fb79ee1c1 100644
--- a/net-analyzer/pktstat/pktstat-1.8.5.ebuild
+++ b/net-analyzer/pktstat/pktstat-1.8.5.ebuild
@@ -1,21 +1,31 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pktstat/pktstat-1.8.5.ebuild,v 1.3 2012/06/13 08:56:36 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pktstat/pktstat-1.8.5.ebuild,v 1.4 2014/07/16 16:37:47 jer Exp $
-EAPI=4
+EAPI=5
+inherit autotools eutils
-DESCRIPTION="A network monitoring tool, with bandwidth tracking"
+DESCRIPTION="A network monitoring tool with bandwidth tracking"
HOMEPAGE="http://www.adaptive-enterprises.com.au/~d/software/pktstat/"
SRC_URI="http://www.adaptive-enterprises.com.au/~d/software/pktstat/${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
-IUSE=""
-RDEPEND="net-libs/libpcap
- >=sys-libs/ncurses-5.3-r1"
-DEPEND="${RDEPEND}"
+RDEPEND="
+ net-libs/libpcap
+ >=sys-libs/ncurses-5.3-r1
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ eautoreconf
+}
src_install() {
dosbin pktstat