diff options
-rw-r--r-- | community/sslstrip/APKBUILD | 34 | ||||
-rw-r--r-- | testing/sslstrip/APKBUILD | 44 |
2 files changed, 34 insertions, 44 deletions
diff --git a/community/sslstrip/APKBUILD b/community/sslstrip/APKBUILD new file mode 100644 index 0000000000..84d1f7fb19 --- /dev/null +++ b/community/sslstrip/APKBUILD @@ -0,0 +1,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 py2-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" diff --git a/testing/sslstrip/APKBUILD b/testing/sslstrip/APKBUILD deleted file mode 100644 index 7c161220af..0000000000 --- a/testing/sslstrip/APKBUILD +++ /dev/null @@ -1,44 +0,0 @@ -# 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" |