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