the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: ettercap%type_pkg[-gtk]
Version: 0.7.3
Revision: 1007
Maintainer: Jeremy Higgs
Type: -gtk (boolean)
Depends: <<
libgettext3-shlibs,
libiconv,
libtool14-shlibs,
libncurses5-shlibs (>= 5.4-20041023-1006),
libpcap-shlibs ( >= 0.8.1 ),
pcre-shlibs ( >= 4.2 ),
libnet1.1-shlibs (>= 1.1.2.1-3),
(%type_raw[-gtk] = -gtk) glib2-shlibs (>= 2.14.0-1),
(%type_raw[-gtk] = -gtk) gtk+2-shlibs (>= 2.12.0-1),
(%type_raw[-gtk] = -gtk) atk1-shlibs (>= 1.20.0-1),
(%type_raw[-gtk] = -gtk) pango1-xft2-ft219-shlibs (>= 1.18.4-4),
(%type_raw[-gtk] = -gtk) x11
<<
BuildDepends: <<
fink (>= 0.19.2-1),
cctools (>= 446-1),
libgettext3-dev,
gettext-bin,
gettext-tools,
libiconv-dev,
libtool14,
libncurses5 (>= 5.4-20041023-1006),
libpcap ( >= 0.8.1 ),
pcre ( >= 4.2 ),
libnet1.1 (>= 1.1.2.1-3),
(%type_raw[-gtk] = -gtk) pkgconfig (>= 0.21-1),
(%type_raw[-gtk] = -gtk) glib2-dev (>= 2.14.0-1),
(%type_raw[-gtk] = -gtk) gtk+2-dev (>= 2.12.0-1),
(%type_raw[-gtk] = -gtk) atk1 (>= 1.20.0-1),
(%type_raw[-gtk] = -gtk) cairo (>= 1.6-1),
(%type_raw[-gtk] = -gtk) expat1,
(%type_raw[-gtk] = -gtk) fontconfig2-dev (>= 2.4.1-1),
(%type_raw[-gtk] = -gtk) freetype219 (>= 2.3.5-1),
(%type_raw[-gtk] = -gtk) glitz,
(%type_raw[-gtk] = -gtk) libpng3,
(%type_raw[-gtk] = -gtk) pango1-xft2-ft219-dev (>= 1.18.4-4),
(%type_raw[-gtk] = -gtk) pixman (>= 0.10.0-1),
(%type_raw[-gtk] = -gtk) x11-dev,
(%type_raw[-gtk] = -gtk) xft2-dev
<<
Conflicts: <<
ettercap,
ettercap-ssl,
ettercap-ssl-gtk,
ettercap-gtk
<<
Replaces: <<
ettercap,
ettercap-ssl,
ettercap-ssl-gtk,
ettercap-gtk
<<
Source: mirror:sourceforge:ettercap/ettercap-NG-%v.tar.gz
Source-MD5: 28fb15cd024162c55249888fe1b97820
SourceDirectory: ettercap-NG-%v
Patch: %{Ni}.patch
ConfigureParams: --mandir=%p/share/man --with-libpcre=%p --with-libnet=%p --with-libpcap=%p --with-libncurses=%p --enable-plugins --without-openssl --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-gtk]" == "-gtk" ]; then
./configure %c --enable-gtk
else
./configure %c --disable-gtk
fi
make
<<
InstallScript: <<
make install DESTDIR=%d
#chmod +x %i/sbin/%n
mkdir -p %i/etc/ettercap
mv %i/share/ettercap/* %i/etc/ettercap
rm -rf %i/share/ettercap
ln -s %p/etc/ettercap %i/share/ettercap
<<
ConfFiles: <<
%p/etc/etter.conf
%p/etc/ettercap/etter.dns
%p/etc/ettercap/etter.fields
%p/etc/ettercap/etter.filter
%p/etc/ettercap/etter.finger.mac
%p/etc/ettercap/etter.finger.os
%p/etc/ettercap/etter.mime
%p/etc/ettercap/etter.services
%p/etc/ettercap/etter.ssl.crt
%p/etc/ettercap/etterfilter.cnt
%p/etc/ettercap/etterfilter.tbl
<<
PreInstScript: <<
if [ -d %p/share/ettercap ] && [ ! -L %p/share/ettercap ]; then
rmdir %p/share/ettercap
fi
<<
Description: Powerful net sniffer (without OpenSSL)
DescDetail: <<
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 and
includes many feature for network and host analysis.
This version does not have OpenSSL support. For a version with OpenSSL,
see the 'ettercap-ssl' package.
<<
DescUsage: <<
Ettercap must be run as root, either through "sudo" or "su -".
Start Ettercap with the -C option to use the curse interface.
<<
DescPackaging: <<
ConfigureParams places manpages in proper directories, enables ncurses
interface, enables plugins, enables PCRE and disables use of openssl and gtk UI.
InstallScript moves configuration files into own directory under PREFIX/etc,
and creates symlinks to the previous directory.
Version 0.7.0-1 was updated by Masseboeuf Mathieu
Package has been designed to make use of variant support added in Fink 0.19.2.
<<
DescPort: <<
Patch modifies Makefile.in file to put the plugins in the proper directory.
Fix spelling of token that configure uses to indicate OS X.
Remove nested functions (prohibitted by gcc4) that are due to mis-use
of AC_TRY_COMPILE macro.
<<
License: GPL
Homepage: http://ettercap.sourceforge.net/
<<
diff -uNbwr ettercap-NG-0.7.3/Makefile.in ettercap-NG-0.7.3-new/Makefile.in
--- ettercap-NG-0.7.3/Makefile.in 2005-05-27 11:11:46.000000000 -0400
+++ ettercap-NG-0.7.3-new/Makefile.in 2008-02-19 08:41:22.000000000 -0500
@@ -19,7 +19,7 @@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
+pkglibdir = $(prefix)/share/@PACKAGE@/plugins/
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
diff -uNbwr ettercap-NG-0.7.3/configure ettercap-NG-0.7.3-new/configure
--- ettercap-NG-0.7.3/configure 2005-05-27 11:11:45.000000000 -0400
+++ ettercap-NG-0.7.3-new/configure 2008-02-19 08:41:22.000000000 -0500
@@ -28243,7 +28243,7 @@
fi
- elif test "$OS" != "MACOSX" -a "$OS" != "WINDOWS"; then
+ elif test "$OS" != "DARWIN" -a "$OS" != "WINDOWS"; then
echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
LDFLAGS_store="$LDFLAGS"
@@ -28260,13 +28260,8 @@
int
main ()
{
-
- int main(int argc, char **argv)
- {
pthread_create(NULL, NULL, NULL, NULL);
return 0;
- }
-
;
return 0;
}
@@ -29604,15 +29599,10 @@
int
main ()
{
-
- int main(int argc, char **argv)
- {
char *q;
char p[NS_MAXDNAME];
dn_expand(q, q, q, p, sizeof(p));
- }
-
;
return 0;
}
diff -uNbwr ettercap-NG-0.7.3/src/interfaces/curses/widgets/wdg.h ettercap-NG-0.7.3-new/src/interfaces/curses/widgets/wdg.h
--- ettercap-NG-0.7.3/src/interfaces/curses/widgets/wdg.h 2004-09-28 09:50:37.000000000 -0400
+++ ettercap-NG-0.7.3-new/src/interfaces/curses/widgets/wdg.h 2008-02-19 08:42:09.000000000 -0500
@@ -12,6 +12,7 @@
#include
#include
#include
+#include
#ifdef OS_WINDOWS
#include
Info2: <<
Package: ettercap%type_pkg[-gtk]
Version: 0.7.3
Revision: 1007
Maintainer: Jeremy Higgs
Type: -gtk (boolean)
Depends: <<
libgettext3-shlibs,
libiconv,
libtool14-shlibs,
libncurses5-shlibs (>= 5.4-20041023-1006),
libpcap-shlibs ( >= 0.8.1 ),
pcre-shlibs ( >= 4.2 ),
libnet1.1-shlibs (>= 1.1.2.1-3),
(%type_raw[-gtk] = -gtk) glib2-shlibs (>= 2.14.0-1),
(%type_raw[-gtk] = -gtk) gtk+2-shlibs (>= 2.12.0-1),
(%type_raw[-gtk] = -gtk) atk1-shlibs (>= 1.20.0-1),
(%type_raw[-gtk] = -gtk) pango1-xft2-ft219-shlibs (>= 1.18.4-4),
(%type_raw[-gtk] = -gtk) x11
<<
BuildDepends: <<
fink (>= 0.19.2-1),
cctools (>= 446-1),
libgettext3-dev,
gettext-bin,
gettext-tools,
libiconv-dev,
libtool14,
libncurses5 (>= 5.4-20041023-1006),
libpcap ( >= 0.8.1 ),
pcre ( >= 4.2 ),
libnet1.1 (>= 1.1.2.1-3),
(%type_raw[-gtk] = -gtk) pkgconfig (>= 0.21-1),
(%type_raw[-gtk] = -gtk) glib2-dev (>= 2.14.0-1),
(%type_raw[-gtk] = -gtk) gtk+2-dev (>= 2.12.0-1),
(%type_raw[-gtk] = -gtk) atk1 (>= 1.20.0-1),
(%type_raw[-gtk] = -gtk) cairo (>= 1.6-1),
(%type_raw[-gtk] = -gtk) expat1,
(%type_raw[-gtk] = -gtk) fontconfig2-dev (>= 2.4.1-1),
(%type_raw[-gtk] = -gtk) freetype219 (>= 2.3.5-1),
(%type_raw[-gtk] = -gtk) glitz,
(%type_raw[-gtk] = -gtk) libpng3,
(%type_raw[-gtk] = -gtk) pango1-xft2-ft219-dev (>= 1.18.4-4),
(%type_raw[-gtk] = -gtk) pixman (>= 0.10.0-1),
(%type_raw[-gtk] = -gtk) x11-dev,
(%type_raw[-gtk] = -gtk) xft2-dev
<<
Conflicts: <<
ettercap,
ettercap-ssl,
ettercap-ssl-gtk,
ettercap-gtk
<<
Replaces: <<
ettercap,
ettercap-ssl,
ettercap-ssl-gtk,
ettercap-gtk
<<
Source: mirror:sourceforge:ettercap/ettercap-NG-%v.tar.gz
Source-MD5: 28fb15cd024162c55249888fe1b97820
SourceDirectory: ettercap-NG-%v
Patch: %{Ni}.patch
ConfigureParams: --mandir=%p/share/man --with-libpcre=%p --with-libnet=%p --with-libpcap=%p --with-libncurses=%p --enable-plugins --without-openssl --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-gtk]" == "-gtk" ]; then
./configure %c --enable-gtk
else
./configure %c --disable-gtk
fi
make
<<
InstallScript: <<
make install DESTDIR=%d
#chmod +x %i/sbin/%n
mkdir -p %i/etc/ettercap
mv %i/share/ettercap/* %i/etc/ettercap
rm -rf %i/share/ettercap
ln -s %p/etc/ettercap %i/share/ettercap
<<
ConfFiles: <<
%p/etc/etter.conf
%p/etc/ettercap/etter.dns
%p/etc/ettercap/etter.fields
%p/etc/ettercap/etter.filter
%p/etc/ettercap/etter.finger.mac
%p/etc/ettercap/etter.finger.os
%p/etc/ettercap/etter.mime
%p/etc/ettercap/etter.services
%p/etc/ettercap/etter.ssl.crt
%p/etc/ettercap/etterfilter.cnt
%p/etc/ettercap/etterfilter.tbl
<<
PreInstScript: <<
if [ -d %p/share/ettercap ] && [ ! -L %p/share/ettercap ]; then
rmdir %p/share/ettercap
fi
<<
Description: Powerful net sniffer (without OpenSSL)
DescDetail: <<
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 and
includes many feature for network and host analysis.
This version does not have OpenSSL support. For a version with OpenSSL,
see the 'ettercap-ssl' package.
<<
DescUsage: <<
Ettercap must be run as root, either through "sudo" or "su -".
Start Ettercap with the -C option to use the curse interface.
<<
DescPackaging: <<
ConfigureParams places manpages in proper directories, enables ncurses
interface, enables plugins, enables PCRE and disables use of openssl and gtk UI.
InstallScript moves configuration files into own directory under PREFIX/etc,
and creates symlinks to the previous directory.
Version 0.7.0-1 was updated by Masseboeuf Mathieu
Package has been designed to make use of variant support added in Fink 0.19.2.
<<
DescPort: <<
Patch modifies Makefile.in file to put the plugins in the proper directory.
Fix spelling of token that configure uses to indicate OS X.
Remove nested functions (prohibitted by gcc4) that are due to mis-use
of AC_TRY_COMPILE macro.
<<
License: GPL
Homepage: http://ettercap.sourceforge.net/
<<
diff -uNbwr ettercap-NG-0.7.3/Makefile.in ettercap-NG-0.7.3-new/Makefile.in
--- ettercap-NG-0.7.3/Makefile.in 2005-05-27 11:11:46.000000000 -0400
+++ ettercap-NG-0.7.3-new/Makefile.in 2008-02-19 08:41:22.000000000 -0500
@@ -19,7 +19,7 @@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
+pkglibdir = $(prefix)/share/@PACKAGE@/plugins/
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
diff -uNbwr ettercap-NG-0.7.3/configure ettercap-NG-0.7.3-new/configure
--- ettercap-NG-0.7.3/configure 2005-05-27 11:11:45.000000000 -0400
+++ ettercap-NG-0.7.3-new/configure 2008-02-19 08:41:22.000000000 -0500
@@ -28243,7 +28243,7 @@
fi
- elif test "$OS" != "MACOSX" -a "$OS" != "WINDOWS"; then
+ elif test "$OS" != "DARWIN" -a "$OS" != "WINDOWS"; then
echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
LDFLAGS_store="$LDFLAGS"
@@ -28260,13 +28260,8 @@
int
main ()
{
-
- int main(int argc, char **argv)
- {
pthread_create(NULL, NULL, NULL, NULL);
return 0;
- }
-
;
return 0;
}
@@ -29604,15 +29599,10 @@
int
main ()
{
-
- int main(int argc, char **argv)
- {
char *q;
char p[NS_MAXDNAME];
dn_expand(q, q, q, p, sizeof(p));
- }
-
;
return 0;
}
diff -uNbwr ettercap-NG-0.7.3/src/interfaces/curses/widgets/wdg.h ettercap-NG-0.7.3-new/src/interfaces/curses/widgets/wdg.h
--- ettercap-NG-0.7.3/src/interfaces/curses/widgets/wdg.h 2004-09-28 09:50:37.000000000 -0400
+++ ettercap-NG-0.7.3-new/src/interfaces/curses/widgets/wdg.h 2008-02-19 08:42:09.000000000 -0500
@@ -12,6 +12,7 @@
#include
#include
#include
+#include
#ifdef OS_WINDOWS
#include