diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-11 17:46:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-11 17:46:59 +0100 |
commit | 54654470d999265b5a0010be7190e8a9993b1840 (patch) | |
tree | cb6b99a56837c648a69859da9333e5b9a726912d /app-backup | |
parent | 2046683958d0497bec1458741dc867558b69e622 (diff) |
gentoo auto-resync : 11:05:2023 - 17:46:59
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/Manifest.gz | bin | 8033 -> 8037 bytes | |||
-rw-r--r-- | app-backup/borgmatic/Manifest | 3 | ||||
-rw-r--r-- | app-backup/borgmatic/borgmatic-1.7.12.ebuild | 74 | ||||
-rw-r--r-- | app-backup/borgmatic/files/borgmatic-1.7.12-tests_flexmock.patch | 23 |
4 files changed, 100 insertions, 0 deletions
diff --git a/app-backup/Manifest.gz b/app-backup/Manifest.gz Binary files differindex 4a1983086268..089c0d72150a 100644 --- a/app-backup/Manifest.gz +++ b/app-backup/Manifest.gz diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest index b95fbda4c98e..4ddd1c6ff847 100644 --- a/app-backup/borgmatic/Manifest +++ b/app-backup/borgmatic/Manifest @@ -1,7 +1,10 @@ AUX borgmatic-1.5.1-no_test_coverage.patch 284 BLAKE2B 91e041cb2d3d15b65c47075b0524e6e2a60631702eb10243da79b8051504e33476e6f8d61a3d9a172302b9859a01afb0d640a502cc95f69e45024a8fdb5ebc53 SHA512 1604d425f4c3267a41449f5d05675634f365d0be0630b49812e87d13ebc4ee78e01259f2371afbf2150b5b1203676e20c50c1613be24e0fa39df635d229f80bc +AUX borgmatic-1.7.12-tests_flexmock.patch 744 BLAKE2B 91b09690867568f3158f7a9f01b157c483fc77a975348ce99ec71c2773941a247a5ce8b89bf9a965a37e39166e775d450e2b718156a0bbd81869f074e76816b0 SHA512 d90f633b914efd95d282630a07fea9ad93770588b439d4aee00e6866fa10ffd1b4797c200b5b0566e1d9b028fdc265ac0b701b049220a88a7397ba50d090ca0b AUX borgmatic-1.7.3-systemd_service_bin_path.patch 604 BLAKE2B 9b1c613ce2667d2b8846e1bdf7e7bd838529fb9029af2ca572dcbafc5a8c9b64c79cab820be3b750c5fcb060da72cdf1c449cbe50efefe63ef1eb6a884e26e14 SHA512 6ca6c351697db1ae26de2b00ad543fc8f1cea1b0f4ef84f82f9578d9e56da58b4437ed48839c5aaf7d5ea66fcb79620d0cc12b8a2b30862b488fae07ad182638 DIST borgmatic-1.7.11.tar.gz 365247 BLAKE2B a06737c48722fdf24efca76d40f6b413f39635b4137685d6279bf7a7dd002fadef28dab35a503fabf872c732a0f32fbff8c791fa9b4602299937aeae568d6137 SHA512 cedca889cd409e92484c15240fd8da91c655f81e38c6672d25e44feedc4adf6594281d92f7072fd11edc5c9f8589098226a3520e71e3441ee7a7acf97e1b2daa +DIST borgmatic-1.7.12.tar.gz 371090 BLAKE2B eb06d88320f2c49721938c756d637b6ce463192260ac734303079095c693cadde68805356249fdad86738bed8ea0afa2e7a5c5de3c68bbedba2162e1cb445cdd SHA512 6688eb48d9ac82e9c43816aebab36b6dc011132e9f90591b7add423743a7305f55ca60f3f02f983c2d5d2e86e2429da62aec2508fac472b05334a025a308c325 DIST borgmatic-1.7.8.tar.gz 350233 BLAKE2B 3fcd392983f73ec5e97f0dc6b96e211d7f1e1d1a4ce95c635c675cf043e796925df53c30c1e4f8eb1a095d9ec5ff81e90edee5ff2576f4683053d3108004afd9 SHA512 bcc65fdb7ea1171fb61deda9b1f69a00596e1e10a99508d336977b694bd8f93d74837aad9211bf1065b785220aaf1460a3ea403bf23fa4873d1bf4c6b4016525 EBUILD borgmatic-1.7.11.ebuild 2046 BLAKE2B c7f49967f3783c437566bfc3819ee42c953ede06df4996efb565d1f39b133f8f0e388f95c91d9637a17f00344b10a151aaeeaeab7b3e31cb953c9542b23f20d4 SHA512 bc18e9feaa4aa68ac4cee4e99e576f79f5b7b2c520810ecd798ed416739fa254c59c7e4fd40adb44d04421088dfab9776acba9c653d8b42d0ce91b9e765465c0 +EBUILD borgmatic-1.7.12.ebuild 2095 BLAKE2B 5fc7dfef5212ad538e5a2649f1b4227452abf5c0b0583e843e74cb7481d887952ce29bd0a5b4cdb3b69cc0614bcb3e04ab2982edae21b189d7291b3270274fdd SHA512 0c8466dd7cd8a19a08714f5ec466b48d19c5cad74dc37f6be62eb643863d917e620e5fc24e4ee0c96fcae486cf1574e709e296e81d66a0acdd13b73fa0544b65 EBUILD borgmatic-1.7.8.ebuild 1643 BLAKE2B 9e05c2bfc9894d3e3636d17254cbd6d386d44fdb3305d16278be5a42d6bd56f3d1e0b81c53245b264d91118b10c03fc9515573146ad47b15b5b8148f77c849e5 SHA512 0c3788e897ab3a838548f456a6b3ccbc644d877f7ce83bbbbea59f9f586c3e69af44222016cfb0fe803e639baeebe61d7e77b5160b4ed7ea223add48c3dbca6b MISC metadata.xml 380 BLAKE2B bd4f6eb451caa6b36d51dff099c7885ad2c30f2f9f5397e12049a28214601d67853f0dc604e6e42a566b8bf57acf0d9e39c685af8743cce72ec3b5b07adea72e SHA512 1d2c0a22d3b844b58ed35f3fae261a1d6906e5e1b0e69bbe364e0409f335b44f04089ea1d0e6144e2ddfcf066cc8ad85d14c0b22a28ddd22d235c48e1401569f diff --git a/app-backup/borgmatic/borgmatic-1.7.12.ebuild b/app-backup/borgmatic/borgmatic-1.7.12.ebuild new file mode 100644 index 000000000000..128d6c2e7a7c --- /dev/null +++ b/app-backup/borgmatic/borgmatic-1.7.12.ebuild @@ -0,0 +1,74 @@ +# 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 + "${FILESDIR}"/${PN}-1.7.12-tests_flexmock.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." +} diff --git a/app-backup/borgmatic/files/borgmatic-1.7.12-tests_flexmock.patch b/app-backup/borgmatic/files/borgmatic-1.7.12-tests_flexmock.patch new file mode 100644 index 000000000000..5c41f9a7e701 --- /dev/null +++ b/app-backup/borgmatic/files/borgmatic-1.7.12-tests_flexmock.patch @@ -0,0 +1,23 @@ +From ebe5c5e83903685742a39ae63b779d7a64527cff Mon Sep 17 00:00:00 2001 +From: polyzen <polyzen@noreply.torsion.org> +Date: Fri, 14 Apr 2023 01:01:31 +0000 +Subject: [PATCH] Fix "TypeError: 'module' object is not callable" in + test_commands.py + +--- a/tests/integration/borg/test_commands.py ++++ b/tests/integration/borg/test_commands.py +@@ -1,6 +1,6 @@ + import copy + +-import flexmock ++from flexmock import flexmock + + import borgmatic.borg.info + import borgmatic.borg.list +@@ -105,4 +105,4 @@ def test_display_archives_info_command_does_not_duplicate_flags_or_raise(): + + borgmatic.borg.info.display_archives_info( + 'repo', {}, '2.3.4', fuzz_argument(arguments, argument_name) +- ) ++ ) +\ No newline at end of file |