summaryrefslogtreecommitdiff
path: root/community/sslstrip/APKBUILD
blob: 9ebe0a59265ed1067a671e0aab295054f2f34807 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sslstrip
pkgver=0.9.2
_pkgver=${pkgver/.2/-2}
pkgrel=1
pkgdesc="Python tool to hijack HTTPS connections during a MITM attack"
url="http://www.thoughtcrime.org/software/sslstrip/"
arch="noarch"
license="GPL3"
depends="py2-openssl py-twisted py2-six py-enum34 py2-cffi
	py2-service_identity py2-cryptography"
makedepends="python2-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/moxie0/$pkgname/archive/v${_pkgver}.tar.gz"

builddir="$srcdir"/$pkgname-$_pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -Dm 644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
	install -Dm 644 lock.ico "${pkgdir}/usr/share/${pkgname}/lock.ico"
}

sha512sums="8b3647aa8562264eacb8cdcbdb09a4201331b3e43c8911a8edb62d2fedaad972cb2fcbcd0c32242b4505bd684979d6557183deb69607b06e9bb5b2deaa5f9f3c  sslstrip-0.9.2.tar.gz"