diff options
author | John M. Harris Jr. <johnmh@johnmh.me> | 2024-08-04 20:53:48 -0700 |
---|---|---|
committer | John M. Harris Jr. <johnmh@johnmh.me> | 2024-08-04 21:51:17 -0700 |
commit | 057adb2d99c8910e6d562086d0456e608aa840e8 (patch) | |
tree | 5a542f09b6a16163082010bcf42b7b02945b59ef /sys-fs | |
parent | games-engines/luxtorpeda: treeclean (diff) | |
download | guru-057adb2d99c8910e6d562086d0456e608aa840e8.tar.gz guru-057adb2d99c8910e6d562086d0456e608aa840e8.tar.bz2 guru-057adb2d99c8910e6d562086d0456e608aa840e8.zip |
sys-fs/sanoid: remove local USE flags
Signed-off-by: John M. Harris Jr. <johnmh@johnmh.me>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/sanoid/sanoid-2.2.0.ebuild | 21 | ||||
-rw-r--r-- | 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 } |