summaryrefslogtreecommitdiff
path: root/app-backup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-06 03:03:24 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-06 03:03:24 +0000
commit2ceda67569b0a59d190a0f6afe73c18336b54268 (patch)
treeb769c1b06703783b963015c2c528fd5a50d2046b /app-backup
parent564cd64dc5f2727c4df6aeb1bb51327503c84e78 (diff)
gentoo auto-resync : 06:11:2024 - 03:03:24
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/Manifest.gzbin7695 -> 7697 bytes
-rw-r--r--app-backup/borgmatic/Manifest4
-rw-r--r--app-backup/borgmatic/borgmatic-1.9.0.ebuild82
-rw-r--r--app-backup/borgmatic/files/borgmatic-1.9.0-build-backend.patch18
-rw-r--r--app-backup/borgmatic/files/borgmatic-1.9.0-no_test_coverage.patch18
5 files changed, 122 insertions, 0 deletions
diff --git a/app-backup/Manifest.gz b/app-backup/Manifest.gz
index 17c13a0a4265..52828c77da87 100644
--- a/app-backup/Manifest.gz
+++ b/app-backup/Manifest.gz
Binary files differ
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 5b4b93b7da05..18d72eb5dd23 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1,5 +1,9 @@
AUX borgmatic-1.7.13-no_test_coverage.patch 248 BLAKE2B 624e21cc8971d9374b34dee002635d9090576ba785cf3b6da7c10a91f439fd8e11b335bb33dc9c3b7421b4a5a8982e2a5f67b723b06051969651d626f09bf972 SHA512 fc549c0a63a6182b1848d89a1c9aacd3057f07988d1e8ec3b6ae1defb0675e7b934b0c65c9b09edc431172bc550521058ab73cb64ae6e577072331d4d5269e78
AUX borgmatic-1.7.14-systemd_service_bin_path.patch 604 BLAKE2B 534a545b5a8d65c6e46102a5e558c25444d82dd3679b81c0ba50c72dfec8ce8f935fdcb558ff61fec7bf30409b4b9809d76e7488554f4461c4b5eac035a60c07 SHA512 9b4c65b249a033f17b68c5209c0132bd94e310d46193a9a85090cb8520220705aacd91c19d713e11e6955c1e0b1e09823abcaf8164ab0f162ff9a62652bb7e56
+AUX borgmatic-1.9.0-build-backend.patch 454 BLAKE2B d2256eb2a3f74e5a6c176b9e1a14ee20f06e1e98d0ed8874be9203af62c4d6e0f8e550ec41ee7298dff700bf35a0026a80f0e167e85af9c1571a2162f2f774b8 SHA512 9d90f959c49a45801257416388e1afe853a61b8f3c4396a62c299277ffebd1806c6e220e18e689fde0fef6fb289261dcbca4d9a6a4ab12fd879d89f68275e259
+AUX borgmatic-1.9.0-no_test_coverage.patch 418 BLAKE2B 07e5bdb4b9091c4b3d1cb07da3c8fbd9189e6b84e0578b36f51cfca17f368dd366e5083b3ebe81fc37d4712de879a0f710e9c69647f5a90728fb6b8cf6eb0411 SHA512 0b7c5cb0e955dbb6df25ffce77fc462f8d0fdd1aa70059d95b570594ae637c5d0793afbe7242d30dabefe99be8a1792aef1b8e1a8005408040b2821d1d971986
DIST borgmatic-1.8.14.tar.gz 623966 BLAKE2B fd52bc5be4f63e1207a0bedcf654af075082d31af76ddc65ea30a3259f1ec093c826612e114fd9f9fa46668f80eed3b2b6a88262fbb9e4db49c36ba31efa70c5 SHA512 74daecbf02f957b21121dff073c2e114c87b1afdf6b3408b8fc2bf465102425cca60e4bdc8bc8d0e2d0a9c20b1f514eb7c9a2e136e71cb61969e07a38841235a
+DIST borgmatic-1.9.0.tar.gz 636235 BLAKE2B ff71f8c811ca185926369402de5f2b1bd750135fcc66d54744056292994b781fba501945cf5dc39cc727d2c8f2ef360e79b4f2ba7a868f29bf0304722cae9649 SHA512 767b11451377d9ab046fe36272d523f1ec7c72fe162cc3eef09583f4e9a6e0d4bae09bb446b746a47e73fb4afdac1d0206b75b93a9fb2859987909f17aa87c43
EBUILD borgmatic-1.8.14.ebuild 2119 BLAKE2B 37315799c86d681ad2a4932a80f2b0f3fb81bdfcaf2bc2316ce9f03fdcaa9df0ae2a310be121392b5136a789874d3a44dddf4d4659c4a8ef13fb3c1ad8f66332 SHA512 8d7a80481d5a50367640308b91903d5a34d13dcc6069dcebdbeba6be1cbd21b5cd9a811d7dbec816ffbbfbf3f96252fac8ed59d0d8a1bb1f22dbc02b3570e537
+EBUILD borgmatic-1.9.0.ebuild 2218 BLAKE2B 003e1da8d686c9517f3c505a92bc4b4c6486c33bb11450b87ac0af9b0f56155eade234b291be50f534dc8bfe8fc349ccd95b1a2cd50f7beaf3edae9f7ed8e7d1 SHA512 09e53a63f0cbf7d8267d4b07d86ded910caf2852947273082a5fee4a3833de12d276b9df4ebf56fb5bbea0008069182b1fd58709064e1137216d7fd6ebe58bad
MISC metadata.xml 461 BLAKE2B 700c5863d623abaa1a88f91ef5281c6d3d8c2ce8eeb5b15cadbbd93b1d50bfce5445cd2f133bbe998da36de9e2953ce154e1b8eb033d36f33bb88881e672aeb6 SHA512 e739f7ff60f69c3b4d5c72daeda65b9c042bf01d74ce6a60b2684e7e52eea5deaa946a2aa5f1dc84ae16f6eaf4bff8f46628f41ba55c394ff4fe70b5935663a2
diff --git a/app-backup/borgmatic/borgmatic-1.9.0.ebuild b/app-backup/borgmatic/borgmatic-1.9.0.ebuild
new file mode 100644
index 000000000000..31258a4ea937
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-1.9.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2024 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 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/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/apprise[${PYTHON_USEDEP}]
+ >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
+ ')
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
+ "${FILESDIR}"/${P}-no_test_coverage.patch
+ "${FILESDIR}"/${P}-build-backend.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"
+ elog
+ elog "Systemd users wishing to periodically run ${PN} can use the provided timer and service units."
+ else
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if ver_test "${oldver}" -lt 1.9.0; then
+ ewarn "Please be warned that ${PN}-1.9.0 has introduced several breaking changes."
+ ewarn "For details, please see"
+ ewarn
+ ewarn " https://github.com/borgmatic-collective/borgmatic/releases/tag/1.9.0"
+ ewarn
+ break
+ fi
+ done
+ fi
+}
diff --git a/app-backup/borgmatic/files/borgmatic-1.9.0-build-backend.patch b/app-backup/borgmatic/files/borgmatic-1.9.0-build-backend.patch
new file mode 100644
index 000000000000..982d0d58e950
--- /dev/null
+++ b/app-backup/borgmatic/files/borgmatic-1.9.0-build-backend.patch
@@ -0,0 +1,18 @@
+uncomment build backend
+
+diff --git a/pyproject.toml b/pyproject.toml
+index c3338c9c..6197d3df 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -38,7 +38,7 @@ Homepage = "https://torsion.org/borgmatic"
+ [build-system]
+ requires = ["setuptools>=61.0"]
+ # allow looking for conf in setup.{cfg,py}
+-#build-backend = "setuptools.build_meta"
++build-backend = "setuptools.build_meta"
+
+ [tool.setuptools.packages.find]
+ include = ["borgmatic*"]
+--
+2.45.2
+
diff --git a/app-backup/borgmatic/files/borgmatic-1.9.0-no_test_coverage.patch b/app-backup/borgmatic/files/borgmatic-1.9.0-no_test_coverage.patch
new file mode 100644
index 000000000000..1c69a1e83c3a
--- /dev/null
+++ b/app-backup/borgmatic/files/borgmatic-1.9.0-no_test_coverage.patch
@@ -0,0 +1,18 @@
+no test coverage
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 6197d3df..713554e9 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -50,7 +50,7 @@ skip-string-normalization = true
+
+ [tool.pytest.ini_options]
+ testpaths = "tests"
+-addopts = "--cov-report term-missing:skip-covered --cov=borgmatic --ignore=tests/end-to-end"
++addopts = "--ignore=tests/end-to-end"
+
+ [tool.isort]
+ profile = "black"
+--
+2.45.2
+