diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:15:13 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:15:13 +0200 |
commit | d952c8a64f0732419ebc1726d07290f8c7e59d89 (patch) | |
tree | cb213cb7895feab963d71db78719a18b12aa9389 /eclass/qmail.eclass | |
parent | preserve-libs.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-d952c8a64f0732419ebc1726d07290f8c7e59d89.tar.gz gentoo-d952c8a64f0732419ebc1726d07290f8c7e59d89.tar.bz2 gentoo-d952c8a64f0732419ebc1726d07290f8c7e59d89.zip |
qmail.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/qmail.eclass')
-rw-r--r-- | eclass/qmail.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/qmail.eclass b/eclass/qmail.eclass index f42f04915157..92df9ad28fc5 100644 --- a/eclass/qmail.eclass +++ b/eclass/qmail.eclass @@ -5,6 +5,15 @@ # @MAINTAINER: # Rolf Eike Beer <eike@sf-mail.de> # @BLURB: common qmail functions +# @SUPPORTED_EAPIS: 6 7 + +case ${EAPI:-0} in + [67]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_QMAIL_ECLASS} ]] ; then +_QMAIL_ECLASS=1 inherit flag-o-matic toolchain-funcs fixheadtails @@ -509,3 +518,5 @@ qmail_ssl_generate() { einfo "Send req.pem to your CA to obtain signed_req.pem, and do:" einfo "cat signed_req.pem >> ${QMAIL_HOME}/control/servercert.pem" } + +fi |