Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/burp/, profiles/
Date: Mon, 31 Oct 2022 18:45:10
Message-Id: 1667241887.137d8384c2e65265a0fab9c7bed03f7750bdc2b2.sam@gentoo
1 commit: 137d8384c2e65265a0fab9c7bed03f7750bdc2b2
2 Author: Anton Fischl <github <AT> fischl-online <DOT> de>
3 AuthorDate: Sun Oct 23 09:45:14 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 18:44:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137d8384
7
8 app-backup/burp: bump 3.1.2 (masked)
9
10 Bug: https://bugs.gentoo.org/864851
11 Signed-off-by: Anton Fischl <github <AT> fischl-online.de>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 app-backup/burp/Manifest | 1 +
15 app-backup/burp/burp-3.1.2.ebuild | 116 ++++++++++++++++++++++++++++++++++++++
16 profiles/package.mask | 4 ++
17 3 files changed, 121 insertions(+)
18
19 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
20 index 83ef3e04a4e9..f9f24666294c 100644
21 --- a/app-backup/burp/Manifest
22 +++ b/app-backup/burp/Manifest
23 @@ -1 +1,2 @@
24 DIST burp-2.4.0.tar.gz 624032 BLAKE2B 4a1ff48236dc631dd6d545480a33af3cdf8020c3088f1ca09ab66ac5cec8128d262b9b991bf9e3229c80f75a4746d338073a0a43fdb67a2fe21a0fd4f243469d SHA512 ea81a12e54c6d88b702dd09dc4fa5a724d1e322bdfba2643c9312a9077c9edc63f6ca0f6cb3a6ebecb6ad9feb1cc26c114277b2308d9903f4abb0442a9be7c19
25 +DIST burp-3.1.2.tar.gz 549260 BLAKE2B a8767d9ac2188e7a44fa2e8e4ba08dd3a5edeac268afcf196db5cae06e8bcc1faae1a48ba1873ef43fdbb9764946384233a755779e09984217b4334781529024 SHA512 a832502f617b66b87feeff032002bc25827809a165e3fb6ef85a9f3d847e308e9fa69f138b7e80662366fa3de09b39f7ef209b529d82c3d487dca11fe3ebcddf
26
27 diff --git a/app-backup/burp/burp-3.1.2.ebuild b/app-backup/burp/burp-3.1.2.ebuild
28 new file mode 100644
29 index 000000000000..2d84d0488b11
30 --- /dev/null
31 +++ b/app-backup/burp/burp-3.1.2.ebuild
32 @@ -0,0 +1,116 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit autotools systemd
39 +
40 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
41 +HOMEPAGE="https://burp.grke.org/"
42 +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="AGPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~x86"
47 +IUSE="acl ipv6 test xattr"
48 +
49 +RESTRICT="!test? ( test )"
50 +
51 +COMMON_DEPEND="acct-group/burp
52 + acct-user/burp
53 + dev-libs/uthash
54 + dev-libs/openssl:0=
55 + net-libs/librsync:=
56 + sys-libs/ncurses:0=
57 + sys-libs/libcap
58 + sys-libs/zlib
59 + virtual/libcrypt:=
60 + acl? ( sys-apps/acl )
61 + xattr? ( sys-apps/attr )"
62 +DEPEND="${COMMON_DEPEND}
63 + elibc_musl? ( sys-libs/queue-standalone )
64 + test? ( dev-libs/check )"
65 +BDEPEND=">=sys-devel/autoconf-2.71
66 + virtual/pkgconfig"
67 +RDEPEND="${COMMON_DEPEND}
68 + virtual/logger"
69 +
70 +PATCHES=(
71 + "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch
72 + "${FILESDIR}"/${PN}-2.0.54-server_user.patch
73 +)
74 +
75 +src_prepare() {
76 + default
77 +
78 + eautoreconf
79 +}
80 +
81 +src_configure() {
82 + local myeconfargs=(
83 + --localstatedir=/var
84 + --sysconfdir=/etc/burp
85 + --enable-largefile
86 + --runstatedir=/run
87 + $(use_enable acl)
88 + $(use_enable ipv6)
89 + $(use_enable xattr)
90 + )
91 + econf "${myeconfargs[@]}"
92 +}
93 +
94 +src_test() {
95 + # See https://github.com/grke/burp/issues/869
96 + local -x CK_DEFAULT_TIMEOUT=10
97 + default
98 +}
99 +
100 +src_install() {
101 + default
102 + keepdir /var/spool/burp
103 + fowners -R root:${PN} /var/spool/burp
104 + fperms 0770 /var/spool/burp
105 +
106 + emake DESTDIR="${D}" install-configs
107 + fowners -R root:${PN} /etc/burp
108 + fperms 0750 /etc/burp
109 + fperms 0640 /etc/burp/burp-server.conf
110 + fperms 0750 /etc/burp/clientconfdir
111 +
112 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
113 + systemd_dounit "${FILESDIR}"/${PN}.service
114 +}
115 +
116 +pkg_postinst() {
117 + elog "Burp ebuilds now support the autoupgrade mechanism in both"
118 + elog "client and server mode. In both cases it is disabled by"
119 + elog "default. You almost certainly do NOT want to enable it in"
120 + elog "client mode because upgrades obtained this way will not be"
121 + elog "managed by Portage."
122 +
123 + if [[ ! -e ${EROOT}/etc/burp/CA/index.txt ]]; then
124 + elog ""
125 + elog "At first run burp server will generate DH parameters and SSL"
126 + elog "certificates. You should adjust configuration before."
127 + elog "Server configuration is located at"
128 + elog ""
129 + elog " ${EROOT}/etc/burp/burp-server.conf"
130 + elog ""
131 + fi
132 +
133 + # According to PMS this can be a space-separated list of version
134 + # numbers, even though in practice it is typically just one.
135 + local oldver
136 + for oldver in ${REPLACING_VERSIONS}; do
137 + if [[ $(ver_cut 1 ${oldver}) -lt 2 ]]; then
138 + ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
139 + ewarn "the server config file by default. If you use bedup, please"
140 + ewarn "update your scripts to invoke it as"
141 + ewarn ""
142 + ewarn " bedup -c ${EROOT}/etc/burp/burp-server.conf"
143 + ewarn ""
144 + ewarn "Otherwise deduplication will not work!"
145 + break
146 + fi
147 + done
148 +}
149
150 diff --git a/profiles/package.mask b/profiles/package.mask
151 index 335676e416af..10435070a8fb 100644
152 --- a/profiles/package.mask
153 +++ b/profiles/package.mask
154 @@ -33,6 +33,10 @@
155
156 #--- END OF EXAMPLES ---
157
158 +# Anton Fischl <github@×××××××××××××.de> (2022-10-23)
159 +# Version 3.1.* is not meant for production according to upstream
160 +=app-backup/burp-3.1*
161 +
162 # David Seifert <soap@g.o> (2022-10-31)
163 # EAPI 6, last release over 17 years ago, requires <ghostscript-gpl-10
164 # drivers, relies on -Wimplicit-function-declaration.