Merge pull request #20731 from pprindeville/isc-dhcp-update-4.4.3-P1
[feed/packages.git] / lang / python / borgbackup / Makefile
1 #
2 # Copyright (C) 2023 Julien Malik <julien.malik@paraiso.me>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=borgbackup
11 PKG_VERSION:=1.2.4
12 PKG_RELEASE:=2
13
14 PYPI_NAME:=borgbackup
15 PKG_HASH:=a4bd54e9469e81b7a30a6711423115abc818d9cd844ecb1ca0e6104bc5374da8
16
17 PKG_LICENSE:=BSD-3-Clause
18 PKG_LICENSE_FILES:=LICENSE
19 PKG_MAINTAINER:=Julien Malik <julien.malik@paraiso.me>
20
21 include ../pypi.mk
22 include $(INCLUDE_DIR)/package.mk
23 include ../python3-package.mk
24
25 # see #20462 and #12942: email and urllib shall come with python3-light
26 define Package/borgbackup
27 SECTION:=lang
28 CATEGORY:=Languages
29 SUBMENU:=Python
30 TITLE:=Deduplicated, encrypted, authenticated and compressed backups
31 URL:=https://github.com/borgbackup/borg
32 DEPENDS:= \
33 +python3-light \
34 +python3-codecs \
35 +python3-email \
36 +python3-logging \
37 +python3-lzma \
38 +python3-msgpack \
39 +python3-packaging \
40 +python3-pyfuse3 \
41 +python3-readline \
42 +python3-unittest \
43 +python3-urllib \
44 +python3-uuid \
45 +libacl \
46 +libopenssl \
47 +liblz4 \
48 +libzstd \
49 +libxxhash
50 endef
51
52 define Package/borgbackup/description
53 BorgBackup (short: Borg) is a deduplicating backup program.
54 Optionally, it supports compression and authenticated encryption.
55
56 The main goal of Borg is to provide an efficient and secure way to backup data.
57 The data deduplication technique used makes Borg suitable for daily backups since only changes are stored. The authenticated encryption technique makes it suitable for backups to not fully trusted targets.
58 endef
59
60 PKG_BUILD_DEPENDS:=python-cython/host
61
62 # borg setup.py shall find these via pkg-config, but depends on python pkgconfig PyPi module
63 # which quickly becomes a nightmare to build, since it build-depends on poetry which is not
64 # available in the python package feed, and has a myriad of deps
65 PYTHON3_PKG_SETUP_VARS:= \
66 BORG_OPENSSL_PREFIX="/usr/lib" \
67 BORG_LIBLZ4_PREFIX="/usr/lib" \
68 BORG_LIBZSTD_PREFIX="/usr/lib" \
69 BORG_LIBXXHASH_PREFIX="/usr/lib"
70
71 $(eval $(call Py3Package,borgbackup))
72 $(eval $(call BuildPackage,borgbackup))
73 $(eval $(call BuildPackage,borgbackup-src))