app-backup/borgmatic: add 2.0.2

Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
Petr Vaněk
2025-04-09 14:27:50 +02:00
parent c153588ed9
commit f39e754dcf
2 changed files with 79 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ DIST borgmatic-1.9.12.tar.gz 653984 BLAKE2B 62445bd2fa4a9ab93a4ef9035617dc57fd19
DIST borgmatic-1.9.13.tar.gz 655690 BLAKE2B b51706ffb56e3905298498fa71e7f949be43b968e2c62565657fde6a6e470253f4d50022b54327a9fd832288443491581a278f310219787041c2644bf8b721d6 SHA512 fe2cab08b1ba750349be6cb79e89dd3b99a964b21b6d91ee7adb955ff0c4b386e45d97c01a86232943e448053faaf88aa2dbeec654bed6ea9279639f8a3d79f3
DIST borgmatic-1.9.14.tar.gz 656877 BLAKE2B 36f8dce1251b74d67f33aaed5f6ebe41ff1003bd261070724422842143eb84be8b38a884f19da9e2f74a784e4ce4adca6c8ddfb8600f833fea6777585feb0cd8 SHA512 f2d789fab2e7f017c22458a6df3408a4883444aaeac9a4bf258de3eb46b802451d964d39ed441fb01314ff5c9acfd29676e1aab1ba341afb908e458527253705
DIST borgmatic-2.0.1.tar.gz 676807 BLAKE2B 677bfe347a43f6be1cb534bc0a8b9c2d7c0e5753970439dd06f0af3ef2b7e4ccab278dd9071b2830fa1b329aa87d217571f39b476cf65a960fe0e10a71500b36 SHA512 38d84ff22f2428145fb1bd4058c42493a1d7cba0e0e444faaf055f776756849ec298d83fdc169b3246f022652df8fe5305a1a1d7c688f9ab8e103477064641b1
DIST borgmatic-2.0.2.tar.gz 675555 BLAKE2B 3c2c6af5c44c725c466178744ebd559e43c3fec8e989fcd2ab19b3d3b4832d66888e6a4a490ed2bf9727bed4013278be6e5f5aeb64984506e9a9ea8805a72312 SHA512 060188b557e36d8391e806c8e46e7e8c12deb7d00bd4fcb18dadf1d43e113ad3d8c6399f8dc418e03c5aee06ba6b5434102b4ce9151f480e732bab617dc23f58

View File

@@ -0,0 +1,78 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 eapi9-ver systemd pypi
DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
HOMEPAGE="
https://torsion.org/borgmatic/
https://projects.torsion.org/borgmatic-collective/borgmatic
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
IUSE="apprise"
# borg is called as an external tool, hence no pythonic stuff
RDEPEND="
app-backup/borgbackup
$(python_gen_cond_dep '
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
')
apprise? ( $(python_gen_cond_dep '
dev-python/apprise[${PYTHON_USEDEP}]
') )
"
BDEPEND="
test? (
${RDEPEND}
$(python_gen_cond_dep '
dev-python/apprise[${PYTHON_USEDEP}]
>=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
')
)
"
PATCHES=(
"${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
"${FILESDIR}"/${PN}-1.9.3-no_test_coverage.patch
)
EPYTEST_DESELECT=(
# A fragile test whose only purpose is to make sure the NEWS file
# has been updated for the current version.
tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
)
distutils_enable_tests pytest
src_install() {
distutils-r1_src_install
systemd_dounit sample/systemd/borgmatic.{service,timer}
keepdir /etc/borgmatic
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "To generate a sample configuration file, run:"
elog " ${PN} config generate"
elog
elog "Systemd users wishing to periodically run ${PN} can use the provided timer and service units."
elif ver_replacing -lt 2.0.0; then
ewarn "Please be warned that ${PN}-2.0.0 has introduced several breaking changes."
ewarn "For details, please see"
ewarn
ewarn " https://github.com/borgmatic-collective/borgmatic/releases/tag/2.0.0"
ewarn
fi
}