app-backup/minisnap: new package, add 0_p20240904

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
2025-10-10 16:46:06 +03:00
parent dc5a874445
commit d17f4a4516
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
EGIT_COMMIT=358aae69
DESCRIPTION="Fast and secure initramfs generator"
HOMEPAGE="https://git.sr.ht/~adrian-blx/minisnap"
SRC_URI="https://git.sr.ht/~adrian-blx/minisnap/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz
https://git.millerson.name/alex/gentoo-artifacts/releases/download/${PN}-${EGIT_COMMIT}-vendor/${PN}-${EGIT_COMMIT}-vendor.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_compile() {
ego build cmd/msnap.go cmd/conf.go
}
src_install() {
dodoc *.conf
dobin msnap
}
pkg_postinst() {
elog "To configure schedule for each volume define them in the /etc/minisnap.conf configuration file"
elog "See /usr/share/doc/${P}-${EGIT_COMMIT}/ for examples"
}