diff options
author | Sam James <sam@gentoo.org> | 2021-12-03 04:45:57 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-03 04:50:23 +0000 |
commit | b9d4c0b7e53d4aafbdc4b8614d888875486f3772 (patch) | |
tree | be9103a7fcc7c150c1dd93a3b5dc822789d11b4a /sys-apps/ucspi-ssl | |
parent | app-crypt/xca: adapt for OpenSSL bindist changes (diff) | |
download | gentoo-b9d4c0b7e53d4aafbdc4b8614d888875486f3772.tar.gz gentoo-b9d4c0b7e53d4aafbdc4b8614d888875486f3772.tar.bz2 gentoo-b9d4c0b7e53d4aafbdc4b8614d888875486f3772.zip |
sys-apps/ucspi-ssl: adapt for OpenSSL bindist changes
OpenSSL no longer has a bindist flag.
Bug: https://bugs.gentoo.org/762850
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/ucspi-ssl')
-rw-r--r-- | sys-apps/ucspi-ssl/ucspi-ssl-0.99e-r2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-apps/ucspi-ssl/ucspi-ssl-0.99e-r2.ebuild b/sys-apps/ucspi-ssl/ucspi-ssl-0.99e-r2.ebuild new file mode 100644 index 000000000000..af9a8b306679 --- /dev/null +++ b/sys-apps/ucspi-ssl/ucspi-ssl-0.99e-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fixheadtails qmail + +DESCRIPTION="Command-line tools for building SSL client-server applications" +HOMEPAGE="https://www.fehcom.de/ipnet/ucspi-ssl.html" +SRC_URI="https://www.fehcom.de/ipnet/ucspi-ssl/${P}.tgz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="bindist perl" + +DEPEND=" + dev-libs/openssl:= + perl? ( dev-lang/perl:= )" +RDEPEND="${DEPEND} + sys-apps/ucspi-tcp" + +S="${WORKDIR}"/host/superscript.com/net/${P} + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + +src_prepare() { + ht_fix_all + + sed -i -e 's:auto:gcc:' conf-cc || die + sed -i -e 's:-m64::' conf-ld || die + qmail_set_cc + + echo "/usr/bin" > conf-tcpbin || die + echo "/usr/share/ca-certificates/" > conf-cadir || die + echo "${QMAIL_HOME}/control/dh1024.pem" > conf-dhfile || die + echo "/usr/" > src/home || die + sed -i -e 's:HOME/command:/usr/bin:' \ + src/sslcat.sh src/sslconnect.sh src/https\@.sh || die + + # workaround: SSL_TXT_ECDH is always set in openssl/ssl.h, even with openssl[bindist] + #sed -i -e 's:SSL_TXT_ECDH:ENABLE_SSL_TXT_ECDH:' src/ucspissl.h src/ssl_params.c conf-ecdh || die + + default +} + +src_compile() { + cd src || die + emake sysdeps + emake uint32.h + emake +} + +src_install() { + dodoc -r doc/. + doman man/* + + cd src || die + dobin $(<../package/commands-base) + use perl && dobin $(<../package/commands-sslperl) +} |