diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-12-06 09:09:58 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-12-06 09:09:58 +0000 |
commit | 8a4dbfd418c1212b87c7176fe066e89e5008c2e5 (patch) | |
tree | 4f354eaad1245bebfea888dbe434272389eafb95 /net-analyzer | |
parent | update manifest, rm version 5.1.1, minor change to 5.1.2 (diff) | |
download | gentoo-2-8a4dbfd418c1212b87c7176fe066e89e5008c2e5.tar.gz gentoo-2-8a4dbfd418c1212b87c7176fe066e89e5008c2e5.tar.bz2 gentoo-2-8a4dbfd418c1212b87c7176fe066e89e5008c2e5.zip |
Version bump. Update to EAPI 4 and add pcre use flag.
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/ettercap/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/ettercap/ettercap-0.7.4.ebuild | 52 | ||||
-rw-r--r-- | net-analyzer/ettercap/files/ettercap-0.7.4-autotools.patch | 158 | ||||
-rw-r--r-- | net-analyzer/ettercap/files/ettercap-0.7.4-flags.patch | 34 |
4 files changed, 251 insertions, 1 deletions
diff --git a/net-analyzer/ettercap/ChangeLog b/net-analyzer/ettercap/ChangeLog index 7fa96c13534c..cb4bb84a4da3 100644 --- a/net-analyzer/ettercap/ChangeLog +++ b/net-analyzer/ettercap/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/ettercap # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ChangeLog,v 1.84 2011/03/28 21:25:11 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ChangeLog,v 1.85 2011/12/06 09:09:58 radhermit Exp $ + +*ettercap-0.7.4 (06 Dec 2011) + + 06 Dec 2011; Tim Harder <radhermit@gentoo.org> +ettercap-0.7.4.ebuild, + +files/ettercap-0.7.4-autotools.patch, +files/ettercap-0.7.4-flags.patch: + Version bump. Update to EAPI 4 and add pcre use flag. 28 Mar 2011; Tim Harder <radhermit@gentoo.org> -ettercap-0.7.3-r2.ebuild, -ettercap-0.7.3-r3.ebuild, ettercap-0.7.3-r4.ebuild: diff --git a/net-analyzer/ettercap/ettercap-0.7.4.ebuild b/net-analyzer/ettercap/ettercap-0.7.4.ebuild new file mode 100644 index 000000000000..6346d57963a7 --- /dev/null +++ b/net-analyzer/ettercap/ettercap-0.7.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ettercap/ettercap-0.7.4.ebuild,v 1.1 2011/12/06 09:09:58 radhermit Exp $ + +EAPI=4 + +inherit eutils autotools + +DESCRIPTION="A suite for man in the middle attacks and network mapping" +HOMEPAGE="http://ettercap.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug gtk ncurses pcre ssl" + +# libtool is needed because it provides libltdl (needed for plugins) +RDEPEND=">=net-libs/libnet-1.1.2.1-r1 + net-libs/libpcap + sys-devel/libtool + sys-libs/zlib + gtk? ( + >=dev-libs/glib-2.2.2:2 + >=x11-libs/gtk+-2.2.2:2 + ) + ncurses? ( sys-libs/ncurses ) + pcre? ( dev-libs/libpcre ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + sys-devel/flex + virtual/yacc" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.7.3-as-needed.patch + epatch "${FILESDIR}"/${P}-autotools.patch + epatch "${FILESDIR}"/${P}-flags.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable gtk) \ + $(use_with ncurses libncurses "${EPREFIX}"/usr) \ + $(use_with pcre libpcre "${EPREFIX}"/usr) \ + $(use_with ssl openssl "${EPREFIX}"/usr) +} diff --git a/net-analyzer/ettercap/files/ettercap-0.7.4-autotools.patch b/net-analyzer/ettercap/files/ettercap-0.7.4-autotools.patch new file mode 100644 index 000000000000..bc6d28605926 --- /dev/null +++ b/net-analyzer/ettercap/files/ettercap-0.7.4-autotools.patch @@ -0,0 +1,158 @@ +--- ettercap.orig/configure.in ++++ ettercap/configure.in +@@ -20,7 +20,7 @@ + dnl $Id: ettercap-0.7.4-autotools.patch,v 1.1 2011/12/06 09:09:58 radhermit Exp $ + dnl + +-AC_INIT ++AC_INIT(ettercap, 0.7.4) + AC_CONFIG_SRCDIR([include/ec.h]) + + dnl Force autoconf 2.57 +@@ -32,16 +32,8 @@ + dnl Do not recompile configure Makefile et similia + AM_MAINTAINER_MODE + +-VERSION=`grep EC_VERSION\ ./include/ec_version.h | cut -f2 -d"\""` +-SB=`./shtool echo -n -e %B` +-EB=`./shtool echo -n -e %b` +-AC_SUBST(SB) +-AC_SUBST(EB) +-AC_SUBST(VERSION) +-EC_MESSAGE(Configuring ettercap $VERSION) +- + AC_CONFIG_SRCDIR(src) +-AM_INIT_AUTOMAKE(ettercap, $VERSION) ++AM_INIT_AUTOMAKE([subdir-objects]) + + AC_CONFIG_HEADERS([include/config.h]) + dnl AC_CONFIG_HEADERS(include/config.h) +@@ -285,29 +277,18 @@ + + AC_CONFIG_LIBOBJ_DIR([src/missing]) + +-AM_CONDITIONAL(MISSING_STRLCPY, false) +-AM_CONDITIONAL(MISSING_STRLCAT, false) +-AM_CONDITIONAL(MISSING_STRSEP, false) +-AM_CONDITIONAL(MISSING_MEMMEM, false) +-AM_CONDITIONAL(MISSING_MEMCMP, false) +-AM_CONDITIONAL(MISSING_BASENAME, false) +-AM_CONDITIONAL(MISSING_GETOPT_LONG, false) +-AM_CONDITIONAL(MISSING_STRCASESTR, false) +-AM_CONDITIONAL(MISSING_INET_ATON, false) +-AM_CONDITIONAL(MISSING_SCANDIR, false) +- + dnl AC_REPLACE_FUNCS(strlcpy) + +-AC_CHECK_FUNCS([strlcpy], , [AC_LIBOBJ(strlcpy) AM_CONDITIONAL(MISSING_STRLCPY, true)]) +-AC_CHECK_FUNCS([strlcat], , [AC_LIBOBJ(strlcat) AM_CONDITIONAL(MISSING_STRLCAT, true)]) +-AC_CHECK_FUNCS([strsep], , [AC_LIBOBJ(strsep) AM_CONDITIONAL(MISSING_STRSEP, true)]) +-AC_CHECK_FUNCS([memmem], , [AC_LIBOBJ(memmem) AM_CONDITIONAL(MISSING_MEMMEM, true)]) +-AC_CHECK_FUNCS([memcmp], , [AC_LIBOBJ(memcmp) AM_CONDITIONAL(MISSING_MEMCMP, true)]) +-AC_CHECK_FUNCS([basename], , [AC_LIBOBJ(basename) AM_CONDITIONAL(MISSING_BASENAME, true)]) +-AC_CHECK_FUNCS([getopt_long], , [AC_LIBOBJ(getopt) AM_CONDITIONAL(MISSING_GETOPT_LONG, true)]) +-AC_CHECK_FUNCS([strcasestr], , [AC_LIBOBJ(strcasestr) AM_CONDITIONAL(MISSING_STRCASESTR, true)]) +-AC_CHECK_FUNCS([scandir], , [AC_LIBOBJ(scandir) AM_CONDITIONAL(MISSING_SCANDIR, true)]) +-AC_CHECK_FUNCS([inet_aton], , [AC_LIBOBJ(inet_aton) AM_CONDITIONAL(MISSING_INET_ATON, true)]) ++AC_CHECK_FUNCS([strlcpy], , [AC_LIBOBJ(strlcpy)]) ++AC_CHECK_FUNCS([strlcat], , [AC_LIBOBJ(strlcat)]) ++AC_CHECK_FUNCS([strsep], , [AC_LIBOBJ(strsep)]) ++AC_CHECK_FUNCS([memmem], , [AC_LIBOBJ(memmem)]) ++AC_CHECK_FUNCS([memcmp], , [AC_LIBOBJ(memcmp)]) ++AC_CHECK_FUNCS([basename], , [AC_LIBOBJ(basename)]) ++AC_CHECK_FUNCS([getopt_long], , [AC_LIBOBJ(getopt)]) ++AC_CHECK_FUNCS([strcasestr], , [AC_LIBOBJ(strcasestr)]) ++AC_CHECK_FUNCS([scandir], , [AC_LIBOBJ(scandir)]) ++AC_CHECK_FUNCS([inet_aton], , [AC_LIBOBJ(inet_aton)]) + + AC_CHECK_LIB(resolv, inet_aton, + AM_CONDITIONAL(INET_ATON_WANTS_RESOLV, true), +@@ -561,7 +542,7 @@ + dnl --------- + + AH_TEMPLATE(HAVE_PCRE, [perl compatible regex]) +- ++AM_CONDITIONAL(HAVE_PCRE, false) + ac_ec_pcre=no + + AC_MSG_CHECKING(for libpcre) +--- ettercap.orig/utils/etterfilter/Makefile.am ++++ ettercap/utils/etterfilter/Makefile.am +@@ -8,7 +8,8 @@ + + bin_PROGRAMS = etterfilter + +-AM_YFLAGS = --defines ++BUILT_SOURCES = ef_grammar.h ef_syntax.c ++AM_YFLAGS = -d + + etterfilter_SOURCES = ef_compiler.c \ + ef_main.c \ +@@ -26,22 +27,6 @@ + $(top_srcdir)/src/ec_strings.c + + noinst_HEADERS = ef_grammar.h +- +-if MISSING_STRSEP +- etterfilter_SOURCES += $(top_srcdir)/src/missing/strsep.c +-endif +-if MISSING_STRLCPY +- etterfilter_SOURCES += $(top_srcdir)/src/missing/strlcpy.c +-endif +-if MISSING_MEMMEM +- etterfilter_SOURCES += $(top_srcdir)/src/missing/memmem.c +-endif +-if MISSING_INET_ATON +- etterfilter_SOURCES += $(top_srcdir)/src/missing/inet_aton.c +-endif +-if MISSING_GETOPT_LONG +- etterfilter_SOURCES += $(top_srcdir)/src/missing/getopt.c +-endif + + etterfilter_CFLAGS = @EC_CFLAGS@ + +@@ -49,7 +34,7 @@ + etterfilter_CFLAGS += -pthread + endif + +-etterfilter_LDADD = ++etterfilter_LDADD = @LIBOBJS@ + + if INET_ATON_WANTS_RESOLV + etterfilter_LDADD += -lresolv +--- ettercap.orig/utils/etterlog/Makefile.am ++++ ettercap/utils/etterlog/Makefile.am +@@ -30,32 +30,10 @@ + $(top_srcdir)/src/ec_passive.c \ + $(top_srcdir)/src/ec_strings.c \ + $(top_srcdir)/src/ec_format.c +- +-if MISSING_STRSEP +- etterlog_SOURCES += $(top_srcdir)/src/missing/strsep.c +-endif +-if MISSING_STRLCAT +- etterlog_SOURCES += $(top_srcdir)/src/missing/strlcat.c +-endif +-if MISSING_STRCASESTR +- etterlog_SOURCES += $(top_srcdir)/src/missing/strcasestr.c +-endif +-if MISSING_MEMMEM +- etterlog_SOURCES += $(top_srcdir)/src/missing/memmem.c +-endif +-if MISSING_BASENAME +- etterlog_SOURCES += $(top_srcdir)/src/missing/basename.c +-endif +-if MISSING_INET_ATON +- etterlog_SOURCES += $(top_srcdir)/src/missing/inet_aton.c +-endif +-if MISSING_GETOPT_LONG +- etterlog_SOURCES += $(top_srcdir)/src/missing/getopt.c +-endif + + etterlog_CFLAGS = @EC_CFLAGS@ + +-etterlog_LDADD = -lz @ICONVLIB@ ++etterlog_LDADD = -lz @ICONVLIB@ @LIBOBJS@ + + if INET_ATON_WANTS_RESOLV + etterlog_LDADD += -lresolv diff --git a/net-analyzer/ettercap/files/ettercap-0.7.4-flags.patch b/net-analyzer/ettercap/files/ettercap-0.7.4-flags.patch new file mode 100644 index 000000000000..978b15c1957d --- /dev/null +++ b/net-analyzer/ettercap/files/ettercap-0.7.4-flags.patch @@ -0,0 +1,34 @@ +--- ettercap.orig/configure.in.orig ++++ ettercap.orig/configure.in +@@ -331,17 +331,17 @@ + [ case "$enableval" in + yes) + AC_DEFINE(DEBUG, 1) +- DEBUG_FLAGS="-g -ggdb -Wmissing-prototypes -Wno-uninitialized -Wformat-security -Wsign-compare -Wall" ++ DEBUG_FLAGS="-Wmissing-prototypes -Wno-uninitialized -Wformat-security -Wsign-compare -Wall" + AC_MSG_RESULT(yes) + ac_ec_debug=yes + ;; + no) AC_MSG_RESULT(no) +- DEBUG_FLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall" ++ DEBUG_FLAGS="-Wall" + ac_ec_debug=no + ;; + esac ], + AC_MSG_RESULT(no) +- DEBUG_FLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall" ++ DEBUG_FLAGS="-Wall" + ac_ec_debug=no + ) + +@@ -798,8 +798,8 @@ + dnl ----------------------- + EC_CFLAGS="$DEBUG_FLAGS $PCAPINC $LNETINC $SSLINC $PCREINC $ICONVINC" + EC_LIBS="$LIBS $PCAPLIB $LNETLIB $SSLLIB $PCRELIB $NCURSLIB $GTK_LIBS $ICONVLIB" +-CFLAGS="$EC_CFLAGS" +-LDFLAGS="$EC_LIBS" ++CFLAGS="$CFLAGS $EC_CFLAGS" ++LDFLAGS="$LDFLAGS $EC_LIBS" + + AC_SUBST(EC_CFLAGS) + AC_SUBST(EC_LIBS) |