diff options
author | Eray Aslan <eras@gentoo.org> | 2021-09-15 09:23:43 +0300 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2021-09-16 09:33:18 +0300 |
commit | 9d7833fd1183835c4bb39bfa208e9a21b464ae82 (patch) | |
tree | 4f8546b25ff0a620bda4cac9f184b12e1144cfac /eclass | |
parent | net-analyzer/fail2ban: Stabilize 0.11.2-r1 ALLARCHES, #813165 (diff) | |
download | gentoo-9d7833fd1183835c4bb39bfa208e9a21b464ae82.tar.gz gentoo-9d7833fd1183835c4bb39bfa208e9a21b464ae82.tar.bz2 gentoo-9d7833fd1183835c4bb39bfa208e9a21b464ae82.zip |
ssl-cert.eclass: add EAPI 8 support
- drop support for EAPI < 6
- add guard
Signed-off-by: Eray Aslan <eras@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ssl-cert.eclass | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass index 36945be3cd65..9d01fd10f50f 100644 --- a/eclass/ssl-cert.eclass +++ b/eclass/ssl-cert.eclass @@ -6,7 +6,7 @@ # maintainer-needed@gentoo.org # @AUTHOR: # Max Kalika <max@gentoo.org> -# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7 +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: Eclass for SSL certificates # @DESCRIPTION: # This eclass implements a standard installation procedure for installing @@ -14,18 +14,14 @@ # @EXAMPLE: # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} -# Guard against unsupported EAPIs. We need EAPI >= 1 for slot dependencies. -case "${EAPI:-0}" in - 0) - die "${ECLASS}.eclass: EAPI=0 is not supported. Please upgrade to EAPI >= 1." - ;; - 1|2|3|4|5|6|7) - ;; - *) - die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet." - ;; +case "${EAPI}" in + 6|7|8) ;; + *) die "EAPI=${EAPI:-0} is not supported" ;; esac +if [[ ! ${_SSL_CERT_ECLASS} ]]; then +_SSL_CERT_ECLASS=1 + # @ECLASS-VARIABLE: SSL_CERT_MANDATORY # @PRE_INHERIT # @DESCRIPTION: @@ -53,7 +49,7 @@ if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then fi case "${EAPI}" in - 1|2|3|4|5|6) + 6) DEPEND="${SSL_DEPEND}" ;; *) @@ -283,3 +279,5 @@ install_cert() { ewarn "Some requested certificates were not generated" fi } + +fi |