app-backup/minisnap: new package, add 0_p20240904
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
36
app-backup/minisnap/minisnap-0_p20240904.ebuild
Normal file
36
app-backup/minisnap/minisnap-0_p20240904.ebuild
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user