1 |
commit: 29f1455481e07c0de116380763f79f72342ca786 |
2 |
Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> |
3 |
AuthorDate: Fri Feb 24 07:32:59 2017 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 1 23:56:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f14554 |
7 |
|
8 |
app-backup/zbackup: new ebuild |
9 |
|
10 |
zbackup is a globally-deduplicating backup tool, based on the ideas found in rsync. |
11 |
Feed a large .tar into it, and it will store duplicate regions of it only once, |
12 |
then compress and optionally encrypt the result. Feed another .tar file, |
13 |
and it will also re-use any data found in any previous backups. |
14 |
This way only new changes are stored, and as long as the files are not very different, |
15 |
the amount of storage required is very low. Any of the backup files stored previously |
16 |
can be read back in full at any time. |
17 |
|
18 |
Base for ebuild from https://github.com/SpiderX/portage-overlay/tree/master/app-backup/zbackup |
19 |
|
20 |
Gentoo-Bug: https://bugs.gentoo.org/576796 |
21 |
|
22 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
23 |
|
24 |
app-backup/zbackup/Manifest | 1 + |
25 |
.../zbackup/files/zbackup-1.4.4-tartool.patch | 11 +++++++ |
26 |
.../zbackup/files/zbackup-9999-tartool.patch | 11 +++++++ |
27 |
app-backup/zbackup/metadata.xml | 26 ++++++++++++++++ |
28 |
app-backup/zbackup/zbackup-1.4.4.ebuild | 34 ++++++++++++++++++++ |
29 |
app-backup/zbackup/zbackup-9999.ebuild | 36 ++++++++++++++++++++++ |
30 |
6 files changed, 119 insertions(+) |
31 |
|
32 |
diff --git a/app-backup/zbackup/Manifest b/app-backup/zbackup/Manifest |
33 |
new file mode 100644 |
34 |
index 00000000000..9020e7f8aff |
35 |
--- /dev/null |
36 |
+++ b/app-backup/zbackup/Manifest |
37 |
@@ -0,0 +1 @@ |
38 |
+DIST zbackup-1.4.4.tar.gz 87118 SHA256 efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85 SHA512 96f0984be71e521b2a188448bb2801996701be6e96b1dac4672cabc9f6bcb6631fdb8d03f5dde4bbdbb0050d9bd1409d468fcba15f93730d69e6c55271aba575 WHIRLPOOL 4c41f300177b3a140f833f999e5b86e8c3386e81c02a7a94f2a0dd418ba2027adb2c7906d5d2a59fba12b47c5ea3190727ef63b1e8fd12eef8bc9fbe2ca426a6 |
39 |
|
40 |
diff --git a/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch b/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..8f9f839a66f |
43 |
--- /dev/null |
44 |
+++ b/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch |
45 |
@@ -0,0 +1,11 @@ |
46 |
+--- a/CMakeLists.txt 2017-02-24 09:22:39.360392521 +0200 |
47 |
++++ b/CMakeLists.txt 2017-02-24 09:23:13.642390978 +0200 |
48 |
+@@ -51,4 +51,8 @@ |
49 |
+ ${LIBLZO_LIBRARIES} |
50 |
+ ) |
51 |
+ |
52 |
++if (BUILD_TARTOOL) |
53 |
++ add_subdirectory(tartool) |
54 |
++endif (BUILD_TARTOOL) |
55 |
++ |
56 |
+ install( TARGETS zbackup DESTINATION bin ) |
57 |
|
58 |
diff --git a/app-backup/zbackup/files/zbackup-9999-tartool.patch b/app-backup/zbackup/files/zbackup-9999-tartool.patch |
59 |
new file mode 100644 |
60 |
index 00000000000..26052f97a48 |
61 |
--- /dev/null |
62 |
+++ b/app-backup/zbackup/files/zbackup-9999-tartool.patch |
63 |
@@ -0,0 +1,11 @@ |
64 |
+--- a/CMakeLists.txt 2017-02-24 09:22:39.360392521 +0200 |
65 |
++++ b/CMakeLists.txt 2017-02-24 09:23:13.642390978 +0200 |
66 |
+@@ -51,4 +51,8 @@ |
67 |
+ ${LIBLZO_LIBRARIES} |
68 |
+ ) |
69 |
+ |
70 |
++if (BUILD_TARTOOL) |
71 |
++ add_subdirectory(tools/tartool) |
72 |
++endif (BUILD_TARTOOL) |
73 |
++ |
74 |
+ install( TARGETS zbackup DESTINATION bin ) |
75 |
|
76 |
diff --git a/app-backup/zbackup/metadata.xml b/app-backup/zbackup/metadata.xml |
77 |
new file mode 100644 |
78 |
index 00000000000..65b65652113 |
79 |
--- /dev/null |
80 |
+++ b/app-backup/zbackup/metadata.xml |
81 |
@@ -0,0 +1,26 @@ |
82 |
+<?xml version="1.0" encoding="UTF-8"?> |
83 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
84 |
+<pkgmetadata> |
85 |
+ <maintainer type="person"> |
86 |
+ <email>spiderx@××××××××××.ua</email> |
87 |
+ <name>Vladimir Pavljuchenkov</name> |
88 |
+ </maintainer> |
89 |
+ <maintainer type="project"> |
90 |
+ <email>proxy-maint@g.o</email> |
91 |
+ <name>Proxy Maintainers</name> |
92 |
+ </maintainer> |
93 |
+ <longdescription> |
94 |
+ zbackup is a globally-deduplicating backup tool. |
95 |
+ The program has the following features: |
96 |
+ Parallel LZMA or LZO compression of the stored data |
97 |
+ Built-in AES encryption of the stored data |
98 |
+ Possibility to delete old backup data |
99 |
+ Use of a 64-bit rolling hash, keeping the amount of soft collisions to zero |
100 |
+ </longdescription> |
101 |
+ <use> |
102 |
+ <flag name="tartool">Install tartool utility</flag> |
103 |
+ </use> |
104 |
+ <upstream> |
105 |
+ <remote-id type="github">zbackup/zbackup</remote-id> |
106 |
+ </upstream> |
107 |
+</pkgmetadata> |
108 |
|
109 |
diff --git a/app-backup/zbackup/zbackup-1.4.4.ebuild b/app-backup/zbackup/zbackup-1.4.4.ebuild |
110 |
new file mode 100644 |
111 |
index 00000000000..75f7cf5fca2 |
112 |
--- /dev/null |
113 |
+++ b/app-backup/zbackup/zbackup-1.4.4.ebuild |
114 |
@@ -0,0 +1,34 @@ |
115 |
+# Copyright 1999-2017 Gentoo Foundation |
116 |
+# Distributed under the terms of the GNU General Public License v2 |
117 |
+ |
118 |
+EAPI=6 |
119 |
+ |
120 |
+inherit cmake-utils |
121 |
+ |
122 |
+DESCRIPTION="A versatile deduplicating backup tool" |
123 |
+HOMEPAGE="http://zbackup.org/ https://github.com/zbackup/zbackup" |
124 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
125 |
+ |
126 |
+LICENSE="GPL-2+-with-openssl-exception" |
127 |
+KEYWORDS="~amd64 ~x86" |
128 |
+SLOT="0" |
129 |
+IUSE="libressl tartool" |
130 |
+ |
131 |
+DEPEND="app-arch/lzma |
132 |
+ dev-libs/lzo:2 |
133 |
+ <dev-libs/protobuf-3:0= |
134 |
+ sys-libs/zlib |
135 |
+ !libressl? ( dev-libs/openssl:0= ) |
136 |
+ libressl? ( dev-libs/libressl:0= )" |
137 |
+RDEPEND="${DEPEND}" |
138 |
+ |
139 |
+# Add tartool build |
140 |
+PATCHES=( "${FILESDIR}/${P}-tartool.patch" ) |
141 |
+ |
142 |
+src_configure() { |
143 |
+ local mycmakeargs=( |
144 |
+ -DBUILD_TARTOOL="$(usex tartool)" |
145 |
+ ) |
146 |
+ |
147 |
+ cmake-utils_src_configure |
148 |
+} |
149 |
|
150 |
diff --git a/app-backup/zbackup/zbackup-9999.ebuild b/app-backup/zbackup/zbackup-9999.ebuild |
151 |
new file mode 100644 |
152 |
index 00000000000..1d46d49add6 |
153 |
--- /dev/null |
154 |
+++ b/app-backup/zbackup/zbackup-9999.ebuild |
155 |
@@ -0,0 +1,36 @@ |
156 |
+# Copyright 1999-2017 Gentoo Foundation |
157 |
+# Distributed under the terms of the GNU General Public License v2 |
158 |
+ |
159 |
+EAPI=6 |
160 |
+ |
161 |
+inherit cmake-utils git-r3 |
162 |
+ |
163 |
+DESCRIPTION="A versatile deduplicating backup tool" |
164 |
+HOMEPAGE="http://zbackup.org/ https://github.com/zbackup/zbackup" |
165 |
+SRC_URI="" |
166 |
+EGIT_REPO_URI="git://github.com/${PN}/${PN}.git" |
167 |
+ |
168 |
+LICENSE="GPL-2+-with-openssl-exception" |
169 |
+KEYWORDS="" |
170 |
+SLOT="0" |
171 |
+IUSE="libressl tartool" |
172 |
+ |
173 |
+DEPEND="app-arch/lzma |
174 |
+ dev-libs/lzo:2 |
175 |
+ <dev-libs/protobuf-3:0= |
176 |
+ sys-libs/libunwind:7 |
177 |
+ sys-libs/zlib |
178 |
+ !libressl? ( dev-libs/openssl:0= ) |
179 |
+ libressl? ( dev-libs/libressl:0= )" |
180 |
+RDEPEND="${DEPEND}" |
181 |
+ |
182 |
+# Add tartool build |
183 |
+PATCHES=( "${FILESDIR}/${P}-tartool.patch" ) |
184 |
+ |
185 |
+src_configure() { |
186 |
+ local mycmakeargs=( |
187 |
+ -DBUILD_TARTOOL="$(usex tartool)" |
188 |
+ ) |
189 |
+ |
190 |
+ cmake-utils_src_configure |
191 |
+} |