Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from gentoo:master #6954

Merged
merged 19 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
app-backup/restic: add 0.17.3
Closes: https://bugs.gentoo.org/946726
Signed-off-by: William Hubbs <[email protected]>
  • Loading branch information
williamh committed Jan 17, 2025
commit f393a40d6bc3215d6143948ab06ad8136a9c068e
3 changes: 3 additions & 0 deletions app-backup/restic/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ DIST restic-0.17.1.tar.gz 24104588 BLAKE2B cdfb89f21afe31c0f7bd881e8fbdfdeef020d
DIST restic-0.17.2-deps.tar.xz 173467792 BLAKE2B 211142acd818e236bdd19709a641afd072670ebed082a914cda0a1b51c49cbd0c92877afb552abeabfa0482e51f39eee399f53a8731099851cf89a0340f06ebb SHA512 958bc3dc2af328a097b925e20f1a22ae238425fed2afc9ce382c31c54152d28a00cc64dc90a88c939e17670608dcb786a972f64fa7cba40cbcc9bf1f9964b49d
DIST restic-0.17.2.tar.gz 24107857 BLAKE2B 56bc1035a9f9721f74db9645330700489dddf18a8116dec4b5c9a0fa1192e3b015a288c6f9409e840b6d783b34b777c2d0f8aa38ffc2cee38733a984b50e068e SHA512 73d6706203cd75288633f15fb440a05f5eee8b3e352f3f3ce78a53f6397a82a431f0d53bfe6559fd302314b33d98cb1290845c25b338931f8b829bf634b2fb36
DIST restic-0.17.2.tar.gz.asc 833 BLAKE2B 4671fb794c40412e91df91c0fc80da2a6fe382e7226b2f7cdb2f70c8c95812d4ec1dd81b58067a1cb8d12adf019b94e92f419a32dd429b30f9414cf0d9ee7ac9 SHA512 8363cf66e1251fda9d2dec7832fc9717c3da249eea87af94385dc2b69bf2acd7051c9bce4577a8ea3ccfa48f38dcf2d46be31deab9a8daa6e693aa590de78bae
DIST restic-0.17.3-deps.tar.xz 62516448 BLAKE2B 21874e8cf6dd2be669e6d2ad13bde02073ec25920214a758e01f16869abce964fa29e6bcd9c91ba5d47edf47673975e0c0ffe8161547f8e5d854462d402aa2e5 SHA512 3869e4aec35bd04b323b0b0ba86eebdf5b2dfd89011cae5f47888a6dc027e7e35ec01a3fad45fb5fc2b7c41a24b2c82a234b3a74e09fadcb82fa803c7acca174
DIST restic-0.17.3.tar.gz 24109574 BLAKE2B 0ef828207a2c925246d780377e531b47254c3afcd89231f4dda7aad063c5335134c87e8747b138a725a8b2b5deafddef09eaccce67ae508b0b3c82369d878ea7 SHA512 d2efc27588f4b08120f68ba4e72d007c49b340c66928aaa261312a9caa32ec44c80d562c69ae25d2e7be1b5fa3600b3239fc49651a8c8be50581bfd73ae59036
DIST restic-0.17.3.tar.gz.asc 833 BLAKE2B f703e66d3637e254020c9cc34b92b8b12fcb860e0f505aa89f0c8f8b682ef0bf16a6321233a83d8ddbb30ccae6c9cbdba1e8a60136513d3158c97949fd1033f7 SHA512 8daa8a70fe2de292dce67a8a2ceea3856d0332975234d46dc12bd79208b3aa129064e303a1e4ff32cea37765cc63ed3f8d1fb080737e4ef6b2d9b9073593fd85
60 changes: 60 additions & 0 deletions app-backup/restic/restic-0.17.3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/alexanderneumann.asc
inherit go-module shell-completion verify-sig

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
verify-sig? ( https://github.com/restic/restic/releases/download/v${PV}/${P}.tar.gz.asc )
"
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}"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-alexanderneumann )"

src_unpack() {
if use verify-sig; then
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz "${DISTDIR}"/${P}.tar.gz.asc
fi

default
}

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/...
RESTIC_TEST_FUSE=0 ego test -timeout 30m ./internal/...
}

src_install() {
dobin restic

newbashcomp doc/bash-completion.sh "${PN}"
newzshcomp doc/zsh-completion.zsh _restic
newfishcomp doc/fish-completion.fish "${PN}"

doman doc/man/*
dodoc doc/*.rst
}