summaryrefslogtreecommitdiffstats
path: root/utils/borgbackup/Makefile
blob: 883a49cbca5f63581b19605202fdf5f044c339d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Copyright (C) 2023 Julien Malik <julien.malik@paraiso.me>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=borgbackup
PKG_VERSION:=1.4.3
PKG_RELEASE:=1

PYPI_NAME:=borgbackup
PKG_HASH:=79bbfa745d1901d685973584bd2d16a350686ddd176f6a2244490fb01996441f

PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Julien Malik <julien.malik@paraiso.me>

include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk

# see #20462 and #12942: email and urllib shall come with python3-light
define Package/borgbackup
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Deduplicated, encrypted, authenticated and compressed backups
  URL:=https://github.com/borgbackup/borg
  DEPENDS:= \
      +python3-light \
      +python3-codecs \
      +python3-email \
      +python3-logging \
      +python3-lzma \
      +python3-msgpack \
      +python3-openssl \
      +python3-packaging \
      +python3-readline \
      +python3-unittest \
      +python3-urllib \
      +python3-uuid \
      +libacl \
      +libopenssl \
      +liblz4 \
      +libzstd \
      +libxxhash
endef

define Package/borgbackup/description
  BorgBackup (short: Borg) is a deduplicating backup program.
  Optionally, it supports compression and authenticated encryption.

  The main goal of Borg is to provide an efficient and secure way to backup data.
  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.
endef

PKG_BUILD_DEPENDS:=python-cython/host python-pkgconfig/host python-setuptools-scm/host

$(eval $(call Py3Package,borgbackup))
$(eval $(call BuildPackage,borgbackup))
$(eval $(call BuildPackage,borgbackup-src))