-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John M. Harris Jr. <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST sanoid-2.2.0.gh.tar.gz 77865 BLAKE2B 3183ed82b392730db403dea87c72aaa9303f35227739eda5d401bd6ebe7c149977e4edca0dfd10f34c2b02932b9a5145f880425462d1e9df9d45cebf13d962bd SHA512 293c31f2da80d698987c7f06314bf6e62a54011e4028b2aa8e70d482e7757bf8ae89efe7413b8f88072bac064710ca0756650e5b6f9827a5ff50a97fd72e86ad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="Policy-driven snapshot management and replication tools for OpenZFS." | ||
HOMEPAGE="https://github.com/jimsalterjrs/sanoid" | ||
|
||
if [[ "${PV}" = *9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/jimsalterjrs/${PN^}.git" | ||
else | ||
SRC_URI="https://github.com/jimsalterjrs/${PN^}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
|
||
IUSE="gzip lzop pigz zstd" | ||
BDEPEND=" | ||
dev-lang/perl | ||
sys-apps/groff | ||
" | ||
RDEPEND=" | ||
dev-lang/perl | ||
dev-perl/Capture-Tiny | ||
dev-perl/Config-IniFiles | ||
sys-apps/pv | ||
sys-block/mbuffer | ||
sys-fs/zfs | ||
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() { | ||
perldoc -onroff -dsanoid.1 sanoid || die "Failed to compile sanoid.1" | ||
perldoc -onroff -dsyncoid.1 syncoid || die "Failed to compile syncoid.1" | ||
} | ||
|
||
src_install() { | ||
dobin sanoid | ||
dobin syncoid | ||
|
||
doman sanoid.1 syncoid.1 | ||
|
||
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." | ||
} |