diff options
Diffstat (limited to '')
-rw-r--r-- | app-backup/lifeboat/lifeboat-0.4.2-r1.ebuild (renamed from app-backup/lifeboat/lifeboat-0.4.2.ebuild) | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/app-backup/lifeboat/lifeboat-0.4.2.ebuild b/app-backup/lifeboat/lifeboat-0.4.2-r1.ebuild index 6fa2923..6493a66 100644 --- a/app-backup/lifeboat/lifeboat-0.4.2.ebuild +++ b/app-backup/lifeboat/lifeboat-0.4.2-r1.ebuild @@ -1,20 +1,26 @@ # Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit systemd +VERIFY_SIG_METHOD="signify" +inherit systemd verify-sig DESCRIPTION="Manage and automate local restic(1) backups" HOMEPAGE="https://git.oriole.systems/lifeboat" -SRC_URI="https://git.oriole.systems/lifeboat/snapshot/${P}.tar.gz" +SRC_URI=" + https://git.oriole.systems/${PN}/snapshot/${P}.tar.gz + verify-sig? ( + https://git.oriole.systems/${PN}/snapshot/${P}.tar.gz.asc + -> ${P}.sha.sig + ) +" RESTRICT="mirror" LICENSE="ISC" SLOT="0" KEYWORDS="amd64 x86" -IUSE="" DEPEND=" acct-group/lifeboat @@ -23,7 +29,17 @@ DEPEND=" RDEPEND="${DEPEND} app-backup/restic net-misc/rclone" -BDEPEND="" + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/oriole-systems-20240330.pub" + +src_unpack() { + if use verify-sig; then + cp "${DISTDIR}"/${P}.{sha.sig,tar.gz} "${WORKDIR}" || die + verify-sig_verify_signed_checksums \ + ${P}.sha.sig sha256 ${P}.tar.gz + fi + default +} src_compile() { :; } |