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