diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/ettercap-gtk |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/ettercap-gtk')
-rw-r--r-- | extra/ettercap-gtk/PKGBUILD | 44 | ||||
-rw-r--r-- | extra/ettercap-gtk/ettercap.desktop | 6 | ||||
-rw-r--r-- | extra/ettercap-gtk/fix-segmentation-fault.patch | 19 |
3 files changed, 69 insertions, 0 deletions
diff --git a/extra/ettercap-gtk/PKGBUILD b/extra/ettercap-gtk/PKGBUILD new file mode 100644 index 000000000..90a910423 --- /dev/null +++ b/extra/ettercap-gtk/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 103538 2010-12-21 10:37:25Z andrea $ +# Maintainer: Hugo Doria <hugo@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=ettercap-gtk +pkgver=NG_0.7.3 +_origname=ettercap +_origver=NG-0.7.3 +pkgrel=8 +pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - GTK" +arch=('i686' 'x86_64') +url="http://ettercap.sourceforge.net/" +license=('GPL') +depends=('ettercap' 'gtk2' 'libtool') +makedepends=('libnet') +options=('!libtool') +source=(http://downloads.sourceforge.net/${_origname}/${_origname}-${_origver}.tar.gz + 'ettercap.desktop' + 'fix-segmentation-fault.patch') +md5sums=('28fb15cd024162c55249888fe1b97820' + '6ef18fdd114297d4ed9e5104d309f071' + 'e9cc99f13fd23edaba6cddffc4d0ef34') + +build() { + cd ${srcdir}/${_origname}-${_origver} + unset LDFLAGS + + # FS#21628 + patch -Np1 -i ${srcdir}/fix-segmentation-fault.patch + + libtoolize --force --copy + aclocal + autoconf + ./configure --prefix=/usr --sysconfdir=/etc --enable-plugins + sed -i 's/LTDL_SHLIB_EXT/\".so\"/' src/ec_plugins.c + make +} + +package() { + install -Dm755 ${srcdir}/${_origname}-${_origver}/src/ettercap \ + ${pkgdir}/usr/bin/ettercap-gtk + install -Dm644 ${srcdir}/ettercap.desktop \ + ${pkgdir}/usr/share/applications/ettercap.desktop +} diff --git a/extra/ettercap-gtk/ettercap.desktop b/extra/ettercap-gtk/ettercap.desktop new file mode 100644 index 000000000..1ac24e381 --- /dev/null +++ b/extra/ettercap-gtk/ettercap.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Ettercap GTK +Exec=/usr/bin/ettercap-gtk --gtk +Terminal=false +Type=Application +Categories=Network;System;Security;GTK; diff --git a/extra/ettercap-gtk/fix-segmentation-fault.patch b/extra/ettercap-gtk/fix-segmentation-fault.patch new file mode 100644 index 000000000..3f0c7bf79 --- /dev/null +++ b/extra/ettercap-gtk/fix-segmentation-fault.patch @@ -0,0 +1,19 @@ +commit 8cdf08d401d368d5678f9d9c2cf36ddbdef03aec +Author: Timothy Redaelli <timothy@redaelli.eu> +Date: Tue Jun 23 09:16:27 2009 +0000 + + Fix a crash in 64 bit CPUs + +diff --git a/src/protocols/ec_tcp.c b/src/protocols/ec_tcp.c +index ea0c997..be8f3e0 100644 +--- a/src/protocols/ec_tcp.c ++++ b/src/protocols/ec_tcp.c +@@ -116,7 +116,7 @@ FUNC_DECODER(decode_tcp) + tcp = (struct tcp_header *)DECODE_DATA; + + opt_start = (u_char *)(tcp + 1); +- opt_end = (u_char *)((int)tcp + tcp->off * 4); ++ opt_end = (u_char *)(tcp + tcp->off * 4); + + DECODED_LEN = (u_int32)(tcp->off * 4); + |