diff options
author | Marek Szuba <marecki@gentoo.org> | 2024-04-19 01:00:29 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2024-04-19 01:03:40 +0100 |
commit | fbb61a075f8d29e8cfb17188b6e5b88ba6489ec5 (patch) | |
tree | 1a7e7135d61b5a8cdcc5651cebd451293ea44bc7 /app-backup/borgmatic/borgmatic-1.8.10.ebuild | |
parent | x11-drivers/nvidia-drivers: extend 390 postinst to mention kernel (diff) | |
download | gentoo-fbb61a075f8d29e8cfb17188b6e5b88ba6489ec5.tar.gz gentoo-fbb61a075f8d29e8cfb17188b6e5b88ba6489ec5.tar.bz2 gentoo-fbb61a075f8d29e8cfb17188b6e5b88ba6489ec5.zip |
app-backup/borgmatic: add 1.8.10
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-backup/borgmatic/borgmatic-1.8.10.ebuild')
-rw-r--r-- | app-backup/borgmatic/borgmatic-1.8.10.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-backup/borgmatic/borgmatic-1.8.10.ebuild b/app-backup/borgmatic/borgmatic-1.8.10.ebuild new file mode 100644 index 000000000000..09e09f4eea4c --- /dev/null +++ b/app-backup/borgmatic/borgmatic-1.8.10.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 systemd pypi + +DESCRIPTION="Automatically create, prune and verify backups with borgbackup" +HOMEPAGE="https://torsion.org/borgmatic/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv" +IUSE="apprise" + +REQUIRED_USE="test? ( apprise )" + +# borg is called as an external tool, hence no pythonic stuff +RDEPEND="app-backup/borgbackup + $(python_gen_cond_dep ' + <dev-python/colorama-0.5[${PYTHON_USEDEP}] + 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? ( + $(python_gen_cond_dep ' + >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}] + ') + )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7.13-no_test_coverage.patch + "${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch +) + +# A fragile test whose only purpose is to make sure the NEWS file +# has been updated for the current version. +EPYTEST_DESELECT=( + 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" + else + local oldver + for oldver in ${REPLACING_VERSIONS}; do + if ver_test "${oldver}" -lt 1.8.0; then + ewarn "Please be warned that ${PN}-1.8.0 has introduced several breaking changes." + ewarn "For details, please see" + ewarn + ewarn " https://github.com/borgmatic-collective/borgmatic/releases/tag/1.8.0" + ewarn + break + fi + done + fi + elog + elog "Systemd users wishing to periodically run ${PN} can use the provided timer and service units." +} |