diff --git a/app-backup/restic/Manifest b/app-backup/restic/Manifest new file mode 100644 index 0000000..10dd617 --- /dev/null +++ b/app-backup/restic/Manifest @@ -0,0 +1,2 @@ +DIST restic-0.15.1-deps.tar.xz 156187800 BLAKE2B ca296c9b49a7451f9a39dcdf977153f406a34c9e9cc9676e7b9c4f8a5d5f050d1e230d28788cf0942e2ce014cfafe31a78f9fbc2b00c9a003468db039799f5a6 SHA512 4ff1e73c42ca6fe78a671c9b000beb1ba0f753b36424548655c7b42b4093e3113d00fa54d58ef14c7df5154b7c07012d6da4fd2809558b7975d7d23b46acabc7 +DIST restic-0.15.1.tar.gz 23920501 BLAKE2B 9561211576c01707691a1d0d7575c6bcd0d8f3c691159d10281ecb1cce5d16f237d60fd2f998bf7ad41d2ad7f8e69fd92ce6d487769774d41bae7f5ebd0ee4d7 SHA512 54b982f87f60df506c293df12813bea2f8a0df8996453096565a0eaba2832791a35da288c2e9fac590a0eaee9aef52b2c968ee717457fab30a1974d00d1d73fe diff --git a/app-backup/restic/metadata.xml b/app-backup/restic/metadata.xml new file mode 100644 index 0000000..1d802fd --- /dev/null +++ b/app-backup/restic/metadata.xml @@ -0,0 +1,11 @@ + + + + + holgesson@posteo.de + Nils Freydank + + + restic/restic + + diff --git a/app-backup/restic/restic-0.15.1.ebuild b/app-backup/restic/restic-0.15.1.ebuild new file mode 100644 index 0000000..02a7699 --- /dev/null +++ b/app-backup/restic/restic-0.15.1.ebuild @@ -0,0 +1,49 @@ +# 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.net + https://github.com/restic/restic +" +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" +SRC_URI+=" https://files.holgersson.xyz/gentoo/distfiles/${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} -s -w" + -asmflags "-trimpath=${S}" + -gcflags "-trimpath=${S}" + ) + + ego build "${mygoargs[@]}" -o restic ./cmd/restic +} + +src_test() { + ego test -timeout 30m ./cmd/... ./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 +}