aboutsummaryrefslogtreecommitdiffstats
path: root/community/sslstrip/APKBUILD
blob: 0c45efdd1c2f167d29b18813c0957d3c1764b541 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sslstrip
pkgver=0.9.2
_pkgver=${pkgver/.2/-2}
pkgrel=0
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 py2-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"
}

md5sums="5ab6d718eb1c9d6a1cef466d4fb27c1e  sslstrip-0.9.2.tar.gz"
sha256sums="c51c8a6457312e755e0b203f9e1f8cfeb3f5e01815127ba50e719151e1b0125b  sslstrip-0.9.2.tar.gz"
sha512sums="8b3647aa8562264eacb8cdcbdb09a4201331b3e43c8911a8edb62d2fedaad972cb2fcbcd0c32242b4505bd684979d6557183deb69607b06e9bb5b2deaa5f9f3c  sslstrip-0.9.2.tar.gz"