Seen for example with apache-tomcat. It has separate keys per major version, parallel installable, with different release managers.
Although that ebuild doesn't use "apache-tomcat" as the filename base, handling SLOT is necessary before considering to do so. Signed-off-by: Eli Schwartz <[email protected]> --- eclass/sec-keys.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/sec-keys.eclass b/eclass/sec-keys.eclass index ed53adb5dbae..ccc9dfcccfe1 100644 --- a/eclass/sec-keys.eclass +++ b/eclass/sec-keys.eclass @@ -198,7 +198,11 @@ sec-keys_src_test() { # installed to the standard /usr/share/openpgp-keys. sec-keys_src_install() { insinto /usr/share/openpgp-keys - doins ${PN#openpgp-keys-}.asc + + case ${SLOT} in + 0) doins ${PN#openpgp-keys-}.asc;; + *) newins ${PN#openpgp-keys-}.asc ${PN#openpgp-keys-}-${SLOT}.asc;; + esac } fi -- 2.49.1
