diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-04-04 10:58:33 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-04-04 10:58:33 +0100 |
commit | 05f03321c664d90e7330bc34a175d4093e9b63dd (patch) | |
tree | 022f77b992d4cc55f849a7a9351f74d610e6e45b /app-backup | |
parent | app-admin/ansible-lint: add 6.14.4, drop 6.14.3 (diff) | |
download | gentoo-05f03321c664d90e7330bc34a175d4093e9b63dd.tar.gz gentoo-05f03321c664d90e7330bc34a175d4093e9b63dd.tar.bz2 gentoo-05f03321c664d90e7330bc34a175d4093e9b63dd.zip |
app-backup/borgmatic: add 1.7.11
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/borgmatic/Manifest | 1 | ||||
-rw-r--r-- | app-backup/borgmatic/borgmatic-1.7.11.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest index f1741a40c59b..0a0acd108310 100644 --- a/app-backup/borgmatic/Manifest +++ b/app-backup/borgmatic/Manifest @@ -1,3 +1,4 @@ DIST borgmatic-1.7.10.tar.gz 361036 BLAKE2B c4d81ef9a69c5ff5f8bf3d55a209f62f9c721f76207c996f335a5a5212533f93e71c77a2f4fee709de1228d0dcb8cfddf90d6734446f26f4fb7f0282acba0e18 SHA512 6b555afdbf60623632ac27824f48fb974cf9cce0bd9101beda01757749746221b5045b915497b69778726a7a528a618594a6259526d684dc43d8f90fbf8757f1 +DIST borgmatic-1.7.11.tar.gz 365247 BLAKE2B a06737c48722fdf24efca76d40f6b413f39635b4137685d6279bf7a7dd002fadef28dab35a503fabf872c732a0f32fbff8c791fa9b4602299937aeae568d6137 SHA512 cedca889cd409e92484c15240fd8da91c655f81e38c6672d25e44feedc4adf6594281d92f7072fd11edc5c9f8589098226a3520e71e3441ee7a7acf97e1b2daa DIST borgmatic-1.7.5.tar.gz 338412 BLAKE2B e27fd709070a27c2ddd01fdfe23ef9caeb942c52d756332b4abd6d6cf39724656677a0d142a5392e35e0a0f25958421fe23edf04a252d212d761f48a0c320d9b SHA512 c27a364617e0e8fc1c11adac5375deac4e1663236a545d3fb70280974614d50ffe3821010ed5e4345afa3c3dab5f45c0d3bbfc946f50321601acb56965fd555d DIST borgmatic-1.7.8.tar.gz 350233 BLAKE2B 3fcd392983f73ec5e97f0dc6b96e211d7f1e1d1a4ce95c635c675cf043e796925df53c30c1e4f8eb1a095d9ec5ff81e90edee5ff2576f4683053d3108004afd9 SHA512 bcc65fdb7ea1171fb61deda9b1f69a00596e1e10a99508d336977b694bd8f93d74837aad9211bf1065b785220aaf1460a3ea403bf23fa4873d1bf4c6b4016525 diff --git a/app-backup/borgmatic/borgmatic-1.7.11.ebuild b/app-backup/borgmatic/borgmatic-1.7.11.ebuild new file mode 100644 index 000000000000..c0230dbfcdbd --- /dev/null +++ b/app-backup/borgmatic/borgmatic-1.7.11.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +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" + +# 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/requests[${PYTHON_USEDEP}] + <dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + ')" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}] + ') + )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch + "${FILESDIR}"/${PN}-1.7.3-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 " generate-borgmatic-config" + else + local oldver + for oldver in ${REPLACING_VERSIONS}; do + if ver_test "${oldver}" -lt 1.7.11; then + ewarn "Since version 1.7.11 ${PN} defaults to a different way of selecting archives for multi-archive actions." + ewarn "For details, please see" + ewarn + ewarn " https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#archive-naming" + ewarn + break + fi + done + fi + elog + elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units." +} |