summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-01 20:20:41 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-01 20:20:41 +0000
commitfa0cbaa8ece23f2882a5f676727ef17ae8d5b107 (patch)
treed653441c2e7d31d5b380d92270012512faa615c7 /net-analyzer/ettercap
parentFix for gcc 4.3.3 / fortify_sources. Patch by Romain Perier. (diff)
downloadhistorical-fa0cbaa8ece23f2882a5f676727ef17ae8d5b107.tar.gz
historical-fa0cbaa8ece23f2882a5f676727ef17ae8d5b107.tar.bz2
historical-fa0cbaa8ece23f2882a5f676727ef17ae8d5b107.zip
Fix for gcc 4.3.3 / fortify_sources. Patch by Jonathan-Christofer Demay.
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/ettercap')
-rw-r--r--net-analyzer/ettercap/ChangeLog10
-rw-r--r--net-analyzer/ettercap/Manifest4
-rw-r--r--net-analyzer/ettercap/ettercap-0.7.3-r3.ebuild64
-rw-r--r--net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch12
4 files changed, 87 insertions, 3 deletions
diff --git a/net-analyzer/ettercap/ChangeLog b/net-analyzer/ettercap/ChangeLog
index 73630d212335..bc1d603864e6 100644
--- a/net-analyzer/ettercap/ChangeLog
+++ b/net-analyzer/ettercap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/ettercap
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ChangeLog,v 1.65 2007/09/06 16:31:55 jokey Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ChangeLog,v 1.66 2009/03/01 20:20:40 patrick Exp $
+
+*ettercap-0.7.3-r3 (01 Mar 2009)
+
+ 01 Mar 2009; Patrick Lauer <patrick@gentoo.org>
+ +files/ettercap-0.7.3-open_missing_mode.patch, +ettercap-0.7.3-r3.ebuild:
+ Fix for gcc 4.3.3 / fortify_sources. Patch by Jonathan-Christofer Demay.
06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -ettercap-0.7.3.ebuild:
Cleanup
diff --git a/net-analyzer/ettercap/Manifest b/net-analyzer/ettercap/Manifest
index 85766a61063e..e092a549af26 100644
--- a/net-analyzer/ettercap/Manifest
+++ b/net-analyzer/ettercap/Manifest
@@ -1,5 +1,7 @@
AUX ettercap-0.7.3-as-needed.patch 476 RMD160 1c7f5d24a4b77922e6499d048cd8b7b984db6eb4 SHA1 fd137a91ec37a5b1fbfa28fc075191cc92d298c7 SHA256 7722bd2e6f993d45e74ae8b36b200d34e10257fc7b2b8de7f76a6946f7a8046a
+AUX ettercap-0.7.3-open_missing_mode.patch 625 RMD160 9bc96776088d33c347bd1bcb2b29b62f9173d348 SHA1 e680a22e24d5f48d1f1604e8d9e55d645cffd117 SHA256 be35690de1d1f70045a97903cfba253923ec0a86d7f7fc6e47e31dee8c03ce0c
DIST ettercap-NG-0.7.3.tar.gz 1138643 RMD160 f4e6c0d87b2064b3775e9af60f34575273742616 SHA1 7a2c3f848ca4f39c07fddeb0d6308641265bc4ff SHA256 c74239052d62565c13a82f9bbf217a4fdcce4b34949e361b53bb3f28e3168543
EBUILD ettercap-0.7.3-r2.ebuild 1609 RMD160 7d706e68550d31c90d87f57490fd79669cb819f3 SHA1 f25dcb74141bb78409f94770cd884c4b57530010 SHA256 63f600d4561c630636826d3ff4b90f26d60f91a5a957b012ad1168299fa1ef5d
-MISC ChangeLog 7504 RMD160 fb701a2b0d2bec9f0bab9bfa2c98e00e91e9bac4 SHA1 a972e57255796f7613265c11be1d0479e06aedae SHA256 3e61faf0a869911693a4b5c69c45b04a76fcacbf3f502c8ed2a2e61e96963ffe
+EBUILD ettercap-0.7.3-r3.ebuild 1667 RMD160 73c03c56442b094f496fe4143dfb7138ad8052b5 SHA1 acb33f919aa8af2d503ffa47389b60690e815188 SHA256 b4f2676d0659b7c0fa1cc3d9883036ed11720850dd4512b20a6198452ba5e3ba
+MISC ChangeLog 7742 RMD160 a15a1e43e39c47cc974f3731b8d7c15f882a71c8 SHA1 e38bee7528db9ed436c17fa24c7fe8bc6bd23c7f SHA256 11afa6ba6649ee7b51c51990ded5b0b9e51b53cdc6950f9b1841ee441ea2354a
MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6
diff --git a/net-analyzer/ettercap/ettercap-0.7.3-r3.ebuild b/net-analyzer/ettercap/ettercap-0.7.3-r3.ebuild
new file mode 100644
index 000000000000..d963212ca2ce
--- /dev/null
+++ b/net-analyzer/ettercap/ettercap-0.7.3-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ettercap-0.7.3-r3.ebuild,v 1.1 2009/03/01 20:20:40 patrick Exp $
+
+# the actual version is "NG-0.7.0" but I suppose portage people will not be
+# happy with it (as for the 0.6.b version), so let's set it to "0.7.0".
+# since 'ettercap NG' has to be intended as an upgrade to 0.6.x series and not as
+# a new project or branch, this will be fine...
+
+WANT_AUTOMAKE="1.8"
+
+# libtool is needed because it provides libltdl (needed for plugins)
+inherit autotools flag-o-matic libtool
+
+MY_P="${PN}-NG-${PV}"
+DESCRIPTION="A suite for man in the middle attacks and network mapping"
+HOMEPAGE="http://ettercap.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug gtk ncurses ssl"
+
+RDEPEND=">=net-libs/libnet-1.1.2.1-r1
+ net-libs/libpcap
+ ncurses? ( sys-libs/ncurses )
+ ssl? ( dev-libs/openssl )
+ gtk? ( >=x11-libs/gtk+-2.2.2 )"
+DEPEND=${RDEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-open_missing_mode.patch
+ eautomake
+}
+
+src_compile() {
+ strip-flags
+
+ local myconf
+
+ if use ssl; then
+ myconf="${myconf} --with-openssl=/usr"
+ else
+ myconf="${myconf} --without-openssl"
+ fi
+
+ econf ${myconf} \
+ $(use_enable gtk) \
+ $(use_enable debug) \
+ $(use_with ncurses) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+}
diff --git a/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch b/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch
new file mode 100644
index 000000000000..03837fc9a3e9
--- /dev/null
+++ b/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch
@@ -0,0 +1,12 @@
+diff -Naur ettercap-NG-0.7.3-orig/src/ec_log.c ettercap-NG-0.7.3-patch/src/ec_log.c
+--- ettercap-NG-0.7.3-orig/src/ec_log.c 2004-09-30 16:01:45.000000000 +0000
++++ ettercap-NG-0.7.3-patch/src/ec_log.c 2009-02-16 13:04:23.000000000 +0000
+@@ -190,7 +190,7 @@
+ if (fd->cfd == NULL)
+ SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
+ } else {
+- fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
++ fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR);
+ if (fd->fd == -1)
+ SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
+ }