pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/ettercap-NG Initial import of ettercap-NG 0.7.2 fr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d2fcba095bf9
branches: trunk
changeset: 493415:d2fcba095bf9
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Thu May 05 19:34:44 2005 +0000
description:
Initial import of ettercap-NG 0.7.2 from pkgsrc-wip, packaged
by Adrian Portelli.
Ettercap is a suite for man in the middle attacks on LAN. It features
sniffing of live connections, content filtering on the fly and many
other interesting tricks. It supports active and passive dissection
of many protocols (even ciphered ones) and includes many feature
for network and host analysis.
diffstat:
net/ettercap-NG/DESCR | 5 +
net/ettercap-NG/Makefile | 64 ++++++++++++++++++++++++
net/ettercap-NG/PLIST | 57 ++++++++++++++++++++++
net/ettercap-NG/distinfo | 8 +++
net/ettercap-NG/patches/patch-aa | 13 +++++
net/ettercap-NG/patches/patch-ab | 13 +++++
net/ettercap-NG/patches/patch-ac | 101 +++++++++++++++++++++++++++++++++++++++
net/ettercap-NG/patches/patch-ad | 16 ++++++
8 files changed, 277 insertions(+), 0 deletions(-)
diffs (truncated from 309 to 300 lines):
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/DESCR Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,5 @@
+Ettercap is a suite for man in the middle attacks on LAN. It features
+sniffing of live connections, content filtering on the fly and many
+other interesting tricks. It supports active and passive dissection
+of many protocols (even ciphered ones) and includes many feature
+for network and host analysis.
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/Makefile Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,64 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+DISTNAME= ettercap-NG-0.7.2
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/}
+
+MAINTAINER= adrianp%NetBSD.org@localhost
+HOMEPAGE= http://ettercap.sourceforge.net/
+COMMENT= Multipurpose sniffer/interceptor/logger for switched LAN
+
+CONFLICTS= ettercap-[0-9]*
+
+BUILDLINK_DEPENDS.libpcap+= libpcap>=0.8.1
+
+.include "../../mk/bsd.prefs.mk"
+
+GNU_CONFIGURE= YES
+PTHREAD_OPTS+= require
+USE_PKGINSTALL= YES
+USE_LIBTOOL= YES
+USE_NCURSES= # ncurses.h menu.h panel.h form.h
+USE_OLD_DES_API= YES
+
+CONFIGURE_ARGS+= --with-libnet=${BUILDLINK_PREFIX.libnet}
+CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap}
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
+CONFIGURE_ARGS+= --with-libpcre=${BUILDLINK_PREFIX.pcre}
+CONFIGURE_ARGS+= --with-libncurses=${BUILDLINK_PREFIX.ncurses}
+CONFIGURE_ARGS+= --enable-plugins
+CONFIGURE_ARGS+= --disable-gtk
+
+CONF_FILES= ${PREFIX}/share/examples/ettercap-NG/etter.conf \
+ ${PKG_SYSCONFDIR}/etter.conf
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ettercap-NG
+PKG_SUPPORTED_OPTIONS= gtk
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk)
+. include "../../x11/gtk2/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-gtk
+.endif
+
+# See PR# 28772 about INSTALL_STRIPPED=NO being ignored on certain platforms
+.if ${OPSYS} == "Darwin"
+_STRIPFLAG_CC=
+_STRIPFLAG_INSTALL=
+.endif
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/libnet11/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ettercap-NG
+ ${INSTALL_DATA} ${WRKSRC}/share/etter.conf \
+ ${PREFIX}/share/examples/ettercap-NG
+
+.include "../../mk/bsd.pkg.mk"
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/PLIST Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,57 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+bin/ettercap
+bin/etterfilter
+bin/etterlog
+lib/ettercap/ec_arp_cop.la
+lib/ettercap/ec_autoadd.la
+lib/ettercap/ec_chk_poison.la
+lib/ettercap/ec_dns_spoof.la
+lib/ettercap/ec_dos_attack.la
+lib/ettercap/ec_dummy.la
+lib/ettercap/ec_find_conn.la
+lib/ettercap/ec_find_ettercap.la
+lib/ettercap/ec_find_ip.la
+lib/ettercap/ec_finger.la
+lib/ettercap/ec_finger_submit.la
+lib/ettercap/ec_gre_relay.la
+lib/ettercap/ec_gw_discover.la
+lib/ettercap/ec_isolate.la
+lib/ettercap/ec_link_type.la
+lib/ettercap/ec_pptp_chapms1.la
+lib/ettercap/ec_pptp_clear.la
+lib/ettercap/ec_pptp_pap.la
+lib/ettercap/ec_pptp_reneg.la
+lib/ettercap/ec_rand_flood.la
+lib/ettercap/ec_remote_browser.la
+lib/ettercap/ec_reply_arp.la
+lib/ettercap/ec_repoison_arp.la
+lib/ettercap/ec_scan_poisoner.la
+lib/ettercap/ec_search_promisc.la
+lib/ettercap/ec_smb_clear.la
+lib/ettercap/ec_smb_down.la
+lib/ettercap/ec_stp_mangler.la
+man/man5/etter.conf.5
+man/man8/ettercap.8
+man/man8/ettercap_curses.8
+man/man8/ettercap_plugins.8
+man/man8/etterfilter.8
+man/man8/etterlog.8
+share/ettercap/etter.dns
+share/ettercap/etter.fields
+share/ettercap/etter.filter
+share/ettercap/etter.filter.examples
+share/ettercap/etter.filter.kill
+share/ettercap/etter.filter.ssh
+share/ettercap/etter.finger.mac
+share/ettercap/etter.finger.os
+share/ettercap/etter.mime
+share/ettercap/etter.services
+share/ettercap/etter.ssl.crt
+share/ettercap/ettercap.png
+share/ettercap/etterfilter.cnt
+share/ettercap/etterfilter.tbl
+share/ettercap/etterlog.dtd
+share/examples/ettercap-NG/etter.conf
+@dirrm share/examples/ettercap-NG
+@dirrm share/ettercap
+@dirrm lib/ettercap
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/distinfo Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+SHA1 (ettercap-NG-0.7.2.tar.gz) = 514760efdca27a45d6486c18679d2b6e9ba67452
+Size (ettercap-NG-0.7.2.tar.gz) = 1114060 bytes
+SHA1 (patch-aa) = 0745cd8e124ee11fbda8d5e0deb16ad0dab4b499
+SHA1 (patch-ab) = 7cf863797abac4b67dbca55f6f763bf7b9830259
+SHA1 (patch-ac) = ad04400499dcfdb4067079a58c849c287a34d12f
+SHA1 (patch-ad) = f39de66feb894ef2f1134abd3a3ca36677bea2b4
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/patches/patch-aa Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+--- share/Makefile.in.orig 2004-12-17 09:50:34.000000000 +0100
++++ share/Makefile.in
+@@ -329,8 +329,6 @@ install-sysconfDATA: $(sysconf_DATA)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+- echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
+- $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
+ done
+
+ uninstall-sysconfDATA:
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/patches/patch-ab Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+--- include/ec_resolv.h.orig 2004-07-24 12:43:21.000000000 +0200
++++ include/ec_resolv.h
+@@ -8,7 +8,7 @@
+
+ #ifdef HAVE_ARPA_NAMESER_H
+ #include <arpa/nameser.h>
+- #ifndef OS_BSD_OPEN
++ #if (!defined OS_BSD_OPEN && !defined OS_BSD_NET) || defined __APPLE__
+ #include <arpa/nameser_compat.h>
+ #endif
+ #include <resolv.h>
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/patches/patch-ac Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,101 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+--- src/ec_threads.c.orig 2004-11-05 15:12:01.000000000 +0100
++++ src/ec_threads.c
+@@ -48,6 +48,10 @@ static pthread_mutex_t init_mtx = PTHREA
+ #define BROKEN_PTHREAD_JOIN
+ #endif
+
++#ifdef OS_BSD_NET
++ int init_lock_helper;
++#endif
++
+ /* protos... */
+
+ char * ec_thread_getname(pthread_t id);
+@@ -190,6 +194,39 @@ pthread_t ec_thread_new(char *name, char
+ pthread_t id;
+
+ DEBUG_MSG("ec_thread_new -- %s", name);
++
++#ifdef OS_BSD_NET
++ /*
++ * Since unlocking a mutex from a thread other than the locking
++ * is a NO-NO, use a helper lockflag. The new thread will set this
++ * to "1" when finished.
++ */
++ INIT_LOCK;
++ init_lock_helper = 0;
++ INIT_UNLOCK;
++
++ if (pthread_create(&id, NULL, function, args) != 0)
++ ERROR_MSG("not enough resources to create a new thread in this process");
++
++ ec_thread_register(id, name, desc);
++
++ DEBUG_MSG("ec_thread_new -- %lu created ", PTHREAD_ID(id));
++
++ /* The new thread will set the variable to "1" */
++ for (;;) {
++ INIT_LOCK;
++
++ if (init_lock_helper == 1) {
++ INIT_UNLOCK;
++ break;
++ }
++
++ INIT_UNLOCK;
++
++ /* Wait for next term */
++ sched_yield();
++ }
++#else
+
+ /*
+ * lock the mutex to syncronize with the new thread.
+@@ -209,6 +246,7 @@ pthread_t ec_thread_new(char *name, char
+ /* the new thread will unlock this */
+ INIT_LOCK;
+ INIT_UNLOCK;
++#endif
+
+ return id;
+ }
+@@ -219,6 +257,9 @@ pthread_t ec_thread_new(char *name, char
+ */
+ void ec_thread_init(void)
+ {
++#ifdef OS_BSD_NET
++ INIT_LOCK;
++
+ pthread_t id = pthread_self();
+
+ DEBUG_MSG("ec_thread_init -- %lu", PTHREAD_ID(id));
+@@ -231,9 +272,27 @@ void ec_thread_init(void)
+ pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
+
+ /* sync with the creator */
++ init_lock_helper = 1;
+ INIT_UNLOCK;
+
+ DEBUG_MSG("ec_thread_init -- (%lu) ready and syncronized", PTHREAD_ID(id));
++#else
++ pthread_t id = pthread_self();
++
++ DEBUG_MSG("ec_thread_init -- %lu", PTHREAD_ID(id));
++
++ /*
++ * allow a thread to be cancelled as soon as the
++ * cancellation request is received
++ */
++ pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
++ pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
++
++ /* sync with the creator */
++ INIT_UNLOCK;
++
++ DEBUG_MSG("ec_thread_init -- (%lu) ready and syncronized", PTHREAD_ID(id));
++#endif
+ }
+
+
diff -r bbba10e50e51 -r d2fcba095bf9 net/ettercap-NG/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap-NG/patches/patch-ad Thu May 05 19:34:44 2005 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/05/05 19:34:44 xtraeme Exp $
+
+--- src/os/ec_bsd.c.orig 2004-07-13 11:35:44.000000000 +0200
++++ src/os/ec_bsd.c
+@@ -22,6 +22,11 @@
+
+ #include <sys/socket.h>
Home |
Main Index |
Thread Index |
Old Index