summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2004-02-06 15:16:47 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2004-02-06 15:16:47 +0000
commit7e6e706d1d7cd38ed389dcbd6194b32389de1cea (patch)
tree44b29ca8f2fa1d9a5c555d4b4880215bcb2b7b21 /net-analyzer/traffic-vis
parentstable on sparc (diff)
downloadgentoo-2-7e6e706d1d7cd38ed389dcbd6194b32389de1cea.tar.gz
gentoo-2-7e6e706d1d7cd38ed389dcbd6194b32389de1cea.tar.bz2
gentoo-2-7e6e706d1d7cd38ed389dcbd6194b32389de1cea.zip
patch for new libpcap headers.
Diffstat (limited to 'net-analyzer/traffic-vis')
-rw-r--r--net-analyzer/traffic-vis/ChangeLog8
-rw-r--r--net-analyzer/traffic-vis/files/traffic-vis-0.35-libpcap-header-fix.patch11
-rw-r--r--net-analyzer/traffic-vis/traffic-vis-0.35.ebuild10
3 files changed, 22 insertions, 7 deletions
diff --git a/net-analyzer/traffic-vis/ChangeLog b/net-analyzer/traffic-vis/ChangeLog
index 4f1eccf11342..ac93448c5029 100644
--- a/net-analyzer/traffic-vis/ChangeLog
+++ b/net-analyzer/traffic-vis/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/traffic-vis
-# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traffic-vis/ChangeLog,v 1.3 2003/12/09 18:12:58 lanius Exp $
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traffic-vis/ChangeLog,v 1.4 2004/02/06 15:16:46 aliz Exp $
+
+ 06 Feb 2004; Daniel Ahlberg <aliz@gentoo.org> traffic-vis-0.35.ebuild,
+ files/traffic-vis-0.35-libpcap-header-fix.patch:
+ Added patch for new libpcap headers.
09 Dec 2003; Heinrich Wendel <lanius@gentoo.org> traffic-vis-0.35.ebuild:
changed app-text/ghostscript to virtual/ghostscript
diff --git a/net-analyzer/traffic-vis/files/traffic-vis-0.35-libpcap-header-fix.patch b/net-analyzer/traffic-vis/files/traffic-vis-0.35-libpcap-header-fix.patch
new file mode 100644
index 000000000000..0b79741a181a
--- /dev/null
+++ b/net-analyzer/traffic-vis/files/traffic-vis-0.35-libpcap-header-fix.patch
@@ -0,0 +1,11 @@
+--- collector/packet-parse.c 2003-06-20 07:07:17.000000000 +0000
++++ collector/packet-parse.c 2004-02-06 15:11:14.688432920 +0000
+@@ -32,7 +32,7 @@
+ #include <arpa/inet.h>
+ #include <sys/time.h>
+ #include <unistd.h>
+-#include <net/bpf.h>
++#include <pcap.h>
+
+ #include <glib.h>
+
diff --git a/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild b/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild
index 00d58e4b865e..a118aa31de2d 100644
--- a/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild
+++ b/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild,v 1.3 2003/12/09 18:12:58 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild,v 1.4 2004/02/06 15:16:46 aliz Exp $
DESCRIPTION="Generate traffic stats in html, ps, text and gif format"
HOMEPAGE="http://www.mindrot.org/traffic-vis.html"
@@ -8,7 +8,7 @@ SRC_URI="http://www.mindrot.org/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~x86"
+KEYWORDS="~x86 ~amd64"
IUSE="gif"
DEPEND="virtual/glibc
@@ -19,10 +19,10 @@ DEPEND="virtual/glibc
=dev-libs/glib-1.2*"
src_unpack() {
- unpack ${A}
- cd ${S}
+ unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
+ epatch ${FILESDIR}/${P}-libpcap-header-fix.patch
}
src_compile() {