diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-07-28 15:44:28 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-07-28 15:44:28 +0000 |
commit | f66d2a606238ccb58082465657c4b3501ad9ac74 (patch) | |
tree | 7b18188734be786c4b77e3261192d91c46903373 /net-analyzer/sniffit | |
parent | lu_zero's write access errors fixed (diff) | |
download | historical-f66d2a606238ccb58082465657c4b3501ad9ac74.tar.gz historical-f66d2a606238ccb58082465657c4b3501ad9ac74.tar.bz2 historical-f66d2a606238ccb58082465657c4b3501ad9ac74.zip |
fix gcc-3.3 issues
Diffstat (limited to 'net-analyzer/sniffit')
-rw-r--r-- | net-analyzer/sniffit/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/sniffit/files/digest-sniffit-0.3.7-r1 | 2 | ||||
-rw-r--r-- | net-analyzer/sniffit/files/sniffit-0.3.7-gcc33.patch | 12 | ||||
-rw-r--r-- | net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild | 46 |
4 files changed, 62 insertions, 2 deletions
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 +} + |