diff options
author | Wolfgang Müller | 2024-09-26 20:15:19 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-09-26 20:15:19 +0200 |
commit | a788e3ac201aebd60704de2049783a4e0902f3cf (patch) | |
tree | a0beb1369222433b8584187992ff1350b71026d2 /app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild | |
parent | e88daf18e9c6b610831ff8fb35cabf17a7a27c0e (diff) | |
download | pramantha-a788e3ac201aebd60704de2049783a4e0902f3cf.tar.gz |
app-backup/lifeboat: depend on sec-keys/signify-keys-oriole-systems
Diffstat (limited to 'app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild')
-rw-r--r-- | app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild b/app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild new file mode 100644 index 0000000..7656432 --- /dev/null +++ b/app-backup/lifeboat/lifeboat-0.4.2-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/${PN}/snapshot/${P}.tar.gz + verify-sig? ( + https://git.oriole.systems/${PN}/snapshot/${P}.tar.gz.asc + -> ${P}.sha.sig + ) +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="amd64 x86" +RESTRICT="mirror" + +DEPEND=" + acct-group/lifeboat + acct-user/lifeboat" + +RDEPEND="${DEPEND} + app-backup/restic + net-misc/rclone" + +BDEPEND="verify-sig? ( sec-keys/signify-keys-oriole-systems )" + +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() { :; } + +src_install() { + emake PREFIX=/usr DESTDIR="${D}" install + + systemd_dounit etc/systemd/${PN}@.{service,timer} +} |