Files
horizon-packages/srcpkgs/zrepl/template
T
2026-05-31 19:36:30 +02:00

28 lines
808 B
Bash

# Template file for 'zrepl'
pkgname=zrepl
version=0.7.0
revision=1
build_style=go
go_import_path=github.com/zrepl/zrepl
go_ldflags="-X github.com/zrepl/zrepl/version.zreplVersion=void-${version}_${revision}"
depends="zfs"
short_desc="One-stop ZFS backup & replication solution"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/zrepl/zrepl"
distfiles="https://github.com/zrepl/zrepl/archive/v${version}.tar.gz"
checksum=d451ad1d05a0afdc752daf1dada9327aa338f691eca91e1c8fc9828eebd89757
conf_files="/etc/zrepl/*"
post_install() {
vmkdir etc/zrepl
vinstall ${FILESDIR}/zrepl.yml 644 etc/zrepl
vsconf ${FILESDIR}/zrepl.yml
vcopy internal/config/samples/* usr/share/examples/${pkgname}
vsconf dist/grafana/grafana-prometheus-zrepl.json
vlicense LICENSE
vsv zrepl
}