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/
Date: Fri, 17 Nov 2017 09:16:20
Message-Id: 1510910144.731c625f39998c99403b4fcb01681106c05ee072.marecki@gentoo
1 commit: 731c625f39998c99403b4fcb01681106c05ee072
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 17 09:10:13 2017 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 17 09:15:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=731c625f
7
8 app-backup/burp: bump to 2.1.22
9
10 Note that this ebuild fails the test phase when linked against
11 <net-libs/librsync-2.0.1. Upstream has been notified and already
12 fixed the problem in the master branch, meanwhile however just let it
13 slide - it only occurs if you combine an unstable version of burp with a
14 stable version of librsync.
15
16 Package-Manager: Portage-2.3.13, Repoman-2.3.3
17
18 app-backup/burp/Manifest | 1 +
19 app-backup/burp/burp-2.1.22.ebuild | 113 +++++++++++++++++++++++++++++++++++++
20 2 files changed, 114 insertions(+)
21
22 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
23 index f823ce4343e..d8b094df5f7 100644
24 --- a/app-backup/burp/Manifest
25 +++ b/app-backup/burp/Manifest
26 @@ -1,3 +1,4 @@
27 DIST burp-1.4.40.tar.bz2 712937 SHA256 4108eb45e14740de990d918a2adbb661d88f90de48d6e2e3a6b54fd12b16fa5e SHA512 b44ba3a63d3b75f6fee55bbfef70ac07fa87e78ddb22a398e31a86670dfa3f2db1c9dbc58de3d0038cdc409bd5ae52c8e901cb26975fd7dbe0f773c4841af10c WHIRLPOOL 636120b3fa2d4a3217567177f3c8abbdeb562d298043fd6bd685842287964d835f2a369e36db0bc32ce908ce8f96e4e2677569e6ca4bac80f8d9958a2364a62d
28 DIST burp-2.0.54.tar.gz 558845 SHA256 26130da9791c57b1e194973ef1ea292dec57468bf4291a4d0eae880d192c1fd1 SHA512 dccc4d3679dd759028cd6b71d09ae4e49a511e5d94b4df2f112ad974abb507bbc8fffaf63ef85c847b0f9363b20a9e817179ab556c5a788acacb7a25e7600fa4 WHIRLPOOL 60e9bec56c08bc7ebc4700824eab34cf8cefdc5871140471eec5e05dbff4f4b83c2f7c6d5554d33dbb918f46e2c60159ba99a5da599938acd40b9d5b7b582978
29 DIST burp-2.1.20.tar.gz 579488 SHA256 225f8ac0ad80ef4fa19c77c2d397d6829086a29dd8ab3d762820b9862d8b8f5c SHA512 5937187e0c93e21b4e3f4ab92f05589f8da56c774cf86644f095a0bff93c127911b2d513c04e380188956c2a97fb01ce471bb746d630baa5d30e6a70b53a0389 WHIRLPOOL b1253df69e20c9448249e14c898cdabc40ba5cbe5e5da5e20c8c4d7e161bf498b9f8a7ead80175d1bf00ad4b0bc893436abde27e37b61b1fad1792de04f16e99
30 +DIST burp-2.1.22.tar.gz 582938 SHA256 052eaa3d30392e00ec63d30587d4748d468ebb78f40f6c9612355e93f8add093 SHA512 028b48c585cdc607eb00af5f60e01541a54885b8084e0353d01b1e01744848967011cd330a443ae143884852c2dbc18fb25f364ce129a31ccbcf0f8d25ccb730 WHIRLPOOL 0cb271fc384fbb407e8cfb69c8baa1bbf42f5d2539a14c6db1787fafec9ecb8c72f8b8013093176c868fab98c32e99cd8b6a6c259dc71244f13fb6d9638107e1
31
32 diff --git a/app-backup/burp/burp-2.1.22.ebuild b/app-backup/burp/burp-2.1.22.ebuild
33 new file mode 100644
34 index 00000000000..ca210f89c0f
35 --- /dev/null
36 +++ b/app-backup/burp/burp-2.1.22.ebuild
37 @@ -0,0 +1,113 @@
38 +# Copyright 1999-2017 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +
43 +inherit autotools systemd tmpfiles user versionator
44 +
45 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
46 +HOMEPAGE="http://burp.grke.org/"
47 +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="AGPL-3"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~arm ~x86"
52 +IUSE="acl ipv6 libressl test xattr"
53 +
54 +CDEPEND="dev-libs/uthash
55 + net-libs/librsync
56 + sys-libs/ncurses:0=
57 + sys-libs/zlib
58 + !libressl? ( dev-libs/openssl:0= )
59 + libressl? ( dev-libs/libressl:0= )
60 + acl? ( sys-apps/acl )
61 + xattr? ( sys-apps/attr )"
62 +DEPEND="${CDEPEND}
63 + virtual/pkgconfig
64 + test? ( dev-libs/check )"
65 +RDEPEND="${CDEPEND}
66 + virtual/logger"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch
70 + "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch
71 + "${FILESDIR}"/${PN}-2.0.54-server_user.patch
72 +)
73 +
74 +pkg_setup() {
75 + enewgroup "${PN}"
76 + enewuser "${PN}" -1 "" "" "${PN}"
77 +}
78 +
79 +src_prepare() {
80 + default
81 +
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + local myeconfargs=(
87 + --localstatedir=/var
88 + --sysconfdir=/etc/burp
89 + --enable-largefile
90 + $(use_enable acl)
91 + $(use_enable ipv6)
92 + $(use_enable xattr)
93 + )
94 + # --runstatedir option will only work from autoconf-2.70 onwards
95 + runstatedir='/run/burp' \
96 + econf "${myeconfargs[@]}"
97 +}
98 +
99 +src_install() {
100 + default
101 + fowners -R root:${PN} /var/spool/burp
102 + fperms 0770 /var/spool/burp
103 +
104 + emake DESTDIR="${D}" install-configs
105 + fowners -R root:${PN} /etc/burp
106 + fperms 0775 /etc/burp
107 + fperms 0640 /etc/burp/burp-server.conf
108 + fperms 0750 /etc/burp/clientconfdir
109 +
110 + newinitd "${FILESDIR}"/${PN}2.initd ${PN}
111 + systemd_dounit "${FILESDIR}"/${PN}.service
112 +
113 + newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
114 +}
115 +
116 +pkg_postinst() {
117 + tmpfiles_process ${PN}.conf
118 +
119 + elog "Burp ebuilds now support the autoupgrade mechanism in both"
120 + elog "client and server mode. In both cases it is disabled by"
121 + elog "default. You almost certainly do NOT want to enable it in"
122 + elog "client mode because upgrades obtained this way will not be"
123 + elog "managed by Portage."
124 +
125 + if [[ ! -e /etc/burp/CA/index.txt ]]; then
126 + elog ""
127 + elog "At first run burp server will generate DH parameters and SSL"
128 + elog "certificates. You should adjust configuration before."
129 + elog "Server configuration is located at"
130 + elog ""
131 + elog " /etc/burp/burp-server.conf"
132 + elog ""
133 + fi
134 +
135 + # According to PMS this can be a space-separated list of version
136 + # numbers, even though in practice it is typically just one.
137 + local oldver
138 + for oldver in ${REPLACING_VERSIONS}; do
139 + if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
140 + ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
141 + ewarn "the server config file by default. If you use bedup, please"
142 + ewarn "update your scripts to invoke it as"
143 + ewarn ""
144 + ewarn " bedup -c /etc/burp/burp-server.conf"
145 + ewarn ""
146 + ewarn "Otherwise deduplication will not work!"
147 + break
148 + fi
149 + done
150 +}