diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-11-23 12:49:02 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-11-23 12:51:08 +0100 |
commit | ce433d99d872c76144416c35d5fff6e28943d337 (patch) | |
tree | b546923d8581d920805a7bdfe31ca2e6ca34334d /app-backup | |
parent | dev-ruby/test_declarative: fix obsolete uri (diff) | |
download | gentoo-ce433d99d872c76144416c35d5fff6e28943d337.tar.gz gentoo-ce433d99d872c76144416c35d5fff6e28943d337.tar.bz2 gentoo-ce433d99d872c76144416c35d5fff6e28943d337.zip |
app-backup/borgmatic: add 1.5.21
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.5.21.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest index 1ed252683d44..538f0d8a9df6 100644 --- a/app-backup/borgmatic/Manifest +++ b/app-backup/borgmatic/Manifest @@ -1 +1,2 @@ DIST borgmatic-1.5.20.tar.gz 277495 BLAKE2B 6714b132549633b1d24e3c0bd7cd16ee9ff5510c4915d4115d62f4a260dc3cc505a02d8a14220184d53c934384d9ca092a38d6deebcefb843e7ba4492043819a SHA512 ea370ea1e57f56c8c4b7636695ae40473b9d58696948f55afde55b31b3bcbd68923952e80b0ef0bc40f68bb265ccd47bd5e0b2735ee9b4b6f3418a5ff13eaaf4 +DIST borgmatic-1.5.21.tar.gz 278933 BLAKE2B b098334fa476304a8e63ceed37b3c2b9c67d0549bea6d06d8f0fd0f41f9812e79cea52f88fc15d2be29e491355f9544b6ccbe7c31936dfbd78eefd42e9ff2832 SHA512 e183269a0ac3ae049031832414d597ced8f75dd1f82d16379faec6d53566a1c19f51d613745e61077621381ee819d2f5dfc5cabaf9928a629f5cf3e13398503c diff --git a/app-backup/borgmatic/borgmatic-1.5.21.ebuild b/app-backup/borgmatic/borgmatic-1.5.21.ebuild new file mode 100644 index 000000000000..40b004fb3ea1 --- /dev/null +++ b/app-backup/borgmatic/borgmatic-1.5.21.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS="rdepend" + +inherit distutils-r1 systemd + +DESCRIPTION="Automatically create, prune and verify backups with borgbackup" +HOMEPAGE="https://torsion.org/borgmatic/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +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}] + ')" +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.5.16-systemd_service_bin_path.patch +) + +# test_borgmatic_version_matches_news_version tries to run the 'borgmatic' +# executable so making it work would require passing --install +# to distutils_enable_tests. Given that this is the only test requiring +# this and that all it does is make sure the NEWS file has been updated +# for the current version, just skip it. +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" + fi + elog + elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units." +} |