aboutsummaryrefslogblamecommitdiffstats
path: root/community/sslstrip/APKBUILD
blob: cbfafc1c94dcf206dfdc4907719710a6c877aed9 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                           
        


                                                                      
                 
                                                          



















                                                                                               
                                                                                                                                                                    
# 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="GPL-3.0"
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"