aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scapy/APKBUILD
blob: d8856cf90cf02cd4c4eb6205e666df6637d51a7d (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
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver='2.3.1'
pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL3+"
depends="python"
depends_dev=""
makedepends="$depends_dev python-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="https://pypi.python.org/packages/source/s/$pkgname/$pkgname-$pkgver.zip"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="1527f09562d9c1bafa5e619c7782d5a0  scapy-2.3.1.zip"
sha256sums="c3089764ad4cdd96d56816ac8bed4cea3738ce49d18a1a7ef2906a11927ba28b  scapy-2.3.1.zip"
sha512sums="f45b807021abb383f9c2b9aeda709695df4057a0e2ecbaa330e4b1e1455198221edf19c32fcf49cba8e157406a4b80086f2302764311d05a1adc37f341d40aa4  scapy-2.3.1.zip"