mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-backup/restic: add 0.15.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
@@ -4,3 +4,5 @@ DIST restic-0.14.0-deps.tar.xz 226627460 BLAKE2B e97fe4b68b4216fa01449aff7a8df8d
|
||||
DIST restic-0.14.0.tar.gz 23902279 BLAKE2B 21586b48e55de53b19c4f4d368167c69e3050cff41ae85a6fcdb3171ac71a38987b8b578de2e9e37bac9a531d364432610b9ecb316b3c93133fa07ccac5664f3 SHA512 d896c93b72790ba5b3c3cd71b68bb45682a12661067cd0d7370b6dfe6d4482988462c4243b5c0b412e5444784568f0375c5a01d43d4d0557d5e6bf01ca512157
|
||||
DIST restic-0.15.1-deps.tar.xz 156200684 BLAKE2B 8b34551c12e9b57d0e3328dd656f69d95964f4128eb61b1e546b1a002fd37874ee7614a9563754260d3b7ec0caf349fa611cb0316c5c5f983ba95d3607d6cae9 SHA512 4b2d9c9f6b43bd558965396f5ca501d57298ac444bf715801d52a743424a8e87b979c5808c599a6c13015e4e57a57e7911d86e77b2232cfa0c05822616f8ce9d
|
||||
DIST restic-0.15.1.tar.gz 23920501 BLAKE2B 9561211576c01707691a1d0d7575c6bcd0d8f3c691159d10281ecb1cce5d16f237d60fd2f998bf7ad41d2ad7f8e69fd92ce6d487769774d41bae7f5ebd0ee4d7 SHA512 54b982f87f60df506c293df12813bea2f8a0df8996453096565a0eaba2832791a35da288c2e9fac590a0eaee9aef52b2c968ee717457fab30a1974d00d1d73fe
|
||||
DIST restic-0.15.2-deps.tar.xz 159164476 BLAKE2B 652c5f880dc88ab9b4fcfb0168cf5bce19587f7c0195e379ac01ff227fd453bb5fc6ab72b7803d7070f92ea608a077aa0f79005f000b5626d7ea8841c9ec9643 SHA512 e4ef9ebfc09998e912128d84790081d16c05dad23e680f642e204974fc1ddd3a1f92ad2035227f6448f7661e24ba69379b1dc8198115d2d3d780ad0b0c7a475c
|
||||
DIST restic-0.15.2.tar.gz 23924222 BLAKE2B d07f505a9d3a425c2fbad275f43a3a23e0b84b673e0ac77f52c45c2965266b483ae136fe99f0bc82903680ff0c5843edd1ed72e4864e5977c2ed2c85a703520c SHA512 8135f8a77c6f1264d962156f58fca4023da6581099cfd4a69379d8f1f137443c217c0207aeb7d41b603b341e78e9b3050c6bdad81323e0efd7b81805f33263bd
|
||||
|
||||
48
app-backup/restic/restic-0.15.2.ebuild
Normal file
48
app-backup/restic/restic-0.15.2.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 go-module
|
||||
|
||||
DESCRIPTION="A backup program that is fast, efficient and secure"
|
||||
HOMEPAGE="https://restic.github.io/"
|
||||
SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="sys-fs/fuse:0"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
local mygoargs=(
|
||||
-tags release
|
||||
-ldflags "-X main.version=${PV}"
|
||||
-asmflags "-trimpath=${S}"
|
||||
-gcflags "-trimpath=${S}"
|
||||
)
|
||||
|
||||
ego build "${mygoargs[@]}" -o restic ./cmd/restic
|
||||
}
|
||||
|
||||
src_test() {
|
||||
addwrite /dev/fuse
|
||||
# a number of the ./cmd/... tests fail
|
||||
# ego test -timeout 30m ./cmd/... ./internal/...
|
||||
ego test -timeout 30m ./internal/...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin restic
|
||||
|
||||
newbashcomp doc/bash-completion.sh "${PN}"
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins doc/zsh-completion.zsh _restic
|
||||
|
||||
doman doc/man/*
|
||||
dodoc doc/*.rst
|
||||
}
|
||||
Reference in New Issue
Block a user