blob: 5c891ee70e605bbcdf3cb41ac6d818c5f5f3121e (
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
52
53
54
55
|
# $Id: PKGBUILD 103822 2014-01-11 20:36:36Z bgyorgy $
# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgbase=ettercap
pkgname=('ettercap' 'ettercap-gtk')
pkgver=0.8.0
pkgrel=2
arch=('i686' 'x86_64')
url="http://ettercap.github.com/ettercap/"
license=('GPL')
depends=('openssl' 'libpcap' 'pcre' 'libltdl' 'libnet')
makedepends=('ghostscript' 'cmake' 'libpcap' 'libltdl' 'libnet' 'gtk2')
options=('!makeflags' '!emptydirs')
source=("https://github.com/Ettercap/ettercap/archive/v$pkgver.tar.gz")
md5sums=('067514bb53ff76b81d578676e2048319')
build() {
cd "${srcdir}"
cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-gtk
cd ${pkgbase}-${pkgver}
mkdir build
cd build
cmake -D ENABLE_GTK=OFF -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ../
make
cd "$srcdir"/${pkgbase}-${pkgver}-gtk
mkdir build
cd build
cmake -D ENABLE_GTK=ON -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release ../
make
}
package_ettercap() {
pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - console"
backup=('etc/ettercap/etter.conf')
conflicts=('ettercap-gtk')
cd "${srcdir}"/${pkgbase}-${pkgver}/build
make DESTDIR="${pkgdir}" install
}
package_ettercap-gtk() {
pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - GTK frontend"
depends+=('gtk2')
backup=('etc/ettercap/etter.conf')
conflicts=('ettercap')
provides=('ettercap')
optdepends=('polkit: to run ettercap directly from menu')
cd "${srcdir}"/${pkgbase}-${pkgver}-gtk/build
make DESTDIR="${pkgdir}" install
}
|