Skip to content

Commit

Permalink
sys-fs/sanoid: move configuration tooltip to pkg_postinst
Browse files Browse the repository at this point in the history
fixes VariableScopeCheck for REPLACING_VERSIONS

Signed-off-by: Lucio Sauer <[email protected]>
  • Loading branch information
antecrescent committed Aug 5, 2024
1 parent 42382d7 commit 480d181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions sys-fs/sanoid/sanoid-2.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
12 changes: 6 additions & 6 deletions sys-fs/sanoid/sanoid-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 480d181

Please sign in to comment.