diff options
Diffstat (limited to 'testing/sslstrip/APKBUILD')
-rw-r--r-- | testing/sslstrip/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/sslstrip/APKBUILD b/testing/sslstrip/APKBUILD new file mode 100644 index 0000000000..694bf5f07b --- /dev/null +++ b/testing/sslstrip/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=sslstrip +pkgver=0.9.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="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" +} + |