commit: 057adb2d99c8910e6d562086d0456e608aa840e8 Author: John M. Harris Jr. <johnmh <AT> johnmh <DOT> me> AuthorDate: Mon Aug 5 03:53:48 2024 +0000 Commit: John M. Harris, Jr. <johnmh <AT> johnmh <DOT> me> CommitDate: Mon Aug 5 04:51:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=057adb2d
sys-fs/sanoid: remove local USE flags Signed-off-by: John M. Harris Jr. <johnmh <AT> johnmh.me> sys-fs/sanoid/sanoid-2.2.0.ebuild | 21 +++++++++++++-------- sys-fs/sanoid/sanoid-9999.ebuild | 21 +++++++++++++-------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/sys-fs/sanoid/sanoid-2.2.0.ebuild b/sys-fs/sanoid/sanoid-2.2.0.ebuild index 3a8a47483..1e676fb4e 100644 --- a/sys-fs/sanoid/sanoid-2.2.0.ebuild +++ b/sys-fs/sanoid/sanoid-2.2.0.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit optfeature + DESCRIPTION="Policy-driven snapshot management and replication tools for OpenZFS." HOMEPAGE="https://github.com/jimsalterjrs/sanoid" @@ -17,7 +19,6 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="gzip lzop pigz zstd" BDEPEND=" dev-lang/perl sys-apps/groff @@ -32,10 +33,6 @@ RDEPEND=" virtual/perl-Data-Dumper virtual/perl-Getopt-Long virtual/ssh - gzip? ( app-arch/gzip ) - lzop? ( app-arch/lzop ) - pigz? ( app-arch/pigz ) - zstd? ( app-arch/zstd ) " src_compile() { @@ -52,7 +49,15 @@ src_install() { insinto /etc/sanoid doins "sanoid.defaults.conf" - 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." + 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 } diff --git a/sys-fs/sanoid/sanoid-9999.ebuild b/sys-fs/sanoid/sanoid-9999.ebuild index 3a8a47483..1e676fb4e 100644 --- a/sys-fs/sanoid/sanoid-9999.ebuild +++ b/sys-fs/sanoid/sanoid-9999.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit optfeature + DESCRIPTION="Policy-driven snapshot management and replication tools for OpenZFS." HOMEPAGE="https://github.com/jimsalterjrs/sanoid" @@ -17,7 +19,6 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="gzip lzop pigz zstd" BDEPEND=" dev-lang/perl sys-apps/groff @@ -32,10 +33,6 @@ RDEPEND=" virtual/perl-Data-Dumper virtual/perl-Getopt-Long virtual/ssh - gzip? ( app-arch/gzip ) - lzop? ( app-arch/lzop ) - pigz? ( app-arch/pigz ) - zstd? ( app-arch/zstd ) " src_compile() { @@ -52,7 +49,15 @@ src_install() { insinto /etc/sanoid doins "sanoid.defaults.conf" - 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." + 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 }
