1 # $Id: PKGBUILD 103538 2010-12-21 10:37:25Z andrea $
2 # Maintainer: Hugo Doria <hugo@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
10 pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - GTK"
11 arch=('i686' 'x86_64')
12 url="http://ettercap.sourceforge.net/"
14 depends=('ettercap' 'gtk2' 'libtool')
15 makedepends=('libnet')
17 source=(http://downloads.sourceforge.net/${_origname}/${_origname}-${_origver}.tar.gz
19 'fix-segmentation-fault.patch')
20 md5sums=('28fb15cd024162c55249888fe1b97820'
21 '6ef18fdd114297d4ed9e5104d309f071'
22 'e9cc99f13fd23edaba6cddffc4d0ef34')
25 cd ${srcdir}/${_origname}-${_origver}
29 patch -Np1 -i ${srcdir}/fix-segmentation-fault.patch
31 libtoolize --force --copy
34 ./configure --prefix=/usr --sysconfdir=/etc --enable-plugins
35 sed -i 's/LTDL_SHLIB_EXT/\".so\"/' src/ec_plugins.c
40 install -Dm755 ${srcdir}/${_origname}-${_origver}/src/ettercap \
41 ${pkgdir}/usr/bin/ettercap-gtk
42 install -Dm644 ${srcdir}/ettercap.desktop \
43 ${pkgdir}/usr/share/applications/ettercap.desktop