summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2016-11-21 17:11:29 +0100
committerMichael Weber <xmw@gentoo.org>2016-11-21 17:11:29 +0100
commit0cfa6146a1621e772c3dbbc1a5be2573fb424518 (patch)
treee8045326e4452cb109de04c916fdf0a20d8112fb /net-dns
parentdev-vcs/tortoisehg: Don't use dohtml with EAPI-6. (diff)
downloadgentoo-0cfa6146a1621e772c3dbbc1a5be2573fb424518.tar.gz
gentoo-0cfa6146a1621e772c3dbbc1a5be2573fb424518.tar.bz2
gentoo-0cfa6146a1621e772c3dbbc1a5be2573fb424518.zip
net-dns/dnstop: fix net-libs/libpcap[ipv6] situation, drop USE=ipv6, use pkg-config for ncurses[tinfo] (thanks lorem_ipsum and b4b1@free.fr, bug 595184).
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/dnstop/dnstop-20140915-r2.ebuild (renamed from net-dns/dnstop/dnstop-20140915-r1.ebuild)19
-rw-r--r--net-dns/dnstop/files/dnstop-20140915-pkg-config.patch29
2 files changed, 38 insertions, 10 deletions
diff --git a/net-dns/dnstop/dnstop-20140915-r1.ebuild b/net-dns/dnstop/dnstop-20140915-r2.ebuild
index cb7eeef2520d..ba7c1cca6a9b 100644
--- a/net-dns/dnstop/dnstop-20140915-r1.ebuild
+++ b/net-dns/dnstop/dnstop-20140915-r2.ebuild
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
-inherit eutils flag-o-matic
+inherit autotools
DESCRIPTION="Displays various tables of DNS traffic on your network"
HOMEPAGE="http://dnstop.measurement-factory.com/"
@@ -13,22 +13,21 @@ SRC_URI="http://dnstop.measurement-factory.com/src/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86"
-IUSE="ipv6"
+IUSE=""
RDEPEND="sys-libs/ncurses:0
- net-libs/libpcap[ipv6?]"
+ net-libs/libpcap[ipv6(+)]"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/${P}"-pkg-config.patch )
+
src_prepare() {
- epatch_user
+ default
+ eautoreconf
}
src_configure() {
- if has_version sys-libs/ncurses:0[tinfo] ; then
- append-libs -ltinfo #bug 595068
- fi
- econf \
- $(use_enable ipv6)
+ econf --enable-ipv6
}
src_install() {
diff --git a/net-dns/dnstop/files/dnstop-20140915-pkg-config.patch b/net-dns/dnstop/files/dnstop-20140915-pkg-config.patch
new file mode 100644
index 000000000000..5ee18e0a684d
--- /dev/null
+++ b/net-dns/dnstop/files/dnstop-20140915-pkg-config.patch
@@ -0,0 +1,29 @@
+diff -Naur dnstop-20140915-orig/configure.ac dnstop-20140915/configure.ac
+--- dnstop-20140915-orig/configure.ac 2016-09-25 19:36:25.222387686 +0100
++++ dnstop-20140915/configure.ac 2016-09-25 19:32:01.489612302 +0100
+@@ -11,10 +11,7 @@
+ AC_PROG_INSTALL
+
+ # Checks for libraries.
+-AC_CHECK_LIB([ncurses], [initscr])
+-if test "$ac_cv_lib_ncurses_initscr" != "yes" ; then
+-AC_CHECK_LIB([curses], [initscr])
+-fi
++PKG_CHECK_MODULES([ncurses], [ncurses])
+ AC_CHECK_LIB([pcap], [pcap_open_live])
+ AC_CHECK_LIB([socket], [main])
+ AC_CHECK_LIB([nsl], [main])
+diff -Naur dnstop-20140915-orig/Makefile.in dnstop-20140915/Makefile.in
+--- dnstop-20140915-orig/Makefile.in 2016-09-25 19:36:25.221387679 +0100
++++ dnstop-20140915/Makefile.in 2016-09-25 19:37:39.333887436 +0100
+@@ -2,8 +2,8 @@
+
+ OPTFLAGS=@OPTFLAGS@
+ CC=@CC@
+-CFLAGS=@CFLAGS@ ${OPTFLAGS}
+-LIBS=@LIBS@
++CFLAGS=@CFLAGS@ @ncurses_CFLAGS@ ${OPTFLAGS}
++LIBS=@LIBS@ @ncurses_LIBS@
+ LDFLAGS=@LDFLAGS@
+
+ prefix=@prefix@