[arch-commits] Commit in ettercap/trunk (01_pointers_and_ints_dont_mix.diff PKGBUILD)
Ionut Biru
ibiru at archlinux.org
Sat Feb 6 01:22:52 UTC 2010
Date: Friday, February 5, 2010 @ 20:22:52
Author: ibiru
Revision: 67296
upgpkg: ettercap NG_0.7.3-14
FS#17596 fix segfaults when trying to scan for hosts, debian patch
Added:
ettercap/trunk/01_pointers_and_ints_dont_mix.diff
Modified:
ettercap/trunk/PKGBUILD
------------------------------------+
01_pointers_and_ints_dont_mix.diff | 12 ++++++++++++
PKGBUILD | 14 ++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
Added: 01_pointers_and_ints_dont_mix.diff
===================================================================
--- 01_pointers_and_ints_dont_mix.diff (rev 0)
+++ 01_pointers_and_ints_dont_mix.diff 2010-02-06 01:22:52 UTC (rev 67296)
@@ -0,0 +1,12 @@
+See debian bug #521857, patch from Timothy Redaelli <timothy at 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);
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-02-06 01:21:51 UTC (rev 67295)
+++ PKGBUILD 2010-02-06 01:22:52 UTC (rev 67296)
@@ -5,7 +5,7 @@
pkgname=ettercap
pkgver=NG_0.7.3
_origver=NG-0.7.3
-pkgrel=13
+pkgrel=14
pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - console"
arch=('i686' 'x86_64')
url="http://ettercap.sourceforge.net/"
@@ -13,15 +13,21 @@
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)
-md5sums=('28fb15cd024162c55249888fe1b97820')
+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=$startdir/pkg install || return 1
+ make DESTDIR=$pkgdir install || return 1
cd plug-ins
make || return 1
make DESTDIR=${pkgdir} install || return 1
More information about the arch-commits
mailing list