aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-12-16 12:05:43 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-12-16 12:05:47 +0000
commitc489e14a9090cf5bc9934c3dbfe54da55c203bbf (patch)
treed18ee0a09821f42e81ade61a9a15baa87c4a5000
parentd31ffe1282784cd31a749416b7aa095132f89f46 (diff)
downloadaports-c489e14a9090cf5bc9934c3dbfe54da55c203bbf.tar.bz2
aports-c489e14a9090cf5bc9934c3dbfe54da55c203bbf.tar.xz
testing/sslstrip: new aport
-rw-r--r--testing/sslstrip/APKBUILD41
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"
+}
+