commit:     480d181c6b72854f04bd83db94e73029044b3771
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Aug  5 10:41:30 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Mon Aug  5 10:55:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=480d181c

sys-fs/sanoid: move configuration tooltip to pkg_postinst

fixes VariableScopeCheck for REPLACING_VERSIONS

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 sys-fs/sanoid/sanoid-2.2.0.ebuild | 12 ++++++------
 sys-fs/sanoid/sanoid-9999.ebuild  | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/sys-fs/sanoid/sanoid-2.2.0.ebuild 
b/sys-fs/sanoid/sanoid-2.2.0.ebuild
index 1e676fb4e..515b82ac7 100644
--- a/sys-fs/sanoid/sanoid-2.2.0.ebuild
+++ b/sys-fs/sanoid/sanoid-2.2.0.ebuild
@@ -48,16 +48,16 @@ src_install() {
 
        insinto /etc/sanoid
        doins "sanoid.defaults.conf"
-
-       if [[ -z ${REPLACING_VERSIONS} ]]; then
-               elog "You will need to set up your /etc/sanoid/sanoid.conf file 
before"
-               elog "running sanoid for the first time. For details, please 
consult the"
-               elog "documentation on https://github.com/jimsalterjrs/sanoid.";
-       fi
 }
 
 pkg_postinst() {
        optfeature "lzop compression support" app-arch/lzop
        optfeature "pigz compression support" app-arch/pigz
        optfeature "zstd compression support" app-arch/zstd
+
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "You will need to set up your 
${EROOT}/etc/sanoid/sanoid.conf file before"
+               elog "running sanoid for the first time. For details, please 
consult the"
+               elog "documentation on https://github.com/jimsalterjrs/sanoid.";
+       fi
 }

diff --git a/sys-fs/sanoid/sanoid-9999.ebuild b/sys-fs/sanoid/sanoid-9999.ebuild
index 1e676fb4e..515b82ac7 100644
--- a/sys-fs/sanoid/sanoid-9999.ebuild
+++ b/sys-fs/sanoid/sanoid-9999.ebuild
@@ -48,16 +48,16 @@ src_install() {
 
        insinto /etc/sanoid
        doins "sanoid.defaults.conf"
-
-       if [[ -z ${REPLACING_VERSIONS} ]]; then
-               elog "You will need to set up your /etc/sanoid/sanoid.conf file 
before"
-               elog "running sanoid for the first time. For details, please 
consult the"
-               elog "documentation on https://github.com/jimsalterjrs/sanoid.";
-       fi
 }
 
 pkg_postinst() {
        optfeature "lzop compression support" app-arch/lzop
        optfeature "pigz compression support" app-arch/pigz
        optfeature "zstd compression support" app-arch/zstd
+
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "You will need to set up your 
${EROOT}/etc/sanoid/sanoid.conf file before"
+               elog "running sanoid for the first time. For details, please 
consult the"
+               elog "documentation on https://github.com/jimsalterjrs/sanoid.";
+       fi
 }

Reply via email to