aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tlssled/APKBUILD
blob: 932a948d5f93146d8bc2871701b27a41b95afadf (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=tlssled
pkgver=1.3
pkgrel=0
pkgdesc="An evaluation tool for SSL/TLS (HTTPS) web server implementations"
url="http://www.taddong.com/en/lab.html"
arch="noarch"
license="GPL3+"
depends="sslscan openssl bash"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="$pkgname-$pkgver.sh::http://www.taddong.com/tools/TLSSLed_v$pkgver.sh"

_builddir="$srcdir"
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 -i 's|#!/usr/bin/env bash|#!/bin/bash|g' $pkgname-$pkgver.sh
}

build() {
	cd "$_builddir"
	return 0
}

package() {
	cd "$_builddir"
	install -m755 -D "$_builddir"/$pkgname-$pkgver.sh \
		"$pkgdir"/usr/bin/$pkgname  || return 1
}

md5sums="1c7126cbb69a52b23dd761a8ddff56bc  tlssled-1.3.sh"
sha256sums="30cfc539a367c8cb2fb3bafa7f214621ccef0bc97d34080ed800c6a0ca4e3339  tlssled-1.3.sh"
sha512sums="f3380f3d70bd970d4959fd09744c9b4ad82e3448edcc28be4c8d59944860c23e48a53407d17cc96e63523f48d105c27d473271d80f2d557e28c9a9003df99506  tlssled-1.3.sh"