Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/burp/files/, app-backup/burp/
Date: Tue, 29 May 2018 09:26:46
Message-Id: 1527585990.5cd39164b55ee94a0754a89c0069f228e58183ee.marecki@gentoo
1 commit: 5cd39164b55ee94a0754a89c0069f228e58183ee
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 29 09:25:37 2018 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue May 29 09:26:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cd39164
7
8 app-backup/burp: remove old following full stabilisation of 2.1.32
9
10 There are now no versions left in the tree that are vulnerable to
11 either #628770 or #641842
12
13 Bug: https://bugs.gentoo.org/show_bug.cgi?id=628770
14 Bug: https://bugs.gentoo.org/show_bug.cgi?id=641842
15 Package-Manager: Portage-2.3.40, Repoman-2.3.9
16
17 app-backup/burp/Manifest | 1 -
18 app-backup/burp/burp-2.0.54-r4.ebuild | 111 ---------------------
19 app-backup/burp/burp-2.0.54.ebuild | 110 --------------------
20 .../burp-2.0.54-chuser_after_getting_lock.patch | 38 -------
21 .../files/burp-2.0.54-ncurses_pkg-config.patch | 37 -------
22 .../burp/files/burp-2.0.54-no_mkdir_run.patch | 10 --
23 .../files/burp-2.0.54-protocol1_by_default.patch | 24 -----
24 app-backup/burp/files/burp.tmpfiles | 1 -
25 app-backup/burp/files/burp2.initd | 45 ---------
26 9 files changed, 377 deletions(-)
27
28 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
29 index ed43c346dc7..36b9ddd4865 100644
30 --- a/app-backup/burp/Manifest
31 +++ b/app-backup/burp/Manifest
32 @@ -1,2 +1 @@
33 -DIST burp-2.0.54.tar.gz 558845 BLAKE2B f6a868b09ad73e3b8aa171993849c8fec43c141d14a64ba7919ad73890905647741688d2f0c0b01ef2a584474ecd1464423b07279160d86c7f37d1bf37a384a7 SHA512 dccc4d3679dd759028cd6b71d09ae4e49a511e5d94b4df2f112ad974abb507bbc8fffaf63ef85c847b0f9363b20a9e817179ab556c5a788acacb7a25e7600fa4
34 DIST burp-2.1.32.tar.gz 591737 BLAKE2B fd525bff32348f1dbc37b1c065d262ff8af1d999d19f63711ebcff3fb55e90a7440cc6cfc0b7eefe6f8e250672c799d86e65ed599f0b8d7dd80bebcb99888987 SHA512 2477b7a9a2123b227a27519f7f3d9facca7173a9e63d66f6a8fb2ae5408d8af4ad5bfdd0a14efd6cf80e7bc8e91907f7c293a3d621b86bafdbf163bfa08d0c81
35
36 diff --git a/app-backup/burp/burp-2.0.54-r4.ebuild b/app-backup/burp/burp-2.0.54-r4.ebuild
37 deleted file mode 100644
38 index 4484457367e..00000000000
39 --- a/app-backup/burp/burp-2.0.54-r4.ebuild
40 +++ /dev/null
41 @@ -1,111 +0,0 @@
42 -# Copyright 1999-2017 Gentoo Foundation
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=6
46 -
47 -inherit autotools systemd user versionator
48 -
49 -DESCRIPTION="Network backup and restore client and server for Unix and Windows"
50 -HOMEPAGE="http://burp.grke.org/"
51 -SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
52 -
53 -LICENSE="AGPL-3"
54 -SLOT="0"
55 -KEYWORDS="~amd64 ~arm ~x86"
56 -IUSE="acl ipv6 libressl test xattr"
57 -
58 -CDEPEND="dev-libs/uthash
59 - net-libs/librsync
60 - sys-libs/ncurses:0=
61 - sys-libs/zlib
62 - !libressl? ( dev-libs/openssl:0= )
63 - libressl? ( dev-libs/libressl:0= )
64 - acl? ( sys-apps/acl )
65 - xattr? ( sys-apps/attr )"
66 -DEPEND="${CDEPEND}
67 - virtual/pkgconfig
68 - test? ( dev-libs/check )"
69 -RDEPEND="${CDEPEND}
70 - virtual/logger"
71 -
72 -PATCHES=(
73 - "${FILESDIR}"/${PN}-2.0.54-ncurses_pkg-config.patch
74 - "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
75 - "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
76 - "${FILESDIR}"/${PN}-2.0.54-server_user.patch
77 - "${FILESDIR}"/${PN}-2.0.54-chuser_after_getting_lock.patch
78 -)
79 -
80 -pkg_setup() {
81 - enewgroup "${PN}"
82 - enewuser "${PN}" -1 "" "" "${PN}"
83 -}
84 -
85 -src_prepare() {
86 - default
87 -
88 - eautoreconf
89 -}
90 -
91 -src_configure() {
92 - local myeconfargs=(
93 - --localstatedir=/var
94 - --sysconfdir=/etc/burp
95 - --enable-largefile
96 - $(use_enable acl)
97 - $(use_enable ipv6)
98 - $(use_enable xattr)
99 - )
100 - # --runstatedir option will only work from autoconf-2.70 onwards
101 - runstatedir='/run' \
102 - econf "${myeconfargs[@]}"
103 -}
104 -
105 -src_install() {
106 - default
107 - fowners -R root:${PN} /var/spool/burp
108 - fperms 0770 /var/spool/burp
109 -
110 - emake DESTDIR="${D}" install-configs
111 - fowners -R root:${PN} /etc/burp
112 - fperms 0750 /etc/burp
113 - fperms 0640 /etc/burp/burp-server.conf
114 - fperms 0750 /etc/burp/clientconfdir
115 -
116 - newinitd "${FILESDIR}"/${PN}.initd ${PN}
117 - systemd_dounit "${FILESDIR}"/${PN}.service
118 -}
119 -
120 -pkg_postinst() {
121 - elog "Burp ebuilds now support the autoupgrade mechanism in both"
122 - elog "client and server mode. In both cases it is disabled by"
123 - elog "default. You almost certainly do NOT want to enable it in"
124 - elog "client mode because upgrades obtained this way will not be"
125 - elog "managed by Portage."
126 -
127 - if [[ ! -e /etc/burp/CA/index.txt ]]; then
128 - elog ""
129 - elog "At first run burp server will generate DH parameters and SSL"
130 - elog "certificates. You should adjust configuration before."
131 - elog "Server configuration is located at"
132 - elog ""
133 - elog " /etc/burp/burp-server.conf"
134 - elog ""
135 - fi
136 -
137 - # According to PMS this can be a space-separated list of version
138 - # numbers, even though in practice it is typically just one.
139 - local oldver
140 - for oldver in ${REPLACING_VERSIONS}; do
141 - if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
142 - ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
143 - ewarn "the server config file by default. If you use bedup, please"
144 - ewarn "update your scripts to invoke it as"
145 - ewarn ""
146 - ewarn " bedup -c /etc/burp/burp-server.conf"
147 - ewarn ""
148 - ewarn "Otherwise deduplication will not work!"
149 - break
150 - fi
151 - done
152 -}
153
154 diff --git a/app-backup/burp/burp-2.0.54.ebuild b/app-backup/burp/burp-2.0.54.ebuild
155 deleted file mode 100644
156 index 7194c7c6964..00000000000
157 --- a/app-backup/burp/burp-2.0.54.ebuild
158 +++ /dev/null
159 @@ -1,110 +0,0 @@
160 -# Copyright 1999-2017 Gentoo Foundation
161 -# Distributed under the terms of the GNU General Public License v2
162 -
163 -EAPI=6
164 -
165 -inherit autotools systemd tmpfiles user versionator
166 -
167 -DESCRIPTION="Network backup and restore client and server for Unix and Windows"
168 -HOMEPAGE="http://burp.grke.org/"
169 -SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
170 -
171 -LICENSE="AGPL-3"
172 -SLOT="0"
173 -KEYWORDS="amd64 x86"
174 -IUSE="acl ipv6 libressl test xattr"
175 -
176 -CDEPEND="dev-libs/uthash
177 - net-libs/librsync
178 - sys-libs/ncurses:0=
179 - sys-libs/zlib
180 - !libressl? ( dev-libs/openssl:0= )
181 - libressl? ( dev-libs/libressl:0= )
182 - acl? ( sys-apps/acl )
183 - xattr? ( sys-apps/attr )"
184 -DEPEND="${CDEPEND}
185 - test? ( dev-libs/check )"
186 -RDEPEND="${CDEPEND}
187 - virtual/logger"
188 -
189 -PATCHES=(
190 - "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
191 - "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
192 - "${FILESDIR}"/${PN}-2.0.54-server_user.patch
193 -)
194 -
195 -pkg_setup() {
196 - enewgroup "${PN}"
197 - enewuser "${PN}" -1 "" "" "${PN}"
198 -}
199 -
200 -src_prepare() {
201 - default
202 -
203 - eautoreconf
204 -}
205 -
206 -src_configure() {
207 - local myeconfargs=(
208 - --localstatedir=/var
209 - --sysconfdir=/etc/burp
210 - --enable-largefile
211 - $(use_enable acl)
212 - $(use_enable ipv6)
213 - $(use_enable xattr)
214 - )
215 - # --runstatedir option will only work from autoconf-2.70 onwards
216 - runstatedir='/run/burp' \
217 - econf "${myeconfargs[@]}"
218 -}
219 -
220 -src_install() {
221 - default
222 - fowners -R root:${PN} /var/spool/burp
223 - fperms 0770 /var/spool/burp
224 -
225 - emake DESTDIR="${D}" install-configs
226 - fowners -R root:${PN} /etc/burp
227 - fperms 0775 /etc/burp
228 - fperms 0640 /etc/burp/burp-server.conf
229 - fperms 0750 /etc/burp/clientconfdir
230 -
231 - newinitd "${FILESDIR}"/${PN}2.initd ${PN}
232 - systemd_dounit "${FILESDIR}"/${PN}.service
233 -
234 - newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
235 -}
236 -
237 -pkg_postinst() {
238 - elog "Burp ebuilds now support the autoupgrade mechanism in both"
239 - elog "client and server mode. In both cases it is disabled by"
240 - elog "default. You almost certainly do NOT want to enable it in"
241 - elog "client mode because upgrades obtained this way will not be"
242 - elog "managed by Portage."
243 -
244 - if [[ ! -e /etc/burp/CA/index.txt ]]; then
245 - elog ""
246 - elog "At first run burp server will generate DH parameters and SSL"
247 - elog "certificates. You should adjust configuration before."
248 - elog "Server configuration is located at"
249 - elog ""
250 - elog " /etc/burp/burp-server.conf"
251 - elog ""
252 - fi
253 -
254 - # According to PMS this can be a space-separated list of version
255 - # numbers, even though in practice it is typically just one.
256 - local oldver
257 - for oldver in ${REPLACING_VERSIONS}; do
258 - if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
259 - ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
260 - ewarn "the server config file by default. If you use bedup, please"
261 - ewarn "update your scripts to invoke it as"
262 - ewarn ""
263 - ewarn " bedup -c /etc/burp/burp-server.conf"
264 - ewarn ""
265 - ewarn "Otherwise deduplication will not work!"
266 - break
267 - fi
268 - done
269 -}
270
271 diff --git a/app-backup/burp/files/burp-2.0.54-chuser_after_getting_lock.patch b/app-backup/burp/files/burp-2.0.54-chuser_after_getting_lock.patch
272 deleted file mode 100644
273 index 3f75c878d5b..00000000000
274 --- a/app-backup/burp/files/burp-2.0.54-chuser_after_getting_lock.patch
275 +++ /dev/null
276 @@ -1,38 +0,0 @@
277 -From f765ad2c9f421eefcd3afc447ed45fa3fd2d17a0 Mon Sep 17 00:00:00 2001
278 -From: Graham Keeling <grke@××××.net>
279 -Date: Sun, 13 Aug 2017 11:50:54 +0000
280 -Subject: [PATCH] Drop privileges after main pidfile creation.
281 -
282 -Change-Id: I762541db55e7884531e4d869e1a86533df71b5b8
283 ----
284 - src/prog.c | 10 +++++-----
285 - 1 file changed, 5 insertions(+), 5 deletions(-)
286 -
287 -diff --git a/src/prog.c b/src/prog.c
288 -index 244590d3..b94df6d3 100644
289 ---- a/src/prog.c
290 -+++ b/src/prog.c
291 -@@ -111,11 +111,6 @@ int reload(struct conf **confs, const char *conffile, bool firsttime)
292 - setup_signals();
293 - #endif
294 -
295 -- // Do not try to change user or group after the first time.
296 -- if(firsttime && chuser_and_or_chgrp(
297 -- get_string(confs[OPT_USER]), get_string(confs[OPT_GROUP])))
298 -- return -1;
299 --
300 - return 0;
301 - }
302 -
303 -@@ -486,6 +481,11 @@ int real_main(int argc, char *argv[])
304 - }
305 - }
306 -
307 -+ // Change privileges after having got the lock, for convenience.
308 -+ if(chuser_and_or_chgrp(
309 -+ get_string(confs[OPT_USER]), get_string(confs[OPT_GROUP])))
310 -+ return -1;
311 -+
312 - set_int(confs[OPT_OVERWRITE], forceoverwrite);
313 - set_int(confs[OPT_STRIP], strip);
314 - set_int(confs[OPT_FORK], forking);
315
316 diff --git a/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch b/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
317 deleted file mode 100644
318 index 07310d66b20..00000000000
319 --- a/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
320 +++ /dev/null
321 @@ -1,37 +0,0 @@
322 ---- a/configure.ac
323 -+++ b/configure.ac
324 -@@ -1,3 +1,4 @@
325 -+
326 - dnl Process this file with autoconf to produce a configure script.
327 -
328 - dnl require a recent autoconf
329 -@@ -276,21 +277,22 @@
330 - dnl -----------------------------------------------------------
331 -
332 - have_ncurses=no
333 --AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h],
334 -+m4_ifdef([PKG_CHECK_MODULES],
335 - [
336 -- AC_CHECK_LIB([ncurses], [curs_set],
337 -+ PKG_CHECK_MODULES([ncurses], [ncurses],
338 - [
339 -- NCURSES_LIBS="-lncurses"
340 -- have_ncurses=yes
341 -- AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
342 -- ]
343 -+ have_ncurses=yes
344 -+ NCURSES_LIBS="$ncurses_LIBS"
345 -+ CFLAGS="$CFLAGS $ncurses_CFLAGS -DHAVE_NCURSES_H=1"
346 -+ AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
347 -+ ],
348 -+ []
349 - )
350 - ]
351 - )
352 -
353 - AC_SUBST([NCURSES_LIBS])
354 -
355 --
356 - dnl -----------------------------------------------------------
357 - dnl Check whether libcheck ('Check') is available
358 - dnl -----------------------------------------------------------
359
360 diff --git a/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch b/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch
361 deleted file mode 100644
362 index 8d1cdc0a062..00000000000
363 --- a/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch
364 +++ /dev/null
365 @@ -1,10 +0,0 @@
366 ---- a/Makefile.am
367 -+++ b/Makefile.am
368 -@@ -405,7 +405,6 @@
369 -
370 - install-data-local:
371 - $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(localstatedir)/spool/burp
372 -- $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(runstatedir)
373 -
374 - clean-local: clean-local-check
375 -
376
377 diff --git a/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch b/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch
378 deleted file mode 100644
379 index 391c68a5f74..00000000000
380 --- a/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch
381 +++ /dev/null
382 @@ -1,24 +0,0 @@
383 ---- a/configs/client/burp.conf.in
384 -+++ b/configs/client/burp.conf.in
385 -@@ -10,7 +10,8 @@
386 - # 0 to decide automatically, 1 to force protocol1 mode (file level granularity
387 - # with a pseudo mirrored storage on the server and optional rsync). 2 forces
388 - # protocol2 mode (inline deduplication with variable length blocks).
389 --# protocol = 0
390 -+# WARNING: as of April 2017 protocol2 is still considered experimental.
391 -+protocol = 1
392 - pidfile = @runstatedir@/burp.client.pid
393 - syslog = 0
394 - stdout = 1
395 ---- a/configs/server/burp.conf.in
396 -+++ b/configs/server/burp.conf.in
397 -@@ -21,7 +21,8 @@
398 - # protocol2 mode (inline deduplication with variable length blocks).
399 - # Like many other settings, this can be set per client in the clientconfdir
400 - # files.
401 --# protocol = 0
402 -+# WARNING: as of April 2017 protocol2 is still considered experimental.
403 -+protocol = 1
404 - pidfile = @runstatedir@/burp.server.pid
405 - hardlinked_archive = 0
406 - working_dir_recovery_method = delete
407
408 diff --git a/app-backup/burp/files/burp.tmpfiles b/app-backup/burp/files/burp.tmpfiles
409 deleted file mode 100644
410 index 2f04960f230..00000000000
411 --- a/app-backup/burp/files/burp.tmpfiles
412 +++ /dev/null
413 @@ -1 +0,0 @@
414 -d /run/burp 0755 burp burp -
415
416 diff --git a/app-backup/burp/files/burp2.initd b/app-backup/burp/files/burp2.initd
417 deleted file mode 100644
418 index 02a7ea856c4..00000000000
419 --- a/app-backup/burp/files/burp2.initd
420 +++ /dev/null
421 @@ -1,45 +0,0 @@
422 -#!/sbin/openrc-run
423 -# Copyright 1999-2017 Gentoo Foundation
424 -# Distributed under the terms of the GNU General Public License v2
425 -
426 -BURP_CONFIG="/etc/burp/burp-server.conf"
427 -
428 -description="Burp is a network backup and restore program"
429 -
430 -command="/usr/sbin/burp"
431 -command_args="-c '${BURP_CONFIG}' -F"
432 -command_background="yes"
433 -pidfile="/run/burp/burp.server.pid"
434 -start_stop_daemon_arg="--wait 500"
435 -
436 -extra_started_commands="reload summary"
437 -description_reload="Reloads configuration"
438 -description_summary="Displays main status monitor summary"
439 -
440 -get_backup_dir() {
441 - grep '^directory = ' "${BURP_CONFIG}" \
442 - | sed -e 's/^directory = //'
443 -}
444 -
445 -depend() {
446 - need localmount
447 - after bootmisc
448 - use net
449 -}
450 -
451 -start_pre() {
452 - checkpath -o root:burp -m 0775 -d /etc/burp
453 - checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
454 - checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
455 - checkpath -o root:burp -m 0770 -d "$(get_backup_dir)"
456 -}
457 -
458 -reload() {
459 - ebegin "Reloading ${SVCNAME} configuration"
460 - start-stop-daemon --exec ${command} --signal HUP
461 - eend $?
462 -}
463 -
464 -summary() {
465 - "${command}" -c "${BURP_CONFIG}" -a S
466 -}