1 |
commit: aadba1a444e6d9a74abdaff8aa6a81d26f1b4fde |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 30 14:45:22 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 30 15:42:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aadba1a4 |
7 |
|
8 |
app-backup/borgmatic: bump to 1.5.7 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
app-backup/borgmatic/Manifest | 1 + |
13 |
app-backup/borgmatic/borgmatic-1.5.7.ebuild | 71 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest |
17 |
index 66e4cd10a8e..2fb4a523266 100644 |
18 |
--- a/app-backup/borgmatic/Manifest |
19 |
+++ b/app-backup/borgmatic/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST borgmatic-1.5.1.tar.gz 67401 BLAKE2B c11f4b9f9acc7d7bf4e482953968dbaabc33f1513ec8f20868518bca22ffcafee90569c06ec603be919d47d724dd4a3a904e44fbb40c2309d8cb78e9277b5cc7 SHA512 9ded9bd5d6db866d196fedee88737f3d3eef6cb0e61c5f55ac543602c4429adcb57608d7f6c798edfd6ac1ecd14aadd9a88fdf94ef1f0eab4c26a9d2a29c5e38 |
22 |
DIST borgmatic-1.5.6.tar.gz 70075 BLAKE2B 23e233c7457c25ae5b83571436dcfac4e70bf4c9a9bf9af95b8722533b48fdd82089152da220b7d61a01569233f2aedddf300c3a5ad2c69c631060f0b08e6b59 SHA512 e314fa1f20516dd52f4435c782bf634821a034925c0f11553483a1e55eef5d588e54e7abb1a88d239c1619f291548a5058a8f636d16dd829680089c20c601a79 |
23 |
+DIST borgmatic-1.5.7.tar.gz 71084 BLAKE2B b6ab2f80af47ba49e8f584b555b910bf94dbfb72da8a55433f147410059948fa844846bea007b317f10cb76811c5da6bd1c22f7fefb5c062213670fadb326cd9 SHA512 26fa9ee1b158c05cdb3ed60faa16b4eac431691ced454149091c302876550277f622cd67e45ef42a3070896e76b94d8a39f1604a08f604bada5bab1ec6691902 |
24 |
|
25 |
diff --git a/app-backup/borgmatic/borgmatic-1.5.7.ebuild b/app-backup/borgmatic/borgmatic-1.5.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a287fddbef2 |
28 |
--- /dev/null |
29 |
+++ b/app-backup/borgmatic/borgmatic-1.5.7.ebuild |
30 |
@@ -0,0 +1,71 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+DISTUTILS_SINGLE_IMPL=1 |
38 |
+DISTUTILS_USE_SETUPTOOLS="rdepend" |
39 |
+ |
40 |
+inherit distutils-r1 systemd |
41 |
+ |
42 |
+DESCRIPTION="Automatically create, prune and verify backups with borgbackup" |
43 |
+HOMEPAGE="https://torsion.org/borgmatic/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+# borg is called as an external tool, hence no pythonic stuff |
51 |
+RDEPEND="app-backup/borgbackup |
52 |
+ $(python_gen_cond_dep ' |
53 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/pykwalify-1.6.0[${PYTHON_USEDEP}] |
55 |
+ dev-python/requests[${PYTHON_USEDEP}] |
56 |
+ <dev-python/ruamel-yaml-0.17.0[${PYTHON_USEDEP}] |
57 |
+ ')" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ dev-python/flexmock[${PYTHON_USEDEP}] |
62 |
+ ') |
63 |
+ )" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${PN}-1.5.1-systemd_service_bin_path.patch |
67 |
+ "${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch |
68 |
+) |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ distutils-r1_src_prepare |
74 |
+ |
75 |
+ # Unlike the other two test files in integration/commands, which use the |
76 |
+ # relevant modules' respective APIs, test_borgmatic.py tries to call the |
77 |
+ # 'borgmatic' executable - which by the time we execute src_test will |
78 |
+ # not have been created yet. distutils_install_for_testing would likely |
79 |
+ # take care of this - but between the aforementioned behaviour inconsistency |
80 |
+ # and the fact the only test run from this file as of version 1.5.1 is the |
81 |
+ # parsing of contents of 'borgmatic --version', just skip it for now. |
82 |
+ rm -f "${S}"/tests/integration/commands/test_borgmatic.py |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ distutils-r1_src_install |
87 |
+ systemd_dounit sample/systemd/borgmatic.{service,timer} |
88 |
+ keepdir /etc/borgmatic |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
93 |
+ elog "To generate a sample configuration file, run:" |
94 |
+ elog " generate-borgmatic-config" |
95 |
+ else |
96 |
+ elog "To upgrade your configuration file to the current version, run:" |
97 |
+ elog " upgrade-borgmatic-config" |
98 |
+ fi |
99 |
+ elog |
100 |
+ elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units." |
101 |
+} |