Gentoo Archives: gentoo-commits

From: Quentin Retornaz <gentoo@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: app-backup/bacula/files/7.0.2/, app-backup/bacula/files/, app-backup/bacula/, ...
Date: Sun, 03 Jul 2022 17:47:35
Message-Id: 1656870419.3342582c19dbf125df378d57a91d7cebb1f47c52.quentin@gentoo
1 commit: 3342582c19dbf125df378d57a91d7cebb1f47c52
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Sat Jul 2 23:09:47 2022 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Sun Jul 3 17:46:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=3342582c
7
8 app-backup/bacula: Remove package
9
10 Works with libressl-3.5.x and bacula-11.0.5::gentoo.
11
12 Signed-off-by: orbea <orbea <AT> riseup.net>
13 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
14
15 app-backup/bacula/Manifest | 3 -
16 app-backup/bacula/bacula-9.6.5.ebuild | 422 ---------------------
17 app-backup/bacula/bacula-9.6.6.ebuild | 422 ---------------------
18 app-backup/bacula/bacula-9.6.7.ebuild | 422 ---------------------
19 .../files/5.2.3/bacula-5.2.3-as-needed.patch | 14 -
20 .../files/5.2.3/bacula-5.2.3-openssl-1.patch | 25 --
21 .../bacula/files/7.0.2/bacula-7.0.2-depend.patch | 12 -
22 .../bacula/files/7.2.0/bacula-7.2.0-doc.patch | 12 -
23 .../files/9.0.2/bacula-9.0.2-lib-search-path.patch | 25 --
24 .../bacula/files/9.0.6/bacula-9.0.6-bat-pro.patch | 21 -
25 .../files/9.4.0/bacula-9.4.0-libressl26.patch | 33 --
26 .../files/9.4.0/bacula-9.4.0-libressl27.patch | 11 -
27 .../files/9.6.3/bacula-9.6.3-fix-static.patch | 63 ---
28 app-backup/bacula/files/bacula-dir.confd | 16 -
29 app-backup/bacula/files/bacula-fd.confd | 7 -
30 app-backup/bacula/files/bacula-fix-sonames.patch | 36 --
31 app-backup/bacula/files/bacula-sd.confd | 10 -
32 .../bacula/files/newscripts/bacula-dir.initd | 15 -
33 app-backup/bacula/files/newscripts/bacula-fd.initd | 12 -
34 app-backup/bacula/files/newscripts/bacula-sd.initd | 11 -
35 app-backup/bacula/metadata.xml | 19 -
36 21 files changed, 1611 deletions(-)
37
38 diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest
39 deleted file mode 100644
40 index a4201f8..0000000
41 --- a/app-backup/bacula/Manifest
42 +++ /dev/null
43 @@ -1,3 +0,0 @@
44 -DIST bacula-9.6.5.tar.gz 4252526 BLAKE2B 48bfc9f45db10949fb4d7396c2ca15ed17dad3bd6ab9c6ab5cd0b3a80d1df0d37868a8671c2ead9b00fe89da91d43e945ca2818016f09502aff1a2fd3a5d455d SHA512 4018e242b2131c2416cd16ae3530c9c848dc8e88dd6532136c699a50fcbf39a574ffec8ef13bc5d7a9673d057b51cf1d1be80667e89abe0e18ec79d04b0edd70
45 -DIST bacula-9.6.6.tar.gz 4253303 BLAKE2B 131353e24265f64dd3c4e0632bee93d2a170d3ed88626ab80f1804e7a218eb86c5ac7507f4a4fe5ef7d4472a1c90ef0f45e1a6ad0a4a65a1fa8f1a8f63287e3f SHA512 1b669bbf1e54f40e0426603601a4751c42101985de901f951a68add7644971d48615b3089c65fafd444c762c3d82b67cafdcae9636e8a19af8fd94ae631c315a
46 -DIST bacula-9.6.7.tar.gz 4168102 BLAKE2B 8f5d5cbe8c3ce62105624138e9dfbb9f19eb0721bb2e377c07ef2cd3d4a8442641b4758b00b3050d2352dde31205658963782d2bec3e87242dac7b4b6a4d659c SHA512 27551faa2e4b13c6c2b9a2500f1253dfa5ee84929013491a7bf512d965d655c5af78b08201090474bc9b29827ca0a5c1c5a23a55712a1f739f37de75449cfd4d
47
48 diff --git a/app-backup/bacula/bacula-9.6.5.ebuild b/app-backup/bacula/bacula-9.6.5.ebuild
49 deleted file mode 100644
50 index 37db90a..0000000
51 --- a/app-backup/bacula/bacula-9.6.5.ebuild
52 +++ /dev/null
53 @@ -1,422 +0,0 @@
54 -# Copyright 1999-2021 Gentoo Authors
55 -# Distributed under the terms of the GNU General Public License v2
56 -
57 -EAPI=7
58 -
59 -inherit desktop libtool qmake-utils systemd
60 -
61 -MY_PV=${PV/_beta/-b}
62 -MY_P=${PN}-${MY_PV}
63 -
64 -DESCRIPTION="Featureful client/server network backup suite"
65 -HOMEPAGE="https://www.bacula.org/"
66 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
67 -
68 -LICENSE="AGPL-3"
69 -SLOT="0"
70 -KEYWORDS="amd64 ppc ~sparc x86"
71 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
72 -
73 -DEPEND="
74 - !bacula-clientonly? (
75 - !bacula-nodir? ( virtual/mta )
76 - postgres? ( dev-db/postgresql:=[threads] )
77 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
78 - sqlite? ( dev-db/sqlite:3 )
79 - )
80 - dev-libs/gmp:0
81 - qt5? (
82 - dev-qt/qtcore:5
83 - dev-qt/qtgui:5
84 - dev-qt/qtwidgets:5
85 - dev-qt/qtsvg:5
86 - x11-libs/qwt:6
87 - )
88 - logwatch? ( sys-apps/logwatch )
89 - readline? ( sys-libs/readline:0 )
90 - static? (
91 - dev-libs/lzo[static-libs]
92 - sys-libs/ncurses:=[static-libs]
93 - sys-libs/zlib[static-libs]
94 - acl? ( virtual/acl[static-libs(+)] )
95 - ssl? ( dev-libs/openssl:0=[static-libs] )
96 - )
97 - !static? (
98 - dev-libs/lzo
99 - sys-libs/ncurses:=
100 - sys-libs/zlib
101 - acl? ( virtual/acl )
102 - ssl? ( dev-libs/openssl:0= )
103 - )
104 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
105 -"
106 -RDEPEND="${DEPEND}
107 - acct-user/bacula
108 - acct-group/bacula
109 - !bacula-clientonly? (
110 - !bacula-nosd? (
111 - app-arch/mt-st
112 - sys-block/mtx
113 - )
114 - )
115 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
116 -"
117 -
118 -REQUIRED_USE="
119 - !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
120 - static? ( bacula-clientonly )
121 -"
122 -
123 -S=${WORKDIR}/${MY_P}
124 -
125 -pkg_setup() {
126 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
127 - use mysql && export mydbtype="mysql"
128 - use postgres && export mydbtype="postgresql"
129 - use sqlite && export mydbtype="sqlite3"
130 -
131 - if use bacula-clientonly && use static && use qt5; then
132 - ewarn
133 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
134 - ewarn
135 - fi
136 -}
137 -
138 -src_prepare() {
139 - # adjusts default configuration files for several binaries
140 - # to /etc/bacula/<config> instead of ./<config>
141 - pushd src >&/dev/null || die
142 - for f in console/console.c dird/dird.c filed/filed.c \
143 - stored/bcopy.c stored/bextract.c stored/bls.c \
144 - stored/bscan.c stored/btape.c stored/stored.c \
145 - qt-console/main.cpp; do
146 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
147 - || die "sed on ${f} failed"
148 - done
149 - popd >&/dev/null || die
150 -
151 - # bug 466688 drop deprecated categories from Desktop file
152 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
153 -
154 - # bug 466690 Use CXXFLAGS instead of CFLAGS
155 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
156 -
157 - # drop automatic install of unneeded documentation (for bug 356499)
158 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
159 -
160 - # bug #310087
161 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
162 -
163 - # bug #311161
164 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
165 -
166 - # bat needs to respect LDFLAGS and CFLAGS
167 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
168 -
169 - # bug #328701
170 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
171 -
172 - eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch
173 -
174 - # fix soname in libbaccat.so bug #602952
175 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
176 -
177 - # do not strip binaries
178 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
179 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
180 -
181 - # fix file not found error during make depend
182 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
183 -
184 - eapply_user
185 -
186 - # Fix systemd unit files:
187 - # bug 497748
188 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
189 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
190 - # bug 504370
191 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
192 - # bug 584442 and 504368
193 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
194 -
195 - # build 'bat' for Qt5
196 - export QMAKE="$(qt5_get_bindir)"/qmake
197 -
198 - # adapt to >=Qt-5.9 (see bug #644566)
199 - # qmake needs an existing target file to generate install instructions
200 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
201 - src/qt-console/bat.pro.in || die
202 - mkdir src/qt-console/.libs || die
203 - touch src/qt-console/.libs/bat || die
204 - chmod 755 src/qt-console/.libs/bat || die
205 -
206 - # fix handling of libressl version
207 - # needs separate handling for <libressl-2.7 and >=libressl2.7
208 - # (see bug #655520)
209 - if has_version "<dev-libs/libressl-2.7"; then
210 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl26.patch
211 - else
212 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl27.patch
213 - fi
214 -
215 - # Don't let program install man pages directly
216 - sed -i -e 's/ manpages//' Makefile.in || die
217 -
218 - # correct installation for plugins to mode 0755 (bug #725946)
219 - sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die
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 - --with-pid-dir=/var/run \
267 - --sysconfdir=/etc/bacula \
268 - --with-archivedir=/var/lib/bacula/tmp \
269 - --with-subsys-dir=/var/lock/subsys \
270 - --with-working-dir=/var/lib/bacula \
271 - --with-logdir=/var/lib/bacula \
272 - --with-scriptdir=/usr/libexec/bacula \
273 - --with-systemd=$(systemd_get_systemunitdir) \
274 - --with-dir-user=bacula \
275 - --with-dir-group=bacula \
276 - --with-sd-user=root \
277 - --with-sd-group=bacula \
278 - --with-fd-user=root \
279 - --with-fd-group=bacula \
280 - --enable-smartalloc \
281 - --disable-afs \
282 - --without-s3 \
283 - --host=${CHOST} \
284 - ${myconf}
285 -}
286 -
287 -src_compile() {
288 - # Make build log verbose (bug #447806)
289 - emake NO_ECHO=""
290 -}
291 -
292 -src_install() {
293 - emake DESTDIR="${D}" install
294 - doicon scripts/bacula.png
295 -
296 - # install bat icon and desktop file when enabled
297 - # (for some reason ./configure doesn't pick this up)
298 - if use qt5 && ! use static ; then
299 - doicon src/qt-console/images/bat_icon.png
300 - domenu scripts/bat.desktop
301 - fi
302 -
303 - # remove some scripts we don't need at all
304 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
305 -
306 - # rename statically linked apps
307 - if use bacula-clientonly && use static ; then
308 - pushd "${D}"/usr/sbin || die
309 - mv static-bacula-fd bacula-fd || die
310 - mv static-bconsole bconsole || die
311 - popd || die
312 - fi
313 -
314 - # extra files which 'make install' doesn't cover
315 - if ! use bacula-clientonly; then
316 - # the database update scripts
317 - diropts -m0750
318 - insinto /usr/libexec/bacula/updatedb
319 - insopts -m0754
320 - doins "${S}"/updatedb/*
321 - fperms 0640 /usr/libexec/bacula/updatedb/README
322 -
323 - # the logrotate configuration
324 - # (now unconditional wrt bug #258187)
325 - diropts -m0755
326 - insinto /etc/logrotate.d
327 - insopts -m0644
328 - newins "${S}"/scripts/logrotate bacula
329 -
330 - # the logwatch scripts
331 - if use logwatch; then
332 - diropts -m0750
333 - dodir /usr/share/logwatch/scripts/services
334 - dodir /usr/share/logwatch/scripts/shared
335 - dodir /etc/logwatch/conf/logfiles
336 - dodir /etc/logwatch/conf/services
337 - pushd "${S}"/scripts/logwatch >&/dev/null || die
338 - emake DESTDIR="${D}" install
339 - popd >&/dev/null || die
340 - fi
341 - fi
342 -
343 - # Install all man pages
344 - doman "${S}"/manpages/*.[18]
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 examples (bug #457504)
370 - if use examples; then
371 - docinto examples/
372 - dodoc -r examples/*
373 - fi
374 -
375 - # vim-files
376 - if use vim-syntax; then
377 - insinto /usr/share/vim/vimfiles/syntax
378 - doins scripts/bacula.vim
379 - insinto /usr/share/vim/vimfiles/ftdetect
380 - newins scripts/filetype.vim bacula_ft.vim
381 - fi
382 -
383 - # setup init scripts
384 - myscripts="bacula-fd"
385 - if ! use bacula-clientonly; then
386 - if ! use bacula-nodir; then
387 - myscripts="${myscripts} bacula-dir"
388 - fi
389 - if ! use bacula-nosd; then
390 - myscripts="${myscripts} bacula-sd"
391 - fi
392 - fi
393 - for script in ${myscripts}; do
394 - # copy over init script and config to a temporary location
395 - # so we can modify them as needed
396 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
397 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
398 -
399 - # now set the database dependancy for the director init script
400 - case "${script}" in
401 - bacula-dir)
402 - case "${mydbtype}" in
403 - sqlite3)
404 - # sqlite databases don't have a daemon
405 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
406 - ;;
407 - *)
408 - # all other databases have daemons
409 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
410 - ;;
411 - esac
412 - ;;
413 - *)
414 - ;;
415 - esac
416 -
417 - # install init script and config
418 - newinitd "${T}/${script}".initd "${script}"
419 - newconfd "${T}/${script}".confd "${script}"
420 - done
421 -
422 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
423 -
424 - # make sure the working directory exists
425 - diropts -m0750
426 - keepdir /var/lib/bacula
427 -
428 - # make sure bacula group can execute bacula libexec scripts
429 - fowners -R root:bacula /usr/libexec/bacula
430 -}
431 -
432 -pkg_postinst() {
433 - if use bacula-clientonly; then
434 - fowners root:bacula /var/lib/bacula
435 - else
436 - fowners bacula:bacula /var/lib/bacula
437 - fi
438 -
439 - einfo
440 - einfo "A group 'bacula' has been created. Any users you add to this"
441 - einfo "group have access to files created by the daemons."
442 - einfo
443 - einfo "A user 'bacula' has been created. Please see the bacula manual"
444 - einfo "for information about running bacula as a non-root user."
445 - einfo
446 -
447 - if ! use bacula-clientonly && ! use bacula-nodir; then
448 - einfo
449 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
450 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
451 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
452 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
453 - einfo
454 -
455 - ewarn "ATTENTION!"
456 - ewarn "The format of the database may have changed."
457 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
458 - ewarn "'update_bacula_tables' now."
459 - ewarn "Make sure to have a backup of your catalog before."
460 - ewarn
461 - fi
462 -
463 - if use sqlite; then
464 - einfo
465 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
466 - einfo "Best use it only for a client-only installation. See Bug #445540."
467 - einfo
468 - fi
469 -
470 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
471 - einfo "you have to enable 'USE=qt5'."
472 - einfo
473 - einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
474 - einfo "restores, so be sure to set it to an appropriate in dir in the bacula config."
475 -}
476
477 diff --git a/app-backup/bacula/bacula-9.6.6.ebuild b/app-backup/bacula/bacula-9.6.6.ebuild
478 deleted file mode 100644
479 index ce4aed7..0000000
480 --- a/app-backup/bacula/bacula-9.6.6.ebuild
481 +++ /dev/null
482 @@ -1,422 +0,0 @@
483 -# Copyright 1999-2021 Gentoo Authors
484 -# Distributed under the terms of the GNU General Public License v2
485 -
486 -EAPI=7
487 -
488 -inherit desktop libtool qmake-utils systemd
489 -
490 -MY_PV=${PV/_beta/-b}
491 -MY_P=${PN}-${MY_PV}
492 -
493 -DESCRIPTION="Featureful client/server network backup suite"
494 -HOMEPAGE="https://www.bacula.org/"
495 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
496 -
497 -LICENSE="AGPL-3"
498 -SLOT="0"
499 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
500 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
501 -
502 -DEPEND="
503 - !bacula-clientonly? (
504 - !bacula-nodir? ( virtual/mta )
505 - postgres? ( dev-db/postgresql:=[threads] )
506 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
507 - sqlite? ( dev-db/sqlite:3 )
508 - )
509 - dev-libs/gmp:0
510 - qt5? (
511 - dev-qt/qtcore:5
512 - dev-qt/qtgui:5
513 - dev-qt/qtwidgets:5
514 - dev-qt/qtsvg:5
515 - x11-libs/qwt:6
516 - )
517 - logwatch? ( sys-apps/logwatch )
518 - readline? ( sys-libs/readline:0 )
519 - static? (
520 - dev-libs/lzo[static-libs]
521 - sys-libs/ncurses:=[static-libs]
522 - sys-libs/zlib[static-libs]
523 - acl? ( virtual/acl[static-libs(+)] )
524 - ssl? ( dev-libs/openssl:0=[static-libs] )
525 - )
526 - !static? (
527 - dev-libs/lzo
528 - sys-libs/ncurses:=
529 - sys-libs/zlib
530 - acl? ( virtual/acl )
531 - ssl? ( dev-libs/openssl:0= )
532 - )
533 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
534 -"
535 -RDEPEND="${DEPEND}
536 - acct-user/bacula
537 - acct-group/bacula
538 - !bacula-clientonly? (
539 - !bacula-nosd? (
540 - app-arch/mt-st
541 - sys-block/mtx
542 - )
543 - )
544 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
545 -"
546 -
547 -REQUIRED_USE="
548 - !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
549 - static? ( bacula-clientonly )
550 -"
551 -
552 -S=${WORKDIR}/${MY_P}
553 -
554 -pkg_setup() {
555 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
556 - use mysql && export mydbtype="mysql"
557 - use postgres && export mydbtype="postgresql"
558 - use sqlite && export mydbtype="sqlite3"
559 -
560 - if use bacula-clientonly && use static && use qt5; then
561 - ewarn
562 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
563 - ewarn
564 - fi
565 -}
566 -
567 -src_prepare() {
568 - # adjusts default configuration files for several binaries
569 - # to /etc/bacula/<config> instead of ./<config>
570 - pushd src >&/dev/null || die
571 - for f in console/console.c dird/dird.c filed/filed.c \
572 - stored/bcopy.c stored/bextract.c stored/bls.c \
573 - stored/bscan.c stored/btape.c stored/stored.c \
574 - qt-console/main.cpp; do
575 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
576 - || die "sed on ${f} failed"
577 - done
578 - popd >&/dev/null || die
579 -
580 - # bug 466688 drop deprecated categories from Desktop file
581 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
582 -
583 - # bug 466690 Use CXXFLAGS instead of CFLAGS
584 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
585 -
586 - # drop automatic install of unneeded documentation (for bug 356499)
587 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
588 -
589 - # bug #310087
590 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
591 -
592 - # bug #311161
593 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
594 -
595 - # bat needs to respect LDFLAGS and CFLAGS
596 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
597 -
598 - # bug #328701
599 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
600 -
601 - eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch
602 -
603 - # fix soname in libbaccat.so bug #602952
604 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
605 -
606 - # do not strip binaries
607 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
608 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
609 -
610 - # fix file not found error during make depend
611 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
612 -
613 - eapply_user
614 -
615 - # Fix systemd unit files:
616 - # bug 497748
617 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
618 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
619 - # bug 504370
620 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
621 - # bug 584442 and 504368
622 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
623 -
624 - # build 'bat' for Qt5
625 - export QMAKE="$(qt5_get_bindir)"/qmake
626 -
627 - # adapt to >=Qt-5.9 (see bug #644566)
628 - # qmake needs an existing target file to generate install instructions
629 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
630 - src/qt-console/bat.pro.in || die
631 - mkdir src/qt-console/.libs || die
632 - touch src/qt-console/.libs/bat || die
633 - chmod 755 src/qt-console/.libs/bat || die
634 -
635 - # fix handling of libressl version
636 - # needs separate handling for <libressl-2.7 and >=libressl2.7
637 - # (see bug #655520)
638 - if has_version "<dev-libs/libressl-2.7"; then
639 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl26.patch
640 - else
641 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl27.patch
642 - fi
643 -
644 - # Don't let program install man pages directly
645 - sed -i -e 's/ manpages//' Makefile.in || die
646 -
647 - # correct installation for plugins to mode 0755 (bug #725946)
648 - sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die
649 -
650 - # fix bundled libtool (bug 466696)
651 - # But first move directory with M4 macros out of the way.
652 - # It is only needed by autoconf and gives errors during elibtoolize.
653 - mv autoconf/libtool autoconf/libtool1 || die
654 - elibtoolize
655 -}
656 -
657 -src_configure() {
658 - local myconf=''
659 -
660 - if use bacula-clientonly; then
661 - myconf="${myconf} \
662 - $(use_enable bacula-clientonly client-only) \
663 - $(use_enable !static libtool) \
664 - $(use_enable static static-cons) \
665 - $(use_enable static static-fd)"
666 - else
667 - myconf="${myconf} \
668 - $(use_enable !bacula-nodir build-dird) \
669 - $(use_enable !bacula-nosd build-stored)"
670 - # bug #311099
671 - # database support needed by dir-only *and* sd-only
672 - # build as well (for building bscan, btape, etc.)
673 - myconf="${myconf}
674 - --with-${mydbtype}"
675 - fi
676 -
677 - # do not build bat if 'static' clientonly
678 - if ! use bacula-clientonly || ! use static; then
679 - myconf="${myconf} \
680 - $(use_enable qt5 bat)"
681 - fi
682 -
683 - myconf="${myconf} \
684 - $(use_with X x) \
685 - $(use_enable batch-insert) \
686 - $(use_enable !readline conio) \
687 - $(use_enable readline) \
688 - $(use_with readline readline /usr) \
689 - $(use_with ssl openssl) \
690 - $(use_enable ipv6) \
691 - $(use_enable acl) \
692 - $(use_with tcpd tcp-wrappers)"
693 -
694 - econf \
695 - --with-pid-dir=/var/run \
696 - --sysconfdir=/etc/bacula \
697 - --with-archivedir=/var/lib/bacula/tmp \
698 - --with-subsys-dir=/var/lock/subsys \
699 - --with-working-dir=/var/lib/bacula \
700 - --with-logdir=/var/lib/bacula \
701 - --with-scriptdir=/usr/libexec/bacula \
702 - --with-systemd=$(systemd_get_systemunitdir) \
703 - --with-dir-user=bacula \
704 - --with-dir-group=bacula \
705 - --with-sd-user=root \
706 - --with-sd-group=bacula \
707 - --with-fd-user=root \
708 - --with-fd-group=bacula \
709 - --enable-smartalloc \
710 - --disable-afs \
711 - --without-s3 \
712 - --host=${CHOST} \
713 - ${myconf}
714 -}
715 -
716 -src_compile() {
717 - # Make build log verbose (bug #447806)
718 - emake NO_ECHO=""
719 -}
720 -
721 -src_install() {
722 - emake DESTDIR="${D}" install
723 - doicon scripts/bacula.png
724 -
725 - # install bat icon and desktop file when enabled
726 - # (for some reason ./configure doesn't pick this up)
727 - if use qt5 && ! use static ; then
728 - doicon src/qt-console/images/bat_icon.png
729 - domenu scripts/bat.desktop
730 - fi
731 -
732 - # remove some scripts we don't need at all
733 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
734 -
735 - # rename statically linked apps
736 - if use bacula-clientonly && use static ; then
737 - pushd "${D}"/usr/sbin || die
738 - mv static-bacula-fd bacula-fd || die
739 - mv static-bconsole bconsole || die
740 - popd || die
741 - fi
742 -
743 - # extra files which 'make install' doesn't cover
744 - if ! use bacula-clientonly; then
745 - # the database update scripts
746 - diropts -m0750
747 - insinto /usr/libexec/bacula/updatedb
748 - insopts -m0754
749 - doins "${S}"/updatedb/*
750 - fperms 0640 /usr/libexec/bacula/updatedb/README
751 -
752 - # the logrotate configuration
753 - # (now unconditional wrt bug #258187)
754 - diropts -m0755
755 - insinto /etc/logrotate.d
756 - insopts -m0644
757 - newins "${S}"/scripts/logrotate bacula
758 -
759 - # the logwatch scripts
760 - if use logwatch; then
761 - diropts -m0750
762 - dodir /usr/share/logwatch/scripts/services
763 - dodir /usr/share/logwatch/scripts/shared
764 - dodir /etc/logwatch/conf/logfiles
765 - dodir /etc/logwatch/conf/services
766 - pushd "${S}"/scripts/logwatch >&/dev/null || die
767 - emake DESTDIR="${D}" install
768 - popd >&/dev/null || die
769 - fi
770 - fi
771 -
772 - # Install all man pages
773 - doman "${S}"/manpages/*.[18]
774 -
775 - if ! use qt5; then
776 - rm -vf "${D}"/usr/share/man/man1/bat.1*
777 - fi
778 - rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
779 -
780 - if use bacula-clientonly || use bacula-nodir ; then
781 - rm -vf "${D}"/usr/libexec/bacula/create_*_database
782 - rm -vf "${D}"/usr/libexec/bacula/drop_*_database
783 - rm -vf "${D}"/usr/libexec/bacula/make_*_tables
784 - rm -vf "${D}"/usr/libexec/bacula/update_*_tables
785 - rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
786 - rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
787 - rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
788 - fi
789 - if use bacula-clientonly || use bacula-nosd; then
790 - rm -vf "${D}"/usr/libexec/bacula/disk-changer
791 - rm -vf "${D}"/usr/libexec/bacula/mtx-changer
792 - rm -vf "${D}"/usr/libexec/bacula/dvd-handler
793 - fi
794 -
795 - # documentation
796 - dodoc ChangeLog ReleaseNotes SUPPORT
797 -
798 - # install examples (bug #457504)
799 - if use examples; then
800 - docinto examples/
801 - dodoc -r examples/*
802 - fi
803 -
804 - # vim-files
805 - if use vim-syntax; then
806 - insinto /usr/share/vim/vimfiles/syntax
807 - doins scripts/bacula.vim
808 - insinto /usr/share/vim/vimfiles/ftdetect
809 - newins scripts/filetype.vim bacula_ft.vim
810 - fi
811 -
812 - # setup init scripts
813 - myscripts="bacula-fd"
814 - if ! use bacula-clientonly; then
815 - if ! use bacula-nodir; then
816 - myscripts="${myscripts} bacula-dir"
817 - fi
818 - if ! use bacula-nosd; then
819 - myscripts="${myscripts} bacula-sd"
820 - fi
821 - fi
822 - for script in ${myscripts}; do
823 - # copy over init script and config to a temporary location
824 - # so we can modify them as needed
825 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
826 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
827 -
828 - # now set the database dependancy for the director init script
829 - case "${script}" in
830 - bacula-dir)
831 - case "${mydbtype}" in
832 - sqlite3)
833 - # sqlite databases don't have a daemon
834 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
835 - ;;
836 - *)
837 - # all other databases have daemons
838 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
839 - ;;
840 - esac
841 - ;;
842 - *)
843 - ;;
844 - esac
845 -
846 - # install init script and config
847 - newinitd "${T}/${script}".initd "${script}"
848 - newconfd "${T}/${script}".confd "${script}"
849 - done
850 -
851 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
852 -
853 - # make sure the working directory exists
854 - diropts -m0750
855 - keepdir /var/lib/bacula
856 -
857 - # make sure bacula group can execute bacula libexec scripts
858 - fowners -R root:bacula /usr/libexec/bacula
859 -}
860 -
861 -pkg_postinst() {
862 - if use bacula-clientonly; then
863 - fowners root:bacula /var/lib/bacula
864 - else
865 - fowners bacula:bacula /var/lib/bacula
866 - fi
867 -
868 - einfo
869 - einfo "A group 'bacula' has been created. Any users you add to this"
870 - einfo "group have access to files created by the daemons."
871 - einfo
872 - einfo "A user 'bacula' has been created. Please see the bacula manual"
873 - einfo "for information about running bacula as a non-root user."
874 - einfo
875 -
876 - if ! use bacula-clientonly && ! use bacula-nodir; then
877 - einfo
878 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
879 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
880 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
881 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
882 - einfo
883 -
884 - ewarn "ATTENTION!"
885 - ewarn "The format of the database may have changed."
886 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
887 - ewarn "'update_bacula_tables' now."
888 - ewarn "Make sure to have a backup of your catalog before."
889 - ewarn
890 - fi
891 -
892 - if use sqlite; then
893 - einfo
894 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
895 - einfo "Best use it only for a client-only installation. See Bug #445540."
896 - einfo
897 - fi
898 -
899 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
900 - einfo "you have to enable 'USE=qt5'."
901 - einfo
902 - einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
903 - einfo "restores, so be sure to set it to an appropriate in dir in the bacula config."
904 -}
905
906 diff --git a/app-backup/bacula/bacula-9.6.7.ebuild b/app-backup/bacula/bacula-9.6.7.ebuild
907 deleted file mode 100644
908 index ce4aed7..0000000
909 --- a/app-backup/bacula/bacula-9.6.7.ebuild
910 +++ /dev/null
911 @@ -1,422 +0,0 @@
912 -# Copyright 1999-2021 Gentoo Authors
913 -# Distributed under the terms of the GNU General Public License v2
914 -
915 -EAPI=7
916 -
917 -inherit desktop libtool qmake-utils systemd
918 -
919 -MY_PV=${PV/_beta/-b}
920 -MY_P=${PN}-${MY_PV}
921 -
922 -DESCRIPTION="Featureful client/server network backup suite"
923 -HOMEPAGE="https://www.bacula.org/"
924 -SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
925 -
926 -LICENSE="AGPL-3"
927 -SLOT="0"
928 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
929 -IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
930 -
931 -DEPEND="
932 - !bacula-clientonly? (
933 - !bacula-nodir? ( virtual/mta )
934 - postgres? ( dev-db/postgresql:=[threads] )
935 - mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
936 - sqlite? ( dev-db/sqlite:3 )
937 - )
938 - dev-libs/gmp:0
939 - qt5? (
940 - dev-qt/qtcore:5
941 - dev-qt/qtgui:5
942 - dev-qt/qtwidgets:5
943 - dev-qt/qtsvg:5
944 - x11-libs/qwt:6
945 - )
946 - logwatch? ( sys-apps/logwatch )
947 - readline? ( sys-libs/readline:0 )
948 - static? (
949 - dev-libs/lzo[static-libs]
950 - sys-libs/ncurses:=[static-libs]
951 - sys-libs/zlib[static-libs]
952 - acl? ( virtual/acl[static-libs(+)] )
953 - ssl? ( dev-libs/openssl:0=[static-libs] )
954 - )
955 - !static? (
956 - dev-libs/lzo
957 - sys-libs/ncurses:=
958 - sys-libs/zlib
959 - acl? ( virtual/acl )
960 - ssl? ( dev-libs/openssl:0= )
961 - )
962 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
963 -"
964 -RDEPEND="${DEPEND}
965 - acct-user/bacula
966 - acct-group/bacula
967 - !bacula-clientonly? (
968 - !bacula-nosd? (
969 - app-arch/mt-st
970 - sys-block/mtx
971 - )
972 - )
973 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
974 -"
975 -
976 -REQUIRED_USE="
977 - !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
978 - static? ( bacula-clientonly )
979 -"
980 -
981 -S=${WORKDIR}/${MY_P}
982 -
983 -pkg_setup() {
984 - #XOR and !bacula-clientonly controlled by REQUIRED_USE
985 - use mysql && export mydbtype="mysql"
986 - use postgres && export mydbtype="postgresql"
987 - use sqlite && export mydbtype="sqlite3"
988 -
989 - if use bacula-clientonly && use static && use qt5; then
990 - ewarn
991 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
992 - ewarn
993 - fi
994 -}
995 -
996 -src_prepare() {
997 - # adjusts default configuration files for several binaries
998 - # to /etc/bacula/<config> instead of ./<config>
999 - pushd src >&/dev/null || die
1000 - for f in console/console.c dird/dird.c filed/filed.c \
1001 - stored/bcopy.c stored/bextract.c stored/bls.c \
1002 - stored/bscan.c stored/btape.c stored/stored.c \
1003 - qt-console/main.cpp; do
1004 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
1005 - || die "sed on ${f} failed"
1006 - done
1007 - popd >&/dev/null || die
1008 -
1009 - # bug 466688 drop deprecated categories from Desktop file
1010 - sed -i -e 's/Application;//' scripts/bat.desktop.in || die
1011 -
1012 - # bug 466690 Use CXXFLAGS instead of CFLAGS
1013 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
1014 -
1015 - # drop automatic install of unneeded documentation (for bug 356499)
1016 - eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
1017 -
1018 - # bug #310087
1019 - eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
1020 -
1021 - # bug #311161
1022 - eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
1023 -
1024 - # bat needs to respect LDFLAGS and CFLAGS
1025 - eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
1026 -
1027 - # bug #328701
1028 - eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
1029 -
1030 - eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch
1031 -
1032 - # fix soname in libbaccat.so bug #602952
1033 - eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch"
1034 -
1035 - # do not strip binaries
1036 - sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
1037 - sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
1038 -
1039 - # fix file not found error during make depend
1040 - eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
1041 -
1042 - eapply_user
1043 -
1044 - # Fix systemd unit files:
1045 - # bug 497748
1046 - sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
1047 - sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
1048 - # bug 504370
1049 - sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
1050 - # bug 584442 and 504368
1051 - sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
1052 -
1053 - # build 'bat' for Qt5
1054 - export QMAKE="$(qt5_get_bindir)"/qmake
1055 -
1056 - # adapt to >=Qt-5.9 (see bug #644566)
1057 - # qmake needs an existing target file to generate install instructions
1058 - sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
1059 - src/qt-console/bat.pro.in || die
1060 - mkdir src/qt-console/.libs || die
1061 - touch src/qt-console/.libs/bat || die
1062 - chmod 755 src/qt-console/.libs/bat || die
1063 -
1064 - # fix handling of libressl version
1065 - # needs separate handling for <libressl-2.7 and >=libressl2.7
1066 - # (see bug #655520)
1067 - if has_version "<dev-libs/libressl-2.7"; then
1068 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl26.patch
1069 - else
1070 - eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl27.patch
1071 - fi
1072 -
1073 - # Don't let program install man pages directly
1074 - sed -i -e 's/ manpages//' Makefile.in || die
1075 -
1076 - # correct installation for plugins to mode 0755 (bug #725946)
1077 - sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die
1078 -
1079 - # fix bundled libtool (bug 466696)
1080 - # But first move directory with M4 macros out of the way.
1081 - # It is only needed by autoconf and gives errors during elibtoolize.
1082 - mv autoconf/libtool autoconf/libtool1 || die
1083 - elibtoolize
1084 -}
1085 -
1086 -src_configure() {
1087 - local myconf=''
1088 -
1089 - if use bacula-clientonly; then
1090 - myconf="${myconf} \
1091 - $(use_enable bacula-clientonly client-only) \
1092 - $(use_enable !static libtool) \
1093 - $(use_enable static static-cons) \
1094 - $(use_enable static static-fd)"
1095 - else
1096 - myconf="${myconf} \
1097 - $(use_enable !bacula-nodir build-dird) \
1098 - $(use_enable !bacula-nosd build-stored)"
1099 - # bug #311099
1100 - # database support needed by dir-only *and* sd-only
1101 - # build as well (for building bscan, btape, etc.)
1102 - myconf="${myconf}
1103 - --with-${mydbtype}"
1104 - fi
1105 -
1106 - # do not build bat if 'static' clientonly
1107 - if ! use bacula-clientonly || ! use static; then
1108 - myconf="${myconf} \
1109 - $(use_enable qt5 bat)"
1110 - fi
1111 -
1112 - myconf="${myconf} \
1113 - $(use_with X x) \
1114 - $(use_enable batch-insert) \
1115 - $(use_enable !readline conio) \
1116 - $(use_enable readline) \
1117 - $(use_with readline readline /usr) \
1118 - $(use_with ssl openssl) \
1119 - $(use_enable ipv6) \
1120 - $(use_enable acl) \
1121 - $(use_with tcpd tcp-wrappers)"
1122 -
1123 - econf \
1124 - --with-pid-dir=/var/run \
1125 - --sysconfdir=/etc/bacula \
1126 - --with-archivedir=/var/lib/bacula/tmp \
1127 - --with-subsys-dir=/var/lock/subsys \
1128 - --with-working-dir=/var/lib/bacula \
1129 - --with-logdir=/var/lib/bacula \
1130 - --with-scriptdir=/usr/libexec/bacula \
1131 - --with-systemd=$(systemd_get_systemunitdir) \
1132 - --with-dir-user=bacula \
1133 - --with-dir-group=bacula \
1134 - --with-sd-user=root \
1135 - --with-sd-group=bacula \
1136 - --with-fd-user=root \
1137 - --with-fd-group=bacula \
1138 - --enable-smartalloc \
1139 - --disable-afs \
1140 - --without-s3 \
1141 - --host=${CHOST} \
1142 - ${myconf}
1143 -}
1144 -
1145 -src_compile() {
1146 - # Make build log verbose (bug #447806)
1147 - emake NO_ECHO=""
1148 -}
1149 -
1150 -src_install() {
1151 - emake DESTDIR="${D}" install
1152 - doicon scripts/bacula.png
1153 -
1154 - # install bat icon and desktop file when enabled
1155 - # (for some reason ./configure doesn't pick this up)
1156 - if use qt5 && ! use static ; then
1157 - doicon src/qt-console/images/bat_icon.png
1158 - domenu scripts/bat.desktop
1159 - fi
1160 -
1161 - # remove some scripts we don't need at all
1162 - rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
1163 -
1164 - # rename statically linked apps
1165 - if use bacula-clientonly && use static ; then
1166 - pushd "${D}"/usr/sbin || die
1167 - mv static-bacula-fd bacula-fd || die
1168 - mv static-bconsole bconsole || die
1169 - popd || die
1170 - fi
1171 -
1172 - # extra files which 'make install' doesn't cover
1173 - if ! use bacula-clientonly; then
1174 - # the database update scripts
1175 - diropts -m0750
1176 - insinto /usr/libexec/bacula/updatedb
1177 - insopts -m0754
1178 - doins "${S}"/updatedb/*
1179 - fperms 0640 /usr/libexec/bacula/updatedb/README
1180 -
1181 - # the logrotate configuration
1182 - # (now unconditional wrt bug #258187)
1183 - diropts -m0755
1184 - insinto /etc/logrotate.d
1185 - insopts -m0644
1186 - newins "${S}"/scripts/logrotate bacula
1187 -
1188 - # the logwatch scripts
1189 - if use logwatch; then
1190 - diropts -m0750
1191 - dodir /usr/share/logwatch/scripts/services
1192 - dodir /usr/share/logwatch/scripts/shared
1193 - dodir /etc/logwatch/conf/logfiles
1194 - dodir /etc/logwatch/conf/services
1195 - pushd "${S}"/scripts/logwatch >&/dev/null || die
1196 - emake DESTDIR="${D}" install
1197 - popd >&/dev/null || die
1198 - fi
1199 - fi
1200 -
1201 - # Install all man pages
1202 - doman "${S}"/manpages/*.[18]
1203 -
1204 - if ! use qt5; then
1205 - rm -vf "${D}"/usr/share/man/man1/bat.1*
1206 - fi
1207 - rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
1208 -
1209 - if use bacula-clientonly || use bacula-nodir ; then
1210 - rm -vf "${D}"/usr/libexec/bacula/create_*_database
1211 - rm -vf "${D}"/usr/libexec/bacula/drop_*_database
1212 - rm -vf "${D}"/usr/libexec/bacula/make_*_tables
1213 - rm -vf "${D}"/usr/libexec/bacula/update_*_tables
1214 - rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
1215 - rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
1216 - rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
1217 - fi
1218 - if use bacula-clientonly || use bacula-nosd; then
1219 - rm -vf "${D}"/usr/libexec/bacula/disk-changer
1220 - rm -vf "${D}"/usr/libexec/bacula/mtx-changer
1221 - rm -vf "${D}"/usr/libexec/bacula/dvd-handler
1222 - fi
1223 -
1224 - # documentation
1225 - dodoc ChangeLog ReleaseNotes SUPPORT
1226 -
1227 - # install examples (bug #457504)
1228 - if use examples; then
1229 - docinto examples/
1230 - dodoc -r examples/*
1231 - fi
1232 -
1233 - # vim-files
1234 - if use vim-syntax; then
1235 - insinto /usr/share/vim/vimfiles/syntax
1236 - doins scripts/bacula.vim
1237 - insinto /usr/share/vim/vimfiles/ftdetect
1238 - newins scripts/filetype.vim bacula_ft.vim
1239 - fi
1240 -
1241 - # setup init scripts
1242 - myscripts="bacula-fd"
1243 - if ! use bacula-clientonly; then
1244 - if ! use bacula-nodir; then
1245 - myscripts="${myscripts} bacula-dir"
1246 - fi
1247 - if ! use bacula-nosd; then
1248 - myscripts="${myscripts} bacula-sd"
1249 - fi
1250 - fi
1251 - for script in ${myscripts}; do
1252 - # copy over init script and config to a temporary location
1253 - # so we can modify them as needed
1254 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
1255 - cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
1256 -
1257 - # now set the database dependancy for the director init script
1258 - case "${script}" in
1259 - bacula-dir)
1260 - case "${mydbtype}" in
1261 - sqlite3)
1262 - # sqlite databases don't have a daemon
1263 - sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
1264 - ;;
1265 - *)
1266 - # all other databases have daemons
1267 - sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
1268 - ;;
1269 - esac
1270 - ;;
1271 - *)
1272 - ;;
1273 - esac
1274 -
1275 - # install init script and config
1276 - newinitd "${T}/${script}".initd "${script}"
1277 - newconfd "${T}/${script}".confd "${script}"
1278 - done
1279 -
1280 - systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
1281 -
1282 - # make sure the working directory exists
1283 - diropts -m0750
1284 - keepdir /var/lib/bacula
1285 -
1286 - # make sure bacula group can execute bacula libexec scripts
1287 - fowners -R root:bacula /usr/libexec/bacula
1288 -}
1289 -
1290 -pkg_postinst() {
1291 - if use bacula-clientonly; then
1292 - fowners root:bacula /var/lib/bacula
1293 - else
1294 - fowners bacula:bacula /var/lib/bacula
1295 - fi
1296 -
1297 - einfo
1298 - einfo "A group 'bacula' has been created. Any users you add to this"
1299 - einfo "group have access to files created by the daemons."
1300 - einfo
1301 - einfo "A user 'bacula' has been created. Please see the bacula manual"
1302 - einfo "for information about running bacula as a non-root user."
1303 - einfo
1304 -
1305 - if ! use bacula-clientonly && ! use bacula-nodir; then
1306 - einfo
1307 - einfo "If this is a new install, you must create the ${mydbtype} databases with:"
1308 - einfo " /usr/libexec/bacula/create_${mydbtype}_database"
1309 - einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
1310 - einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
1311 - einfo
1312 -
1313 - ewarn "ATTENTION!"
1314 - ewarn "The format of the database may have changed."
1315 - ewarn "If you just upgraded from a version below 9.0.0 you must run"
1316 - ewarn "'update_bacula_tables' now."
1317 - ewarn "Make sure to have a backup of your catalog before."
1318 - ewarn
1319 - fi
1320 -
1321 - if use sqlite; then
1322 - einfo
1323 - einfo "Be aware that Bacula does not officially support SQLite database anymore."
1324 - einfo "Best use it only for a client-only installation. See Bug #445540."
1325 - einfo
1326 - fi
1327 -
1328 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
1329 - einfo "you have to enable 'USE=qt5'."
1330 - einfo
1331 - einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
1332 - einfo "restores, so be sure to set it to an appropriate in dir in the bacula config."
1333 -}
1334
1335 diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch
1336 deleted file mode 100644
1337 index 4b52d21..0000000
1338 --- a/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch
1339 +++ /dev/null
1340 @@ -1,14 +0,0 @@
1341 -# see bug #310087
1342 -diff -urN bacula-5.2.1.orig/src/findlib/Makefile.in bacula-5.2.1/src/findlib/Makefile.in
1343 ---- bacula-5.2.1.orig/src/findlib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
1344 -+++ bacula-5.2.1/src/findlib/Makefile.in 2010-03-22 17:37:43.772805754 +0100
1345 -@@ -59,7 +59,7 @@
1346 -
1347 - libbacfind.la: Makefile $(LIBBACFIND_LOBJS)
1348 - @echo "Making $@ ..."
1349 -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE)
1350 -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE) -L../lib -lbac $(LIBS) $(OPENSSL_LIBS)
1351 -
1352 - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
1353 - cd $(topdir) \
1354 -
1355
1356 diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch
1357 deleted file mode 100644
1358 index 58d2631..0000000
1359 --- a/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch
1360 +++ /dev/null
1361 @@ -1,25 +0,0 @@
1362 -http://bugs.gentoo.org/328701
1363 -http://cvs.fedoraproject.org/viewvc/rpms/bacula/devel/bacula-5.0.2-openssl.patch?revision=1.3&view=markup
1364 -
1365 ---- src/lib/crypto.c
1366 -+++ src/lib/crypto.c
1367 -@@ -51,7 +51,7 @@
1368 - * For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
1369 - * exists. It was not an official API.
1370 - */
1371 --#ifdef HAVE_OPENSSLv1
1372 -+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
1373 - #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
1374 - #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
1375 - #endif
1376 ---- src/lib/tls.c
1377 -+++ src/lib/tls.c
1378 -@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
1379 - extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
1380 -
1381 - if (strcmp(extname, "subjectAltName") == 0) {
1382 --#ifdef HAVE_OPENSSLv1
1383 -+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
1384 - const X509V3_EXT_METHOD *method;
1385 - #else
1386 - X509V3_EXT_METHOD *method;
1387
1388 diff --git a/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch b/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch
1389 deleted file mode 100644
1390 index e076cd6..0000000
1391 --- a/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch
1392 +++ /dev/null
1393 @@ -1,12 +0,0 @@
1394 -# fix file not found error during make depend
1395 ---- src/tools/Makefile.in.orig 2012-09-20 20:42:54.000000000 +0200
1396 -+++ src/tools/Makefile.in 2012-09-20 20:35:46.000000000 +0200
1397 -@@ -194,7 +194,7 @@
1398 - @$(MV) Makefile Makefile.bak
1399 - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
1400 - @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
1401 -- @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) *.c >> Makefile
1402 -+ @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../filed -I../dird -I../stored *.c >> Makefile
1403 - @if test -f Makefile ; then \
1404 - $(RMF) Makefile.bak; \
1405 - else \
1406
1407 diff --git a/app-backup/bacula/files/7.2.0/bacula-7.2.0-doc.patch b/app-backup/bacula/files/7.2.0/bacula-7.2.0-doc.patch
1408 deleted file mode 100644
1409 index 155746a..0000000
1410 --- a/app-backup/bacula/files/7.2.0/bacula-7.2.0-doc.patch
1411 +++ /dev/null
1412 @@ -1,12 +0,0 @@
1413 ---- Makefile.in.orig 2015-09-03 20:03:22.000000000 +0200
1414 -+++ Makefile.in 2015-09-03 20:03:50.000000000 +0200
1415 -@@ -35,8 +35,7 @@
1416 - autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
1417 - autoconf/install-sh autoconf/mkinstalldirs
1418 -
1419 --doc_files = VERIFYING ChangeLog README ReleaseNotes LICENSE \
1420 -- LICENSE-FAQ LICENSE-FOSS INSTALL
1421 -+doc_files =
1422 -
1423 - MKDIR = $(srcdir)/autoconf/mkinstalldirs
1424 - LIBTOOL_DEPS = @LIBTOOL_DEPS@
1425
1426 diff --git a/app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch b/app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch
1427 deleted file mode 100644
1428 index 33cf83d..0000000
1429 --- a/app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch
1430 +++ /dev/null
1431 @@ -1,25 +0,0 @@
1432 -# If upgrading the old libraries gets linked first. So fix order of
1433 -# lib search path.
1434 ---- src/console/Makefile.in.orig 2017-07-26 15:03:07.000000000 +0200
1435 -+++ src/console/Makefile.in 2017-07-23 18:31:57.000000000 +0200
1436 -@@ -49,17 +49,17 @@
1437 -
1438 -
1439 - bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1440 -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
1441 -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1442 - $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1443 - $(OPENSSL_LIBS)
1444 -
1445 - bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1446 -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(JSONOBJS) \
1447 -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
1448 - $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1449 - $(OPENSSL_LIBS)
1450 -
1451 - static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1452 -- $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
1453 -+ $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1454 - $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1455 - $(OPENSSL_LIBS)
1456 - strip $@
1457
1458 diff --git a/app-backup/bacula/files/9.0.6/bacula-9.0.6-bat-pro.patch b/app-backup/bacula/files/9.0.6/bacula-9.0.6-bat-pro.patch
1459 deleted file mode 100644
1460 index 3d055b8..0000000
1461 --- a/app-backup/bacula/files/9.0.6/bacula-9.0.6-bat-pro.patch
1462 +++ /dev/null
1463 @@ -1,21 +0,0 @@
1464 ---- src/qt-console/bat.pro.in.orig 2018-02-18 16:17:21.027921363 +0100
1465 -+++ src/qt-console/bat.pro.in 2018-02-18 16:18:12.554137528 +0100
1466 -@@ -12,7 +12,7 @@
1467 - greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
1468 -
1469 - bins.path = /$(DESTDIR)@sbindir@
1470 --bins.files = bat
1471 -+bins.files = .libs/bat
1472 - confs.path = /$(DESTDIR)@sysconfdir@
1473 - confs.commands = ./install_conf_file
1474 - help.path = /$(DESTDIR)@docdir@
1475 -@@ -29,6 +29,9 @@
1476 - QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
1477 - QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
1478 - QMAKE_CLEAN += .libs/* bat
1479 -+QMAKE_LFLAGS += @LDFLAGS@
1480 -+QMAKE_CFLAGS += @CFLAGS@
1481 -+QMAKE_CXXFLAGS += @CXXFLAGS@
1482 -
1483 - qwt {
1484 - INCLUDEPATH += @QWT_INC@
1485
1486 diff --git a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch
1487 deleted file mode 100644
1488 index ea7fa0b..0000000
1489 --- a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl26.patch
1490 +++ /dev/null
1491 @@ -1,33 +0,0 @@
1492 ---- src/lib/crypto.c.orig 2018-02-02 15:34:39.420489000 -0600
1493 -+++ src/lib/crypto.c 2018-02-02 15:35:44.000524000 -0600
1494 -@@ -195,7 +195,7 @@
1495 - IMPLEMENT_ASN1_FUNCTIONS(SignatureData)
1496 - IMPLEMENT_ASN1_FUNCTIONS(CryptoData)
1497 -
1498 --#if defined(DEFINE_STACK_OF)
1499 -+#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) )
1500 - DEFINE_STACK_OF(SignerInfo);
1501 - DEFINE_STACK_OF(RecipientInfo);
1502 - #else
1503 ---- src/lib/openssl-compat.h.orig 2018-02-02 15:26:04.182557000 -0600
1504 -+++ src/lib/openssl-compat.h 2018-02-02 15:27:50.229100000 -0600
1505 -@@ -1,7 +1,7 @@
1506 - #ifndef __OPENSSL_COPMAT__H__
1507 - #define __OPENSSL_COPMAT__H__
1508 -
1509 --#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
1510 -+#if ( (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) )
1511 - static inline int EVP_PKEY_up_ref(EVP_PKEY *pkey)
1512 - {
1513 - CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
1514 ---- src/lib/tls.c.orig 2017-11-21 18:37:16.000000000 +0100
1515 -+++ src/lib/tls.c 2018-04-16 20:00:54.082000000 +0200
1516 -@@ -116,7 +116,7 @@
1517 - ctx = (TLS_CONTEXT *)malloc(sizeof(TLS_CONTEXT));
1518 -
1519 - /* Allocate our OpenSSL TLS Context */
1520 --#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
1521 -+#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) )
1522 - /* Allows SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols */
1523 - ctx->openssl = SSL_CTX_new(TLS_method());
1524 -
1525
1526 diff --git a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch b/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch
1527 deleted file mode 100644
1528 index 3ce61be..0000000
1529 --- a/app-backup/bacula/files/9.4.0/bacula-9.4.0-libressl27.patch
1530 +++ /dev/null
1531 @@ -1,11 +0,0 @@
1532 ---- src/lib/crypto.c.orig 2018-02-02 15:34:39.420489000 -0600
1533 -+++ src/lib/crypto.c 2018-02-02 15:35:44.000524000 -0600
1534 -@@ -195,7 +195,7 @@
1535 - IMPLEMENT_ASN1_FUNCTIONS(SignatureData)
1536 - IMPLEMENT_ASN1_FUNCTIONS(CryptoData)
1537 -
1538 --#if defined(DEFINE_STACK_OF)
1539 -+#if ( (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) )
1540 - DEFINE_STACK_OF(SignerInfo);
1541 - DEFINE_STACK_OF(RecipientInfo);
1542 - #else
1543
1544 diff --git a/app-backup/bacula/files/9.6.3/bacula-9.6.3-fix-static.patch b/app-backup/bacula/files/9.6.3/bacula-9.6.3-fix-static.patch
1545 deleted file mode 100644
1546 index 1f32cd2..0000000
1547 --- a/app-backup/bacula/files/9.6.3/bacula-9.6.3-fix-static.patch
1548 +++ /dev/null
1549 @@ -1,63 +0,0 @@
1550 ---- src/console/Makefile.in.orig 2017-07-25 19:03:05.664760298 +0200
1551 -+++ src/console/Makefile.in 2017-07-25 19:05:43.576706091 +0200
1552 -@@ -24,6 +24,7 @@
1553 - CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@
1554 - CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@
1555 - JSONOBJS = bbconsjson.o console_conf.o
1556 -+ZLIBS=@ZLIBS@
1557 -
1558 - # these are the objects that are changed by the .configure process
1559 - EXTRAOBJS = @OBJLIST@
1560 -@@ -50,18 +51,18 @@
1561 -
1562 - bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1563 - $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1564 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1565 -- $(OPENSSL_LIBS)
1566 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1567 -+ $(OPENSSL_LIBS) $(LIBS)
1568 -
1569 - bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1570 - $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
1571 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1572 -- $(OPENSSL_LIBS)
1573 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1574 -+ $(OPENSSL_LIBS) $(LIBS)
1575 -
1576 - static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
1577 - $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
1578 -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
1579 -- $(OPENSSL_LIBS)
1580 -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
1581 -+ $(OPENSSL_LIBS) $(LIBS)
1582 - strip $@
1583 -
1584 -
1585 ---- src/filed/Makefile.in.orig 2017-07-25 19:09:19.655852979 +0200
1586 -+++ src/filed/Makefile.in 2017-07-25 19:11:39.519558592 +0200
1587 -@@ -69,19 +69,19 @@
1588 - bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
1589 - @echo "Linking $@ ..."
1590 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
1591 -- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1592 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) $(IOKITLIBS)
1593 -+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1594 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) $(IOKITLIBS)
1595 -
1596 - bfdjson: Makefile $(JSONOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
1597 - @echo "Linking $@ ..."
1598 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(JSONOBJS) \
1599 -- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1600 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1601 -+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1602 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1603 -
1604 - static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
1605 - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
1606 -- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
1607 -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1608 -+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
1609 -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
1610 - strip $@
1611 -
1612 - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
1613
1614 diff --git a/app-backup/bacula/files/bacula-dir.confd b/app-backup/bacula/files/bacula-dir.confd
1615 deleted file mode 100644
1616 index 6209e24..0000000
1617 --- a/app-backup/bacula/files/bacula-dir.confd
1618 +++ /dev/null
1619 @@ -1,16 +0,0 @@
1620 -# Copyright 1999-2021 Gentoo Authors
1621 -# Distributed under the terms of the GNU General Public License v2
1622 -
1623 -# Config file for /etc/init.d/bacula-dir
1624 -
1625 -# If the database server where you store your bacula catalog
1626 -# is on a different machine, please set this to 0.
1627 -# Setting it to 1 makes bacula-dir depend on the corresponding
1628 -# database service selected at package compile time.
1629 -LOCAL_DB=1
1630 -
1631 -# Options for the director daemon.
1632 -# The director can be run as a non-root user, however
1633 -# please ensure that this user has proper permissions to
1634 -# access your backup devices.
1635 -DIR_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-dir.conf"
1636
1637 diff --git a/app-backup/bacula/files/bacula-fd.confd b/app-backup/bacula/files/bacula-fd.confd
1638 deleted file mode 100644
1639 index ffbe1d6..0000000
1640 --- a/app-backup/bacula/files/bacula-fd.confd
1641 +++ /dev/null
1642 @@ -1,7 +0,0 @@
1643 -# Copyright 1999-2021 Gentoo Authors
1644 -# Distributed under the terms of the GNU General Public License v2
1645 -
1646 -# Config file for /etc/init.d/bacula-fd
1647 -
1648 -# Options for the file daemon.
1649 -FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf"
1650
1651 diff --git a/app-backup/bacula/files/bacula-fix-sonames.patch b/app-backup/bacula/files/bacula-fix-sonames.patch
1652 deleted file mode 100644
1653 index d05b2b9..0000000
1654 --- a/app-backup/bacula/files/bacula-fix-sonames.patch
1655 +++ /dev/null
1656 @@ -1,36 +0,0 @@
1657 -=== modified file 'autoconf/ltmain.sh'
1658 ---- autoconf/ltmain.sh 2011-11-06 20:34:58 +0000
1659 -+++ autoconf/ltmain.sh 2012-02-09 17:27:13 +0000
1660 -@@ -2428,6 +2428,7 @@
1661 - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1662 - -shared only do dynamic linking of libtool libraries
1663 - -shrext SUFFIX override the standard shared library file extension
1664 -+ -soname SONAME override the standard shared object name
1665 - -static do not do any dynamic linking of uninstalled libtool libraries
1666 - -static-libtool-libs
1667 - do not do any dynamic linking of libtool libraries
1668 -@@ -5422,6 +5423,11 @@
1669 - prev=
1670 - continue
1671 - ;;
1672 -+ soname)
1673 -+ soname_spec="$arg"
1674 -+ prev=
1675 -+ continue
1676 -+ ;;
1677 - weak)
1678 - func_append weak_libs " $arg"
1679 - prev=
1680 -@@ -5741,6 +5747,11 @@
1681 - continue
1682 - ;;
1683 -
1684 -+ -soname)
1685 -+ prev=soname
1686 -+ continue
1687 -+ ;;
1688 -+
1689 - -static | -static-libtool-libs)
1690 - # The effects of -static are defined in a previous loop.
1691 - # We used to do the same as -all-static on platforms that
1692 -
1693
1694 diff --git a/app-backup/bacula/files/bacula-sd.confd b/app-backup/bacula/files/bacula-sd.confd
1695 deleted file mode 100644
1696 index 26b70b9..0000000
1697 --- a/app-backup/bacula/files/bacula-sd.confd
1698 +++ /dev/null
1699 @@ -1,10 +0,0 @@
1700 -# Copyright 1999-2021 Gentoo Authors
1701 -# Distributed under the terms of the GNU General Public License v2
1702 -
1703 -# Config file for /etc/init.d/bacula-sd
1704 -
1705 -# Options for the storage daemon.
1706 -# The storage daemon can be run as a non-root user, however
1707 -# please ensure that this user has proper permissions to
1708 -# access your backup devices.
1709 -SD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-sd.conf"
1710
1711 diff --git a/app-backup/bacula/files/newscripts/bacula-dir.initd b/app-backup/bacula/files/newscripts/bacula-dir.initd
1712 deleted file mode 100644
1713 index 9bd9b4b..0000000
1714 --- a/app-backup/bacula/files/newscripts/bacula-dir.initd
1715 +++ /dev/null
1716 @@ -1,15 +0,0 @@
1717 -#!/sbin/openrc-run
1718 -# Copyright 1999-2021 Gentoo Authors
1719 -# Distributed under the terms of the GNU General Public License v2
1720 -command=/usr/sbin/bacula-dir
1721 -command_args="${DIR_OPTIONS}"
1722 -pidfile=/var/run/bacula-dir.9101.pid
1723 -
1724 -depend() {
1725 - need net
1726 - if [ "${LOCAL_DB}" -eq 1 ]; then
1727 - :
1728 - fi
1729 - use dns bacula-fd bacula-sd
1730 -}
1731 -
1732
1733 diff --git a/app-backup/bacula/files/newscripts/bacula-fd.initd b/app-backup/bacula/files/newscripts/bacula-fd.initd
1734 deleted file mode 100644
1735 index 8b70313..0000000
1736 --- a/app-backup/bacula/files/newscripts/bacula-fd.initd
1737 +++ /dev/null
1738 @@ -1,12 +0,0 @@
1739 -#!/sbin/openrc-run
1740 -# Copyright 1999-2021 Gentoo Authors
1741 -# Distributed under the terms of the GNU General Public License v2
1742 -
1743 -command=/usr/sbin/bacula-fd
1744 -command_args="${FD_OPTIONS}"
1745 -pidfile=/var/run/bacula-fd.9102.pid
1746 -
1747 -depend() {
1748 - need net
1749 - use dns
1750 -}
1751
1752 diff --git a/app-backup/bacula/files/newscripts/bacula-sd.initd b/app-backup/bacula/files/newscripts/bacula-sd.initd
1753 deleted file mode 100644
1754 index 1fead83..0000000
1755 --- a/app-backup/bacula/files/newscripts/bacula-sd.initd
1756 +++ /dev/null
1757 @@ -1,11 +0,0 @@
1758 -#!/sbin/openrc-run
1759 -# Copyright 1999-2021 Gentoo Authors
1760 -# Distributed under the terms of the GNU General Public License v2
1761 -command=/usr/sbin/bacula-sd
1762 -command_args="${SD_OPTIONS}"
1763 -pidfile=/var/run/bacula-sd.9103.pid
1764 -
1765 -depend() {
1766 - need net
1767 - use dns
1768 -}
1769
1770 diff --git a/app-backup/bacula/metadata.xml b/app-backup/bacula/metadata.xml
1771 deleted file mode 100644
1772 index ed8ab4a..0000000
1773 --- a/app-backup/bacula/metadata.xml
1774 +++ /dev/null
1775 @@ -1,19 +0,0 @@
1776 -<?xml version="1.0" encoding="UTF-8"?>
1777 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1778 -<pkgmetadata>
1779 - <maintainer type="person">
1780 - <email>tomjbe@g.o</email>
1781 - <name>Thomas Beierlein</name>
1782 - </maintainer>
1783 - <use>
1784 - <flag name="bacula-clientonly">Disable DB support, and just build a
1785 - client</flag>
1786 - <flag name="bacula-nodir">Disable building of director</flag>
1787 - <flag name="bacula-nosd">Disable building of storage daemon</flag>
1788 - <flag name="batch-insert">Enable batch insert into data base</flag>
1789 - <flag name="logwatch">Install support files for logwatch</flag>
1790 - </use>
1791 - <upstream>
1792 - <remote-id type="sourceforge">bacula</remote-id>
1793 - </upstream>
1794 -</pkgmetadata>