summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-09-15 01:49:58 +0000
committerJeroen Roovers <jer@gentoo.org>2010-09-15 01:49:58 +0000
commit700cfaa30b5a03a16286d68df08c76adf8e1c034 (patch)
tree8c6f95a57c66c07281afe9eba33850c2f91f21e2 /net-analyzer
parentInitial import (diff)
downloadgentoo-2-700cfaa30b5a03a16286d68df08c76adf8e1c034.tar.gz
gentoo-2-700cfaa30b5a03a16286d68df08c76adf8e1c034.tar.bz2
gentoo-2-700cfaa30b5a03a16286d68df08c76adf8e1c034.zip
Respect LDFLAGS (bug #337322), CC. Fix HOMEPAGE and SRC_URI.
(Portage version: 2.2_rc81/cvs/Linux i686)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/egressor/ChangeLog10
-rw-r--r--net-analyzer/egressor/egressor-1.0-r2.ebuild41
-rw-r--r--net-analyzer/egressor/files/1.0-flags.patch23
3 files changed, 72 insertions, 2 deletions
diff --git a/net-analyzer/egressor/ChangeLog b/net-analyzer/egressor/ChangeLog
index 43bd96707ae9..b0ee73eefe7b 100644
--- a/net-analyzer/egressor/ChangeLog
+++ b/net-analyzer/egressor/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/egressor
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/egressor/ChangeLog,v 1.12 2007/02/20 00:01:42 jokey Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/egressor/ChangeLog,v 1.13 2010/09/15 01:49:57 jer Exp $
+
+*egressor-1.0-r2 (15 Sep 2010)
+
+ 15 Sep 2010; Jeroen Roovers <jer@gentoo.org> +files/1.0-flags.patch,
+ +egressor-1.0-r2.ebuild:
+ Respect LDFLAGS (bug #337322), CC. Fix HOMEPAGE and SRC_URI.
20 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
diff --git a/net-analyzer/egressor/egressor-1.0-r2.ebuild b/net-analyzer/egressor/egressor-1.0-r2.ebuild
new file mode 100644
index 000000000000..d60e085f2df3
--- /dev/null
+++ b/net-analyzer/egressor/egressor-1.0-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/egressor/egressor-1.0-r2.ebuild,v 1.1 2010/09/15 01:49:57 jer Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="tool for checking router configuration"
+HOMEPAGE="http://packetfactory.openwall.net/projects/egressor/"
+SRC_URI="${HOMEPAGE}${PN}_release${PV}.tar.gz"
+
+LICENSE="egressor"
+SLOT="0"
+IUSE=""
+KEYWORDS="~ppc ~x86"
+
+DEPEND="<net-libs/libnet-1.1
+ >=net-libs/libnet-1.0.2a-r3"
+RDEPEND="net-libs/libpcap
+ dev-perl/Net-RawIP
+ dev-lang/perl"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch \
+ ${FILESDIR}/${PV}-libnet-1.0.patch \
+ ${FILESDIR}/${PV}-flags.patch
+}
+
+src_compile() {
+ tc-export CC
+ cd client
+ emake || die
+}
+
+src_install() {
+ dobin client/egressor server/egressor_server.pl
+ dodoc README client/README-CLIENT server/README-SERVER
+}
diff --git a/net-analyzer/egressor/files/1.0-flags.patch b/net-analyzer/egressor/files/1.0-flags.patch
new file mode 100644
index 000000000000..2de1c04094be
--- /dev/null
+++ b/net-analyzer/egressor/files/1.0-flags.patch
@@ -0,0 +1,23 @@
+diff -Naur a/client/Makefile b/client/Makefile
+--- a/client/Makefile 2010-09-15 03:38:45.000000000 +0200
++++ b/client/Makefile 2010-09-15 03:43:57.000000000 +0200
+@@ -5,8 +5,8 @@
+ #----------------------------------------------------------------------
+
+
+-CC = gcc
+-CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall -DMD=5
++CC ?= gcc
++CFLAGS += -Wall -DMD=5
+ #CFLAGS2 = -O -DMD=5
+ OBJECTS = egressor.o md5c.o \
+
+@@ -21,7 +21,7 @@
+
+
+ egressor: egressor.o md5c.o
+- $(CC) egressor.o $(LIBS) -o ./egressor
++ $(CC) $(CFLAGS) $(LDFLAGS) egressor.o $(LIBS) -o ./egressor
+
+ md5c.o: global.h md5.h
+ $(CC) -c $(CFLAGS) md5c.c