Skip to content

Commit

Permalink
sys-fs/sanoid: remove local USE flags
Browse files Browse the repository at this point in the history
Signed-off-by: John M. Harris Jr. <[email protected]>
  • Loading branch information
JohnMH committed Aug 5, 2024
1 parent 7bb0850 commit 057adb2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
21 changes: 13 additions & 8 deletions sys-fs/sanoid/sanoid-2.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

EAPI=8

inherit optfeature

DESCRIPTION="Policy-driven snapshot management and replication tools for OpenZFS."
HOMEPAGE="https://github.com/jimsalterjrs/sanoid"

Expand All @@ -17,7 +19,6 @@ fi
LICENSE="GPL-3"
SLOT="0"

IUSE="gzip lzop pigz zstd"
BDEPEND="
dev-lang/perl
sys-apps/groff
Expand All @@ -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() {
Expand All @@ -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
}
21 changes: 13 additions & 8 deletions sys-fs/sanoid/sanoid-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

EAPI=8

inherit optfeature

DESCRIPTION="Policy-driven snapshot management and replication tools for OpenZFS."
HOMEPAGE="https://github.com/jimsalterjrs/sanoid"

Expand All @@ -17,7 +19,6 @@ fi
LICENSE="GPL-3"
SLOT="0"

IUSE="gzip lzop pigz zstd"
BDEPEND="
dev-lang/perl
sys-apps/groff
Expand All @@ -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() {
Expand All @@ -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
}

0 comments on commit 057adb2

Please sign in to comment.