diff options
Diffstat (limited to 'extra/ettercap')
-rw-r--r-- | extra/ettercap/01_pointers_and_ints_dont_mix.diff | 12 | ||||
-rw-r--r-- | extra/ettercap/PKGBUILD | 36 |
2 files changed, 48 insertions, 0 deletions
diff --git a/extra/ettercap/01_pointers_and_ints_dont_mix.diff b/extra/ettercap/01_pointers_and_ints_dont_mix.diff new file mode 100644 index 000000000..bf7022266 --- /dev/null +++ b/extra/ettercap/01_pointers_and_ints_dont_mix.diff @@ -0,0 +1,12 @@ +See debian bug #521857, patch from Timothy Redaelli <timothy@redaelli.eu> + +--- ettercap-0.7.3.orig/src/protocols/ec_tcp.c ++++ ettercap-0.7.3/src/protocols/ec_tcp.c +@@ -116,7 +116,7 @@ + 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); diff --git a/extra/ettercap/PKGBUILD b/extra/ettercap/PKGBUILD new file mode 100644 index 000000000..c247ae6a9 --- /dev/null +++ b/extra/ettercap/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 75608 2010-04-01 23:02:08Z giovanni $ +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> +# Maintainer: Kevin Piche <kevin@archlinux.org> + +pkgname=ettercap +pkgver=NG_0.7.3 +_origver=NG-0.7.3 +pkgrel=15 +pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - console" +arch=('i686' 'x86_64') +url="http://ettercap.sourceforge.net/" +license=('GPL') +depends=('ncurses' 'openssl' 'libpcap>=1.0.0' 'zlib' 'pcre' 'libtool>=2.2.4' 'libnet') +makedepends=('libnet') +options=(!libtool) +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$_origver.tar.gz + 01_pointers_and_ints_dont_mix.diff) +md5sums=('28fb15cd024162c55249888fe1b97820' + 'ad235cd90aaa3e168575d06efac4d862') + +build() { + cd ${srcdir}/${pkgname}-${_origver} + + export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" + patch -Np1 -i ${srcdir}/01_pointers_and_ints_dont_mix.diff || return 1 + + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --enable-plugins \ + --enable-https --disable-gtk + make || return 1 + make DESTDIR=$pkgdir install || return 1 + cd plug-ins + make || return 1 + make DESTDIR=${pkgdir} install || return 1 + chmod 755 ${pkgdir}/usr/lib/ettercap/* + chmod 755 ${pkgdir}/usr/bin/ettercap +} |