mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 01:46:58 +02:00
eclass/ssl-cert: Sync from Gentoo
This commit is contained in:
parent
37d6fdd69f
commit
4ef02eb401
@ -5,7 +5,7 @@
|
|||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Max Kalika <max@gentoo.org>
|
# Max Kalika <max@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 1 2 3 4 5 6
|
# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7
|
||||||
# @BLURB: Eclass for SSL certificates
|
# @BLURB: Eclass for SSL certificates
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# This eclass implements a standard installation procedure for installing
|
# This eclass implements a standard installation procedure for installing
|
||||||
@ -18,7 +18,7 @@ case "${EAPI:-0}" in
|
|||||||
0)
|
0)
|
||||||
die "${ECLASS}.eclass: EAPI=0 is not supported. Please upgrade to EAPI >= 1."
|
die "${ECLASS}.eclass: EAPI=0 is not supported. Please upgrade to EAPI >= 1."
|
||||||
;;
|
;;
|
||||||
1|2|3|4|5|6)
|
1|2|3|4|5|6|7)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
|
die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet."
|
||||||
@ -42,11 +42,22 @@ esac
|
|||||||
|
|
||||||
if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
|
if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
|
||||||
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
|
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
|
||||||
DEPEND="${SSL_CERT_USE}? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )"
|
SSL_DEPEND="${SSL_CERT_USE}? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )"
|
||||||
IUSE="${SSL_CERT_USE}"
|
IUSE="${SSL_CERT_USE}"
|
||||||
else
|
else
|
||||||
DEPEND="|| ( dev-libs/openssl:0 dev-libs/libressl:0 )"
|
SSL_DEPEND="|| ( dev-libs/openssl:0 dev-libs/libressl:0 )"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case "${EAPI}" in
|
||||||
|
1|2|3|4|5|6)
|
||||||
|
DEPEND="${SSL_DEPEND}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
BDEPEND="${SSL_DEPEND}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
unset SSL_DEPEND
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# @FUNCTION: gen_cnf
|
# @FUNCTION: gen_cnf
|
||||||
|
Loading…
Reference in New Issue
Block a user