summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-07-28 15:44:28 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-07-28 15:44:28 +0000
commit83d4c169687248ac9442354aaef95c2d6259f05d (patch)
tree484823ef9db24edab7452fd7dedd9a53b4f63a2e /net-analyzer/sniffit
parentlu_zero's write access errors fixed (diff)
downloadgentoo-2-83d4c169687248ac9442354aaef95c2d6259f05d.tar.gz
gentoo-2-83d4c169687248ac9442354aaef95c2d6259f05d.tar.bz2
gentoo-2-83d4c169687248ac9442354aaef95c2d6259f05d.zip
fix gcc-3.3 issues
Diffstat (limited to 'net-analyzer/sniffit')
-rw-r--r--net-analyzer/sniffit/ChangeLog9
-rw-r--r--net-analyzer/sniffit/Manifest4
-rw-r--r--net-analyzer/sniffit/files/digest-sniffit-0.3.7-r12
-rw-r--r--net-analyzer/sniffit/files/sniffit-0.3.7-gcc33.patch12
-rw-r--r--net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild46
5 files changed, 70 insertions, 3 deletions
diff --git a/net-analyzer/sniffit/ChangeLog b/net-analyzer/sniffit/ChangeLog
index 434a1094b0f8..0258677915aa 100644
--- a/net-analyzer/sniffit/ChangeLog
+++ b/net-analyzer/sniffit/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/sniffit
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sniffit/ChangeLog,v 1.5 2003/02/12 07:49:51 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sniffit/ChangeLog,v 1.6 2003/07/28 15:43:51 azarah Exp $
+
+*sniffit-0.3.7-r1 (28 Jul 2003)
+
+ 28 Jul 2003; Martin Schlemmer <azarah@gentoo.org> sniffit-0.3.7-r1.ebuild,
+ files/sniffit-0.3.7-gcc33.patch:
+ Fix gcc-3.3 related issues (bug #25328), thanks to Chandler Carruth
+ <carrbc1@wfu.edu>.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
diff --git a/net-analyzer/sniffit/Manifest b/net-analyzer/sniffit/Manifest
index 030db8b8a0a8..ca92ce63760e 100644
--- a/net-analyzer/sniffit/Manifest
+++ b/net-analyzer/sniffit/Manifest
@@ -1,6 +1,6 @@
-MD5 a6a60900aa9ec6031b10065c4c7adfc2 ChangeLog 1083
+MD5 cfeff23e0ec46b8090b347fdaab34108 ChangeLog 1083
MD5 2222455251a2139dc055eeec512b7604 sniffit-0.3.7.ebuild 958
-MD5 08f24f4e6206ca8df91380dc296b3510 sniffit-0.3.7-r1.ebuild 1069
+MD5 a136e6a6089504948bb23b404dcb0724 sniffit-0.3.7-r1.ebuild 1072
MD5 fd2c46d1c2224db83c42a34b03bdad44 files/digest-sniffit-0.3.7 140
MD5 ebb45c9f97d37af79ffeea797b411aca files/sniffit-0.3.7-gcc33.patch 496
MD5 fd2c46d1c2224db83c42a34b03bdad44 files/digest-sniffit-0.3.7-r1 140
diff --git a/net-analyzer/sniffit/files/digest-sniffit-0.3.7-r1 b/net-analyzer/sniffit/files/digest-sniffit-0.3.7-r1
new file mode 100644
index 000000000000..fd1782b310f3
--- /dev/null
+++ b/net-analyzer/sniffit/files/digest-sniffit-0.3.7-r1
@@ -0,0 +1,2 @@
+MD5 2697cc18878480199fe6db1e61134d5a sniffit.0.3.7.beta.tar.gz 212419
+MD5 4b2efe8ce32222f8ce8e9ddb476ac89c sniffit_0.3.7.beta-10.diff 95457
diff --git a/net-analyzer/sniffit/files/sniffit-0.3.7-gcc33.patch b/net-analyzer/sniffit/files/sniffit-0.3.7-gcc33.patch
new file mode 100644
index 000000000000..5d39833d098d
--- /dev/null
+++ b/net-analyzer/sniffit/files/sniffit-0.3.7-gcc33.patch
@@ -0,0 +1,12 @@
+diff -uNr sniffit.0.3.7.beta/sn_structs.h sniffit.0.3.7.beta-gcc33/sn_structs.h
+--- sniffit.0.3.7.beta/sn_structs.h 1998-07-16 12:17:10.000000000 -0400
++++ sniffit.0.3.7.beta-gcc33/sn_structs.h 2003-07-26 11:53:46.229204088 -0400
+@@ -67,7 +67,7 @@
+ struct snif_mask /* struct for mask */
+ {
+ _32_bit source_ip, destination_ip;
+- _32_bit short source_port, destination_port;
++ _32_bit source_port, destination_port;
+ };
+
+ /* (packet generation) */
diff --git a/net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild b/net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild
new file mode 100644
index 000000000000..de5211e24d6a
--- /dev/null
+++ b/net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild,v 1.1 2003/07/28 15:43:51 azarah Exp $
+
+IUSE=
+
+inherit eutils
+
+MY_P="${P/-/.}.beta"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="Interactive Packet Sniffer"
+SRC_URI="http://reptile.rug.ac.be/~coder/sniffit/files/${MY_P}.tar.gz
+ http://www.clan-tva.com/m0rpheus/sniffit_0.3.7.beta-10.diff"
+HOMEPAGE="http://reptile.rug.ac.be/~coder/sniffit/sniffit.html"
+
+DEPEND=">=net-libs/libpcap-0.6.2
+ >=sys-libs/ncurses-5.2"
+
+SLOT="0"
+LICENSE="as-is"
+KEYWORDS="x86 ppc sparc "
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+
+ cd ${S}
+ epatch ${DISTDIR}/sniffit_0.3.7.beta-10.diff
+
+ # Fix issues with gcc-3.3 (bug #25328)
+ epatch ${FILESDIR}/${P}-gcc33.patch
+}
+
+src_compile() {
+ econf || die
+
+ emake OBJ_FLAG="-w -c ${CFLAGS}" \
+ EXE_FLAG="-w ${CFLAGS} -o sniffit" || die
+}
+
+src_install () {
+ dobin sniffit
+
+ doman sniffit.5 sniffit.8
+ dodoc README* PLUGIN-HOWTO BETA* HISTORY LICENSE changelog
+}
+