[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] gnu: Add borg.
From: |
Leo Famulari |
Subject: |
[PATCH 5/6] gnu: Add borg. |
Date: |
Mon, 14 Mar 2016 19:34:25 -0400 |
* gnu/packages/backup.scm (borg): New variable.
---
gnu/packages/backup.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 52 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 88b54f0..d8f2e87 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015 Eric Bavier <address@hidden>
;;; Copyright © 2014 Ian Denhardt <address@hidden>
-;;; Copyright © 2015 Leo Famulari <address@hidden>
+;;; Copyright © 2015, 2016 Leo Famulari <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -406,3 +406,54 @@ compression, and more. The library itself implements
storage techniques such
as content-addressable storage, content hash keys, Merkle trees, similarity
detection, and lossless compression.")
(license license:gpl3+)))
+
+(define-public borg
+ (package
+ (name "borg")
+ (version "1.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "borgbackup" version))
+ (sha256
+ (base32
+ "0wa6cvqs3rni5nwrgagigchcly8a53rxk56z0zn8iaii2cqrw2sh"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'set-openssl-prefix
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "BORG_OPENSSL_PREFIX" (assoc-ref inputs "openssl"))
+ #t))
+ (add-before 'build 'set-lz4-prefix
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "BORG_LZ4_PREFIX" (assoc-ref inputs "lz4"))
+ #t))
+ (add-after 'install 'docs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (man (string-append out "/share/man/man1")))
+ (and
+ (zero? (system* "make" "-C" "docs" "man"))
+ (install-file "docs/_build/man/borg.1" man)))
+ #t)))))
+ (native-inputs
+ `(("python-setuptools-scm" ,python-setuptools-scm)
+ ;; For generating the documentation.
+ ("python-sphinx" ,python-sphinx)
+ ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
+ (inputs
+ `(("acl" ,acl)
+ ("lz4" ,lz4)
+ ("openssl" ,openssl)
+ ("python-llfuse" ,python-llfuse)
+ ("python-msgpack" ,python-msgpack)))
+ (synopsis "Deduplicated, encrypted, authenticated and compressed backups")
+ (description "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. Borg is a fork of Attic.")
+ (home-page "https://borgbackup.github.io/borgbackup/")
+ (license license:bsd-3)))
--
2.6.3
- [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., (continued)
- [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Leo Famulari, 2016/03/14
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Alex Kost, 2016/03/15
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Leo Famulari, 2016/03/15
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Mathieu Lirzin, 2016/03/15
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Ludovic Courtès, 2016/03/15
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Leo Famulari, 2016/03/20
- Re: [PATCH 4/6] gnu: python-llfuse: Update to 1.0, keep 0.41 variant., Alex Kost, 2016/03/21
[PATCH 3/6] gnu: attic: Specify dependency on address@hidden, Leo Famulari, 2016/03/14
[PATCH 5/6] gnu: Add borg.,
Leo Famulari <=
- Re: [PATCH 5/6] gnu: Add borg., Alex Kost, 2016/03/15
- Re: [PATCH 5/6] gnu: Add borg., Leo Famulari, 2016/03/15
- Re: [PATCH 5/6] gnu: Add borg., Leo Famulari, 2016/03/21
- Re: [PATCH 5/6] gnu: Add borg., Leo Famulari, 2016/03/21
- Re: [PATCH 5/6] gnu: Add borg., Leo Famulari, 2016/03/21
- Re: [PATCH 5/6] gnu: Add borg., Alex Kost, 2016/03/22
- Re: [PATCH 5/6] gnu: Add borg., Leo Famulari, 2016/03/22
- Re: [PATCH 5/6] gnu: Add borg., Alex Kost, 2016/03/23
- Re: [PATCH 5/6] gnu: Add borg., Efraim Flashner, 2016/03/23
[PATCH 6/6] gnu: address@hidden: Update to 0.41.1., Leo Famulari, 2016/03/14