1 |
commit: b99f34b85e04e2c26d6e9b919d77f614f4551aa6 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 3 08:48:43 2022 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 3 08:48:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99f34b8 |
7 |
|
8 |
app-backup/bacula: drop 9.6.5, 9.6.6, 9.6.7, 11.0.2, 11.0.3 |
9 |
|
10 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
11 |
|
12 |
app-backup/bacula/Manifest | 5 - |
13 |
app-backup/bacula/bacula-11.0.2.ebuild | 417 -------------------- |
14 |
app-backup/bacula/bacula-11.0.3.ebuild | 413 -------------------- |
15 |
app-backup/bacula/bacula-9.6.5.ebuild | 419 --------------------- |
16 |
app-backup/bacula/bacula-9.6.6.ebuild | 419 --------------------- |
17 |
app-backup/bacula/bacula-9.6.7.ebuild | 419 --------------------- |
18 |
.../bacula/files/7.0.2/bacula-7.0.2-depend.patch | 12 - |
19 |
.../files/9.6.3/bacula-9.6.3-fix-static.patch | 63 ---- |
20 |
.../files/bacula-9.6.x-fix-race-condition.patch | 15 - |
21 |
9 files changed, 2182 deletions(-) |
22 |
|
23 |
diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest |
24 |
index be60a8bdd625..150f4b27934d 100644 |
25 |
--- a/app-backup/bacula/Manifest |
26 |
+++ b/app-backup/bacula/Manifest |
27 |
@@ -1,6 +1 @@ |
28 |
-DIST bacula-11.0.2.tar.gz 5982176 BLAKE2B 2da10e48b44ada189fb5d9ed48bac41232106721859df823309e7be63d16786ebaf95052d929ef67895fb993d019153d736125ec4fe5949591dd7dced0ee9835 SHA512 7e90352036a544b6a508547ae38660ca5d59b0bfd17126f346652e5c9977367ad9fe972e3f2823c10e7f8ffdcd1623ef24e8a82de030041762f0c0e09783e65c |
29 |
-DIST bacula-11.0.3.tar.gz 5982505 BLAKE2B a09a4829cb4eeb6cfe3b082efcc45f7704ad7da0f882b746a2f4aeeb3233775ccc89d7924442970e9609c449fee96466b33286e7c6f700cbab7f2013f0267f53 SHA512 753ef3f53079fe36e69791a3ff0c4230d611d86257c5ecbc28c2ec593e950b76dc9fedf3525c196b0742cc029d0a8023d31505c83d8d42ff3f48c3273b77c540 |
30 |
DIST bacula-11.0.5.tar.gz 5982886 BLAKE2B 99e9c616c29ab6e0064b336e4ad9d0caf96aee9c51009e04b44bfa4f5f3f8d57de93d8bf6c06f60b01f50838fd8cba4500117245b06e82f42a14a6de507a27d1 SHA512 56dd3208f9774f637fbec2781a847d5e7899ceb4e54178c54c9283eba3fcd83b1579fa690aa380bc6aba363a465151f8e709ce728a582e2518ba715c6179af17 |
31 |
-DIST bacula-9.6.5.tar.gz 4252526 BLAKE2B 48bfc9f45db10949fb4d7396c2ca15ed17dad3bd6ab9c6ab5cd0b3a80d1df0d37868a8671c2ead9b00fe89da91d43e945ca2818016f09502aff1a2fd3a5d455d SHA512 4018e242b2131c2416cd16ae3530c9c848dc8e88dd6532136c699a50fcbf39a574ffec8ef13bc5d7a9673d057b51cf1d1be80667e89abe0e18ec79d04b0edd70 |
32 |
-DIST bacula-9.6.6.tar.gz 4253303 BLAKE2B 131353e24265f64dd3c4e0632bee93d2a170d3ed88626ab80f1804e7a218eb86c5ac7507f4a4fe5ef7d4472a1c90ef0f45e1a6ad0a4a65a1fa8f1a8f63287e3f SHA512 1b669bbf1e54f40e0426603601a4751c42101985de901f951a68add7644971d48615b3089c65fafd444c762c3d82b67cafdcae9636e8a19af8fd94ae631c315a |
33 |
-DIST bacula-9.6.7.tar.gz 4168102 BLAKE2B 8f5d5cbe8c3ce62105624138e9dfbb9f19eb0721bb2e377c07ef2cd3d4a8442641b4758b00b3050d2352dde31205658963782d2bec3e87242dac7b4b6a4d659c SHA512 27551faa2e4b13c6c2b9a2500f1253dfa5ee84929013491a7bf512d965d655c5af78b08201090474bc9b29827ca0a5c1c5a23a55712a1f739f37de75449cfd4d |
34 |
|
35 |
diff --git a/app-backup/bacula/bacula-11.0.2.ebuild b/app-backup/bacula/bacula-11.0.2.ebuild |
36 |
deleted file mode 100644 |
37 |
index 129e789ee79d..000000000000 |
38 |
--- a/app-backup/bacula/bacula-11.0.2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,417 +0,0 @@ |
41 |
-# Copyright 1999-2021 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-inherit desktop libtool qmake-utils systemd |
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 +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
59 |
- |
60 |
-DEPEND=" |
61 |
- !bacula-clientonly? ( |
62 |
- !bacula-nodir? ( virtual/mta ) |
63 |
- postgres? ( dev-db/postgresql:=[threads] ) |
64 |
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
65 |
- sqlite? ( dev-db/sqlite:3 ) |
66 |
- ) |
67 |
- dev-libs/gmp:0 |
68 |
- qt5? ( |
69 |
- dev-qt/qtcore:5 |
70 |
- dev-qt/qtgui:5 |
71 |
- dev-qt/qtwidgets:5 |
72 |
- dev-qt/qtsvg:5 |
73 |
- x11-libs/qwt:6 |
74 |
- ) |
75 |
- logwatch? ( sys-apps/logwatch ) |
76 |
- readline? ( sys-libs/readline:0 ) |
77 |
- static? ( |
78 |
- dev-libs/lzo[static-libs] |
79 |
- sys-libs/ncurses:=[static-libs] |
80 |
- sys-libs/zlib[static-libs] |
81 |
- acl? ( virtual/acl[static-libs(+)] ) |
82 |
- ssl? ( |
83 |
- dev-libs/openssl:0=[static-libs] |
84 |
- ) |
85 |
- ) |
86 |
- !static? ( |
87 |
- dev-libs/lzo |
88 |
- sys-libs/ncurses:= |
89 |
- sys-libs/zlib |
90 |
- acl? ( virtual/acl ) |
91 |
- ssl? ( |
92 |
- dev-libs/openssl:0= |
93 |
- ) |
94 |
- ) |
95 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
96 |
-" |
97 |
-RDEPEND="${DEPEND} |
98 |
- acct-user/bacula |
99 |
- acct-group/bacula |
100 |
- !bacula-clientonly? ( |
101 |
- !bacula-nosd? ( |
102 |
- app-arch/mt-st |
103 |
- sys-block/mtx |
104 |
- ) |
105 |
- ) |
106 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
107 |
-" |
108 |
- |
109 |
-REQUIRED_USE=" |
110 |
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
111 |
- static? ( bacula-clientonly ) |
112 |
-" |
113 |
- |
114 |
-S=${WORKDIR}/${MY_P} |
115 |
- |
116 |
-pkg_setup() { |
117 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
118 |
- use mysql && export mydbtype="mysql" |
119 |
- use postgres && export mydbtype="postgresql" |
120 |
- use sqlite && export mydbtype="sqlite3" |
121 |
- |
122 |
- if use bacula-clientonly && use static && use qt5; then |
123 |
- ewarn |
124 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
125 |
- ewarn |
126 |
- fi |
127 |
-} |
128 |
- |
129 |
-src_prepare() { |
130 |
- # adjusts default configuration files for several binaries |
131 |
- # to /etc/bacula/<config> instead of ./<config> |
132 |
- pushd src >&/dev/null || die |
133 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
134 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
135 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
136 |
- qt-console/main.cpp; do |
137 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
138 |
- || die "sed on ${f} failed" |
139 |
- done |
140 |
- popd >&/dev/null || die |
141 |
- |
142 |
- # bug 466688 drop deprecated categories from Desktop file |
143 |
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
144 |
- |
145 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
146 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
147 |
- |
148 |
- # drop automatic install of unneeded documentation (for bug 356499) |
149 |
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
150 |
- |
151 |
- # bug #310087 |
152 |
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
153 |
- |
154 |
- # bug #311161 |
155 |
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
156 |
- |
157 |
- # bat needs to respect LDFLAGS and CFLAGS |
158 |
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
159 |
- |
160 |
- # bug #328701 |
161 |
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
162 |
- |
163 |
- eapply -p0 "${FILESDIR}"/${P}-fix-static.patch |
164 |
- |
165 |
- # fix soname in libbaccat.so bug #602952 |
166 |
- eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
167 |
- |
168 |
- # do not strip binaries |
169 |
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
170 |
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
171 |
- |
172 |
- # fix file not found error during make depend |
173 |
- # drop not needed tool |
174 |
- rm src/tools/bsparse.c || die |
175 |
- |
176 |
- eapply_user |
177 |
- |
178 |
- # Fix systemd unit files: |
179 |
- # bug 497748 |
180 |
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
181 |
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
182 |
- # bug 504370 |
183 |
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
184 |
- # bug 584442 and 504368 |
185 |
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
186 |
- |
187 |
- # build 'bat' for Qt5 |
188 |
- export QMAKE="$(qt5_get_bindir)"/qmake |
189 |
- |
190 |
- # adapt to >=Qt-5.9 (see bug #644566) |
191 |
- # qmake needs an existing target file to generate install instructions |
192 |
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
193 |
- src/qt-console/bat.pro.in || die |
194 |
- mkdir src/qt-console/.libs || die |
195 |
- touch src/qt-console/.libs/bat || die |
196 |
- chmod 755 src/qt-console/.libs/bat || die |
197 |
- |
198 |
- # Don't let program install man pages directly |
199 |
- sed -i -e 's/ manpages//' Makefile.in || die |
200 |
- |
201 |
- # correct installation for plugins to mode 0755 (bug #725946) |
202 |
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die |
203 |
- |
204 |
- # fix bundled libtool (bug 466696) |
205 |
- # But first move directory with M4 macros out of the way. |
206 |
- # It is only needed by autoconf and gives errors during elibtoolize. |
207 |
- mv autoconf/libtool autoconf/libtool1 || die |
208 |
- elibtoolize |
209 |
-} |
210 |
- |
211 |
-src_configure() { |
212 |
- local myconf='' |
213 |
- |
214 |
- if use bacula-clientonly; then |
215 |
- myconf="${myconf} \ |
216 |
- $(use_enable bacula-clientonly client-only) \ |
217 |
- $(use_enable !static libtool) \ |
218 |
- $(use_enable static static-cons) \ |
219 |
- $(use_enable static static-fd)" |
220 |
- else |
221 |
- myconf="${myconf} \ |
222 |
- $(use_enable !bacula-nodir build-dird) \ |
223 |
- $(use_enable !bacula-nosd build-stored)" |
224 |
- # bug #311099 |
225 |
- # database support needed by dir-only *and* sd-only |
226 |
- # build as well (for building bscan, btape, etc.) |
227 |
- myconf="${myconf} |
228 |
- --with-${mydbtype}" |
229 |
- fi |
230 |
- |
231 |
- # do not build bat if 'static' clientonly |
232 |
- if ! use bacula-clientonly || ! use static; then |
233 |
- myconf="${myconf} \ |
234 |
- $(use_enable qt5 bat)" |
235 |
- fi |
236 |
- |
237 |
- myconf="${myconf} \ |
238 |
- $(use_with X x) \ |
239 |
- $(use_enable batch-insert) \ |
240 |
- $(use_enable !readline conio) \ |
241 |
- $(use_enable readline) \ |
242 |
- $(use_with ssl openssl) \ |
243 |
- $(use_enable ipv6) \ |
244 |
- $(use_enable acl) \ |
245 |
- $(use_with tcpd tcp-wrappers)" |
246 |
- |
247 |
- econf \ |
248 |
- --with-pid-dir=/var/run \ |
249 |
- --sysconfdir=/etc/bacula \ |
250 |
- --with-archivedir=/var/lib/bacula/tmp \ |
251 |
- --with-subsys-dir=/var/lock/subsys \ |
252 |
- --with-working-dir=/var/lib/bacula \ |
253 |
- --with-logdir=/var/lib/bacula \ |
254 |
- --with-scriptdir=/usr/libexec/bacula \ |
255 |
- --with-systemd=$(systemd_get_systemunitdir) \ |
256 |
- --with-dir-user=bacula \ |
257 |
- --with-dir-group=bacula \ |
258 |
- --with-sd-user=root \ |
259 |
- --with-sd-group=bacula \ |
260 |
- --with-fd-user=root \ |
261 |
- --with-fd-group=bacula \ |
262 |
- --enable-smartalloc \ |
263 |
- --disable-afs \ |
264 |
- --without-s3 \ |
265 |
- --host=${CHOST} \ |
266 |
- ${myconf} |
267 |
-} |
268 |
- |
269 |
-src_compile() { |
270 |
- # Make build log verbose (bug #447806) |
271 |
- emake NO_ECHO="" |
272 |
-} |
273 |
- |
274 |
-src_install() { |
275 |
- emake DESTDIR="${D}" install |
276 |
- doicon scripts/bacula.png |
277 |
- |
278 |
- # install bat icon and desktop file when enabled |
279 |
- # (for some reason ./configure doesn't pick this up) |
280 |
- if use qt5 && ! use static ; then |
281 |
- doicon src/qt-console/images/bat_icon.png |
282 |
- domenu scripts/bat.desktop |
283 |
- fi |
284 |
- |
285 |
- # remove some scripts we don't need at all |
286 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
287 |
- |
288 |
- # rename statically linked apps |
289 |
- if use bacula-clientonly && use static ; then |
290 |
- pushd "${D}"/usr/sbin || die |
291 |
- mv static-bacula-fd bacula-fd || die |
292 |
- mv static-bconsole bconsole || die |
293 |
- popd || die |
294 |
- fi |
295 |
- |
296 |
- # extra files which 'make install' doesn't cover |
297 |
- if ! use bacula-clientonly; then |
298 |
- # the database update scripts |
299 |
- diropts -m0750 |
300 |
- insinto /usr/libexec/bacula/updatedb |
301 |
- insopts -m0754 |
302 |
- doins "${S}"/updatedb/* |
303 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
304 |
- |
305 |
- # the logrotate configuration |
306 |
- # (now unconditional wrt bug #258187) |
307 |
- diropts -m0755 |
308 |
- insinto /etc/logrotate.d |
309 |
- insopts -m0644 |
310 |
- newins "${S}"/scripts/logrotate bacula |
311 |
- |
312 |
- # the logwatch scripts |
313 |
- if use logwatch; then |
314 |
- diropts -m0750 |
315 |
- dodir /usr/share/logwatch/scripts/services |
316 |
- dodir /usr/share/logwatch/scripts/shared |
317 |
- dodir /etc/logwatch/conf/logfiles |
318 |
- dodir /etc/logwatch/conf/services |
319 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
320 |
- emake DESTDIR="${D}" install |
321 |
- popd >&/dev/null || die |
322 |
- fi |
323 |
- fi |
324 |
- |
325 |
- # Install all man pages |
326 |
- doman "${S}"/manpages/*.[18] |
327 |
- |
328 |
- if ! use qt5; then |
329 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
330 |
- fi |
331 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
332 |
- |
333 |
- if use bacula-clientonly || use bacula-nodir ; then |
334 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
335 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
336 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
337 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
338 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
339 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
340 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
341 |
- fi |
342 |
- if use bacula-clientonly || use bacula-nosd; then |
343 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
344 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
345 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
346 |
- fi |
347 |
- |
348 |
- # documentation |
349 |
- dodoc ChangeLog ReleaseNotes SUPPORT |
350 |
- |
351 |
- # install examples (bug #457504) |
352 |
- if use examples; then |
353 |
- docinto examples/ |
354 |
- dodoc -r examples/* |
355 |
- fi |
356 |
- |
357 |
- # vim-files |
358 |
- if use vim-syntax; then |
359 |
- insinto /usr/share/vim/vimfiles/syntax |
360 |
- doins scripts/bacula.vim |
361 |
- insinto /usr/share/vim/vimfiles/ftdetect |
362 |
- newins scripts/filetype.vim bacula_ft.vim |
363 |
- fi |
364 |
- |
365 |
- # setup init scripts |
366 |
- myscripts="bacula-fd" |
367 |
- if ! use bacula-clientonly; then |
368 |
- if ! use bacula-nodir; then |
369 |
- myscripts="${myscripts} bacula-dir" |
370 |
- fi |
371 |
- if ! use bacula-nosd; then |
372 |
- myscripts="${myscripts} bacula-sd" |
373 |
- fi |
374 |
- fi |
375 |
- for script in ${myscripts}; do |
376 |
- # copy over init script and config to a temporary location |
377 |
- # so we can modify them as needed |
378 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
379 |
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
380 |
- |
381 |
- # now set the database dependancy for the director init script |
382 |
- case "${script}" in |
383 |
- bacula-dir) |
384 |
- case "${mydbtype}" in |
385 |
- sqlite3) |
386 |
- # sqlite databases don't have a daemon |
387 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
388 |
- ;; |
389 |
- *) |
390 |
- # all other databases have daemons |
391 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
392 |
- ;; |
393 |
- esac |
394 |
- ;; |
395 |
- *) |
396 |
- ;; |
397 |
- esac |
398 |
- |
399 |
- # install init script and config |
400 |
- newinitd "${T}/${script}".initd "${script}" |
401 |
- newconfd "${T}/${script}".confd "${script}" |
402 |
- done |
403 |
- |
404 |
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
405 |
- |
406 |
- # make sure the working directory exists |
407 |
- diropts -m0750 |
408 |
- keepdir /var/lib/bacula |
409 |
- |
410 |
- # make sure bacula group can execute bacula libexec scripts |
411 |
- fowners -R root:bacula /usr/libexec/bacula |
412 |
-} |
413 |
- |
414 |
-pkg_postinst() { |
415 |
- if use bacula-clientonly; then |
416 |
- fowners root:bacula /var/lib/bacula |
417 |
- else |
418 |
- fowners bacula:bacula /var/lib/bacula |
419 |
- fi |
420 |
- |
421 |
- einfo |
422 |
- einfo "A group 'bacula' has been created. Any users you add to this" |
423 |
- einfo "group have access to files created by the daemons." |
424 |
- einfo |
425 |
- einfo "A user 'bacula' has been created. Please see the bacula manual" |
426 |
- einfo "for information about running bacula as a non-root user." |
427 |
- einfo |
428 |
- |
429 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
430 |
- einfo |
431 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
432 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
433 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
434 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
435 |
- einfo |
436 |
- |
437 |
- ewarn "ATTENTION!" |
438 |
- ewarn "The format of the database may have changed." |
439 |
- ewarn "If you just upgraded from a version below 9.0.0 you must run" |
440 |
- ewarn "'update_bacula_tables' now." |
441 |
- ewarn "Make sure to have a backup of your catalog before." |
442 |
- ewarn |
443 |
- fi |
444 |
- |
445 |
- if use sqlite; then |
446 |
- einfo |
447 |
- einfo "Be aware that Bacula does not officially support SQLite database anymore." |
448 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
449 |
- einfo |
450 |
- fi |
451 |
- |
452 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
453 |
- einfo "you have to enable 'USE=qt5'." |
454 |
- einfo |
455 |
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
456 |
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
457 |
-} |
458 |
|
459 |
diff --git a/app-backup/bacula/bacula-11.0.3.ebuild b/app-backup/bacula/bacula-11.0.3.ebuild |
460 |
deleted file mode 100644 |
461 |
index b2738be8a8a5..000000000000 |
462 |
--- a/app-backup/bacula/bacula-11.0.3.ebuild |
463 |
+++ /dev/null |
464 |
@@ -1,413 +0,0 @@ |
465 |
-# Copyright 1999-2021 Gentoo Authors |
466 |
-# Distributed under the terms of the GNU General Public License v2 |
467 |
- |
468 |
-EAPI=7 |
469 |
- |
470 |
-inherit desktop libtool qmake-utils systemd |
471 |
- |
472 |
-MY_PV=${PV/_beta/-b} |
473 |
-MY_P=${PN}-${MY_PV} |
474 |
- |
475 |
-DESCRIPTION="Featureful client/server network backup suite" |
476 |
-HOMEPAGE="https://www.bacula.org/" |
477 |
-SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
478 |
- |
479 |
-LICENSE="AGPL-3" |
480 |
-SLOT="0" |
481 |
-KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
482 |
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
483 |
- |
484 |
-DEPEND=" |
485 |
- !bacula-clientonly? ( |
486 |
- !bacula-nodir? ( virtual/mta ) |
487 |
- postgres? ( dev-db/postgresql:=[threads] ) |
488 |
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
489 |
- sqlite? ( dev-db/sqlite:3 ) |
490 |
- ) |
491 |
- dev-libs/gmp:0 |
492 |
- qt5? ( |
493 |
- dev-qt/qtcore:5 |
494 |
- dev-qt/qtgui:5 |
495 |
- dev-qt/qtwidgets:5 |
496 |
- dev-qt/qtsvg:5 |
497 |
- x11-libs/qwt:6 |
498 |
- ) |
499 |
- logwatch? ( sys-apps/logwatch ) |
500 |
- readline? ( sys-libs/readline:0 ) |
501 |
- static? ( |
502 |
- dev-libs/lzo[static-libs] |
503 |
- sys-libs/ncurses:=[static-libs] |
504 |
- sys-libs/zlib[static-libs] |
505 |
- acl? ( virtual/acl[static-libs(+)] ) |
506 |
- ssl? ( |
507 |
- dev-libs/openssl:0=[static-libs] |
508 |
- ) |
509 |
- ) |
510 |
- !static? ( |
511 |
- dev-libs/lzo |
512 |
- sys-libs/ncurses:= |
513 |
- sys-libs/zlib |
514 |
- acl? ( virtual/acl ) |
515 |
- ssl? ( |
516 |
- dev-libs/openssl:0= |
517 |
- ) |
518 |
- ) |
519 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
520 |
-" |
521 |
-RDEPEND="${DEPEND} |
522 |
- acct-user/bacula |
523 |
- acct-group/bacula |
524 |
- !bacula-clientonly? ( |
525 |
- !bacula-nosd? ( |
526 |
- app-arch/mt-st |
527 |
- sys-block/mtx |
528 |
- ) |
529 |
- ) |
530 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
531 |
-" |
532 |
- |
533 |
-REQUIRED_USE=" |
534 |
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
535 |
- static? ( bacula-clientonly ) |
536 |
-" |
537 |
- |
538 |
-S=${WORKDIR}/${MY_P} |
539 |
- |
540 |
-pkg_setup() { |
541 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
542 |
- use mysql && export mydbtype="mysql" |
543 |
- use postgres && export mydbtype="postgresql" |
544 |
- use sqlite && export mydbtype="sqlite3" |
545 |
- |
546 |
- if use bacula-clientonly && use static && use qt5; then |
547 |
- ewarn |
548 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
549 |
- ewarn |
550 |
- fi |
551 |
-} |
552 |
- |
553 |
-src_prepare() { |
554 |
- # adjusts default configuration files for several binaries |
555 |
- # to /etc/bacula/<config> instead of ./<config> |
556 |
- pushd src >&/dev/null || die |
557 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
558 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
559 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
560 |
- qt-console/main.cpp; do |
561 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
562 |
- || die "sed on ${f} failed" |
563 |
- done |
564 |
- popd >&/dev/null || die |
565 |
- |
566 |
- # bug 466688 drop deprecated categories from Desktop file |
567 |
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
568 |
- |
569 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
570 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
571 |
- |
572 |
- # drop automatic install of unneeded documentation (for bug 356499) |
573 |
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
574 |
- |
575 |
- # bug #310087 |
576 |
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
577 |
- |
578 |
- # bug #311161 |
579 |
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
580 |
- |
581 |
- # bat needs to respect LDFLAGS and CFLAGS |
582 |
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
583 |
- |
584 |
- # bug #328701 |
585 |
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
586 |
- |
587 |
- eapply -p0 "${FILESDIR}"/${PN}-11.0.2-fix-static.patch |
588 |
- |
589 |
- # fix soname in libbaccat.so bug #602952 |
590 |
- eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
591 |
- |
592 |
- # do not strip binaries |
593 |
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
594 |
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
595 |
- |
596 |
- eapply_user |
597 |
- |
598 |
- # Fix systemd unit files: |
599 |
- # bug 497748 |
600 |
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
601 |
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
602 |
- # bug 504370 |
603 |
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
604 |
- # bug 584442 and 504368 |
605 |
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
606 |
- |
607 |
- # build 'bat' for Qt5 |
608 |
- export QMAKE="$(qt5_get_bindir)"/qmake |
609 |
- |
610 |
- # adapt to >=Qt-5.9 (see bug #644566) |
611 |
- # qmake needs an existing target file to generate install instructions |
612 |
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
613 |
- src/qt-console/bat.pro.in || die |
614 |
- mkdir src/qt-console/.libs || die |
615 |
- touch src/qt-console/.libs/bat || die |
616 |
- chmod 755 src/qt-console/.libs/bat || die |
617 |
- |
618 |
- # Don't let program install man pages directly |
619 |
- sed -i -e 's/ manpages//' Makefile.in || die |
620 |
- |
621 |
- # correct installation for plugins to mode 0755 (bug #725946) |
622 |
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die |
623 |
- |
624 |
- # fix bundled libtool (bug 466696) |
625 |
- # But first move directory with M4 macros out of the way. |
626 |
- # It is only needed by autoconf and gives errors during elibtoolize. |
627 |
- mv autoconf/libtool autoconf/libtool1 || die |
628 |
- elibtoolize |
629 |
-} |
630 |
- |
631 |
-src_configure() { |
632 |
- local myconf='' |
633 |
- |
634 |
- if use bacula-clientonly; then |
635 |
- myconf="${myconf} \ |
636 |
- $(use_enable bacula-clientonly client-only) \ |
637 |
- $(use_enable !static libtool) \ |
638 |
- $(use_enable static static-cons) \ |
639 |
- $(use_enable static static-fd)" |
640 |
- else |
641 |
- myconf="${myconf} \ |
642 |
- $(use_enable !bacula-nodir build-dird) \ |
643 |
- $(use_enable !bacula-nosd build-stored)" |
644 |
- # bug #311099 |
645 |
- # database support needed by dir-only *and* sd-only |
646 |
- # build as well (for building bscan, btape, etc.) |
647 |
- myconf="${myconf} |
648 |
- --with-${mydbtype}" |
649 |
- fi |
650 |
- |
651 |
- # do not build bat if 'static' clientonly |
652 |
- if ! use bacula-clientonly || ! use static; then |
653 |
- myconf="${myconf} \ |
654 |
- $(use_enable qt5 bat)" |
655 |
- fi |
656 |
- |
657 |
- myconf="${myconf} \ |
658 |
- $(use_with X x) \ |
659 |
- $(use_enable batch-insert) \ |
660 |
- $(use_enable !readline conio) \ |
661 |
- $(use_enable readline) \ |
662 |
- $(use_with ssl openssl) \ |
663 |
- $(use_enable ipv6) \ |
664 |
- $(use_enable acl) \ |
665 |
- $(use_with tcpd tcp-wrappers)" |
666 |
- |
667 |
- econf \ |
668 |
- --with-pid-dir=/var/run \ |
669 |
- --sysconfdir=/etc/bacula \ |
670 |
- --with-archivedir=/var/lib/bacula/tmp \ |
671 |
- --with-subsys-dir=/var/lock/subsys \ |
672 |
- --with-working-dir=/var/lib/bacula \ |
673 |
- --with-logdir=/var/lib/bacula \ |
674 |
- --with-scriptdir=/usr/libexec/bacula \ |
675 |
- --with-systemd=$(systemd_get_systemunitdir) \ |
676 |
- --with-dir-user=bacula \ |
677 |
- --with-dir-group=bacula \ |
678 |
- --with-sd-user=root \ |
679 |
- --with-sd-group=bacula \ |
680 |
- --with-fd-user=root \ |
681 |
- --with-fd-group=bacula \ |
682 |
- --enable-smartalloc \ |
683 |
- --disable-afs \ |
684 |
- --without-s3 \ |
685 |
- --host=${CHOST} \ |
686 |
- ${myconf} |
687 |
-} |
688 |
- |
689 |
-src_compile() { |
690 |
- # Make build log verbose (bug #447806) |
691 |
- emake NO_ECHO="" |
692 |
-} |
693 |
- |
694 |
-src_install() { |
695 |
- emake DESTDIR="${D}" install |
696 |
- doicon scripts/bacula.png |
697 |
- |
698 |
- # install bat icon and desktop file when enabled |
699 |
- # (for some reason ./configure doesn't pick this up) |
700 |
- if use qt5 && ! use static ; then |
701 |
- doicon src/qt-console/images/bat_icon.png |
702 |
- domenu scripts/bat.desktop |
703 |
- fi |
704 |
- |
705 |
- # remove some scripts we don't need at all |
706 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
707 |
- |
708 |
- # rename statically linked apps |
709 |
- if use bacula-clientonly && use static ; then |
710 |
- pushd "${D}"/usr/sbin || die |
711 |
- mv static-bacula-fd bacula-fd || die |
712 |
- mv static-bconsole bconsole || die |
713 |
- popd || die |
714 |
- fi |
715 |
- |
716 |
- # extra files which 'make install' doesn't cover |
717 |
- if ! use bacula-clientonly; then |
718 |
- # the database update scripts |
719 |
- diropts -m0750 |
720 |
- insinto /usr/libexec/bacula/updatedb |
721 |
- insopts -m0754 |
722 |
- doins "${S}"/updatedb/* |
723 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
724 |
- |
725 |
- # the logrotate configuration |
726 |
- # (now unconditional wrt bug #258187) |
727 |
- diropts -m0755 |
728 |
- insinto /etc/logrotate.d |
729 |
- insopts -m0644 |
730 |
- newins "${S}"/scripts/logrotate bacula |
731 |
- |
732 |
- # the logwatch scripts |
733 |
- if use logwatch; then |
734 |
- diropts -m0750 |
735 |
- dodir /usr/share/logwatch/scripts/services |
736 |
- dodir /usr/share/logwatch/scripts/shared |
737 |
- dodir /etc/logwatch/conf/logfiles |
738 |
- dodir /etc/logwatch/conf/services |
739 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
740 |
- emake DESTDIR="${D}" install |
741 |
- popd >&/dev/null || die |
742 |
- fi |
743 |
- fi |
744 |
- |
745 |
- # Install all man pages |
746 |
- doman "${S}"/manpages/*.[18] |
747 |
- |
748 |
- if ! use qt5; then |
749 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
750 |
- fi |
751 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
752 |
- |
753 |
- if use bacula-clientonly || use bacula-nodir ; then |
754 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
755 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
756 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
757 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
758 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
759 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
760 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
761 |
- fi |
762 |
- if use bacula-clientonly || use bacula-nosd; then |
763 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
764 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
765 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
766 |
- fi |
767 |
- |
768 |
- # documentation |
769 |
- dodoc ChangeLog ReleaseNotes SUPPORT |
770 |
- |
771 |
- # install examples (bug #457504) |
772 |
- if use examples; then |
773 |
- docinto examples/ |
774 |
- dodoc -r examples/* |
775 |
- fi |
776 |
- |
777 |
- # vim-files |
778 |
- if use vim-syntax; then |
779 |
- insinto /usr/share/vim/vimfiles/syntax |
780 |
- doins scripts/bacula.vim |
781 |
- insinto /usr/share/vim/vimfiles/ftdetect |
782 |
- newins scripts/filetype.vim bacula_ft.vim |
783 |
- fi |
784 |
- |
785 |
- # setup init scripts |
786 |
- myscripts="bacula-fd" |
787 |
- if ! use bacula-clientonly; then |
788 |
- if ! use bacula-nodir; then |
789 |
- myscripts="${myscripts} bacula-dir" |
790 |
- fi |
791 |
- if ! use bacula-nosd; then |
792 |
- myscripts="${myscripts} bacula-sd" |
793 |
- fi |
794 |
- fi |
795 |
- for script in ${myscripts}; do |
796 |
- # copy over init script and config to a temporary location |
797 |
- # so we can modify them as needed |
798 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
799 |
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
800 |
- |
801 |
- # now set the database dependancy for the director init script |
802 |
- case "${script}" in |
803 |
- bacula-dir) |
804 |
- case "${mydbtype}" in |
805 |
- sqlite3) |
806 |
- # sqlite databases don't have a daemon |
807 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
808 |
- ;; |
809 |
- *) |
810 |
- # all other databases have daemons |
811 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
812 |
- ;; |
813 |
- esac |
814 |
- ;; |
815 |
- *) |
816 |
- ;; |
817 |
- esac |
818 |
- |
819 |
- # install init script and config |
820 |
- newinitd "${T}/${script}".initd "${script}" |
821 |
- newconfd "${T}/${script}".confd "${script}" |
822 |
- done |
823 |
- |
824 |
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
825 |
- |
826 |
- # make sure the working directory exists |
827 |
- diropts -m0750 |
828 |
- keepdir /var/lib/bacula |
829 |
- |
830 |
- # make sure bacula group can execute bacula libexec scripts |
831 |
- fowners -R root:bacula /usr/libexec/bacula |
832 |
-} |
833 |
- |
834 |
-pkg_postinst() { |
835 |
- if use bacula-clientonly; then |
836 |
- fowners root:bacula /var/lib/bacula |
837 |
- else |
838 |
- fowners bacula:bacula /var/lib/bacula |
839 |
- fi |
840 |
- |
841 |
- einfo |
842 |
- einfo "A group 'bacula' has been created. Any users you add to this" |
843 |
- einfo "group have access to files created by the daemons." |
844 |
- einfo |
845 |
- einfo "A user 'bacula' has been created. Please see the bacula manual" |
846 |
- einfo "for information about running bacula as a non-root user." |
847 |
- einfo |
848 |
- |
849 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
850 |
- einfo |
851 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
852 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
853 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
854 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
855 |
- einfo |
856 |
- |
857 |
- ewarn "ATTENTION!" |
858 |
- ewarn "The format of the database may have changed." |
859 |
- ewarn "If you just upgraded from a version below 9.0.0 you must run" |
860 |
- ewarn "'update_bacula_tables' now." |
861 |
- ewarn "Make sure to have a backup of your catalog before." |
862 |
- ewarn |
863 |
- fi |
864 |
- |
865 |
- if use sqlite; then |
866 |
- einfo |
867 |
- einfo "Be aware that Bacula does not officially support SQLite database anymore." |
868 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
869 |
- einfo |
870 |
- fi |
871 |
- |
872 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
873 |
- einfo "you have to enable 'USE=qt5'." |
874 |
- einfo |
875 |
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
876 |
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
877 |
-} |
878 |
|
879 |
diff --git a/app-backup/bacula/bacula-9.6.5.ebuild b/app-backup/bacula/bacula-9.6.5.ebuild |
880 |
deleted file mode 100644 |
881 |
index f5260ccb5e3e..000000000000 |
882 |
--- a/app-backup/bacula/bacula-9.6.5.ebuild |
883 |
+++ /dev/null |
884 |
@@ -1,419 +0,0 @@ |
885 |
-# Copyright 1999-2022 Gentoo Authors |
886 |
-# Distributed under the terms of the GNU General Public License v2 |
887 |
- |
888 |
-EAPI=7 |
889 |
- |
890 |
-inherit desktop libtool qmake-utils systemd |
891 |
- |
892 |
-MY_PV=${PV/_beta/-b} |
893 |
-MY_P=${PN}-${MY_PV} |
894 |
- |
895 |
-DESCRIPTION="Featureful client/server network backup suite" |
896 |
-HOMEPAGE="https://www.bacula.org/" |
897 |
-SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
898 |
- |
899 |
-LICENSE="AGPL-3" |
900 |
-SLOT="0" |
901 |
-KEYWORDS="amd64 ~ppc ~sparc x86" |
902 |
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
903 |
- |
904 |
-DEPEND=" |
905 |
- !bacula-clientonly? ( |
906 |
- !bacula-nodir? ( virtual/mta ) |
907 |
- postgres? ( dev-db/postgresql:=[threads] ) |
908 |
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
909 |
- sqlite? ( dev-db/sqlite:3 ) |
910 |
- ) |
911 |
- dev-libs/gmp:0 |
912 |
- qt5? ( |
913 |
- dev-qt/qtcore:5 |
914 |
- dev-qt/qtgui:5 |
915 |
- dev-qt/qtwidgets:5 |
916 |
- dev-qt/qtsvg:5 |
917 |
- x11-libs/qwt:6 |
918 |
- ) |
919 |
- logwatch? ( sys-apps/logwatch ) |
920 |
- readline? ( sys-libs/readline:0 ) |
921 |
- static? ( |
922 |
- dev-libs/lzo[static-libs] |
923 |
- sys-libs/ncurses:=[static-libs] |
924 |
- sys-libs/zlib[static-libs] |
925 |
- acl? ( virtual/acl[static-libs(+)] ) |
926 |
- ssl? ( |
927 |
- dev-libs/openssl:0=[static-libs] |
928 |
- ) |
929 |
- ) |
930 |
- !static? ( |
931 |
- dev-libs/lzo |
932 |
- sys-libs/ncurses:= |
933 |
- sys-libs/zlib |
934 |
- acl? ( virtual/acl ) |
935 |
- ssl? ( |
936 |
- dev-libs/openssl:0= |
937 |
- ) |
938 |
- ) |
939 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
940 |
-" |
941 |
-RDEPEND="${DEPEND} |
942 |
- acct-user/bacula |
943 |
- acct-group/bacula |
944 |
- !bacula-clientonly? ( |
945 |
- !bacula-nosd? ( |
946 |
- app-arch/mt-st |
947 |
- sys-block/mtx |
948 |
- ) |
949 |
- ) |
950 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
951 |
-" |
952 |
- |
953 |
-REQUIRED_USE=" |
954 |
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
955 |
- static? ( bacula-clientonly ) |
956 |
-" |
957 |
- |
958 |
-S=${WORKDIR}/${MY_P} |
959 |
- |
960 |
-pkg_setup() { |
961 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
962 |
- use mysql && export mydbtype="mysql" |
963 |
- use postgres && export mydbtype="postgresql" |
964 |
- use sqlite && export mydbtype="sqlite3" |
965 |
- |
966 |
- if use bacula-clientonly && use static && use qt5; then |
967 |
- ewarn |
968 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
969 |
- ewarn |
970 |
- fi |
971 |
-} |
972 |
- |
973 |
-src_prepare() { |
974 |
- # adjusts default configuration files for several binaries |
975 |
- # to /etc/bacula/<config> instead of ./<config> |
976 |
- pushd src >&/dev/null || die |
977 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
978 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
979 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
980 |
- qt-console/main.cpp; do |
981 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
982 |
- || die "sed on ${f} failed" |
983 |
- done |
984 |
- popd >&/dev/null || die |
985 |
- |
986 |
- # bug 466688 drop deprecated categories from Desktop file |
987 |
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
988 |
- |
989 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
990 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
991 |
- |
992 |
- # drop automatic install of unneeded documentation (for bug 356499) |
993 |
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
994 |
- |
995 |
- # bug #310087 |
996 |
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
997 |
- |
998 |
- # bug #311161 |
999 |
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
1000 |
- |
1001 |
- # bat needs to respect LDFLAGS and CFLAGS |
1002 |
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
1003 |
- |
1004 |
- # bug #328701 |
1005 |
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
1006 |
- |
1007 |
- eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch |
1008 |
- |
1009 |
- # fix soname in libbaccat.so bug #602952 |
1010 |
- eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
1011 |
- |
1012 |
- # do not strip binaries |
1013 |
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
1014 |
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
1015 |
- |
1016 |
- # fix file not found error during make depend |
1017 |
- eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch |
1018 |
- |
1019 |
- eapply_user |
1020 |
- |
1021 |
- # Fix systemd unit files: |
1022 |
- # bug 497748 |
1023 |
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
1024 |
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
1025 |
- # bug 504370 |
1026 |
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
1027 |
- # bug 584442 and 504368 |
1028 |
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
1029 |
- |
1030 |
- # build 'bat' for Qt5 |
1031 |
- export QMAKE="$(qt5_get_bindir)"/qmake |
1032 |
- |
1033 |
- # adapt to >=Qt-5.9 (see bug #644566) |
1034 |
- # qmake needs an existing target file to generate install instructions |
1035 |
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
1036 |
- src/qt-console/bat.pro.in || die |
1037 |
- mkdir src/qt-console/.libs || die |
1038 |
- touch src/qt-console/.libs/bat || die |
1039 |
- chmod 755 src/qt-console/.libs/bat || die |
1040 |
- |
1041 |
- # Don't let program install man pages directly |
1042 |
- sed -i -e 's/ manpages//' Makefile.in || die |
1043 |
- |
1044 |
- # correct installation for plugins to mode 0755 (bug #725946) |
1045 |
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die |
1046 |
- |
1047 |
- # fix database locking code for bacula-9.6.4 ... -9.6.x (bug #766195) |
1048 |
- eapply -p0 "${FILESDIR}"/${PN}-9.6.x-fix-race-condition.patch |
1049 |
- |
1050 |
- # fix bundled libtool (bug 466696) |
1051 |
- # But first move directory with M4 macros out of the way. |
1052 |
- # It is only needed by autoconf and gives errors during elibtoolize. |
1053 |
- mv autoconf/libtool autoconf/libtool1 || die |
1054 |
- elibtoolize |
1055 |
-} |
1056 |
- |
1057 |
-src_configure() { |
1058 |
- local myconf='' |
1059 |
- |
1060 |
- if use bacula-clientonly; then |
1061 |
- myconf="${myconf} \ |
1062 |
- $(use_enable bacula-clientonly client-only) \ |
1063 |
- $(use_enable !static libtool) \ |
1064 |
- $(use_enable static static-cons) \ |
1065 |
- $(use_enable static static-fd)" |
1066 |
- else |
1067 |
- myconf="${myconf} \ |
1068 |
- $(use_enable !bacula-nodir build-dird) \ |
1069 |
- $(use_enable !bacula-nosd build-stored)" |
1070 |
- # bug #311099 |
1071 |
- # database support needed by dir-only *and* sd-only |
1072 |
- # build as well (for building bscan, btape, etc.) |
1073 |
- myconf="${myconf} |
1074 |
- --with-${mydbtype}" |
1075 |
- fi |
1076 |
- |
1077 |
- # do not build bat if 'static' clientonly |
1078 |
- if ! use bacula-clientonly || ! use static; then |
1079 |
- myconf="${myconf} \ |
1080 |
- $(use_enable qt5 bat)" |
1081 |
- fi |
1082 |
- |
1083 |
- myconf="${myconf} \ |
1084 |
- $(use_with X x) \ |
1085 |
- $(use_enable batch-insert) \ |
1086 |
- $(use_enable !readline conio) \ |
1087 |
- $(use_enable readline) \ |
1088 |
- $(use_with ssl openssl) \ |
1089 |
- $(use_enable ipv6) \ |
1090 |
- $(use_enable acl) \ |
1091 |
- $(use_with tcpd tcp-wrappers)" |
1092 |
- |
1093 |
- econf \ |
1094 |
- --with-pid-dir=/var/run \ |
1095 |
- --sysconfdir=/etc/bacula \ |
1096 |
- --with-archivedir=/var/lib/bacula/tmp \ |
1097 |
- --with-subsys-dir=/var/lock/subsys \ |
1098 |
- --with-working-dir=/var/lib/bacula \ |
1099 |
- --with-logdir=/var/lib/bacula \ |
1100 |
- --with-scriptdir=/usr/libexec/bacula \ |
1101 |
- --with-systemd=$(systemd_get_systemunitdir) \ |
1102 |
- --with-dir-user=bacula \ |
1103 |
- --with-dir-group=bacula \ |
1104 |
- --with-sd-user=root \ |
1105 |
- --with-sd-group=bacula \ |
1106 |
- --with-fd-user=root \ |
1107 |
- --with-fd-group=bacula \ |
1108 |
- --enable-smartalloc \ |
1109 |
- --disable-afs \ |
1110 |
- --without-s3 \ |
1111 |
- --host=${CHOST} \ |
1112 |
- ${myconf} |
1113 |
-} |
1114 |
- |
1115 |
-src_compile() { |
1116 |
- # Make build log verbose (bug #447806) |
1117 |
- emake NO_ECHO="" |
1118 |
-} |
1119 |
- |
1120 |
-src_install() { |
1121 |
- emake DESTDIR="${D}" install |
1122 |
- doicon scripts/bacula.png |
1123 |
- |
1124 |
- # install bat icon and desktop file when enabled |
1125 |
- # (for some reason ./configure doesn't pick this up) |
1126 |
- if use qt5 && ! use static ; then |
1127 |
- doicon src/qt-console/images/bat_icon.png |
1128 |
- domenu scripts/bat.desktop |
1129 |
- fi |
1130 |
- |
1131 |
- # remove some scripts we don't need at all |
1132 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
1133 |
- |
1134 |
- # rename statically linked apps |
1135 |
- if use bacula-clientonly && use static ; then |
1136 |
- pushd "${D}"/usr/sbin || die |
1137 |
- mv static-bacula-fd bacula-fd || die |
1138 |
- mv static-bconsole bconsole || die |
1139 |
- popd || die |
1140 |
- fi |
1141 |
- |
1142 |
- # extra files which 'make install' doesn't cover |
1143 |
- if ! use bacula-clientonly; then |
1144 |
- # the database update scripts |
1145 |
- diropts -m0750 |
1146 |
- insinto /usr/libexec/bacula/updatedb |
1147 |
- insopts -m0754 |
1148 |
- doins "${S}"/updatedb/* |
1149 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
1150 |
- |
1151 |
- # the logrotate configuration |
1152 |
- # (now unconditional wrt bug #258187) |
1153 |
- diropts -m0755 |
1154 |
- insinto /etc/logrotate.d |
1155 |
- insopts -m0644 |
1156 |
- newins "${S}"/scripts/logrotate bacula |
1157 |
- |
1158 |
- # the logwatch scripts |
1159 |
- if use logwatch; then |
1160 |
- diropts -m0750 |
1161 |
- dodir /usr/share/logwatch/scripts/services |
1162 |
- dodir /usr/share/logwatch/scripts/shared |
1163 |
- dodir /etc/logwatch/conf/logfiles |
1164 |
- dodir /etc/logwatch/conf/services |
1165 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
1166 |
- emake DESTDIR="${D}" install |
1167 |
- popd >&/dev/null || die |
1168 |
- fi |
1169 |
- fi |
1170 |
- |
1171 |
- # Install all man pages |
1172 |
- doman "${S}"/manpages/*.[18] |
1173 |
- |
1174 |
- if ! use qt5; then |
1175 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
1176 |
- fi |
1177 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
1178 |
- |
1179 |
- if use bacula-clientonly || use bacula-nodir ; then |
1180 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
1181 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
1182 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
1183 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
1184 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
1185 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
1186 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
1187 |
- fi |
1188 |
- if use bacula-clientonly || use bacula-nosd; then |
1189 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
1190 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
1191 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
1192 |
- fi |
1193 |
- |
1194 |
- # documentation |
1195 |
- dodoc ChangeLog ReleaseNotes SUPPORT |
1196 |
- |
1197 |
- # install examples (bug #457504) |
1198 |
- if use examples; then |
1199 |
- docinto examples/ |
1200 |
- dodoc -r examples/* |
1201 |
- fi |
1202 |
- |
1203 |
- # vim-files |
1204 |
- if use vim-syntax; then |
1205 |
- insinto /usr/share/vim/vimfiles/syntax |
1206 |
- doins scripts/bacula.vim |
1207 |
- insinto /usr/share/vim/vimfiles/ftdetect |
1208 |
- newins scripts/filetype.vim bacula_ft.vim |
1209 |
- fi |
1210 |
- |
1211 |
- # setup init scripts |
1212 |
- myscripts="bacula-fd" |
1213 |
- if ! use bacula-clientonly; then |
1214 |
- if ! use bacula-nodir; then |
1215 |
- myscripts="${myscripts} bacula-dir" |
1216 |
- fi |
1217 |
- if ! use bacula-nosd; then |
1218 |
- myscripts="${myscripts} bacula-sd" |
1219 |
- fi |
1220 |
- fi |
1221 |
- for script in ${myscripts}; do |
1222 |
- # copy over init script and config to a temporary location |
1223 |
- # so we can modify them as needed |
1224 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
1225 |
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
1226 |
- |
1227 |
- # now set the database dependancy for the director init script |
1228 |
- case "${script}" in |
1229 |
- bacula-dir) |
1230 |
- case "${mydbtype}" in |
1231 |
- sqlite3) |
1232 |
- # sqlite databases don't have a daemon |
1233 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
1234 |
- ;; |
1235 |
- *) |
1236 |
- # all other databases have daemons |
1237 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
1238 |
- ;; |
1239 |
- esac |
1240 |
- ;; |
1241 |
- *) |
1242 |
- ;; |
1243 |
- esac |
1244 |
- |
1245 |
- # install init script and config |
1246 |
- newinitd "${T}/${script}".initd "${script}" |
1247 |
- newconfd "${T}/${script}".confd "${script}" |
1248 |
- done |
1249 |
- |
1250 |
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
1251 |
- |
1252 |
- # make sure the working directory exists |
1253 |
- diropts -m0750 |
1254 |
- keepdir /var/lib/bacula |
1255 |
- |
1256 |
- # make sure bacula group can execute bacula libexec scripts |
1257 |
- fowners -R root:bacula /usr/libexec/bacula |
1258 |
-} |
1259 |
- |
1260 |
-pkg_postinst() { |
1261 |
- if use bacula-clientonly; then |
1262 |
- fowners root:bacula /var/lib/bacula |
1263 |
- else |
1264 |
- fowners bacula:bacula /var/lib/bacula |
1265 |
- fi |
1266 |
- |
1267 |
- einfo |
1268 |
- einfo "A group 'bacula' has been created. Any users you add to this" |
1269 |
- einfo "group have access to files created by the daemons." |
1270 |
- einfo |
1271 |
- einfo "A user 'bacula' has been created. Please see the bacula manual" |
1272 |
- einfo "for information about running bacula as a non-root user." |
1273 |
- einfo |
1274 |
- |
1275 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
1276 |
- einfo |
1277 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
1278 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
1279 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
1280 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
1281 |
- einfo |
1282 |
- |
1283 |
- ewarn "ATTENTION!" |
1284 |
- ewarn "The format of the database may have changed." |
1285 |
- ewarn "If you just upgraded from a version below 9.0.0 you must run" |
1286 |
- ewarn "'update_bacula_tables' now." |
1287 |
- ewarn "Make sure to have a backup of your catalog before." |
1288 |
- ewarn |
1289 |
- fi |
1290 |
- |
1291 |
- if use sqlite; then |
1292 |
- einfo |
1293 |
- einfo "Be aware that Bacula does not officially support SQLite database anymore." |
1294 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
1295 |
- einfo |
1296 |
- fi |
1297 |
- |
1298 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
1299 |
- einfo "you have to enable 'USE=qt5'." |
1300 |
- einfo |
1301 |
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
1302 |
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
1303 |
-} |
1304 |
|
1305 |
diff --git a/app-backup/bacula/bacula-9.6.6.ebuild b/app-backup/bacula/bacula-9.6.6.ebuild |
1306 |
deleted file mode 100644 |
1307 |
index 83f72ca31788..000000000000 |
1308 |
--- a/app-backup/bacula/bacula-9.6.6.ebuild |
1309 |
+++ /dev/null |
1310 |
@@ -1,419 +0,0 @@ |
1311 |
-# Copyright 1999-2021 Gentoo Authors |
1312 |
-# Distributed under the terms of the GNU General Public License v2 |
1313 |
- |
1314 |
-EAPI=7 |
1315 |
- |
1316 |
-inherit desktop libtool qmake-utils systemd |
1317 |
- |
1318 |
-MY_PV=${PV/_beta/-b} |
1319 |
-MY_P=${PN}-${MY_PV} |
1320 |
- |
1321 |
-DESCRIPTION="Featureful client/server network backup suite" |
1322 |
-HOMEPAGE="https://www.bacula.org/" |
1323 |
-SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
1324 |
- |
1325 |
-LICENSE="AGPL-3" |
1326 |
-SLOT="0" |
1327 |
-KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
1328 |
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
1329 |
- |
1330 |
-DEPEND=" |
1331 |
- !bacula-clientonly? ( |
1332 |
- !bacula-nodir? ( virtual/mta ) |
1333 |
- postgres? ( dev-db/postgresql:=[threads] ) |
1334 |
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
1335 |
- sqlite? ( dev-db/sqlite:3 ) |
1336 |
- ) |
1337 |
- dev-libs/gmp:0 |
1338 |
- qt5? ( |
1339 |
- dev-qt/qtcore:5 |
1340 |
- dev-qt/qtgui:5 |
1341 |
- dev-qt/qtwidgets:5 |
1342 |
- dev-qt/qtsvg:5 |
1343 |
- x11-libs/qwt:6 |
1344 |
- ) |
1345 |
- logwatch? ( sys-apps/logwatch ) |
1346 |
- readline? ( sys-libs/readline:0 ) |
1347 |
- static? ( |
1348 |
- dev-libs/lzo[static-libs] |
1349 |
- sys-libs/ncurses:=[static-libs] |
1350 |
- sys-libs/zlib[static-libs] |
1351 |
- acl? ( virtual/acl[static-libs(+)] ) |
1352 |
- ssl? ( |
1353 |
- dev-libs/openssl:0=[static-libs] |
1354 |
- ) |
1355 |
- ) |
1356 |
- !static? ( |
1357 |
- dev-libs/lzo |
1358 |
- sys-libs/ncurses:= |
1359 |
- sys-libs/zlib |
1360 |
- acl? ( virtual/acl ) |
1361 |
- ssl? ( |
1362 |
- dev-libs/openssl:0= |
1363 |
- ) |
1364 |
- ) |
1365 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
1366 |
-" |
1367 |
-RDEPEND="${DEPEND} |
1368 |
- acct-user/bacula |
1369 |
- acct-group/bacula |
1370 |
- !bacula-clientonly? ( |
1371 |
- !bacula-nosd? ( |
1372 |
- app-arch/mt-st |
1373 |
- sys-block/mtx |
1374 |
- ) |
1375 |
- ) |
1376 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
1377 |
-" |
1378 |
- |
1379 |
-REQUIRED_USE=" |
1380 |
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
1381 |
- static? ( bacula-clientonly ) |
1382 |
-" |
1383 |
- |
1384 |
-S=${WORKDIR}/${MY_P} |
1385 |
- |
1386 |
-pkg_setup() { |
1387 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
1388 |
- use mysql && export mydbtype="mysql" |
1389 |
- use postgres && export mydbtype="postgresql" |
1390 |
- use sqlite && export mydbtype="sqlite3" |
1391 |
- |
1392 |
- if use bacula-clientonly && use static && use qt5; then |
1393 |
- ewarn |
1394 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
1395 |
- ewarn |
1396 |
- fi |
1397 |
-} |
1398 |
- |
1399 |
-src_prepare() { |
1400 |
- # adjusts default configuration files for several binaries |
1401 |
- # to /etc/bacula/<config> instead of ./<config> |
1402 |
- pushd src >&/dev/null || die |
1403 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
1404 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
1405 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
1406 |
- qt-console/main.cpp; do |
1407 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
1408 |
- || die "sed on ${f} failed" |
1409 |
- done |
1410 |
- popd >&/dev/null || die |
1411 |
- |
1412 |
- # bug 466688 drop deprecated categories from Desktop file |
1413 |
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
1414 |
- |
1415 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
1416 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
1417 |
- |
1418 |
- # drop automatic install of unneeded documentation (for bug 356499) |
1419 |
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
1420 |
- |
1421 |
- # bug #310087 |
1422 |
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
1423 |
- |
1424 |
- # bug #311161 |
1425 |
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
1426 |
- |
1427 |
- # bat needs to respect LDFLAGS and CFLAGS |
1428 |
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
1429 |
- |
1430 |
- # bug #328701 |
1431 |
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
1432 |
- |
1433 |
- eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch |
1434 |
- |
1435 |
- # fix soname in libbaccat.so bug #602952 |
1436 |
- eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
1437 |
- |
1438 |
- # do not strip binaries |
1439 |
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
1440 |
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
1441 |
- |
1442 |
- # fix file not found error during make depend |
1443 |
- eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch |
1444 |
- |
1445 |
- eapply_user |
1446 |
- |
1447 |
- # Fix systemd unit files: |
1448 |
- # bug 497748 |
1449 |
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
1450 |
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
1451 |
- # bug 504370 |
1452 |
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
1453 |
- # bug 584442 and 504368 |
1454 |
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
1455 |
- |
1456 |
- # build 'bat' for Qt5 |
1457 |
- export QMAKE="$(qt5_get_bindir)"/qmake |
1458 |
- |
1459 |
- # adapt to >=Qt-5.9 (see bug #644566) |
1460 |
- # qmake needs an existing target file to generate install instructions |
1461 |
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
1462 |
- src/qt-console/bat.pro.in || die |
1463 |
- mkdir src/qt-console/.libs || die |
1464 |
- touch src/qt-console/.libs/bat || die |
1465 |
- chmod 755 src/qt-console/.libs/bat || die |
1466 |
- |
1467 |
- # Don't let program install man pages directly |
1468 |
- sed -i -e 's/ manpages//' Makefile.in || die |
1469 |
- |
1470 |
- # correct installation for plugins to mode 0755 (bug #725946) |
1471 |
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die |
1472 |
- |
1473 |
- # fix database locking code for bacula-9.6.4 ... -9.6.x (bug #766195) |
1474 |
- eapply -p0 "${FILESDIR}"/${PN}-9.6.x-fix-race-condition.patch |
1475 |
- |
1476 |
- # fix bundled libtool (bug 466696) |
1477 |
- # But first move directory with M4 macros out of the way. |
1478 |
- # It is only needed by autoconf and gives errors during elibtoolize. |
1479 |
- mv autoconf/libtool autoconf/libtool1 || die |
1480 |
- elibtoolize |
1481 |
-} |
1482 |
- |
1483 |
-src_configure() { |
1484 |
- local myconf='' |
1485 |
- |
1486 |
- if use bacula-clientonly; then |
1487 |
- myconf="${myconf} \ |
1488 |
- $(use_enable bacula-clientonly client-only) \ |
1489 |
- $(use_enable !static libtool) \ |
1490 |
- $(use_enable static static-cons) \ |
1491 |
- $(use_enable static static-fd)" |
1492 |
- else |
1493 |
- myconf="${myconf} \ |
1494 |
- $(use_enable !bacula-nodir build-dird) \ |
1495 |
- $(use_enable !bacula-nosd build-stored)" |
1496 |
- # bug #311099 |
1497 |
- # database support needed by dir-only *and* sd-only |
1498 |
- # build as well (for building bscan, btape, etc.) |
1499 |
- myconf="${myconf} |
1500 |
- --with-${mydbtype}" |
1501 |
- fi |
1502 |
- |
1503 |
- # do not build bat if 'static' clientonly |
1504 |
- if ! use bacula-clientonly || ! use static; then |
1505 |
- myconf="${myconf} \ |
1506 |
- $(use_enable qt5 bat)" |
1507 |
- fi |
1508 |
- |
1509 |
- myconf="${myconf} \ |
1510 |
- $(use_with X x) \ |
1511 |
- $(use_enable batch-insert) \ |
1512 |
- $(use_enable !readline conio) \ |
1513 |
- $(use_enable readline) \ |
1514 |
- $(use_with ssl openssl) \ |
1515 |
- $(use_enable ipv6) \ |
1516 |
- $(use_enable acl) \ |
1517 |
- $(use_with tcpd tcp-wrappers)" |
1518 |
- |
1519 |
- econf \ |
1520 |
- --with-pid-dir=/var/run \ |
1521 |
- --sysconfdir=/etc/bacula \ |
1522 |
- --with-archivedir=/var/lib/bacula/tmp \ |
1523 |
- --with-subsys-dir=/var/lock/subsys \ |
1524 |
- --with-working-dir=/var/lib/bacula \ |
1525 |
- --with-logdir=/var/lib/bacula \ |
1526 |
- --with-scriptdir=/usr/libexec/bacula \ |
1527 |
- --with-systemd=$(systemd_get_systemunitdir) \ |
1528 |
- --with-dir-user=bacula \ |
1529 |
- --with-dir-group=bacula \ |
1530 |
- --with-sd-user=root \ |
1531 |
- --with-sd-group=bacula \ |
1532 |
- --with-fd-user=root \ |
1533 |
- --with-fd-group=bacula \ |
1534 |
- --enable-smartalloc \ |
1535 |
- --disable-afs \ |
1536 |
- --without-s3 \ |
1537 |
- --host=${CHOST} \ |
1538 |
- ${myconf} |
1539 |
-} |
1540 |
- |
1541 |
-src_compile() { |
1542 |
- # Make build log verbose (bug #447806) |
1543 |
- emake NO_ECHO="" |
1544 |
-} |
1545 |
- |
1546 |
-src_install() { |
1547 |
- emake DESTDIR="${D}" install |
1548 |
- doicon scripts/bacula.png |
1549 |
- |
1550 |
- # install bat icon and desktop file when enabled |
1551 |
- # (for some reason ./configure doesn't pick this up) |
1552 |
- if use qt5 && ! use static ; then |
1553 |
- doicon src/qt-console/images/bat_icon.png |
1554 |
- domenu scripts/bat.desktop |
1555 |
- fi |
1556 |
- |
1557 |
- # remove some scripts we don't need at all |
1558 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
1559 |
- |
1560 |
- # rename statically linked apps |
1561 |
- if use bacula-clientonly && use static ; then |
1562 |
- pushd "${D}"/usr/sbin || die |
1563 |
- mv static-bacula-fd bacula-fd || die |
1564 |
- mv static-bconsole bconsole || die |
1565 |
- popd || die |
1566 |
- fi |
1567 |
- |
1568 |
- # extra files which 'make install' doesn't cover |
1569 |
- if ! use bacula-clientonly; then |
1570 |
- # the database update scripts |
1571 |
- diropts -m0750 |
1572 |
- insinto /usr/libexec/bacula/updatedb |
1573 |
- insopts -m0754 |
1574 |
- doins "${S}"/updatedb/* |
1575 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
1576 |
- |
1577 |
- # the logrotate configuration |
1578 |
- # (now unconditional wrt bug #258187) |
1579 |
- diropts -m0755 |
1580 |
- insinto /etc/logrotate.d |
1581 |
- insopts -m0644 |
1582 |
- newins "${S}"/scripts/logrotate bacula |
1583 |
- |
1584 |
- # the logwatch scripts |
1585 |
- if use logwatch; then |
1586 |
- diropts -m0750 |
1587 |
- dodir /usr/share/logwatch/scripts/services |
1588 |
- dodir /usr/share/logwatch/scripts/shared |
1589 |
- dodir /etc/logwatch/conf/logfiles |
1590 |
- dodir /etc/logwatch/conf/services |
1591 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
1592 |
- emake DESTDIR="${D}" install |
1593 |
- popd >&/dev/null || die |
1594 |
- fi |
1595 |
- fi |
1596 |
- |
1597 |
- # Install all man pages |
1598 |
- doman "${S}"/manpages/*.[18] |
1599 |
- |
1600 |
- if ! use qt5; then |
1601 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
1602 |
- fi |
1603 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
1604 |
- |
1605 |
- if use bacula-clientonly || use bacula-nodir ; then |
1606 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
1607 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
1608 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
1609 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
1610 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
1611 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
1612 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
1613 |
- fi |
1614 |
- if use bacula-clientonly || use bacula-nosd; then |
1615 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
1616 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
1617 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
1618 |
- fi |
1619 |
- |
1620 |
- # documentation |
1621 |
- dodoc ChangeLog ReleaseNotes SUPPORT |
1622 |
- |
1623 |
- # install examples (bug #457504) |
1624 |
- if use examples; then |
1625 |
- docinto examples/ |
1626 |
- dodoc -r examples/* |
1627 |
- fi |
1628 |
- |
1629 |
- # vim-files |
1630 |
- if use vim-syntax; then |
1631 |
- insinto /usr/share/vim/vimfiles/syntax |
1632 |
- doins scripts/bacula.vim |
1633 |
- insinto /usr/share/vim/vimfiles/ftdetect |
1634 |
- newins scripts/filetype.vim bacula_ft.vim |
1635 |
- fi |
1636 |
- |
1637 |
- # setup init scripts |
1638 |
- myscripts="bacula-fd" |
1639 |
- if ! use bacula-clientonly; then |
1640 |
- if ! use bacula-nodir; then |
1641 |
- myscripts="${myscripts} bacula-dir" |
1642 |
- fi |
1643 |
- if ! use bacula-nosd; then |
1644 |
- myscripts="${myscripts} bacula-sd" |
1645 |
- fi |
1646 |
- fi |
1647 |
- for script in ${myscripts}; do |
1648 |
- # copy over init script and config to a temporary location |
1649 |
- # so we can modify them as needed |
1650 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
1651 |
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
1652 |
- |
1653 |
- # now set the database dependancy for the director init script |
1654 |
- case "${script}" in |
1655 |
- bacula-dir) |
1656 |
- case "${mydbtype}" in |
1657 |
- sqlite3) |
1658 |
- # sqlite databases don't have a daemon |
1659 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
1660 |
- ;; |
1661 |
- *) |
1662 |
- # all other databases have daemons |
1663 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
1664 |
- ;; |
1665 |
- esac |
1666 |
- ;; |
1667 |
- *) |
1668 |
- ;; |
1669 |
- esac |
1670 |
- |
1671 |
- # install init script and config |
1672 |
- newinitd "${T}/${script}".initd "${script}" |
1673 |
- newconfd "${T}/${script}".confd "${script}" |
1674 |
- done |
1675 |
- |
1676 |
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
1677 |
- |
1678 |
- # make sure the working directory exists |
1679 |
- diropts -m0750 |
1680 |
- keepdir /var/lib/bacula |
1681 |
- |
1682 |
- # make sure bacula group can execute bacula libexec scripts |
1683 |
- fowners -R root:bacula /usr/libexec/bacula |
1684 |
-} |
1685 |
- |
1686 |
-pkg_postinst() { |
1687 |
- if use bacula-clientonly; then |
1688 |
- fowners root:bacula /var/lib/bacula |
1689 |
- else |
1690 |
- fowners bacula:bacula /var/lib/bacula |
1691 |
- fi |
1692 |
- |
1693 |
- einfo |
1694 |
- einfo "A group 'bacula' has been created. Any users you add to this" |
1695 |
- einfo "group have access to files created by the daemons." |
1696 |
- einfo |
1697 |
- einfo "A user 'bacula' has been created. Please see the bacula manual" |
1698 |
- einfo "for information about running bacula as a non-root user." |
1699 |
- einfo |
1700 |
- |
1701 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
1702 |
- einfo |
1703 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
1704 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
1705 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
1706 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
1707 |
- einfo |
1708 |
- |
1709 |
- ewarn "ATTENTION!" |
1710 |
- ewarn "The format of the database may have changed." |
1711 |
- ewarn "If you just upgraded from a version below 9.0.0 you must run" |
1712 |
- ewarn "'update_bacula_tables' now." |
1713 |
- ewarn "Make sure to have a backup of your catalog before." |
1714 |
- ewarn |
1715 |
- fi |
1716 |
- |
1717 |
- if use sqlite; then |
1718 |
- einfo |
1719 |
- einfo "Be aware that Bacula does not officially support SQLite database anymore." |
1720 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
1721 |
- einfo |
1722 |
- fi |
1723 |
- |
1724 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
1725 |
- einfo "you have to enable 'USE=qt5'." |
1726 |
- einfo |
1727 |
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
1728 |
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
1729 |
-} |
1730 |
|
1731 |
diff --git a/app-backup/bacula/bacula-9.6.7.ebuild b/app-backup/bacula/bacula-9.6.7.ebuild |
1732 |
deleted file mode 100644 |
1733 |
index 83f72ca31788..000000000000 |
1734 |
--- a/app-backup/bacula/bacula-9.6.7.ebuild |
1735 |
+++ /dev/null |
1736 |
@@ -1,419 +0,0 @@ |
1737 |
-# Copyright 1999-2021 Gentoo Authors |
1738 |
-# Distributed under the terms of the GNU General Public License v2 |
1739 |
- |
1740 |
-EAPI=7 |
1741 |
- |
1742 |
-inherit desktop libtool qmake-utils systemd |
1743 |
- |
1744 |
-MY_PV=${PV/_beta/-b} |
1745 |
-MY_P=${PN}-${MY_PV} |
1746 |
- |
1747 |
-DESCRIPTION="Featureful client/server network backup suite" |
1748 |
-HOMEPAGE="https://www.bacula.org/" |
1749 |
-SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
1750 |
- |
1751 |
-LICENSE="AGPL-3" |
1752 |
-SLOT="0" |
1753 |
-KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
1754 |
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X" |
1755 |
- |
1756 |
-DEPEND=" |
1757 |
- !bacula-clientonly? ( |
1758 |
- !bacula-nodir? ( virtual/mta ) |
1759 |
- postgres? ( dev-db/postgresql:=[threads] ) |
1760 |
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) ) |
1761 |
- sqlite? ( dev-db/sqlite:3 ) |
1762 |
- ) |
1763 |
- dev-libs/gmp:0 |
1764 |
- qt5? ( |
1765 |
- dev-qt/qtcore:5 |
1766 |
- dev-qt/qtgui:5 |
1767 |
- dev-qt/qtwidgets:5 |
1768 |
- dev-qt/qtsvg:5 |
1769 |
- x11-libs/qwt:6 |
1770 |
- ) |
1771 |
- logwatch? ( sys-apps/logwatch ) |
1772 |
- readline? ( sys-libs/readline:0 ) |
1773 |
- static? ( |
1774 |
- dev-libs/lzo[static-libs] |
1775 |
- sys-libs/ncurses:=[static-libs] |
1776 |
- sys-libs/zlib[static-libs] |
1777 |
- acl? ( virtual/acl[static-libs(+)] ) |
1778 |
- ssl? ( |
1779 |
- dev-libs/openssl:0=[static-libs] |
1780 |
- ) |
1781 |
- ) |
1782 |
- !static? ( |
1783 |
- dev-libs/lzo |
1784 |
- sys-libs/ncurses:= |
1785 |
- sys-libs/zlib |
1786 |
- acl? ( virtual/acl ) |
1787 |
- ssl? ( |
1788 |
- dev-libs/openssl:0= |
1789 |
- ) |
1790 |
- ) |
1791 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
1792 |
-" |
1793 |
-RDEPEND="${DEPEND} |
1794 |
- acct-user/bacula |
1795 |
- acct-group/bacula |
1796 |
- !bacula-clientonly? ( |
1797 |
- !bacula-nosd? ( |
1798 |
- app-arch/mt-st |
1799 |
- sys-block/mtx |
1800 |
- ) |
1801 |
- ) |
1802 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
1803 |
-" |
1804 |
- |
1805 |
-REQUIRED_USE=" |
1806 |
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) |
1807 |
- static? ( bacula-clientonly ) |
1808 |
-" |
1809 |
- |
1810 |
-S=${WORKDIR}/${MY_P} |
1811 |
- |
1812 |
-pkg_setup() { |
1813 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
1814 |
- use mysql && export mydbtype="mysql" |
1815 |
- use postgres && export mydbtype="postgresql" |
1816 |
- use sqlite && export mydbtype="sqlite3" |
1817 |
- |
1818 |
- if use bacula-clientonly && use static && use qt5; then |
1819 |
- ewarn |
1820 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." |
1821 |
- ewarn |
1822 |
- fi |
1823 |
-} |
1824 |
- |
1825 |
-src_prepare() { |
1826 |
- # adjusts default configuration files for several binaries |
1827 |
- # to /etc/bacula/<config> instead of ./<config> |
1828 |
- pushd src >&/dev/null || die |
1829 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
1830 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
1831 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
1832 |
- qt-console/main.cpp; do |
1833 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
1834 |
- || die "sed on ${f} failed" |
1835 |
- done |
1836 |
- popd >&/dev/null || die |
1837 |
- |
1838 |
- # bug 466688 drop deprecated categories from Desktop file |
1839 |
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die |
1840 |
- |
1841 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
1842 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
1843 |
- |
1844 |
- # drop automatic install of unneeded documentation (for bug 356499) |
1845 |
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch |
1846 |
- |
1847 |
- # bug #310087 |
1848 |
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch |
1849 |
- |
1850 |
- # bug #311161 |
1851 |
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch |
1852 |
- |
1853 |
- # bat needs to respect LDFLAGS and CFLAGS |
1854 |
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch |
1855 |
- |
1856 |
- # bug #328701 |
1857 |
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch |
1858 |
- |
1859 |
- eapply -p0 "${FILESDIR}"/9.6.3/${PN}-9.6.3-fix-static.patch |
1860 |
- |
1861 |
- # fix soname in libbaccat.so bug #602952 |
1862 |
- eapply -p0 "${FILESDIR}/bacula-fix-sonames.patch" |
1863 |
- |
1864 |
- # do not strip binaries |
1865 |
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die |
1866 |
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die |
1867 |
- |
1868 |
- # fix file not found error during make depend |
1869 |
- eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch |
1870 |
- |
1871 |
- eapply_user |
1872 |
- |
1873 |
- # Fix systemd unit files: |
1874 |
- # bug 497748 |
1875 |
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die |
1876 |
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die |
1877 |
- # bug 504370 |
1878 |
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die |
1879 |
- # bug 584442 and 504368 |
1880 |
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die |
1881 |
- |
1882 |
- # build 'bat' for Qt5 |
1883 |
- export QMAKE="$(qt5_get_bindir)"/qmake |
1884 |
- |
1885 |
- # adapt to >=Qt-5.9 (see bug #644566) |
1886 |
- # qmake needs an existing target file to generate install instructions |
1887 |
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \ |
1888 |
- src/qt-console/bat.pro.in || die |
1889 |
- mkdir src/qt-console/.libs || die |
1890 |
- touch src/qt-console/.libs/bat || die |
1891 |
- chmod 755 src/qt-console/.libs/bat || die |
1892 |
- |
1893 |
- # Don't let program install man pages directly |
1894 |
- sed -i -e 's/ manpages//' Makefile.in || die |
1895 |
- |
1896 |
- # correct installation for plugins to mode 0755 (bug #725946) |
1897 |
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile.in ||die |
1898 |
- |
1899 |
- # fix database locking code for bacula-9.6.4 ... -9.6.x (bug #766195) |
1900 |
- eapply -p0 "${FILESDIR}"/${PN}-9.6.x-fix-race-condition.patch |
1901 |
- |
1902 |
- # fix bundled libtool (bug 466696) |
1903 |
- # But first move directory with M4 macros out of the way. |
1904 |
- # It is only needed by autoconf and gives errors during elibtoolize. |
1905 |
- mv autoconf/libtool autoconf/libtool1 || die |
1906 |
- elibtoolize |
1907 |
-} |
1908 |
- |
1909 |
-src_configure() { |
1910 |
- local myconf='' |
1911 |
- |
1912 |
- if use bacula-clientonly; then |
1913 |
- myconf="${myconf} \ |
1914 |
- $(use_enable bacula-clientonly client-only) \ |
1915 |
- $(use_enable !static libtool) \ |
1916 |
- $(use_enable static static-cons) \ |
1917 |
- $(use_enable static static-fd)" |
1918 |
- else |
1919 |
- myconf="${myconf} \ |
1920 |
- $(use_enable !bacula-nodir build-dird) \ |
1921 |
- $(use_enable !bacula-nosd build-stored)" |
1922 |
- # bug #311099 |
1923 |
- # database support needed by dir-only *and* sd-only |
1924 |
- # build as well (for building bscan, btape, etc.) |
1925 |
- myconf="${myconf} |
1926 |
- --with-${mydbtype}" |
1927 |
- fi |
1928 |
- |
1929 |
- # do not build bat if 'static' clientonly |
1930 |
- if ! use bacula-clientonly || ! use static; then |
1931 |
- myconf="${myconf} \ |
1932 |
- $(use_enable qt5 bat)" |
1933 |
- fi |
1934 |
- |
1935 |
- myconf="${myconf} \ |
1936 |
- $(use_with X x) \ |
1937 |
- $(use_enable batch-insert) \ |
1938 |
- $(use_enable !readline conio) \ |
1939 |
- $(use_enable readline) \ |
1940 |
- $(use_with ssl openssl) \ |
1941 |
- $(use_enable ipv6) \ |
1942 |
- $(use_enable acl) \ |
1943 |
- $(use_with tcpd tcp-wrappers)" |
1944 |
- |
1945 |
- econf \ |
1946 |
- --with-pid-dir=/var/run \ |
1947 |
- --sysconfdir=/etc/bacula \ |
1948 |
- --with-archivedir=/var/lib/bacula/tmp \ |
1949 |
- --with-subsys-dir=/var/lock/subsys \ |
1950 |
- --with-working-dir=/var/lib/bacula \ |
1951 |
- --with-logdir=/var/lib/bacula \ |
1952 |
- --with-scriptdir=/usr/libexec/bacula \ |
1953 |
- --with-systemd=$(systemd_get_systemunitdir) \ |
1954 |
- --with-dir-user=bacula \ |
1955 |
- --with-dir-group=bacula \ |
1956 |
- --with-sd-user=root \ |
1957 |
- --with-sd-group=bacula \ |
1958 |
- --with-fd-user=root \ |
1959 |
- --with-fd-group=bacula \ |
1960 |
- --enable-smartalloc \ |
1961 |
- --disable-afs \ |
1962 |
- --without-s3 \ |
1963 |
- --host=${CHOST} \ |
1964 |
- ${myconf} |
1965 |
-} |
1966 |
- |
1967 |
-src_compile() { |
1968 |
- # Make build log verbose (bug #447806) |
1969 |
- emake NO_ECHO="" |
1970 |
-} |
1971 |
- |
1972 |
-src_install() { |
1973 |
- emake DESTDIR="${D}" install |
1974 |
- doicon scripts/bacula.png |
1975 |
- |
1976 |
- # install bat icon and desktop file when enabled |
1977 |
- # (for some reason ./configure doesn't pick this up) |
1978 |
- if use qt5 && ! use static ; then |
1979 |
- doicon src/qt-console/images/bat_icon.png |
1980 |
- domenu scripts/bat.desktop |
1981 |
- fi |
1982 |
- |
1983 |
- # remove some scripts we don't need at all |
1984 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
1985 |
- |
1986 |
- # rename statically linked apps |
1987 |
- if use bacula-clientonly && use static ; then |
1988 |
- pushd "${D}"/usr/sbin || die |
1989 |
- mv static-bacula-fd bacula-fd || die |
1990 |
- mv static-bconsole bconsole || die |
1991 |
- popd || die |
1992 |
- fi |
1993 |
- |
1994 |
- # extra files which 'make install' doesn't cover |
1995 |
- if ! use bacula-clientonly; then |
1996 |
- # the database update scripts |
1997 |
- diropts -m0750 |
1998 |
- insinto /usr/libexec/bacula/updatedb |
1999 |
- insopts -m0754 |
2000 |
- doins "${S}"/updatedb/* |
2001 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
2002 |
- |
2003 |
- # the logrotate configuration |
2004 |
- # (now unconditional wrt bug #258187) |
2005 |
- diropts -m0755 |
2006 |
- insinto /etc/logrotate.d |
2007 |
- insopts -m0644 |
2008 |
- newins "${S}"/scripts/logrotate bacula |
2009 |
- |
2010 |
- # the logwatch scripts |
2011 |
- if use logwatch; then |
2012 |
- diropts -m0750 |
2013 |
- dodir /usr/share/logwatch/scripts/services |
2014 |
- dodir /usr/share/logwatch/scripts/shared |
2015 |
- dodir /etc/logwatch/conf/logfiles |
2016 |
- dodir /etc/logwatch/conf/services |
2017 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
2018 |
- emake DESTDIR="${D}" install |
2019 |
- popd >&/dev/null || die |
2020 |
- fi |
2021 |
- fi |
2022 |
- |
2023 |
- # Install all man pages |
2024 |
- doman "${S}"/manpages/*.[18] |
2025 |
- |
2026 |
- if ! use qt5; then |
2027 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
2028 |
- fi |
2029 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
2030 |
- |
2031 |
- if use bacula-clientonly || use bacula-nodir ; then |
2032 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
2033 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
2034 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
2035 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
2036 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
2037 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
2038 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
2039 |
- fi |
2040 |
- if use bacula-clientonly || use bacula-nosd; then |
2041 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
2042 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
2043 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
2044 |
- fi |
2045 |
- |
2046 |
- # documentation |
2047 |
- dodoc ChangeLog ReleaseNotes SUPPORT |
2048 |
- |
2049 |
- # install examples (bug #457504) |
2050 |
- if use examples; then |
2051 |
- docinto examples/ |
2052 |
- dodoc -r examples/* |
2053 |
- fi |
2054 |
- |
2055 |
- # vim-files |
2056 |
- if use vim-syntax; then |
2057 |
- insinto /usr/share/vim/vimfiles/syntax |
2058 |
- doins scripts/bacula.vim |
2059 |
- insinto /usr/share/vim/vimfiles/ftdetect |
2060 |
- newins scripts/filetype.vim bacula_ft.vim |
2061 |
- fi |
2062 |
- |
2063 |
- # setup init scripts |
2064 |
- myscripts="bacula-fd" |
2065 |
- if ! use bacula-clientonly; then |
2066 |
- if ! use bacula-nodir; then |
2067 |
- myscripts="${myscripts} bacula-dir" |
2068 |
- fi |
2069 |
- if ! use bacula-nosd; then |
2070 |
- myscripts="${myscripts} bacula-sd" |
2071 |
- fi |
2072 |
- fi |
2073 |
- for script in ${myscripts}; do |
2074 |
- # copy over init script and config to a temporary location |
2075 |
- # so we can modify them as needed |
2076 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
2077 |
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
2078 |
- |
2079 |
- # now set the database dependancy for the director init script |
2080 |
- case "${script}" in |
2081 |
- bacula-dir) |
2082 |
- case "${mydbtype}" in |
2083 |
- sqlite3) |
2084 |
- # sqlite databases don't have a daemon |
2085 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
2086 |
- ;; |
2087 |
- *) |
2088 |
- # all other databases have daemons |
2089 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
2090 |
- ;; |
2091 |
- esac |
2092 |
- ;; |
2093 |
- *) |
2094 |
- ;; |
2095 |
- esac |
2096 |
- |
2097 |
- # install init script and config |
2098 |
- newinitd "${T}/${script}".initd "${script}" |
2099 |
- newconfd "${T}/${script}".confd "${script}" |
2100 |
- done |
2101 |
- |
2102 |
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service |
2103 |
- |
2104 |
- # make sure the working directory exists |
2105 |
- diropts -m0750 |
2106 |
- keepdir /var/lib/bacula |
2107 |
- |
2108 |
- # make sure bacula group can execute bacula libexec scripts |
2109 |
- fowners -R root:bacula /usr/libexec/bacula |
2110 |
-} |
2111 |
- |
2112 |
-pkg_postinst() { |
2113 |
- if use bacula-clientonly; then |
2114 |
- fowners root:bacula /var/lib/bacula |
2115 |
- else |
2116 |
- fowners bacula:bacula /var/lib/bacula |
2117 |
- fi |
2118 |
- |
2119 |
- einfo |
2120 |
- einfo "A group 'bacula' has been created. Any users you add to this" |
2121 |
- einfo "group have access to files created by the daemons." |
2122 |
- einfo |
2123 |
- einfo "A user 'bacula' has been created. Please see the bacula manual" |
2124 |
- einfo "for information about running bacula as a non-root user." |
2125 |
- einfo |
2126 |
- |
2127 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
2128 |
- einfo |
2129 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
2130 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
2131 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
2132 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
2133 |
- einfo |
2134 |
- |
2135 |
- ewarn "ATTENTION!" |
2136 |
- ewarn "The format of the database may have changed." |
2137 |
- ewarn "If you just upgraded from a version below 9.0.0 you must run" |
2138 |
- ewarn "'update_bacula_tables' now." |
2139 |
- ewarn "Make sure to have a backup of your catalog before." |
2140 |
- ewarn |
2141 |
- fi |
2142 |
- |
2143 |
- if use sqlite; then |
2144 |
- einfo |
2145 |
- einfo "Be aware that Bacula does not officially support SQLite database anymore." |
2146 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
2147 |
- einfo |
2148 |
- fi |
2149 |
- |
2150 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
2151 |
- einfo "you have to enable 'USE=qt5'." |
2152 |
- einfo |
2153 |
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during" |
2154 |
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config." |
2155 |
-} |
2156 |
|
2157 |
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 |
2158 |
deleted file mode 100644 |
2159 |
index e076cd6478cc..000000000000 |
2160 |
--- a/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch |
2161 |
+++ /dev/null |
2162 |
@@ -1,12 +0,0 @@ |
2163 |
-# fix file not found error during make depend |
2164 |
---- src/tools/Makefile.in.orig 2012-09-20 20:42:54.000000000 +0200 |
2165 |
-+++ src/tools/Makefile.in 2012-09-20 20:35:46.000000000 +0200 |
2166 |
-@@ -194,7 +194,7 @@ |
2167 |
- @$(MV) Makefile Makefile.bak |
2168 |
- @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile |
2169 |
- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile |
2170 |
-- @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) *.c >> Makefile |
2171 |
-+ @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../filed -I../dird -I../stored *.c >> Makefile |
2172 |
- @if test -f Makefile ; then \ |
2173 |
- $(RMF) Makefile.bak; \ |
2174 |
- else \ |
2175 |
|
2176 |
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 |
2177 |
deleted file mode 100644 |
2178 |
index 1f32cd224f01..000000000000 |
2179 |
--- a/app-backup/bacula/files/9.6.3/bacula-9.6.3-fix-static.patch |
2180 |
+++ /dev/null |
2181 |
@@ -1,63 +0,0 @@ |
2182 |
---- src/console/Makefile.in.orig 2017-07-25 19:03:05.664760298 +0200 |
2183 |
-+++ src/console/Makefile.in 2017-07-25 19:05:43.576706091 +0200 |
2184 |
-@@ -24,6 +24,7 @@ |
2185 |
- CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@ |
2186 |
- CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@ |
2187 |
- JSONOBJS = bbconsjson.o console_conf.o |
2188 |
-+ZLIBS=@ZLIBS@ |
2189 |
- |
2190 |
- # these are the objects that are changed by the .configure process |
2191 |
- EXTRAOBJS = @OBJLIST@ |
2192 |
-@@ -50,18 +51,18 @@ |
2193 |
- |
2194 |
- bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) |
2195 |
- $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \ |
2196 |
-- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ |
2197 |
-- $(OPENSSL_LIBS) |
2198 |
-+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \ |
2199 |
-+ $(OPENSSL_LIBS) $(LIBS) |
2200 |
- |
2201 |
- bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) |
2202 |
- $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \ |
2203 |
-- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ |
2204 |
-- $(OPENSSL_LIBS) |
2205 |
-+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \ |
2206 |
-+ $(OPENSSL_LIBS) $(LIBS) |
2207 |
- |
2208 |
- static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) |
2209 |
- $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \ |
2210 |
-- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ |
2211 |
-- $(OPENSSL_LIBS) |
2212 |
-+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \ |
2213 |
-+ $(OPENSSL_LIBS) $(LIBS) |
2214 |
- strip $@ |
2215 |
- |
2216 |
- |
2217 |
---- src/filed/Makefile.in.orig 2017-07-25 19:09:19.655852979 +0200 |
2218 |
-+++ src/filed/Makefile.in 2017-07-25 19:11:39.519558592 +0200 |
2219 |
-@@ -69,19 +69,19 @@ |
2220 |
- bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ |
2221 |
- @echo "Linking $@ ..." |
2222 |
- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \ |
2223 |
-- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \ |
2224 |
-- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) $(IOKITLIBS) |
2225 |
-+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \ |
2226 |
-+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) $(IOKITLIBS) |
2227 |
- |
2228 |
- bfdjson: Makefile $(JSONOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ |
2229 |
- @echo "Linking $@ ..." |
2230 |
- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(JSONOBJS) \ |
2231 |
-- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \ |
2232 |
-- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) |
2233 |
-+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \ |
2234 |
-+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) |
2235 |
- |
2236 |
- static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ |
2237 |
- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \ |
2238 |
-- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \ |
2239 |
-- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) |
2240 |
-+ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \ |
2241 |
-+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS) |
2242 |
- strip $@ |
2243 |
- |
2244 |
- Makefile: $(srcdir)/Makefile.in $(topdir)/config.status |
2245 |
|
2246 |
diff --git a/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch b/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch |
2247 |
deleted file mode 100644 |
2248 |
index 4862bcece0ef..000000000000 |
2249 |
--- a/app-backup/bacula/files/bacula-9.6.x-fix-race-condition.patch |
2250 |
+++ /dev/null |
2251 |
@@ -1,15 +0,0 @@ |
2252 |
---- src/dird/dird.c.orig 2021-01-19 15:25:16.233573546 -0500 |
2253 |
-+++ src/dird/dird.c 2021-01-19 15:26:23.884070798 -0500 |
2254 |
-@@ -1263,11 +1263,11 @@ |
2255 |
- } |
2256 |
- if (catalog->db_driver) { |
2257 |
- /* To copy dbdriver field into "CAT" catalog resource class (local) |
2258 |
- * from dbdriver in "BDB" catalog DB Interface class (global) |
2259 |
- */ |
2260 |
-- bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len); |
2261 |
-+ bstrncpy(catalog->db_driver, BDB_db_driver, db_driver_len+1); |
2262 |
- } |
2263 |
- } |
2264 |
- |
2265 |
- if (!db || !db_open_database(NULL, db)) { |
2266 |
- Pmsg2(000, _("Could not open Catalog \"%s\", database \"%s\".\n"), |