PKGBUILDs/extra/ettercap/PKGBUILD
2009-10-09 21:23:22 -05:00

30 lines
1,012 B
Bash

# $Id: PKGBUILD 54012 2009-10-06 02:55:10Z hugo $
# 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=13
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)
md5sums=('28fb15cd024162c55249888fe1b97820')
build() {
cd ${srcdir}/${pkgname}-${_origver}
./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
cd plug-ins
make || return 1
make DESTDIR=${pkgdir} install || return 1
chmod 755 ${pkgdir}/usr/lib/ettercap/*
chmod 755 ${pkgdir}/usr/bin/ettercap
}