bump app-backup/btv-0.4.0

This commit is contained in:
Martin Sekera 2020-08-29 02:18:55 +02:00
parent 6aaec062cb
commit 6509a9af71

View file

@ -0,0 +1,49 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info systemd
DESCRIPTION="B-Tree Vault, an automatic snapshot and backup tool for btrfs."
HOMEPAGE="https://git.decade.cz/decade-public/${PN}"
SRC_URI="https://git.decade.cz/decade-public/${PN}/archive/v${PV}.tar.gz -> ${PN}-v${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
>=dev-lang/python-3.8
sys-apps/systemd
sys-fs/btrfs-progs
app-arch/zstd
dev-libs/openssl
sys-apps/coreutils
app-crypt/hash-pipe
"
S="${WORKDIR}/${PN}"
pkg_pretend() {
if linux_config_exists; then
if ! linux_chkconfig_present BTRFS_FS; then
ewarn "You must enable CONFIG_BTRFS_FS before using this program."
fi
else
ewarn "Linux .config not found, unable to verify kernel configuration."
fi
}
src_install() {
dosbin btv
systemd_dounit systemd/btv-backup.service
systemd_dounit systemd/btv-backup.timer
insinto /etc/btv
newins cfg/config.ini config.ini.example
insopts -m600
newins cfg/key key.example
}