aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scapy/APKBUILD
blob: d1f38c52c45eb6a2250a2b0d55ae2d064c7fc797 (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
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver='2.3.2'
pkgrel=0
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="$pkgname-$pkgver.zip::https://github.com/secdev/$pkgname/archive/v$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="06c1be0b261d36907c3ff24fa443b4aa  scapy-2.3.2.zip"
sha256sums="3de539ca67dd39e41287f0b36afd85188bd437604092726684c98debd816df01  scapy-2.3.2.zip"
sha512sums="e120800f498a37a435e175725a071facca65c69c006e64d305ac26d70db206ca0b44e11d4e0ba593c6e31fc33452b0494fe8f8c431d9e3a841c38957144c270b  scapy-2.3.2.zip"