summaryrefslogtreecommitdiff
path: root/sys-fs/zrepl/zrepl-0.7.0.ebuild
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2026-10-16 13:04:52 +0200
committerLibravatar Terin Stock <terinjokes@gmail.com>2026-10-16 13:04:52 +0200
commit80fe71a84283bb800159c900eb6c0b1a246f51d2 (patch)
tree597d762240f3751f45b45db6053048df3aad33f5 /sys-fs/zrepl/zrepl-0.7.0.ebuild
parentsys-cluster/kubie: add 0.28.0, drop 0.26.0 (diff)
downloadebuilds-80fe71a84283bb800159c900eb6c0b1a246f51d2.tar.xz
sys-fs/zrepl: add 0.7.0, drop 0.6.1
Diffstat (limited to 'sys-fs/zrepl/zrepl-0.7.0.ebuild')
-rw-r--r--sys-fs/zrepl/zrepl-0.7.0.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-fs/zrepl/zrepl-0.7.0.ebuild b/sys-fs/zrepl/zrepl-0.7.0.ebuild
new file mode 100644
index 0000000..40a66f7
--- /dev/null
+++ b/sys-fs/zrepl/zrepl-0.7.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2020-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd shell-completion
+
+DESCRIPTION="One-stop ZFS backup & replication solution"
+HOMEPAGE="https://zrepl.github.io/"
+BDEPEND=">=dev-lang/go-1.24.13"
+SRC_URI="https://github.com/zrepl/zrepl/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_compile() {
+ ego build -trimpath .
+
+ ./zrepl gencompletion bash "${PN}.bash" || die
+ ./zrepl gencompletion zsh "${PN}.zsh" || die
+}
+
+src_install() {
+ dobin zrepl
+ einstalldocs
+
+ newbashcomp "${PN}.bash" "${PN}"
+ newzshcomp "${PN}.zsh" "_${PN}"
+
+ sed -i -e 's:/usr/local/bin/zrepl:/usr/bin/zrepl:' dist/systemd/zrepl.service || die
+ systemd_dounit dist/systemd/zrepl.service
+}