1 |
commit: 56813a80386bcb56d3f341f6cf5151da535c26c7 |
2 |
Author: automorphism88 <adebeus <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 26 02:05:24 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 21:45:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56813a80 |
7 |
|
8 |
app-backup/buttersink: New package |
9 |
|
10 |
Buttersink is a python-based, rsync-like utility for btrfs snapshots which |
11 |
uses btrfs send/receive. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/619710 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/4763 |
15 |
|
16 |
app-backup/buttersink/Manifest | 1 + |
17 |
app-backup/buttersink/buttersink-0.6.8.ebuild | 46 +++++++++++++++++++++++++++ |
18 |
app-backup/buttersink/buttersink-9999.ebuild | 46 +++++++++++++++++++++++++++ |
19 |
app-backup/buttersink/metadata.xml | 11 +++++++ |
20 |
4 files changed, 104 insertions(+) |
21 |
|
22 |
diff --git a/app-backup/buttersink/Manifest b/app-backup/buttersink/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..509257d54b9 |
25 |
--- /dev/null |
26 |
+++ b/app-backup/buttersink/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST buttersink-0.6.8.tar.gz 51784 SHA256 12dc5683256bc6aab5ce6db5ae40c8f565b9ad7c3da944bdba46182ae89f21d3 SHA512 52898140d983bcc6776497504191f0c1c727b24fa9543f5a5997a54ced26301ca492518094ca8770fce8064bc99dc6d3f6760e986eb66f08a758985a7a85ffff WHIRLPOOL 48e487b498cc8d827a3a5b54c5fdf019ffa5719dd925830a5f3c331344fd72e75a665a48c3cea0dc755add973f162c77916af65036ae8eef67af613eeab319ff |
29 |
|
30 |
diff --git a/app-backup/buttersink/buttersink-0.6.8.ebuild b/app-backup/buttersink/buttersink-0.6.8.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..44802d17a6e |
33 |
--- /dev/null |
34 |
+++ b/app-backup/buttersink/buttersink-0.6.8.ebuild |
35 |
@@ -0,0 +1,46 @@ |
36 |
+# Copyright 1999-2017 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="rsync-like utility for btrfs snapshots" |
45 |
+HOMEPAGE="https://github.com/AmesCornish/buttersink" |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT=0 |
49 |
+ |
50 |
+# local tests would require root and cause sandbox issues with btrfs subvolume |
51 |
+# operations, and network tests would require an SSH server with root login to |
52 |
+# test the SSH backend, or remote S3 for that backend |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+if [[ ${PV} == 9999 ]] ; then |
56 |
+ inherit git-r3 |
57 |
+ KEYWORDS="" |
58 |
+ EGIT_REPO_URI="https://github.com/AmesCornish/buttersink" |
59 |
+ SRC_URI="" |
60 |
+else |
61 |
+ KEYWORDS="~amd64 ~x86" |
62 |
+ SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz" |
63 |
+fi |
64 |
+ |
65 |
+RDEPEND="${PYTHON_DEPS} |
66 |
+ dev-python/boto[${PYTHON_USEDEP}] |
67 |
+ dev-python/crcmod[${PYTHON_USEDEP}] |
68 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
69 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
70 |
+ sys-fs/btrfs-progs" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ if [[ ${PV} == 9999 ]] ; then |
75 |
+ emake makestamps buttersink/version.py |
76 |
+ else |
77 |
+ mkdir makestamps || die |
78 |
+ echo "version = \"${PV}\"" > buttersink/version.py || die |
79 |
+ fi |
80 |
+ distutils-r1_python_prepare_all |
81 |
+} |
82 |
|
83 |
diff --git a/app-backup/buttersink/buttersink-9999.ebuild b/app-backup/buttersink/buttersink-9999.ebuild |
84 |
new file mode 100644 |
85 |
index 00000000000..44802d17a6e |
86 |
--- /dev/null |
87 |
+++ b/app-backup/buttersink/buttersink-9999.ebuild |
88 |
@@ -0,0 +1,46 @@ |
89 |
+# Copyright 1999-2017 Gentoo Foundation |
90 |
+# Distributed under the terms of the GNU General Public License v2 |
91 |
+ |
92 |
+EAPI=6 |
93 |
+PYTHON_COMPAT=( python2_7 ) |
94 |
+ |
95 |
+inherit distutils-r1 |
96 |
+ |
97 |
+DESCRIPTION="rsync-like utility for btrfs snapshots" |
98 |
+HOMEPAGE="https://github.com/AmesCornish/buttersink" |
99 |
+ |
100 |
+LICENSE="GPL-3" |
101 |
+SLOT=0 |
102 |
+ |
103 |
+# local tests would require root and cause sandbox issues with btrfs subvolume |
104 |
+# operations, and network tests would require an SSH server with root login to |
105 |
+# test the SSH backend, or remote S3 for that backend |
106 |
+RESTRICT="test" |
107 |
+ |
108 |
+if [[ ${PV} == 9999 ]] ; then |
109 |
+ inherit git-r3 |
110 |
+ KEYWORDS="" |
111 |
+ EGIT_REPO_URI="https://github.com/AmesCornish/buttersink" |
112 |
+ SRC_URI="" |
113 |
+else |
114 |
+ KEYWORDS="~amd64 ~x86" |
115 |
+ SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz" |
116 |
+fi |
117 |
+ |
118 |
+RDEPEND="${PYTHON_DEPS} |
119 |
+ dev-python/boto[${PYTHON_USEDEP}] |
120 |
+ dev-python/crcmod[${PYTHON_USEDEP}] |
121 |
+ dev-python/flake8[${PYTHON_USEDEP}] |
122 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
123 |
+ sys-fs/btrfs-progs" |
124 |
+DEPEND="${RDEPEND}" |
125 |
+ |
126 |
+python_prepare_all() { |
127 |
+ if [[ ${PV} == 9999 ]] ; then |
128 |
+ emake makestamps buttersink/version.py |
129 |
+ else |
130 |
+ mkdir makestamps || die |
131 |
+ echo "version = \"${PV}\"" > buttersink/version.py || die |
132 |
+ fi |
133 |
+ distutils-r1_python_prepare_all |
134 |
+} |
135 |
|
136 |
diff --git a/app-backup/buttersink/metadata.xml b/app-backup/buttersink/metadata.xml |
137 |
new file mode 100644 |
138 |
index 00000000000..d80abca98b5 |
139 |
--- /dev/null |
140 |
+++ b/app-backup/buttersink/metadata.xml |
141 |
@@ -0,0 +1,11 @@ |
142 |
+<?xml version="1.0" encoding="UTF-8"?> |
143 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
144 |
+<pkgmetadata> |
145 |
+ <maintainer type="person"> |
146 |
+ <email>adebeus@×××××.com</email> |
147 |
+ </maintainer> |
148 |
+ <maintainer type="project"> |
149 |
+ <email>proxy-maint@g.o</email> |
150 |
+ </maintainer> |
151 |
+ <longdescription>rsync-like utility for btrfs snapshots</longdescription> |
152 |
+</pkgmetadata> |