44 lines
827 B
Bash
44 lines
827 B
Bash
# 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
|
|
}
|