blob: 0d88722b6f57c0dbfbf6e369a603eed60245ae33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $Id: PKGBUILD 134606 2011-08-06 11:42:31Z giovanni $
# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=ettercap
pkgver=NG_0.7.3
_origver=NG-0.7.3
pkgrel=17
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' 'zlib' 'pcre' 'libtool' 'libnet')
makedepends=('libnet' 'pkgconfig')
backup=('etc/etter.conf')
options=(!libtool)
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_origver}.tar.gz"
01_pointers_and_ints_dont_mix.diff
ettercap-NG-0.7.3_dns_support_on_x86_64.patch)
md5sums=('28fb15cd024162c55249888fe1b97820'
'ad235cd90aaa3e168575d06efac4d862'
'f3d66186eece056a6d71453f9f288623')
build() {
cd ${srcdir}/${pkgname}-${_origver}
unset LDFLAGS
libtoolize --force --copy
aclocal
autoconf
patch -Np1 -i ${srcdir}/01_pointers_and_ints_dont_mix.diff
[ "$CARCH" = "x86_64" ] && patch -Np1 -i ${srcdir}/ettercap-NG-0.7.3_dns_support_on_x86_64.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--datarootdir=/usr/share \
--enable-plugins \
--enable-https \
--disable-gtk
sed -i 's/LTDL_SHLIB_EXT/\".so\"/' src/ec_plugins.c
make
}
package() {
cd ${srcdir}/${pkgname}-${_origver}
make DESTDIR=${pkgdir} install
}
|