testssl.sh dazu

This commit is contained in:
Florian Tham
2015-08-12 15:38:03 +02:00
parent 5b374ea1d4
commit e39f90c6d8
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
AUX follow_symlinks.patch 352 SHA256 57af0923f3002a3ea2bf791292ebc55206739de312aac26d32c68d56fb7b6079 SHA512 14392f17ecbbb8a16cfbb018dd33b3d276b6cc623f671467ea81043f00cb98123c77cde3a275cfee1cd7801221465ea83b78e2ad9ebf8cc865830bb156ef54f8 WHIRLPOOL 8b095dcc2d6fa225e0e8f7486f55d6d9b2ed97a4482ab6021738f23e1cf63d20c9ac02e107db0cc074ae296ec7b1fe844f4a478e0d8ea1f6dc2967b44df361e2
EBUILD testssl-9999.ebuild 827 SHA256 065b54a1ee4bc74a637779b6d2667578a6e7605cff90292a3638a9f0d8e7ca83 SHA512 1d567dc5e47643fc7c3a4a0b9b6b94197dd2425209753d319ac9146133723efbba1df7704a1c672d5b1c7b3e1efa9b66610498f84dafe4255d98784090ef4173 WHIRLPOOL 9e641e0637839d29b32a3e9a3165c41eb57b2930d9967f58b4b08372d41fca7e9b1ff7be62438e32d9f811133f7f44e71b289bec016030de41a01c397e74681f

View File

@@ -0,0 +1,13 @@
diff --git a/testssl.sh b/testssl.sh
index c8ffdcf..018681f 100755
--- a/testssl.sh
+++ b/testssl.sh
@@ -72,7 +72,7 @@ echo $VERSION | egrep -q "dev|rc" && \
SWURL="https://testssl.sh "
readonly PROG_NAME=$(basename "$0")
-readonly RUN_DIR=$(dirname $0)
+readonly RUN_DIR=$(dirname $(readlink -e $0))
INSTALL_DIR=""
MAP_RFC_FNAME=""

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit git-r3
DESCRIPTION="Testing TLS/SSL encryption"
HOMEPAGE="https://github.com/drwetter/testssl.sh"
EGIT_REPO_URI="https://github.com/drwetter/testssl.sh.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
# Don't strip debug symbols from the provided OpenSSL binaries.
RESTRICT="strip"
INSTALLDIR="/usr/share/${PN}"
PATCHES=(
"${FILESDIR}/follow_symlinks.patch"
)
src_prepare() {
for patch in "${PATCHES[@]}"; do
epatch "$patch"
done
}
src_install() {
dodir "${INSTALLDIR}"
dodir "${INSTALLDIR}/bin"
exeinto "${INSTALLDIR}"
doexe testssl.sh
exeinto "${INSTALLDIR}/bin"
doexe bin/openssl.*
dosym "${INSTALLDIR}/testssl.sh" /usr/bin/testssl.sh
}