aboutsummaryrefslogtreecommitdiffstats
path: root/community/yersinia/APKBUILD
blob: e3c7bc22f329c6332a388fd623de6375c7b9e649 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yersinia
pkgver=0.7.3
pkgrel=1
pkgdesc="Framework for performing layer 2 attacks"
url="http://www.yersinia.net/"
arch="all"
license="GPL"
depends=""
makedepends="libnet-dev libpcap-dev ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.yersinia.net/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--with-pcap-includes=/usr/include \
		--disable-gtk
	make || return 1
}

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

md5sums="53ca82d6cb463810b6a205d0e2362784  yersinia-0.7.3.tar.gz"
sha256sums="042abc466c5b470b97079e0049b4029a8cbb75d583cfbfb756fca76e460d40b4  yersinia-0.7.3.tar.gz"
sha512sums="60a1b58e6d76448e9332656645b468a6aa66afa0f45ea4b70a929651194a294b9b559bbe5fbacaeb475126e7ac248cd97c29f3177e5080286b2f551f1400d339  yersinia-0.7.3.tar.gz"