mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
New package: zrepl-0.2.1
This commit is contained in:
parent
6c47ad5871
commit
a88a2a4d7b
3 changed files with 44 additions and 0 deletions
13
srcpkgs/zrepl/files/zrepl.yml
Normal file
13
srcpkgs/zrepl/files/zrepl.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# zrepl main configuration file.
|
||||||
|
# For documentation, refer to https://zrepl.github.io/
|
||||||
|
#
|
||||||
|
global:
|
||||||
|
logging:
|
||||||
|
- type: "stdout"
|
||||||
|
level: "error"
|
||||||
|
format: "human"
|
||||||
|
- type: "syslog"
|
||||||
|
level: "info"
|
||||||
|
format: "logfmt"
|
||||||
|
|
||||||
|
# Add "jobs:" section(s) here for your specific use cases.
|
3
srcpkgs/zrepl/files/zrepl/run
Normal file
3
srcpkgs/zrepl/files/zrepl/run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
install -d -m0700 /var/run/zrepl
|
||||||
|
exec zrepl --config /etc/zrepl/zrepl.yml daemon
|
28
srcpkgs/zrepl/template
Normal file
28
srcpkgs/zrepl/template
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Template file for 'zrepl'
|
||||||
|
pkgname=zrepl
|
||||||
|
version=0.2.1
|
||||||
|
revision=1
|
||||||
|
build_style=go
|
||||||
|
go_import_path=github.com/zrepl/zrepl
|
||||||
|
go_ldflags="-X github.com/zrepl/zrepl/version.zreplVersion=void-${version}_${revision}"
|
||||||
|
hostmakedepends="git"
|
||||||
|
depends="zfs"
|
||||||
|
short_desc="One-stop ZFS backup & replication solution"
|
||||||
|
maintainer="Frans Bergman <frans@tankernn.eu>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/zrepl/zrepl"
|
||||||
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||||
|
checksum=df474e70f5a51d84816ee8a06038ded167a7548e547e2d2822c313f088eeeafd
|
||||||
|
|
||||||
|
conf_files="/etc/zrepl/*"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vmkdir etc/zrepl
|
||||||
|
vinstall ${FILESDIR}/zrepl.yml 644 etc/zrepl
|
||||||
|
vsconf ${FILESDIR}/zrepl.yml
|
||||||
|
vcopy config/samples/* usr/share/examples/${pkgname}
|
||||||
|
vsconf dist/grafana/grafana-prometheus-zrepl-0.1.json
|
||||||
|
|
||||||
|
vlicense LICENSE
|
||||||
|
vsv zrepl
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue