blob: 7c161220af2b07156d615394e244fe0ac3025f1b (
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
43
44
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sslstrip
pkgver=0.9
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="py-openssl py-twisted py-six py-enum34 py-cffi
py-service_identity py-cryptography"
depends_dev=""
makedepends="$depends_dev python-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.thoughtcrime.org/software/sslstrip/${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
sed -e '/data_files = /d' -i setup.py
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python 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="944020144e4f5528888b3dfbb107dd78 sslstrip-0.9.tar.gz"
sha256sums="edf48d45b248dbd4eba94bfb0fbed7090f2ba2b262b16a155b1a0c15268cf4d3 sslstrip-0.9.tar.gz"
sha512sums="f6e24db0dcb0c4e137b5828d043db17f5d59e46181f51b1814cf66466b55d6a11a95e7ee8748e59faacfc6176689d030af5fa5c99dedce47e8f9ca6cc7316abc sslstrip-0.9.tar.gz"
|