Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, app-backup/burp/
Date: Wed, 23 Feb 2022 04:05:28
Message-Id: 1645588691.60ae8cd8e9776e978f509da3a3cd50225b8ba8ad.sam@gentoo
1 commit: 60ae8cd8e9776e978f509da3a3cd50225b8ba8ad
2 Author: Anton Fischl <github <AT> fischl-online <DOT> de>
3 AuthorDate: Sat Feb 19 06:15:06 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 03:58:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60ae8cd8
7
8 app-backup/burp: bump 2.5.4 (masked)
9
10 Version 2.5.* is not meant for production according to upstream
11
12 Signed-off-by: Anton Fischl <github <AT> fischl-online.de>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 app-backup/burp/Manifest | 1 +
16 app-backup/burp/burp-2.5.4.ebuild | 117 ++++++++++++++++++++++++++++++++++++++
17 profiles/package.mask | 4 ++
18 3 files changed, 122 insertions(+)
19
20 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
21 index ecbb90691b22..1063852e4e23 100644
22 --- a/app-backup/burp/Manifest
23 +++ b/app-backup/burp/Manifest
24 @@ -1,3 +1,4 @@
25 DIST burp-2.2.18.tar.gz 632805 BLAKE2B 6106aa4bd96db035ad5893c2fe314537e620a67519295fdf99efaf2c5a639bedd15b4c8d95caa3daa3072dfac28a1ba7fd7bb4f949d9ea2b70bd13060a22f2c6 SHA512 beb14c61ace6d61b98a10fc4e6709eec9722e28990de862eef6a75984f9fbd0f903c5fe64d20ed84c95528a9889bc22618ba6d2318318cf5d515b35688db0a4d
26 DIST burp-2.3.36.tar.gz 619564 BLAKE2B 8f30fb8808c8a3167467ef0bcdc84cd7c2e885ee6a8aa285d96f9187aeb33eacb90fefe382ddb74bbabcfefde6faa9ac6125e3bf4a6eb9778b650e74e812991d SHA512 48b852aca8ccf0abd696b9434cb83c0447845192096d0f3f0c032c328dcc20314faf68db94fa14da72692327432b78eb3680e83b1e892dd30c9aa2f340838ee3
27 DIST burp-2.4.0.tar.gz 624032 BLAKE2B 4a1ff48236dc631dd6d545480a33af3cdf8020c3088f1ca09ab66ac5cec8128d262b9b991bf9e3229c80f75a4746d338073a0a43fdb67a2fe21a0fd4f243469d SHA512 ea81a12e54c6d88b702dd09dc4fa5a724d1e322bdfba2643c9312a9077c9edc63f6ca0f6cb3a6ebecb6ad9feb1cc26c114277b2308d9903f4abb0442a9be7c19
28 +DIST burp-2.5.4.tar.gz 625018 BLAKE2B 83cb8e48c616f527b2271c6ea5855a303f2925d3d0b83182afc64fe139676a4b1b98349d0ba0636613d3409f100417c4a36b7b1f24bc64bba329940d4587cd2b SHA512 b283e34e76a6887517d72c99deac5e0299efa07dd922d1275666683cc3ba4b040b97e5ce4840cb06025926ea616778811bf4c9c6f9c7564da5122900cdd7bad0
29
30 diff --git a/app-backup/burp/burp-2.5.4.ebuild b/app-backup/burp/burp-2.5.4.ebuild
31 new file mode 100644
32 index 000000000000..f43a92ad64bd
33 --- /dev/null
34 +++ b/app-backup/burp/burp-2.5.4.ebuild
35 @@ -0,0 +1,117 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +inherit autotools systemd
42 +
43 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
44 +HOMEPAGE="https://burp.grke.org/"
45 +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="AGPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE="acl ipv6 test xattr"
51 +
52 +RESTRICT="!test? ( test )"
53 +
54 +COMMON_DEPEND="acct-group/burp
55 + acct-user/burp
56 + dev-libs/uthash
57 + dev-libs/openssl:0=
58 + net-libs/librsync:=
59 + sys-libs/ncurses:0=
60 + sys-libs/libcap
61 + sys-libs/zlib
62 + virtual/libcrypt:=
63 + acl? ( sys-apps/acl )
64 + xattr? ( sys-apps/attr )"
65 +DEPEND="${COMMON_DEPEND}
66 + elibc_musl? ( sys-libs/queue-standalone )
67 + test? ( dev-libs/check )"
68 +BDEPEND=">=sys-devel/autoconf-2.71
69 + virtual/pkgconfig"
70 +RDEPEND="${COMMON_DEPEND}
71 + virtual/logger"
72 +
73 +PATCHES=(
74 + "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch
75 + "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch
76 + "${FILESDIR}"/${PN}-2.0.54-server_user.patch
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 + --runstatedir=/run
91 + $(use_enable acl)
92 + $(use_enable ipv6)
93 + $(use_enable xattr)
94 + )
95 + econf "${myeconfargs[@]}"
96 +}
97 +
98 +src_test() {
99 + # See https://github.com/grke/burp/issues/869
100 + local -x CK_DEFAULT_TIMEOUT=10
101 + default
102 +}
103 +
104 +src_install() {
105 + default
106 + keepdir /var/spool/burp
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 ${EROOT}/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 " ${EROOT}/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 [[ $(ver_cut 1 ${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 ${EROOT}/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/profiles/package.mask b/profiles/package.mask
155 index 0259d3f11da8..abef17794b25 100644
156 --- a/profiles/package.mask
157 +++ b/profiles/package.mask
158 @@ -33,6 +33,10 @@
159
160 #--- END OF EXAMPLES ---
161
162 +# Anton Fischl <github@×××××××××××××.de> (2022-02-23)
163 +# Version 2.5.* is not meant for production according to upstream
164 +=app-backup/burp-2.5*
165 +
166 # Maciej Barć <xgqt@g.o> (2022-02-20)
167 # Masked for testing, builds and passes tests but randomly segfaults,
168 # meaningless backtrace, debugging (flags, symbols) do not help