aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-impacket/APKBUILD
blob: 2384a271a12aa9891aa1b0f28609a6c5199cb051 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-impacket
_pkgname=impacket
pkgver=0.9.11
pkgrel=0
pkgdesc="A collection of Python classes providing access to network packets"
url="http://code.google.com/p/impacket/"
arch="noarch"
license="ASL 2.0"
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-doc"
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_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="be93b861437aa0721a4d6904a292f5c6  impacket-0.9.11.tar.gz"
sha256sums="e0b4e5174b869efa35c3068ee55ac3c2364706b59ffc43cd9e3c2f75f5accf2d  impacket-0.9.11.tar.gz"
sha512sums="b825437fab65cbf799a62d30ff0749f139f0f16a9a01d9d2ff0fc86be92333b72a7f94ed5fce24dda87212b0c23fa2bcd872e1b6c6143e8528eaa11c920c7a6d  impacket-0.9.11.tar.gz"