1 |
commit: 9c3c54bb98bd09069449efe30905e400a94cf100 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 27 13:21:54 2018 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 27 13:21:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c3c54bb |
7 |
|
8 |
app-backup/bacula: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
12 |
|
13 |
app-backup/bacula/Manifest | 1 + |
14 |
app-backup/bacula/bacula-9.4.1.ebuild | 434 +++++++++++++++++++++ |
15 |
.../files/9.4.0/bacula-9.4.0-libressl26.patch | 33 ++ |
16 |
.../files/9.4.0/bacula-9.4.0-libressl27.patch | 11 + |
17 |
4 files changed, 479 insertions(+) |
18 |
|
19 |
diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest |
20 |
index b03ff94b9e2..2d831a9fdb3 100644 |
21 |
--- a/app-backup/bacula/Manifest |
22 |
+++ b/app-backup/bacula/Manifest |
23 |
@@ -3,3 +3,4 @@ DIST bacula-9.0.6.tar.gz 3984215 BLAKE2B 89d0c83ae1ffd2c2677f5882eebc0feac12780a |
24 |
DIST bacula-9.0.8.tar.gz 4475511 BLAKE2B be321a2a215cc2b127423cf8d103303957c7064ba4453f0da8b82b3c23a38d45df7ee0e434da8a010911976812b23886fcf366d0dee9f1880c0f14fa641c1937 SHA512 4041525f594e23bfb231ea182a680899020347dd26e1d7f6d05c9f97aac8000a1bbeb9acaf2f73b283616fe03caf38fbb335b0e65e6a18e0322ca64da6f98e64 |
25 |
DIST bacula-9.2.1.tar.gz 4115337 BLAKE2B 17c678bee46c9788d9abf220d0c810f94864f9f1609fc25513b2cf0a11ac584fc2ca4429fa49d7af567d316b92c243900bed21511b59f8976fd230186896c70f SHA512 6b14372fb505a4c5e084b96154c764b20e173504e335813cfffd406eb1739a301a5352047696501a11fcc297381a9fbed6e0e8714ad62998f02edbd9e0ff8d1b |
26 |
DIST bacula-9.2.2.tar.gz 4115575 BLAKE2B affc6efa3543836690e3d89eb37faa2d5066344308dc29a22c491374f04a2fd00bedb57a869d0bcf8a0f58d806bc9f9b9381330c22984ddb4d5acd97b757d2c8 SHA512 390ac0ad205c3694fe02c6842740b188bde0be469d0a9b89388d3f75746c7cca6a536a2386e06a5069c84863f28dae3449250ff71e63b9ff14e8f7b074df1708 |
27 |
+DIST bacula-9.4.1.tar.gz 4162956 BLAKE2B f3fdd2ab64dc4fe50210d83a80ce16f36996f6d23bb67326e8bcee97ae9fd83b2dc8a96eabcd86c522c5e1ca5b8923110e97c03be953427a5c5f59140fdea332 SHA512 5e05a939c5f457a121879a6108ce2ac6403dde556b415af4e5013e4f100cf4d878f3d468fd680fa1633a4c8d6ce3d7a6ed351a1600ef780166cd4be9b70191ee |
28 |
|
29 |
diff --git a/app-backup/bacula/bacula-9.4.1.ebuild b/app-backup/bacula/bacula-9.4.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..c65e3c14a6f |
32 |
--- /dev/null |
33 |
+++ b/app-backup/bacula/bacula-9.4.1.ebuild |
34 |
@@ -0,0 +1,434 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit desktop libtool qmake-utils systemd user |
41 |
+ |
42 |
+MY_PV=${PV/_beta/-b} |
43 |
+MY_P=${PN}-${MY_PV} |
44 |
+ |
45 |
+DESCRIPTION="Featureful client/server network backup suite" |
46 |
+HOMEPAGE="http://www.bacula.org/" |
47 |
+SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="AGPL-3" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
52 |
+IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 libressl logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ !bacula-clientonly? ( |
56 |
+ !bacula-nodir? ( virtual/mta ) |
57 |
+ postgres? ( dev-db/postgresql:=[threads] ) |
58 |
+ mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
59 |
+ sqlite? ( dev-db/sqlite:3 ) |
60 |
+ ) |
61 |
+ dev-libs/gmp:0 |
62 |
+ qt5? ( |
63 |
+ dev-qt/qtsvg:5 |
64 |
+ x11-libs/qwt:6 |
65 |
+ ) |
66 |
+ logwatch? ( sys-apps/logwatch ) |
67 |
+ readline? ( sys-libs/readline:0 ) |
68 |
+ static? ( |
69 |
+ dev-libs/lzo[static-libs] |
70 |
+ sys-libs/ncurses:=[static-libs] |
71 |
+ sys-libs/zlib[static-libs] |
72 |
+ acl? ( virtual/acl[static-libs] ) |
73 |
+ ssl? ( |
74 |
+ !libressl? ( dev-libs/openssl:0=[static-libs] ) |
75 |
+ libressl? ( dev-libs/libressl:0=[static-libs] ) |
76 |
+ ) |
77 |
+ ) |
78 |
+ !static? ( |
79 |
+ dev-libs/lzo |
80 |
+ sys-libs/ncurses:= |
81 |
+ sys-libs/zlib |
82 |
+ acl? ( virtual/acl ) |
83 |
+ ssl? ( |
84 |
+ !libressl? ( dev-libs/openssl:0= ) |
85 |
+ libressl? ( dev-libs/libressl:0= ) |
86 |
+ ) |
87 |
+ ) |
88 |
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
89 |
+" |
90 |
+RDEPEND="${DEPEND} |
91 |
+ !bacula-clientonly? ( |
92 |
+ !bacula-nosd? ( |
93 |
+ app-arch/mt-st |
94 |
+ sys-block/mtx |
95 |
+ ) |
96 |
+ ) |
97 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
98 |
+" |
99 |
+ |
100 |
+REQUIRED_USE=" |
101 |
+ !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
102 |
+ static? ( bacula-clientonly ) |
103 |
+" |
104 |
+ |
105 |
+S=${WORKDIR}/${MY_P} |
106 |
+ |
107 |
+pkg_setup() { |
108 |
+ #XOR and !bacula-clientonly controlled by REQUIRED_USE |
109 |
+ use mysql && export mydbtype="mysql" |
110 |
+ use postgres && export mydbtype="postgresql" |
111 |
+ use sqlite && export mydbtype="sqlite3" |
112 |
+ |
113 |
+ # create the daemon group and user |
114 |
+ if [ -z "$(egetent group bacula 2>/dev/null)" ]; then |
115 |
+ enewgroup bacula |
116 |
+ einfo |
117 |
+ einfo "The group 'bacula' has been created. Any users you add to this" |
118 |
+ einfo "group have access to files created by the daemons." |
119 |
+ einfo |
120 |
+ fi |
121 |
+ |
122 |
+ if use bacula-clientonly && use static && use qt5; then |
123 |
+ ewarn |
124 |
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
125 |
+ ewarn |
126 |
+ fi |
127 |
+ |
128 |
+ if ! use bacula-clientonly; then |
129 |
+ if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then |
130 |
+ enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw |
131 |
+ einfo |
132 |
+ einfo "The user 'bacula' has been created. Please see the bacula manual" |
133 |
+ einfo "for information about running bacula as a non-root user." |
134 |
+ einfo |
135 |
+ fi |
136 |
+ fi |
137 |
+} |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ # adjusts default configuration files for several binaries |
141 |
+ # to /etc/bacula/<config> instead of ./<config> |
142 |
+ pushd src >&/dev/null || die |
143 |
+ for f in console/console.c dird/dird.c filed/filed.c \ |
144 |
+ stored/bcopy.c stored/bextract.c stored/bls.c \ |
145 |
+ stored/bscan.c stored/btape.c stored/stored.c \ |
146 |
+ qt-console/main.cpp; do |
147 |
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
148 |
+ || die "sed on ${f} failed" |
149 |
+ done |
150 |
+ popd >&/dev/null || die |
151 |
+ |
152 |
+ # bug 466688 drop deprecated categories from Desktop file |
153 |
+ sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
154 |
+ |
155 |
+ # bug 466690 Use CXXFLAGS instead of CFLAGS |
156 |
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
157 |
+ |
158 |
+ # drop automatic install of unneeded documentation (for bug 356499) |
159 |
+ eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
160 |
+ |
161 |
+ # bug #310087 |
162 |
+ eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
163 |
+ |
164 |
+ # bug #311161 |
165 |
+ eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
166 |
+ |
167 |
+ # bat needs to respect LDFLAGS and CFLAGS |
168 |
+ eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
169 |
+ |
170 |
+ # bug #328701 |
171 |
+ eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
172 |
+ |
173 |
+ eapply -p0 "${FILESDIR}"/9.0.8/${PN}-9.0.8-fix-static.patch |
174 |
+ |
175 |
+ # fix soname in libbaccat.so bug #602952 |
176 |
+ eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
177 |
+ |
178 |
+ # do not strip binaries |
179 |
+ sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
180 |
+ sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
181 |
+ |
182 |
+ # fix file not found error during make depend |
183 |
+ eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch |
184 |
+ |
185 |
+ eapply_user |
186 |
+ |
187 |
+ # Fix systemd unit files: |
188 |
+ # bug 497748 |
189 |
+ sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
190 |
+ sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
191 |
+ # bug 504370 |
192 |
+ sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
193 |
+ # bug 584442 and 504368 |
194 |
+ sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
195 |
+ |
196 |
+ # build 'bat' for Qt5 |
197 |
+ export QMAKE="$(qt5_get_bindir)"/qmake |
198 |
+ |
199 |
+ # adapt to >=Qt-5.9 (see bug #644566) |
200 |
+ # qmake needs an existing target file to generate install instructions |
201 |
+ sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
202 |
+ src/qt-console/bat.pro.in || die |
203 |
+ mkdir src/qt-console/.libs || die |
204 |
+ touch src/qt-console/.libs/bat || die |
205 |
+ chmod 755 src/qt-console/.libs/bat || die |
206 |
+ |
207 |
+ # fix handling of libressl version |
208 |
+ # needs separate handling for <libressl-2.7 and >=libressl2.7 |
209 |
+ # (see bug #655520) |
210 |
+ if has_version "<dev-libs/libressl-2.7"; then |
211 |
+ eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl26.patch |
212 |
+ else |
213 |
+ eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl27.patch |
214 |
+ fi |
215 |
+ |
216 |
+ # Don't let program install man pages directly |
217 |
+ rm "${S}"/manpages/Makefile.in || die "Unable to remove man pages Makefile.in" |
218 |
+ eapply -p1 "${FILESDIR}/bacula-fix-manpages.patch" |
219 |
+ |
220 |
+ # fix bundled libtool (bug 466696) |
221 |
+ # But first move directory with M4 macros out of the way. |
222 |
+ # It is only needed by autoconf and gives errors during elibtoolize. |
223 |
+ mv autoconf/libtool autoconf/libtool1 || die |
224 |
+ elibtoolize |
225 |
+} |
226 |
+ |
227 |
+src_configure() { |
228 |
+ local myconf='' |
229 |
+ |
230 |
+ if use bacula-clientonly; then |
231 |
+ myconf="${myconf} \ |
232 |
+ $(use_enable bacula-clientonly client-only) \ |
233 |
+ $(use_enable !static libtool) \ |
234 |
+ $(use_enable static static-cons) \ |
235 |
+ $(use_enable static static-fd)" |
236 |
+ else |
237 |
+ myconf="${myconf} \ |
238 |
+ $(use_enable !bacula-nodir build-dird) \ |
239 |
+ $(use_enable !bacula-nosd build-stored)" |
240 |
+ # bug #311099 |
241 |
+ # database support needed by dir-only *and* sd-only |
242 |
+ # build as well (for building bscan, btape, etc.) |
243 |
+ myconf="${myconf} |
244 |
+ --with-${mydbtype}" |
245 |
+ fi |
246 |
+ |
247 |
+ # do not build bat if 'static' clientonly |
248 |
+ if ! use bacula-clientonly || ! use static; then |
249 |
+ myconf="${myconf} \ |
250 |
+ $(use_enable qt5 bat)" |
251 |
+ fi |
252 |
+ |
253 |
+ myconf="${myconf} \ |
254 |
+ $(use_with X x) \ |
255 |
+ $(use_enable batch-insert) \ |
256 |
+ $(use_enable !readline conio) \ |
257 |
+ $(use_enable readline) \ |
258 |
+ $(use_with readline readline /usr) \ |
259 |
+ $(use_with ssl openssl) \ |
260 |
+ $(use_enable ipv6) \ |
261 |
+ $(use_enable acl) \ |
262 |
+ $(use_with tcpd tcp-wrappers)" |
263 |
+ |
264 |
+ econf \ |
265 |
+ --libdir=/usr/$(get_libdir) \ |
266 |
+ --docdir=/usr/share/doc/${PF} \ |
267 |
+ --htmldir=/usr/share/doc/${PF}/html \ |
268 |
+ --with-pid-dir=/var/run \ |
269 |
+ --sysconfdir=/etc/bacula \ |
270 |
+ --with-archivedir=/var/lib/bacula/tmp \ |
271 |
+ --with-subsys-dir=/var/lock/subsys \ |
272 |
+ --with-working-dir=/var/lib/bacula \ |
273 |
+ --with-logdir=/var/lib/bacula \ |
274 |
+ --with-scriptdir=/usr/libexec/bacula \ |
275 |
+ --with-systemd=$(systemd_get_systemunitdir) \ |
276 |
+ --with-dir-user=bacula \ |
277 |
+ --with-dir-group=bacula \ |
278 |
+ --with-sd-user=root \ |
279 |
+ --with-sd-group=bacula \ |
280 |
+ --with-fd-user=root \ |
281 |
+ --with-fd-group=bacula \ |
282 |
+ --enable-smartalloc \ |
283 |
+ --disable-afs \ |
284 |
+ --host=${CHOST} \ |
285 |
+ ${myconf} |
286 |
+} |
287 |
+ |
288 |
+src_compile() { |
289 |
+ # Make build log verbose (bug #447806) |
290 |
+ emake NO_ECHO="" |
291 |
+} |
292 |
+ |
293 |
+src_install() { |
294 |
+ emake DESTDIR="${D}" install |
295 |
+ doicon scripts/bacula.png |
296 |
+ |
297 |
+ # install bat icon and desktop file when enabled |
298 |
+ # (for some reason ./configure doesn't pick this up) |
299 |
+ if use qt5 && ! use static ; then |
300 |
+ doicon src/qt-console/images/bat_icon.png |
301 |
+ domenu scripts/bat.desktop |
302 |
+ fi |
303 |
+ |
304 |
+ # remove some scripts we don't need at all |
305 |
+ rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
306 |
+ |
307 |
+ # rename statically linked apps |
308 |
+ if use bacula-clientonly && use static ; then |
309 |
+ pushd "${D}"/usr/sbin || die |
310 |
+ mv static-bacula-fd bacula-fd || die |
311 |
+ mv static-bconsole bconsole || die |
312 |
+ popd || die |
313 |
+ fi |
314 |
+ |
315 |
+ # extra files which 'make install' doesn't cover |
316 |
+ if ! use bacula-clientonly; then |
317 |
+ # the database update scripts |
318 |
+ diropts -m0750 |
319 |
+ insinto /usr/libexec/bacula/updatedb |
320 |
+ insopts -m0754 |
321 |
+ doins "${S}"/updatedb/* |
322 |
+ fperms 0640 /usr/libexec/bacula/updatedb/README |
323 |
+ |
324 |
+ # the logrotate configuration |
325 |
+ # (now unconditional wrt bug #258187) |
326 |
+ diropts -m0755 |
327 |
+ insinto /etc/logrotate.d |
328 |
+ insopts -m0644 |
329 |
+ newins "${S}"/scripts/logrotate bacula |
330 |
+ |
331 |
+ # the logwatch scripts |
332 |
+ if use logwatch; then |
333 |
+ diropts -m0750 |
334 |
+ dodir /usr/share/logwatch/scripts/services |
335 |
+ dodir /usr/share/logwatch/scripts/shared |
336 |
+ dodir /etc/logwatch/conf/logfiles |
337 |
+ dodir /etc/logwatch/conf/services |
338 |
+ pushd "${S}"/scripts/logwatch >&/dev/null || die |
339 |
+ emake DESTDIR="${D}" install |
340 |
+ popd >&/dev/null || die |
341 |
+ fi |
342 |
+ fi |
343 |
+ |
344 |
+ if ! use qt5; then |
345 |
+ rm -vf "${D}"/usr/share/man/man1/bat.1* |
346 |
+ fi |
347 |
+ rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
348 |
+ |
349 |
+ if use bacula-clientonly || use bacula-nodir ; then |
350 |
+ rm -vf "${D}"/usr/libexec/bacula/create_*_database |
351 |
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
352 |
+ rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
353 |
+ rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
354 |
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
355 |
+ rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
356 |
+ rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
357 |
+ fi |
358 |
+ if use bacula-clientonly || use bacula-nosd; then |
359 |
+ rm -vf "${D}"/usr/libexec/bacula/disk-changer |
360 |
+ rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
361 |
+ rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
362 |
+ fi |
363 |
+ |
364 |
+ # documentation |
365 |
+ dodoc ChangeLog ReleaseNotes SUPPORT |
366 |
+ |
367 |
+ # Install all man pages |
368 |
+ doman "${S}"/manpages/* |
369 |
+ |
370 |
+ # install examples (bug #457504) |
371 |
+ if use examples; then |
372 |
+ docinto examples/ |
373 |
+ dodoc -r examples/* |
374 |
+ fi |
375 |
+ |
376 |
+ # vim-files |
377 |
+ if use vim-syntax; then |
378 |
+ insinto /usr/share/vim/vimfiles/syntax |
379 |
+ doins scripts/bacula.vim |
380 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
381 |
+ newins scripts/filetype.vim bacula_ft.vim |
382 |
+ fi |
383 |
+ |
384 |
+ # setup init scripts |
385 |
+ myscripts="bacula-fd" |
386 |
+ if ! use bacula-clientonly; then |
387 |
+ if ! use bacula-nodir; then |
388 |
+ myscripts="${myscripts} bacula-dir" |
389 |
+ fi |
390 |
+ if ! use bacula-nosd; then |
391 |
+ myscripts="${myscripts} bacula-sd" |
392 |
+ fi |
393 |
+ fi |
394 |
+ for script in ${myscripts}; do |
395 |
+ # copy over init script and config to a temporary location |
396 |
+ # so we can modify them as needed |
397 |
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
398 |
+ cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
399 |
+ |
400 |
+ # now set the database dependancy for the director init script |
401 |
+ case "${script}" in |
402 |
+ bacula-dir) |
403 |
+ case "${mydbtype}" in |
404 |
+ sqlite3) |
405 |
+ # sqlite databases don't have a daemon |
406 |
+ sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
407 |
+ ;; |
408 |
+ *) |
409 |
+ # all other databases have daemons |
410 |
+ sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
411 |
+ ;; |
412 |
+ esac |
413 |
+ ;; |
414 |
+ *) |
415 |
+ ;; |
416 |
+ esac |
417 |
+ |
418 |
+ # install init script and config |
419 |
+ newinitd "${T}/${script}".initd "${script}" |
420 |
+ newconfd "${T}/${script}".confd "${script}" |
421 |
+ done |
422 |
+ |
423 |
+ systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
424 |
+ |
425 |
+ # make sure the working directory exists |
426 |
+ diropts -m0750 |
427 |
+ keepdir /var/lib/bacula |
428 |
+ |
429 |
+ # make sure bacula group can execute bacula libexec scripts |
430 |
+ fowners -R root:bacula /usr/libexec/bacula |
431 |
+} |
432 |
+ |
433 |
+pkg_postinst() { |
434 |
+ if use bacula-clientonly; then |
435 |
+ fowners root:bacula /var/lib/bacula |
436 |
+ else |
437 |
+ fowners bacula:bacula /var/lib/bacula |
438 |
+ fi |
439 |
+ |
440 |
+ if ! use bacula-clientonly && ! use bacula-nodir; then |
441 |
+ einfo |
442 |
+ einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
443 |
+ einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
444 |
+ einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
445 |
+ einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
446 |
+ einfo |
447 |
+ |
448 |
+ ewarn "ATTENTION!" |
449 |
+ ewarn "The format of the database may have changed." |
450 |
+ ewarn "If you just upgraded from a version below 9.0.0 you must run" |
451 |
+ ewarn "'update_bacula_tables' now." |
452 |
+ ewarn "Make sure to have a backup of your catalog before." |
453 |
+ ewarn |
454 |
+ fi |
455 |
+ |
456 |
+ if use sqlite; then |
457 |
+ einfo |
458 |
+ einfo "Be aware that Bacula does not officially support SQLite database anymore." |
459 |
+ einfo "Best use it only for a client-only installation. See Bug #445540." |
460 |
+ einfo |
461 |
+ fi |
462 |
+ |
463 |
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
464 |
+ einfo "you have to enable 'USE=qt5'." |
465 |
+ einfo |
466 |
+ einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
467 |
+ einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
468 |
+} |
469 |
|
470 |
diff --git a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch |
471 |
new file mode 100644 |
472 |
index 00000000000..ea7fa0bb7a3 |
473 |
--- /dev/null |
474 |
+++ b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch |
475 |
@@ -0,0 +1,33 @@ |
476 |
+--- src/lib/crypto.c.orig 2018-02-02 15:34:39.420489000 -0600 |
477 |
++++ src/lib/crypto.c 2018-02-02 15:35:44.000524000 -0600 |
478 |
+@@ -195,7 +195,7 @@ |
479 |
+ IMPLEMENT_ASN1_FUNCTIONS(SignatureData) |
480 |
+ IMPLEMENT_ASN1_FUNCTIONS(CryptoData) |
481 |
+ |
482 |
+-#if defined(DEFINE_STACK_OF) |
483 |
++#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) ) |
484 |
+ DEFINE_STACK_OF(SignerInfo); |
485 |
+ DEFINE_STACK_OF(RecipientInfo); |
486 |
+ #else |
487 |
+--- src/lib/openssl-compat.h.orig 2018-02-02 15:26:04.182557000 -0600 |
488 |
++++ src/lib/openssl-compat.h 2018-02-02 15:27:50.229100000 -0600 |
489 |
+@@ -1,7 +1,7 @@ |
490 |
+ #ifndef __OPENSSL_COPMAT__H__ |
491 |
+ #define __OPENSSL_COPMAT__H__ |
492 |
+ |
493 |
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) |
494 |
++#if ( (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) ) |
495 |
+ static inline int EVP_PKEY_up_ref(EVP_PKEY *pkey) |
496 |
+ { |
497 |
+ CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY); |
498 |
+--- src/lib/tls.c.orig 2017-11-21 18:37:16.000000000 +0100 |
499 |
++++ src/lib/tls.c 2018-04-16 20:00:54.082000000 +0200 |
500 |
+@@ -116,7 +116,7 @@ |
501 |
+ ctx = (TLS_CONTEXT *)malloc(sizeof(TLS_CONTEXT)); |
502 |
+ |
503 |
+ /* Allocate our OpenSSL TLS Context */ |
504 |
+-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) |
505 |
++#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) ) |
506 |
+ /* Allows SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols */ |
507 |
+ ctx->openssl = SSL_CTX_new(TLS_method()); |
508 |
+ |
509 |
|
510 |
diff --git a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch |
511 |
new file mode 100644 |
512 |
index 00000000000..3ce61be5925 |
513 |
--- /dev/null |
514 |
+++ b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch |
515 |
@@ -0,0 +1,11 @@ |
516 |
+--- src/lib/crypto.c.orig 2018-02-02 15:34:39.420489000 -0600 |
517 |
++++ src/lib/crypto.c 2018-02-02 15:35:44.000524000 -0600 |
518 |
+@@ -195,7 +195,7 @@ |
519 |
+ IMPLEMENT_ASN1_FUNCTIONS(SignatureData) |
520 |
+ IMPLEMENT_ASN1_FUNCTIONS(CryptoData) |
521 |
+ |
522 |
+-#if defined(DEFINE_STACK_OF) |
523 |
++#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) ) |
524 |
+ DEFINE_STACK_OF(SignerInfo); |
525 |
+ DEFINE_STACK_OF(RecipientInfo); |
526 |
+ #else |