Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/bacula/files/7.2.0/, app-backup/bacula/files/9.0.2/, ...
Date: Sat, 11 May 2019 10:43:56
Message-Id: 1557571409.e49b21dc82a2abd386c1955242d7a51e8de79ed3.tomjbe@gentoo
1 commit: e49b21dc82a2abd386c1955242d7a51e8de79ed3
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 10:43:29 2019 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 10:43:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e49b21dc
7
8 app-backup/bacula: Drop old
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
12
13 app-backup/bacula/Manifest | 2 -
14 app-backup/bacula/bacula-9.0.6-r4.ebuild | 436 --------------------
15 app-backup/bacula/bacula-9.2.1.ebuild | 440 ---------------------
16 app-backup/bacula/bacula-9.2.2.ebuild | 440 ---------------------
17 .../files/7.2.0/bacula-7.2.0-fix-static.patch | 56 ---
18 .../files/9.0.2/bacula-9.0.2-fix-static.patch | 63 ---
19 .../bacula-9.0.6-fix-pages-h-qt-includes.patch | 15 -
20 7 files changed, 1452 deletions(-)
21
22 diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest
23 index c935ac838f9..b8e11e5a2ab 100644
24 --- a/app-backup/bacula/Manifest
25 +++ b/app-backup/bacula/Manifest
26 @@ -1,7 +1,5 @@
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 DIST bacula-9.2.2.tar.gz 4115575 BLAKE2B affc6efa3543836690e3d89eb37faa2d5066344308dc29a22c491374f04a2fd00bedb57a869d0bcf8a0f58d806bc9f9b9381330c22984ddb4d5acd97b757d2c8 SHA512 390ac0ad205c3694fe02c6842740b188bde0be469d0a9b89388d3f75746c7cca6a536a2386e06a5069c84863f28dae3449250ff71e63b9ff14e8f7b074df1708
32 DIST bacula-9.4.1.tar.gz 4162956 BLAKE2B f3fdd2ab64dc4fe50210d83a80ce16f36996f6d23bb67326e8bcee97ae9fd83b2dc8a96eabcd86c522c5e1ca5b8923110e97c03be953427a5c5f59140fdea332 SHA512 5e05a939c5f457a121879a6108ce2ac6403dde556b415af4e5013e4f100cf4d878f3d468fd680fa1633a4c8d6ce3d7a6ed351a1600ef780166cd4be9b70191ee
33 DIST bacula-9.4.2.tar.gz 4163642 BLAKE2B 5b12b44749186fbcd0da4eb97fca304cc8a0152cff87dd9dcf7058452a853a8a58208537496978a213067691cecaa5626e21d3a94438981e12f028a6157d3fb8 SHA512 f8c8f4c788ced1ab846e02656a0a1d9d1b65fe57ae0b888780167ac7e9272e8ca624ef5c41bd44a7454cf518c8e451c2201970b3e4862a99b4290a377da40b0d
34
35 diff --git a/app-backup/bacula/bacula-9.0.6-r4.ebuild b/app-backup/bacula/bacula-9.0.6-r4.ebuild
36 deleted file mode 100644
37 index f67ebadf714..00000000000
38 --- a/app-backup/bacula/bacula-9.0.6-r4.ebuild
39 +++ /dev/null
40 @@ -1,436 +0,0 @@
41 -# Copyright 1999-2019 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI="6"
45 -
46 -inherit qmake-utils desktop systemd user libtool
47 -
48 -MY_PV=${PV/_beta/-b}
49 -MY_P=${PN}-${MY_PV}
50 -
51 -DESCRIPTION="Featureful client/server network backup suite"
52 -HOMEPAGE="https://www.bacula.org/"
53 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
54 -
55 -LICENSE="AGPL-3"
56 -SLOT="0"
57 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
58 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
59 -
60 -DEPEND="
61 - dev-libs/gmp:0
62 - !bacula-clientonly? (
63 - postgres? ( dev-db/postgresql:=[threads] )
64 - mysql? ( dev-db/mysql-connector-c:= )
65 - sqlite? ( dev-db/sqlite:3 )
66 - !bacula-nodir? ( virtual/mta )
67 - )
68 - qt5? (
69 - dev-qt/qtsvg:5
70 - x11-libs/qwt:6
71 - )
72 - logwatch? ( sys-apps/logwatch )
73 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
74 - readline? ( sys-libs/readline:0 )
75 - static? (
76 - acl? ( virtual/acl[static-libs] )
77 - sys-libs/zlib[static-libs]
78 - dev-libs/lzo[static-libs]
79 - sys-libs/ncurses:=[static-libs]
80 - ssl? (
81 - !libressl? ( dev-libs/openssl:0=[static-libs] )
82 - libressl? ( dev-libs/libressl:0=[static-libs] )
83 - )
84 - )
85 - !static? (
86 - acl? ( virtual/acl )
87 - sys-libs/zlib
88 - dev-libs/lzo
89 - sys-libs/ncurses:=
90 - ssl? (
91 - !libressl? ( dev-libs/openssl:0= )
92 - libressl? ( dev-libs/libressl:0= )
93 - )
94 - )"
95 -RDEPEND="${DEPEND}
96 - !bacula-clientonly? (
97 - !bacula-nosd? (
98 - sys-block/mtx
99 - app-arch/mt-st
100 - )
101 - )
102 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
103 -
104 -REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
105 - static? ( bacula-clientonly )"
106 -
107 -S=${WORKDIR}/${MY_P}
108 -
109 -pkg_setup() {
110 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
111 - use mysql && export mydbtype="mysql"
112 - use postgres && export mydbtype="postgresql"
113 - use sqlite && export mydbtype="sqlite3"
114 -
115 - # create the daemon group and user
116 - if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
117 - enewgroup bacula
118 - einfo
119 - einfo "The group 'bacula' has been created. Any users you add to this"
120 - einfo "group have access to files created by the daemons."
121 - einfo
122 - fi
123 -
124 - if use bacula-clientonly && use static && use qt5; then
125 - ewarn
126 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
127 - ewarn
128 - fi
129 -
130 - if ! use bacula-clientonly; then
131 - if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
132 - enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
133 - einfo
134 - einfo "The user 'bacula' has been created. Please see the bacula manual"
135 - einfo "for information about running bacula as a non-root user."
136 - einfo
137 - fi
138 - fi
139 -}
140 -
141 -src_prepare() {
142 - # adjusts default configuration files for several binaries
143 - # to /etc/bacula/<config> instead of ./<config>
144 - pushd src >&/dev/null || die
145 - for f in console/console.c dird/dird.c filed/filed.c \
146 - stored/bcopy.c stored/bextract.c stored/bls.c \
147 - stored/bscan.c stored/btape.c stored/stored.c \
148 - qt-console/main.cpp; do
149 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
150 - || die "sed on ${f} failed"
151 - done
152 - popd >&/dev/null || die
153 -
154 - # bug 466688 drop deprecated categories from Desktop file
155 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
156 -
157 - # bug 466690 Use CXXFLAGS instead of CFLAGS
158 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
159 -
160 - # drop automatic install of unneeded documentation (for bug 356499)
161 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
162 -
163 - # bug #310087
164 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
165 -
166 - # bug #311161
167 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
168 -
169 - # bat needs to respect LDFLAGS and CFLAGS
170 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
171 -
172 - # bug #328701
173 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
174 -
175 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-fix-static.patch
176 -
177 - # fix soname in libbaccat.so bug #602952
178 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
179 -
180 - # do not strip binaries
181 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
182 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
183 -
184 - # fix file not found error during make depend
185 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
186 -
187 - # fix missing QtGlobal include in src/qt-console/pages.h for Qt5
188 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-fix-pages-h-qt-includes.patch
189 - eapply_user
190 -
191 - # Fix systemd unit files:
192 - # bug 497748
193 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
194 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
195 - # bug 504370
196 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
197 - # bug 584442 and 504368
198 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
199 -
200 - # build 'bat' for Qt5
201 - export QMAKE="$(qt5_get_bindir)"/qmake
202 -
203 - # adapt to >=Qt-5.9 (see bug #644566)
204 - # qmake needs an existing target file to generate install instructions
205 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
206 - src/qt-console/bat.pro.in || die
207 - mkdir src/qt-console/.libs || die
208 - touch src/qt-console/.libs/bat || die
209 - chmod 755 src/qt-console/.libs/bat || die
210 -
211 - # fix wrong handling of libressl version
212 - # needs separate handling for <libressl-2.7 and >=libressl2.7
213 - # (see bug #655520)
214 - if has_version "<dev-libs/libressl-2.7"; then
215 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl26.patch
216 - else
217 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl27.patch
218 - fi
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 - if use mysql; then
246 - myconf="${myconf} \
247 - --disable-batch-insert"
248 - else
249 - myconf="${myconf} \
250 - --enable-batch-insert"
251 - fi
252 - fi
253 -
254 - # do not build bat if 'static' clientonly
255 - if ! use bacula-clientonly || ! use static; then
256 - myconf="${myconf} \
257 - $(use_enable qt5 bat)"
258 - fi
259 -
260 - myconf="${myconf} \
261 - $(use_with X x) \
262 - $(use_enable !readline conio) \
263 - $(use_enable readline) \
264 - $(use_with readline readline /usr) \
265 - $(use_with ssl openssl) \
266 - $(use_enable ipv6) \
267 - $(use_enable acl) \
268 - $(use_with tcpd tcp-wrappers)"
269 -
270 - econf \
271 - --libdir=/usr/$(get_libdir) \
272 - --docdir=/usr/share/doc/${PF} \
273 - --htmldir=/usr/share/doc/${PF}/html \
274 - --with-pid-dir=/var/run \
275 - --sysconfdir=/etc/bacula \
276 - --with-subsys-dir=/var/lock/subsys \
277 - --with-working-dir=/var/lib/bacula \
278 - --with-logdir=/var/lib/bacula \
279 - --with-scriptdir=/usr/libexec/bacula \
280 - --with-systemd=$(systemd_get_systemunitdir) \
281 - --with-dir-user=bacula \
282 - --with-dir-group=bacula \
283 - --with-sd-user=root \
284 - --with-sd-group=bacula \
285 - --with-fd-user=root \
286 - --with-fd-group=bacula \
287 - --enable-smartalloc \
288 - --disable-afs \
289 - --host=${CHOST} \
290 - ${myconf}
291 -}
292 -
293 -src_compile() {
294 - # Make build log verbose (bug #447806)
295 - emake NO_ECHO=""
296 -}
297 -
298 -src_install() {
299 - emake DESTDIR="${D}" install
300 - doicon scripts/bacula.png
301 -
302 - # install bat icon and desktop file when enabled
303 - # (for some reason ./configure doesn't pick this up)
304 - if use qt5 && ! use static ; then
305 - doicon src/qt-console/images/bat_icon.png
306 - domenu scripts/bat.desktop
307 - fi
308 -
309 - # remove some scripts we don't need at all
310 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
311 -
312 - # rename statically linked apps
313 - if use bacula-clientonly && use static ; then
314 - pushd "${D}"/usr/sbin || die
315 - mv static-bacula-fd bacula-fd || die
316 - mv static-bconsole bconsole || die
317 - popd || die
318 - fi
319 -
320 - # extra files which 'make install' doesn't cover
321 - if ! use bacula-clientonly; then
322 - # the database update scripts
323 - diropts -m0750
324 - insinto /usr/libexec/bacula/updatedb
325 - insopts -m0754
326 - doins "${S}"/updatedb/*
327 - fperms 0640 /usr/libexec/bacula/updatedb/README
328 -
329 - # the logrotate configuration
330 - # (now unconditional wrt bug #258187)
331 - diropts -m0755
332 - insinto /etc/logrotate.d
333 - insopts -m0644
334 - newins "${S}"/scripts/logrotate bacula
335 -
336 - # the logwatch scripts
337 - if use logwatch; then
338 - diropts -m0750
339 - dodir /usr/share/logwatch/scripts/services
340 - dodir /usr/share/logwatch/scripts/shared
341 - dodir /etc/logwatch/conf/logfiles
342 - dodir /etc/logwatch/conf/services
343 - pushd "${S}"/scripts/logwatch >&/dev/null || die
344 - emake DESTDIR="${D}" install
345 - popd >&/dev/null || die
346 - fi
347 - fi
348 -
349 - if ! use qt5; then
350 - rm -vf "${D}"/usr/share/man/man1/bat.1*
351 - fi
352 - rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
353 - if use bacula-clientonly || use bacula-nodir; then
354 - rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
355 - rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
356 - rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
357 - rm -vf "${D}"/usr/libexec/bacula/create_*_database
358 - rm -vf "${D}"/usr/libexec/bacula/drop_*_database
359 - rm -vf "${D}"/usr/libexec/bacula/make_*_tables
360 - rm -vf "${D}"/usr/libexec/bacula/update_*_tables
361 - rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
362 - rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
363 - rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
364 - fi
365 - if use bacula-clientonly || use bacula-nosd; then
366 - rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
367 - rm -vf "${D}"/usr/share/man/man8/bcopy.8*
368 - rm -vf "${D}"/usr/share/man/man8/bextract.8*
369 - rm -vf "${D}"/usr/share/man/man8/bls.8*
370 - rm -vf "${D}"/usr/share/man/man8/bscan.8*
371 - rm -vf "${D}"/usr/share/man/man8/btape.8*
372 - rm -vf "${D}"/usr/libexec/bacula/disk-changer
373 - rm -vf "${D}"/usr/libexec/bacula/mtx-changer
374 - rm -vf "${D}"/usr/libexec/bacula/dvd-handler
375 - fi
376 -
377 - # documentation
378 - dodoc ChangeLog ReleaseNotes SUPPORT
379 -
380 - # install examples (bug #457504)
381 - if use examples; then
382 - docinto examples/
383 - dodoc -r examples/*
384 - fi
385 -
386 - # vim-files
387 - if use vim-syntax; then
388 - insinto /usr/share/vim/vimfiles/syntax
389 - doins scripts/bacula.vim
390 - insinto /usr/share/vim/vimfiles/ftdetect
391 - newins scripts/filetype.vim bacula_ft.vim
392 - fi
393 -
394 - # setup init scripts
395 - myscripts="bacula-fd"
396 - if ! use bacula-clientonly; then
397 - if ! use bacula-nodir; then
398 - myscripts="${myscripts} bacula-dir"
399 - fi
400 - if ! use bacula-nosd; then
401 - myscripts="${myscripts} bacula-sd"
402 - fi
403 - fi
404 - for script in ${myscripts}; do
405 - # copy over init script and config to a temporary location
406 - # so we can modify them as needed
407 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
408 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
409 -
410 - # now set the database dependancy for the director init script
411 - case "${script}" in
412 - bacula-dir)
413 - case "${mydbtype}" in
414 - sqlite3)
415 - # sqlite databases don't have a daemon
416 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
417 - ;;
418 - *)
419 - # all other databases have daemons
420 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
421 - ;;
422 - esac
423 - ;;
424 - *)
425 - ;;
426 - esac
427 -
428 - # install init script and config
429 - newinitd "${T}/${script}".initd "${script}"
430 - newconfd "${T}/${script}".confd "${script}"
431 - done
432 -
433 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
434 -
435 - # make sure the working directory exists
436 - diropts -m0750
437 - keepdir /var/lib/bacula
438 -
439 - # make sure bacula group can execute bacula libexec scripts
440 - fowners -R root:bacula /usr/libexec/bacula
441 -}
442 -
443 -pkg_postinst() {
444 - if use bacula-clientonly; then
445 - fowners root:bacula /var/lib/bacula
446 - else
447 - fowners bacula:bacula /var/lib/bacula
448 - fi
449 -
450 - if ! use bacula-clientonly && ! use bacula-nodir; then
451 - einfo
452 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
453 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
454 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
455 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
456 - einfo
457 -
458 - ewarn "ATTENTION!"
459 - ewarn "The format of the database may have changed."
460 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
461 - ewarn "'update_bacula_tables' now."
462 - ewarn "Make sure to have a backup of your catalog before."
463 - ewarn
464 - fi
465 -
466 - if use sqlite; then
467 - einfo
468 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
469 - einfo "Best use it only for a client-only installation. See Bug #445540."
470 - einfo
471 - fi
472 -
473 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
474 - einfo "you have to enable 'USE=qt5'."
475 - einfo
476 -}
477
478 diff --git a/app-backup/bacula/bacula-9.2.1.ebuild b/app-backup/bacula/bacula-9.2.1.ebuild
479 deleted file mode 100644
480 index 7078d302e01..00000000000
481 --- a/app-backup/bacula/bacula-9.2.1.ebuild
482 +++ /dev/null
483 @@ -1,440 +0,0 @@
484 -# Copyright 1999-2019 Gentoo Authors
485 -# Distributed under the terms of the GNU General Public License v2
486 -
487 -EAPI=6
488 -
489 -inherit desktop libtool qmake-utils systemd user
490 -
491 -MY_PV=${PV/_beta/-b}
492 -MY_P=${PN}-${MY_PV}
493 -
494 -DESCRIPTION="Featureful client/server network backup suite"
495 -HOMEPAGE="https://www.bacula.org/"
496 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
497 -
498 -LICENSE="AGPL-3"
499 -SLOT="0"
500 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
501 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
502 -
503 -DEPEND="
504 - !bacula-clientonly? (
505 - !bacula-nodir? ( virtual/mta )
506 - postgres? ( dev-db/postgresql:=[threads] )
507 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
508 - sqlite? ( dev-db/sqlite:3 )
509 - )
510 - dev-libs/gmp:0
511 - qt5? (
512 - dev-qt/qtsvg:5
513 - x11-libs/qwt:6
514 - )
515 - logwatch? ( sys-apps/logwatch )
516 - readline? ( sys-libs/readline:0 )
517 - static? (
518 - dev-libs/lzo[static-libs]
519 - sys-libs/ncurses:=[static-libs]
520 - sys-libs/zlib[static-libs]
521 - acl? ( virtual/acl[static-libs] )
522 - ssl? (
523 - !libressl? ( dev-libs/openssl:0=[static-libs] )
524 - libressl? ( dev-libs/libressl:0=[static-libs] )
525 - )
526 - )
527 - !static? (
528 - dev-libs/lzo
529 - sys-libs/ncurses:=
530 - sys-libs/zlib
531 - acl? ( virtual/acl )
532 - ssl? (
533 - !libressl? ( dev-libs/openssl:0= )
534 - libressl? ( dev-libs/libressl:0= )
535 - )
536 - )
537 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
538 -"
539 -RDEPEND="${DEPEND}
540 - !bacula-clientonly? (
541 - !bacula-nosd? (
542 - app-arch/mt-st
543 - sys-block/mtx
544 - )
545 - )
546 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
547 -"
548 -
549 -REQUIRED_USE="
550 - !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
551 - static? ( bacula-clientonly )
552 -"
553 -
554 -S=${WORKDIR}/${MY_P}
555 -
556 -pkg_setup() {
557 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
558 - use mysql && export mydbtype="mysql"
559 - use postgres && export mydbtype="postgresql"
560 - use sqlite && export mydbtype="sqlite3"
561 -
562 - # create the daemon group and user
563 - if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
564 - enewgroup bacula
565 - einfo
566 - einfo "The group 'bacula' has been created. Any users you add to this"
567 - einfo "group have access to files created by the daemons."
568 - einfo
569 - fi
570 -
571 - if use bacula-clientonly && use static && use qt5; then
572 - ewarn
573 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
574 - ewarn
575 - fi
576 -
577 - if ! use bacula-clientonly; then
578 - if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
579 - enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
580 - einfo
581 - einfo "The user 'bacula' has been created. Please see the bacula manual"
582 - einfo "for information about running bacula as a non-root user."
583 - einfo
584 - fi
585 - fi
586 -}
587 -
588 -src_prepare() {
589 - # adjusts default configuration files for several binaries
590 - # to /etc/bacula/<config> instead of ./<config>
591 - pushd src >&/dev/null || die
592 - for f in console/console.c dird/dird.c filed/filed.c \
593 - stored/bcopy.c stored/bextract.c stored/bls.c \
594 - stored/bscan.c stored/btape.c stored/stored.c \
595 - qt-console/main.cpp; do
596 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
597 - || die "sed on ${f} failed"
598 - done
599 - popd >&/dev/null || die
600 -
601 - # bug 466688 drop deprecated categories from Desktop file
602 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
603 -
604 - # bug 466690 Use CXXFLAGS instead of CFLAGS
605 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
606 -
607 - # drop automatic install of unneeded documentation (for bug 356499)
608 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
609 -
610 - # bug #310087
611 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
612 -
613 - # bug #311161
614 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
615 -
616 - # bat needs to respect LDFLAGS and CFLAGS
617 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
618 -
619 - # bug #328701
620 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
621 -
622 - eapply -p0 "${FILESDIR}"/9.0.8/${PN}-9.0.8-fix-static.patch
623 -
624 - # fix soname in libbaccat.so bug #602952
625 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
626 -
627 - # do not strip binaries
628 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
629 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
630 -
631 - # fix file not found error during make depend
632 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
633 -
634 - eapply_user
635 -
636 - # Fix systemd unit files:
637 - # bug 497748
638 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
639 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
640 - # bug 504370
641 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
642 - # bug 584442 and 504368
643 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
644 -
645 - # build 'bat' for Qt5
646 - export QMAKE="$(qt5_get_bindir)"/qmake
647 -
648 - # adapt to >=Qt-5.9 (see bug #644566)
649 - # qmake needs an existing target file to generate install instructions
650 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
651 - src/qt-console/bat.pro.in || die
652 - mkdir src/qt-console/.libs || die
653 - touch src/qt-console/.libs/bat || die
654 - chmod 755 src/qt-console/.libs/bat || die
655 -
656 - # fix wrong handling of libressl version
657 - # needs separate handling for <libressl-2.7 and >=libressl2.7
658 - # (see bug #655520)
659 - if has_version "<dev-libs/libressl-2.7"; then
660 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl26.patch
661 - else
662 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl27.patch
663 - fi
664 -
665 - # Don't let program instal man pages directly
666 - rm "${S}"/manpages/Makefile.in || die "Unable to remove man pages Makefile.in"
667 - eapply -p1 "${FILESDIR}/bacula-fix-manpages.patch"
668 -
669 - # fix bundled libtool (bug 466696)
670 - # But first move directory with M4 macros out of the way.
671 - # It is only needed by autoconf and gives errors during elibtoolize.
672 - mv autoconf/libtool autoconf/libtool1 || die
673 - elibtoolize
674 -}
675 -
676 -src_configure() {
677 - local myconf=''
678 -
679 - if use bacula-clientonly; then
680 - myconf="${myconf} \
681 - $(use_enable bacula-clientonly client-only) \
682 - $(use_enable !static libtool) \
683 - $(use_enable static static-cons) \
684 - $(use_enable static static-fd)"
685 - else
686 - myconf="${myconf} \
687 - $(use_enable !bacula-nodir build-dird) \
688 - $(use_enable !bacula-nosd build-stored)"
689 - # bug #311099
690 - # database support needed by dir-only *and* sd-only
691 - # build as well (for building bscan, btape, etc.)
692 - myconf="${myconf}
693 - --with-${mydbtype}"
694 - if use mysql; then
695 - myconf="${myconf} \
696 - --disable-batch-insert"
697 - else
698 - myconf="${myconf} \
699 - --enable-batch-insert"
700 - fi
701 - fi
702 -
703 - # do not build bat if 'static' clientonly
704 - if ! use bacula-clientonly || ! use static; then
705 - myconf="${myconf} \
706 - $(use_enable qt5 bat)"
707 - fi
708 -
709 - myconf="${myconf} \
710 - $(use_with X x) \
711 - $(use_enable !readline conio) \
712 - $(use_enable readline) \
713 - $(use_with readline readline /usr) \
714 - $(use_with ssl openssl) \
715 - $(use_enable ipv6) \
716 - $(use_enable acl) \
717 - $(use_with tcpd tcp-wrappers)"
718 -
719 - econf \
720 - --libdir=/usr/$(get_libdir) \
721 - --docdir=/usr/share/doc/${PF} \
722 - --htmldir=/usr/share/doc/${PF}/html \
723 - --with-pid-dir=/var/run \
724 - --sysconfdir=/etc/bacula \
725 - --with-archivedir=/var/lib/bacula/tmp \
726 - --with-subsys-dir=/var/lock/subsys \
727 - --with-working-dir=/var/lib/bacula \
728 - --with-logdir=/var/lib/bacula \
729 - --with-scriptdir=/usr/libexec/bacula \
730 - --with-systemd=$(systemd_get_systemunitdir) \
731 - --with-dir-user=bacula \
732 - --with-dir-group=bacula \
733 - --with-sd-user=root \
734 - --with-sd-group=bacula \
735 - --with-fd-user=root \
736 - --with-fd-group=bacula \
737 - --enable-smartalloc \
738 - --disable-afs \
739 - --host=${CHOST} \
740 - ${myconf}
741 -}
742 -
743 -src_compile() {
744 - # Make build log verbose (bug #447806)
745 - emake NO_ECHO=""
746 -}
747 -
748 -src_install() {
749 - emake DESTDIR="${D}" install
750 - doicon scripts/bacula.png
751 -
752 - # install bat icon and desktop file when enabled
753 - # (for some reason ./configure doesn't pick this up)
754 - if use qt5 && ! use static ; then
755 - doicon src/qt-console/images/bat_icon.png
756 - domenu scripts/bat.desktop
757 - fi
758 -
759 - # remove some scripts we don't need at all
760 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
761 -
762 - # rename statically linked apps
763 - if use bacula-clientonly && use static ; then
764 - pushd "${D}"/usr/sbin || die
765 - mv static-bacula-fd bacula-fd || die
766 - mv static-bconsole bconsole || die
767 - popd || die
768 - fi
769 -
770 - # extra files which 'make install' doesn't cover
771 - if ! use bacula-clientonly; then
772 - # the database update scripts
773 - diropts -m0750
774 - insinto /usr/libexec/bacula/updatedb
775 - insopts -m0754
776 - doins "${S}"/updatedb/*
777 - fperms 0640 /usr/libexec/bacula/updatedb/README
778 -
779 - # the logrotate configuration
780 - # (now unconditional wrt bug #258187)
781 - diropts -m0755
782 - insinto /etc/logrotate.d
783 - insopts -m0644
784 - newins "${S}"/scripts/logrotate bacula
785 -
786 - # the logwatch scripts
787 - if use logwatch; then
788 - diropts -m0750
789 - dodir /usr/share/logwatch/scripts/services
790 - dodir /usr/share/logwatch/scripts/shared
791 - dodir /etc/logwatch/conf/logfiles
792 - dodir /etc/logwatch/conf/services
793 - pushd "${S}"/scripts/logwatch >&/dev/null || die
794 - emake DESTDIR="${D}" install
795 - popd >&/dev/null || die
796 - fi
797 - fi
798 -
799 - if ! use qt5; then
800 - rm -vf "${D}"/usr/share/man/man1/bat.1*
801 - fi
802 - rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
803 -
804 - if use bacula-clientonly || use bacula-nodir ; then
805 - rm -vf "${D}"/usr/libexec/bacula/create_*_database
806 - rm -vf "${D}"/usr/libexec/bacula/drop_*_database
807 - rm -vf "${D}"/usr/libexec/bacula/make_*_tables
808 - rm -vf "${D}"/usr/libexec/bacula/update_*_tables
809 - rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
810 - rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
811 - rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
812 - fi
813 - if use bacula-clientonly || use bacula-nosd; then
814 - rm -vf "${D}"/usr/libexec/bacula/disk-changer
815 - rm -vf "${D}"/usr/libexec/bacula/mtx-changer
816 - rm -vf "${D}"/usr/libexec/bacula/dvd-handler
817 - fi
818 -
819 - # documentation
820 - dodoc ChangeLog ReleaseNotes SUPPORT
821 -
822 - # Install all man pages
823 - doman "${S}"/manpages/*
824 -
825 - # install examples (bug #457504)
826 - if use examples; then
827 - docinto examples/
828 - dodoc -r examples/*
829 - fi
830 -
831 - # vim-files
832 - if use vim-syntax; then
833 - insinto /usr/share/vim/vimfiles/syntax
834 - doins scripts/bacula.vim
835 - insinto /usr/share/vim/vimfiles/ftdetect
836 - newins scripts/filetype.vim bacula_ft.vim
837 - fi
838 -
839 - # setup init scripts
840 - myscripts="bacula-fd"
841 - if ! use bacula-clientonly; then
842 - if ! use bacula-nodir; then
843 - myscripts="${myscripts} bacula-dir"
844 - fi
845 - if ! use bacula-nosd; then
846 - myscripts="${myscripts} bacula-sd"
847 - fi
848 - fi
849 - for script in ${myscripts}; do
850 - # copy over init script and config to a temporary location
851 - # so we can modify them as needed
852 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
853 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
854 -
855 - # now set the database dependancy for the director init script
856 - case "${script}" in
857 - bacula-dir)
858 - case "${mydbtype}" in
859 - sqlite3)
860 - # sqlite databases don't have a daemon
861 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
862 - ;;
863 - *)
864 - # all other databases have daemons
865 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
866 - ;;
867 - esac
868 - ;;
869 - *)
870 - ;;
871 - esac
872 -
873 - # install init script and config
874 - newinitd "${T}/${script}".initd "${script}"
875 - newconfd "${T}/${script}".confd "${script}"
876 - done
877 -
878 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
879 -
880 - # make sure the working directory exists
881 - diropts -m0750
882 - keepdir /var/lib/bacula
883 -
884 - # make sure bacula group can execute bacula libexec scripts
885 - fowners -R root:bacula /usr/libexec/bacula
886 -}
887 -
888 -pkg_postinst() {
889 - if use bacula-clientonly; then
890 - fowners root:bacula /var/lib/bacula
891 - else
892 - fowners bacula:bacula /var/lib/bacula
893 - fi
894 -
895 - if ! use bacula-clientonly && ! use bacula-nodir; then
896 - einfo
897 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
898 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
899 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
900 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
901 - einfo
902 -
903 - ewarn "ATTENTION!"
904 - ewarn "The format of the database may have changed."
905 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
906 - ewarn "'update_bacula_tables' now."
907 - ewarn "Make sure to have a backup of your catalog before."
908 - ewarn
909 - fi
910 -
911 - if use sqlite; then
912 - einfo
913 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
914 - einfo "Best use it only for a client-only installation. See Bug #445540."
915 - einfo
916 - fi
917 -
918 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
919 - einfo "you have to enable 'USE=qt5'."
920 - einfo
921 - einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
922 - einfo "restores, so be sure to set it to an appropriate dir in the bacula config."
923 -}
924
925 diff --git a/app-backup/bacula/bacula-9.2.2.ebuild b/app-backup/bacula/bacula-9.2.2.ebuild
926 deleted file mode 100644
927 index df22d058de9..00000000000
928 --- a/app-backup/bacula/bacula-9.2.2.ebuild
929 +++ /dev/null
930 @@ -1,440 +0,0 @@
931 -# Copyright 1999-2019 Gentoo Authors
932 -# Distributed under the terms of the GNU General Public License v2
933 -
934 -EAPI=6
935 -
936 -inherit desktop libtool qmake-utils systemd user
937 -
938 -MY_PV=${PV/_beta/-b}
939 -MY_P=${PN}-${MY_PV}
940 -
941 -DESCRIPTION="Featureful client/server network backup suite"
942 -HOMEPAGE="https://www.bacula.org/"
943 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
944 -
945 -LICENSE="AGPL-3"
946 -SLOT="0"
947 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
948 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
949 -
950 -DEPEND="
951 - !bacula-clientonly? (
952 - !bacula-nodir? ( virtual/mta )
953 - postgres? ( dev-db/postgresql:=[threads] )
954 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
955 - sqlite? ( dev-db/sqlite:3 )
956 - )
957 - dev-libs/gmp:0
958 - qt5? (
959 - dev-qt/qtsvg:5
960 - x11-libs/qwt:6
961 - )
962 - logwatch? ( sys-apps/logwatch )
963 - readline? ( sys-libs/readline:0 )
964 - static? (
965 - dev-libs/lzo[static-libs]
966 - sys-libs/ncurses:=[static-libs]
967 - sys-libs/zlib[static-libs]
968 - acl? ( virtual/acl[static-libs] )
969 - ssl? (
970 - !libressl? ( dev-libs/openssl:0=[static-libs] )
971 - libressl? ( dev-libs/libressl:0=[static-libs] )
972 - )
973 - )
974 - !static? (
975 - dev-libs/lzo
976 - sys-libs/ncurses:=
977 - sys-libs/zlib
978 - acl? ( virtual/acl )
979 - ssl? (
980 - !libressl? ( dev-libs/openssl:0= )
981 - libressl? ( dev-libs/libressl:0= )
982 - )
983 - )
984 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
985 -"
986 -RDEPEND="${DEPEND}
987 - !bacula-clientonly? (
988 - !bacula-nosd? (
989 - app-arch/mt-st
990 - sys-block/mtx
991 - )
992 - )
993 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
994 -"
995 -
996 -REQUIRED_USE="
997 - !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
998 - static? ( bacula-clientonly )
999 -"
1000 -
1001 -S=${WORKDIR}/${MY_P}
1002 -
1003 -pkg_setup() {
1004 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
1005 - use mysql && export mydbtype="mysql"
1006 - use postgres && export mydbtype="postgresql"
1007 - use sqlite && export mydbtype="sqlite3"
1008 -
1009 - # create the daemon group and user
1010 - if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
1011 - enewgroup bacula
1012 - einfo
1013 - einfo "The group 'bacula' has been created. Any users you add to this"
1014 - einfo "group have access to files created by the daemons."
1015 - einfo
1016 - fi
1017 -
1018 - if use bacula-clientonly && use static && use qt5; then
1019 - ewarn
1020 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
1021 - ewarn
1022 - fi
1023 -
1024 - if ! use bacula-clientonly; then
1025 - if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
1026 - enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
1027 - einfo
1028 - einfo "The user 'bacula' has been created. Please see the bacula manual"
1029 - einfo "for information about running bacula as a non-root user."
1030 - einfo
1031 - fi
1032 - fi
1033 -}
1034 -
1035 -src_prepare() {
1036 - # adjusts default configuration files for several binaries
1037 - # to /etc/bacula/<config> instead of ./<config>
1038 - pushd src >&/dev/null || die
1039 - for f in console/console.c dird/dird.c filed/filed.c \
1040 - stored/bcopy.c stored/bextract.c stored/bls.c \
1041 - stored/bscan.c stored/btape.c stored/stored.c \
1042 - qt-console/main.cpp; do
1043 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
1044 - || die "sed on ${f} failed"
1045 - done
1046 - popd >&/dev/null || die
1047 -
1048 - # bug 466688 drop deprecated categories from Desktop file
1049 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
1050 -
1051 - # bug 466690 Use CXXFLAGS instead of CFLAGS
1052 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
1053 -
1054 - # drop automatic install of unneeded documentation (for bug 356499)
1055 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
1056 -
1057 - # bug #310087
1058 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
1059 -
1060 - # bug #311161
1061 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
1062 -
1063 - # bat needs to respect LDFLAGS and CFLAGS
1064 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
1065 -
1066 - # bug #328701
1067 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
1068 -
1069 - eapply -p0 "${FILESDIR}"/9.0.8/${PN}-9.0.8-fix-static.patch
1070 -
1071 - # fix soname in libbaccat.so bug #602952
1072 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
1073 -
1074 - # do not strip binaries
1075 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
1076 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
1077 -
1078 - # fix file not found error during make depend
1079 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
1080 -
1081 - eapply_user
1082 -
1083 - # Fix systemd unit files:
1084 - # bug 497748
1085 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
1086 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
1087 - # bug 504370
1088 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
1089 - # bug 584442 and 504368
1090 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
1091 -
1092 - # build 'bat' for Qt5
1093 - export QMAKE="$(qt5_get_bindir)"/qmake
1094 -
1095 - # adapt to >=Qt-5.9 (see bug #644566)
1096 - # qmake needs an existing target file to generate install instructions
1097 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
1098 - src/qt-console/bat.pro.in || die
1099 - mkdir src/qt-console/.libs || die
1100 - touch src/qt-console/.libs/bat || die
1101 - chmod 755 src/qt-console/.libs/bat || die
1102 -
1103 - # fix wrong handling of libressl version
1104 - # needs separate handling for <libressl-2.7 and >=libressl2.7
1105 - # (see bug #655520)
1106 - if has_version "<dev-libs/libressl-2.7"; then
1107 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl26.patch
1108 - else
1109 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-libressl27.patch
1110 - fi
1111 -
1112 - # Don't let program instal man pages directly
1113 - rm "${S}"/manpages/Makefile.in || die "Unable to remove man pages Makefile.in"
1114 - eapply -p1 "${FILESDIR}/bacula-fix-manpages.patch"
1115 -
1116 - # fix bundled libtool (bug 466696)
1117 - # But first move directory with M4 macros out of the way.
1118 - # It is only needed by autoconf and gives errors during elibtoolize.
1119 - mv autoconf/libtool autoconf/libtool1 || die
1120 - elibtoolize
1121 -}
1122 -
1123 -src_configure() {
1124 - local myconf=''
1125 -
1126 - if use bacula-clientonly; then
1127 - myconf="${myconf} \
1128 - $(use_enable bacula-clientonly client-only) \
1129 - $(use_enable !static libtool) \
1130 - $(use_enable static static-cons) \
1131 - $(use_enable static static-fd)"
1132 - else
1133 - myconf="${myconf} \
1134 - $(use_enable !bacula-nodir build-dird) \
1135 - $(use_enable !bacula-nosd build-stored)"
1136 - # bug #311099
1137 - # database support needed by dir-only *and* sd-only
1138 - # build as well (for building bscan, btape, etc.)
1139 - myconf="${myconf}
1140 - --with-${mydbtype}"
1141 - if use mysql; then
1142 - myconf="${myconf} \
1143 - --disable-batch-insert"
1144 - else
1145 - myconf="${myconf} \
1146 - --enable-batch-insert"
1147 - fi
1148 - fi
1149 -
1150 - # do not build bat if 'static' clientonly
1151 - if ! use bacula-clientonly || ! use static; then
1152 - myconf="${myconf} \
1153 - $(use_enable qt5 bat)"
1154 - fi
1155 -
1156 - myconf="${myconf} \
1157 - $(use_with X x) \
1158 - $(use_enable !readline conio) \
1159 - $(use_enable readline) \
1160 - $(use_with readline readline /usr) \
1161 - $(use_with ssl openssl) \
1162 - $(use_enable ipv6) \
1163 - $(use_enable acl) \
1164 - $(use_with tcpd tcp-wrappers)"
1165 -
1166 - econf \
1167 - --libdir=/usr/$(get_libdir) \
1168 - --docdir=/usr/share/doc/${PF} \
1169 - --htmldir=/usr/share/doc/${PF}/html \
1170 - --with-pid-dir=/var/run \
1171 - --sysconfdir=/etc/bacula \
1172 - --with-archivedir=/var/lib/bacula/tmp \
1173 - --with-subsys-dir=/var/lock/subsys \
1174 - --with-working-dir=/var/lib/bacula \
1175 - --with-logdir=/var/lib/bacula \
1176 - --with-scriptdir=/usr/libexec/bacula \
1177 - --with-systemd=$(systemd_get_systemunitdir) \
1178 - --with-dir-user=bacula \
1179 - --with-dir-group=bacula \
1180 - --with-sd-user=root \
1181 - --with-sd-group=bacula \
1182 - --with-fd-user=root \
1183 - --with-fd-group=bacula \
1184 - --enable-smartalloc \
1185 - --disable-afs \
1186 - --host=${CHOST} \
1187 - ${myconf}
1188 -}
1189 -
1190 -src_compile() {
1191 - # Make build log verbose (bug #447806)
1192 - emake NO_ECHO=""
1193 -}
1194 -
1195 -src_install() {
1196 - emake DESTDIR="${D}" install
1197 - doicon scripts/bacula.png
1198 -
1199 - # install bat icon and desktop file when enabled
1200 - # (for some reason ./configure doesn't pick this up)
1201 - if use qt5 && ! use static ; then
1202 - doicon src/qt-console/images/bat_icon.png
1203 - domenu scripts/bat.desktop
1204 - fi
1205 -
1206 - # remove some scripts we don't need at all
1207 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
1208 -
1209 - # rename statically linked apps
1210 - if use bacula-clientonly && use static ; then
1211 - pushd "${D}"/usr/sbin || die
1212 - mv static-bacula-fd bacula-fd || die
1213 - mv static-bconsole bconsole || die
1214 - popd || die
1215 - fi
1216 -
1217 - # extra files which 'make install' doesn't cover
1218 - if ! use bacula-clientonly; then
1219 - # the database update scripts
1220 - diropts -m0750
1221 - insinto /usr/libexec/bacula/updatedb
1222 - insopts -m0754
1223 - doins "${S}"/updatedb/*
1224 - fperms 0640 /usr/libexec/bacula/updatedb/README
1225 -
1226 - # the logrotate configuration
1227 - # (now unconditional wrt bug #258187)
1228 - diropts -m0755
1229 - insinto /etc/logrotate.d
1230 - insopts -m0644
1231 - newins "${S}"/scripts/logrotate bacula
1232 -
1233 - # the logwatch scripts
1234 - if use logwatch; then
1235 - diropts -m0750
1236 - dodir /usr/share/logwatch/scripts/services
1237 - dodir /usr/share/logwatch/scripts/shared
1238 - dodir /etc/logwatch/conf/logfiles
1239 - dodir /etc/logwatch/conf/services
1240 - pushd "${S}"/scripts/logwatch >&/dev/null || die
1241 - emake DESTDIR="${D}" install
1242 - popd >&/dev/null || die
1243 - fi
1244 - fi
1245 -
1246 - if ! use qt5; then
1247 - rm -vf "${D}"/usr/share/man/man1/bat.1*
1248 - fi
1249 - rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
1250 -
1251 - if use bacula-clientonly || use bacula-nodir ; then
1252 - rm -vf "${D}"/usr/libexec/bacula/create_*_database
1253 - rm -vf "${D}"/usr/libexec/bacula/drop_*_database
1254 - rm -vf "${D}"/usr/libexec/bacula/make_*_tables
1255 - rm -vf "${D}"/usr/libexec/bacula/update_*_tables
1256 - rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
1257 - rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
1258 - rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
1259 - fi
1260 - if use bacula-clientonly || use bacula-nosd; then
1261 - rm -vf "${D}"/usr/libexec/bacula/disk-changer
1262 - rm -vf "${D}"/usr/libexec/bacula/mtx-changer
1263 - rm -vf "${D}"/usr/libexec/bacula/dvd-handler
1264 - fi
1265 -
1266 - # documentation
1267 - dodoc ChangeLog ReleaseNotes SUPPORT
1268 -
1269 - # Install all man pages
1270 - doman "${S}"/manpages/*
1271 -
1272 - # install examples (bug #457504)
1273 - if use examples; then
1274 - docinto examples/
1275 - dodoc -r examples/*
1276 - fi
1277 -
1278 - # vim-files
1279 - if use vim-syntax; then
1280 - insinto /usr/share/vim/vimfiles/syntax
1281 - doins scripts/bacula.vim
1282 - insinto /usr/share/vim/vimfiles/ftdetect
1283 - newins scripts/filetype.vim bacula_ft.vim
1284 - fi
1285 -
1286 - # setup init scripts
1287 - myscripts="bacula-fd"
1288 - if ! use bacula-clientonly; then
1289 - if ! use bacula-nodir; then
1290 - myscripts="${myscripts} bacula-dir"
1291 - fi
1292 - if ! use bacula-nosd; then
1293 - myscripts="${myscripts} bacula-sd"
1294 - fi
1295 - fi
1296 - for script in ${myscripts}; do
1297 - # copy over init script and config to a temporary location
1298 - # so we can modify them as needed
1299 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
1300 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
1301 -
1302 - # now set the database dependancy for the director init script
1303 - case "${script}" in
1304 - bacula-dir)
1305 - case "${mydbtype}" in
1306 - sqlite3)
1307 - # sqlite databases don't have a daemon
1308 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
1309 - ;;
1310 - *)
1311 - # all other databases have daemons
1312 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
1313 - ;;
1314 - esac
1315 - ;;
1316 - *)
1317 - ;;
1318 - esac
1319 -
1320 - # install init script and config
1321 - newinitd "${T}/${script}".initd "${script}"
1322 - newconfd "${T}/${script}".confd "${script}"
1323 - done
1324 -
1325 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
1326 -
1327 - # make sure the working directory exists
1328 - diropts -m0750
1329 - keepdir /var/lib/bacula
1330 -
1331 - # make sure bacula group can execute bacula libexec scripts
1332 - fowners -R root:bacula /usr/libexec/bacula
1333 -}
1334 -
1335 -pkg_postinst() {
1336 - if use bacula-clientonly; then
1337 - fowners root:bacula /var/lib/bacula
1338 - else
1339 - fowners bacula:bacula /var/lib/bacula
1340 - fi
1341 -
1342 - if ! use bacula-clientonly && ! use bacula-nodir; then
1343 - einfo
1344 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
1345 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
1346 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
1347 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
1348 - einfo
1349 -
1350 - ewarn "ATTENTION!"
1351 - ewarn "The format of the database may have changed."
1352 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
1353 - ewarn "'update_bacula_tables' now."
1354 - ewarn "Make sure to have a backup of your catalog before."
1355 - ewarn
1356 - fi
1357 -
1358 - if use sqlite; then
1359 - einfo
1360 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
1361 - einfo "Best use it only for a client-only installation. See Bug #445540."
1362 - einfo
1363 - fi
1364 -
1365 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
1366 - einfo "you have to enable 'USE=qt5'."
1367 - einfo
1368 - einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
1369 - einfo "restores, so be sure to set it to an appropriate in dir in the bacula config."
1370 -}
1371
1372 diff --git a/app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch b/app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch
1373 deleted file mode 100644
1374 index faf0d065b90..00000000000
1375 --- a/app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch
1376 +++ /dev/null
1377 @@ -1,56 +0,0 @@
1378 ---- src/console/Makefile.in.orig 2011-10-30 14:10:41.100802721 -0400
1379 -+++ src/console/Makefile.in 2011-10-30 14:14:42.330488174 -0400
1380 -@@ -29,10 +29,11 @@
1381 - GETTEXT_LIBS = @LIBINTL@
1382 -
1383 - CONS_INC=@CONS_INC@
1384 - CONS_LIBS=@CONS_LIBS@
1385 - CONS_LDFLAGS=@CONS_LDFLAGS@
1386 -+ZLIBS=@ZLIBS@
1387 -
1388 - .SUFFIXES: .c .o
1389 - .PHONY:
1390 - .DONTCARE:
1391 -
1392 -@@ -46,17 +47,17 @@
1393 - @echo " "
1394 -
1395 -
1396 - bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1397 - $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1398 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1399 -- $(OPENSSL_LIBS)
1400 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1401 -+ $(OPENSSL_LIBS) $(LIBS)
1402 -
1403 - static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1404 - $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
1405 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1406 -- $(OPENSSL_LIBS)
1407 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1408 -+ $(OPENSSL_LIBS) $(LIBS) $(ZLIBS)
1409 - strip $@
1410 -
1411 -
1412 - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
1413 - cd $(topdir) \
1414 ---- src/filed/Makefile.in.orig 2015-09-04 12:47:13.000000000 +0200
1415 -+++ src/filed/Makefile.in 2015-09-04 12:49:39.000000000 +0200
1416 -@@ -66,13 +66,13 @@
1417 - bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
1418 - @echo "Linking $@ ..."
1419 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
1420 -- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1421 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1422 -+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1423 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1424 -
1425 - static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
1426 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
1427 -- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1428 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1429 -+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1430 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1431 - strip $@
1432 -
1433 - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
1434
1435 diff --git a/app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch b/app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch
1436 deleted file mode 100644
1437 index bf6630a74a2..00000000000
1438 --- a/app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch
1439 +++ /dev/null
1440 @@ -1,63 +0,0 @@
1441 ---- src/console/Makefile.in.orig 2017-07-25 19:03:05.664760298 +0200
1442 -+++ src/console/Makefile.in 2017-07-25 19:05:43.576706091 +0200
1443 -@@ -24,6 +24,7 @@
1444 - CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@
1445 - CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@
1446 - JSONOBJS = bbconsjson.o console_conf.o
1447 -+ZLIBS=@ZLIBS@
1448 -
1449 - # these are the objects that are changed by the .configure process
1450 - EXTRAOBJS = @OBJLIST@
1451 -@@ -50,18 +51,18 @@
1452 -
1453 - bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1454 - $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1455 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1456 -- $(OPENSSL_LIBS)
1457 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1458 -+ $(OPENSSL_LIBS) $(LIBS)
1459 -
1460 - bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1461 - $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
1462 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1463 -- $(OPENSSL_LIBS)
1464 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1465 -+ $(OPENSSL_LIBS) $(LIBS)
1466 -
1467 - static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1468 - $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1469 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1470 -- $(OPENSSL_LIBS)
1471 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1472 -+ $(OPENSSL_LIBS) $(LIBS)
1473 - strip $@
1474 -
1475 -
1476 ---- src/filed/Makefile.in.orig 2017-07-25 19:09:19.655852979 +0200
1477 -+++ src/filed/Makefile.in 2017-07-25 19:11:39.519558592 +0200
1478 -@@ -69,19 +69,19 @@
1479 - bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
1480 - @echo "Linking $@ ..."
1481 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
1482 -- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1483 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1484 -+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1485 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1486 -
1487 - bfdjson: Makefile $(JSONOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
1488 - @echo "Linking $@ ..."
1489 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(JSONOBJS) \
1490 -- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1491 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1492 -+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1493 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1494 -
1495 - static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
1496 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
1497 -- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1498 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1499 -+ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1500 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1501 - strip $@
1502 -
1503 - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
1504
1505 diff --git a/app-backup/bacula/files/9.0.6/bacula-9.0.6-fix-pages-h-qt-includes.patch b/app-backup/bacula/files/9.0.6/bacula-9.0.6-fix-pages-h-qt-includes.patch
1506 deleted file mode 100644
1507 index 9d6507c9c71..00000000000
1508 --- a/app-backup/bacula/files/9.0.6/bacula-9.0.6-fix-pages-h-qt-includes.patch
1509 +++ /dev/null
1510 @@ -1,15 +0,0 @@
1511 ---- src/qt-console/pages.h.orig 2017-11-21 12:37:16.000000000 -0500
1512 -+++ src/qt-console/pages.h 2018-02-07 13:11:46.223273248 -0500
1513 -@@ -20,10 +20,11 @@
1514 - */
1515 - /*
1516 - * Dirk Bartley, March 2007
1517 - */
1518 -
1519 -+#include <QtGlobal>
1520 - #if QT_VERSION >= 0x050000
1521 - #include <QtWidgets>
1522 - #else
1523 - #include <QtGui>
1524 - #endif
1525 -