mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
a1adcbf8a3
(we don't have the required 'textual' dep for the new experimental browse mode; I have a start at a set of ports for this somewhere..)
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
COMMENT= wrapper for Borg to create and prune backups
|
|
|
|
MODPY_DISTV= 2.1.6
|
|
DISTNAME= borgmatic-${MODPY_DISTV}
|
|
|
|
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
|
|
|
|
# https://github.com/borgmatic-collective/borgmatic/releases
|
|
HOMEPAGE= https://torsion.org/borgmatic/
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
EPOCH= 0
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MODULES= lang/python
|
|
MODPY_PYBUILD= setuptools
|
|
MODPY_PI= Yes
|
|
|
|
# XXX new 'browse' ui needs devel/py-binaryornot and 'textual' (wip)
|
|
RUN_DEPENDS= borgbackup-*:sysutils/borgbackup/1.4 \
|
|
devel/py-colorama<0.5 \
|
|
devel/py-jsonschema \
|
|
sysutils/py-packaging \
|
|
www/py-requests \
|
|
textproc/py-ruamel.yaml
|
|
# borgmatic script used in post-install to generate config
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
MODPY_PYTEST_ARGS= --ignore tests/unit/hooks/test_apprise.py
|
|
TEST_DEPENDS= devel/py-flexmock \
|
|
devel/py-test-cov \
|
|
net/py-apprise
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/borgmatic/
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
${PREFIX}/bin/borgmatic config generate \
|
|
--destination ${PREFIX}/share/examples/borgmatic/config.yaml.dist
|
|
|
|
.include <bsd.port.mk>
|