aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ettercap/APKBUILD
blob: c385381d342b72656b2740253757508c0ab1c261 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=ettercap
pkgver=0.7.4.1
pkgrel=0
pkgdesc="Comprehensive suite for man in the middle attacks"
url="http://ettercap.sourceforge.net/"
arch="all"
license="GPL"
depends=
depends_dev="autoconf automake bison flex libnet-dev libpcap-dev libtool 
	ncurses-dev openssl-dev pkgconfig"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	ettercap-0.7.4-autotools.patch"


_builddir="$srcdir"/$pkgname

prepare() {
	cd "$_builddir"
	patch -p1 < ../ettercap-0.7.4-autotools.patch
}

build() {
	cd "$_builddir"
	./autogen.sh
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-gtk \
		--enable-plugins \
		--enable-https
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install

	# remove the 2 lines below (and this) if there is no init.d script
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="8e13ff5504b5bb4f1fc6a465d57ce7ea  ettercap-0.7.4.1.tar.gz
ec7418a5c21dcda2edae6e36fe7cad72  ettercap-0.7.4-autotools.patch"