1 |
commit: d952c8a64f0732419ebc1726d07290f8c7e59d89 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:15:13 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:15:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d952c8a6 |
7 |
|
8 |
qmail.eclass: [QA] add EAPI guard |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
eclass/qmail.eclass | 11 +++++++++++ |
14 |
1 file changed, 11 insertions(+) |
15 |
|
16 |
diff --git a/eclass/qmail.eclass b/eclass/qmail.eclass |
17 |
index f42f0491515..92df9ad28fc 100644 |
18 |
--- a/eclass/qmail.eclass |
19 |
+++ b/eclass/qmail.eclass |
20 |
@@ -5,6 +5,15 @@ |
21 |
# @MAINTAINER: |
22 |
# Rolf Eike Beer <eike@×××××××.de> |
23 |
# @BLURB: common qmail functions |
24 |
+# @SUPPORTED_EAPIS: 6 7 |
25 |
+ |
26 |
+case ${EAPI:-0} in |
27 |
+ [67]) ;; |
28 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
29 |
+esac |
30 |
+ |
31 |
+if [[ -z ${_QMAIL_ECLASS} ]] ; then |
32 |
+_QMAIL_ECLASS=1 |
33 |
|
34 |
inherit flag-o-matic toolchain-funcs fixheadtails |
35 |
|
36 |
@@ -509,3 +518,5 @@ qmail_ssl_generate() { |
37 |
einfo "Send req.pem to your CA to obtain signed_req.pem, and do:" |
38 |
einfo "cat signed_req.pem >> ${QMAIL_HOME}/control/servercert.pem" |
39 |
} |
40 |
+ |
41 |
+fi |