Files
overlay/app-admin/testssl/testssl-9999.ebuild
2016-03-02 10:39:32 +01:00

47 lines
873 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://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"
dodir "${INSTALLDIR}/etc"
exeinto "${INSTALLDIR}"
doexe testssl.sh
insinto "${INSTALLDIR}/etc"
doins etc/*
exeinto "${INSTALLDIR}/bin"
doexe bin/openssl.*
dosym "${INSTALLDIR}/testssl.sh" /usr/bin/testssl
}