Portage is a package management system used by Gentoo Linux
# ChangeLog for app-backup/bacula
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/ChangeLog,v 1.55 2008/06/07 15:41:29 wschlich Exp $
*bacula-2.4.0 (07 Jun 2008)
07 Jun 2008; Wolfram Schlich
-files/2.2.8/2.2.8-jobmedia.patch, -files/2.2.8/2.2.8-jobmedia-fix.patch,
-files/2.2.8/2.2.8-bacula-conf.patch,
-files/2.2.8/2.2.8-pool-source.patch, -files/2.2.8/2.2.8-strip-path.patch,
-files/2.2.8/bacula-all-conf, -files/2.2.8/bacula-all-init,
-files/2.2.8/bacula-default-configs.patch, -files/2.2.8/bacula-dir-conf,
-files/2.2.8/bacula-dir-init, -files/2.2.8/bacula-fd-conf,
-files/2.2.8/bacula-fd-init, -files/2.2.8/bacula-gnomesu2gksu.diff,
-files/2.2.8/bacula-sd-conf, -files/2.2.8/bacula-sd-init,
+files/2.4.0/bacula-all-conf, +files/2.4.0/bacula-all-init,
+files/2.4.0/bacula-default-configs.patch, +files/2.4.0/bacula-dir-conf,
+files/2.4.0/bacula-dir-init, +files/2.4.0/bacula-fd-conf,
+files/2.4.0/bacula-fd-init, +files/2.4.0/bacula-gnomesu2gksu.diff,
+files/2.4.0/bacula-sd-conf, +files/2.4.0/bacula-sd-init,
-bacula-2.2.8.ebuild, -bacula-2.2.8-r1.ebuild, +bacula-2.4.0.ebuild:
version bump
21 May 2008; Tiziano Müller
bacula-2.2.8.ebuild, bacula-2.2.8-r1.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server
*bacula-2.2.8-r1 (29 Apr 2008)
29 Apr 2008; Wolfram Schlich
+files/2.2.8/2.2.8-bacula-conf.patch, +files/2.2.8/2.2.8-jobmedia.patch,
+files/2.2.8/2.2.8-jobmedia-fix.patch,
+files/2.2.8/2.2.8-pool-source.patch, +files/2.2.8/2.2.8-strip-path.patch,
+bacula-2.2.8-r1.ebuild:
incorporate upstream release patches
22 Mar 2008; Wolfram Schlich
depend on latex2html emerged with USE=png (bug #200562)
22 Mar 2008; Wolfram Schlich
files/2.0.3/bacula-all-init, files/2.0.3/bacula-dir-init:
fixed wrong quoting
19 Mar 2008; Wolfram Schlich
-files/bacula-1.36.3-cdrecord-configure.patch,
-files/bacula-1.36.3-default-configs.patch,
-files/bacula-doc-1.36.3-latex-icons.patch,
-files/bacula-1.36.3-mtxtmpfile.patch, -files/1.36.3/bacula-sd-init,
-files/bacula-2.0.2-default-configs.patch, files/2.0.3/bacula-all-init,
-files/bacula-2.0.2-gnomesu2gksu.diff, files/2.0.3/bacula-dir-init,
files/2.2.8/bacula-all-init, files/2.2.8/bacula-dir-init,
-files/bacula-conf, -files/bacula-init3, -files/randpass-1.37.40,
-files/1.36.3/bacula-all-conf, -files/1.36.3/bacula-all-init,
-files/1.36.3/bacula-dir-conf, -files/1.36.3/bacula-dir-init,
-files/1.36.3/bacula-fd-conf, -files/1.36.3/bacula-fd-init,
-files/1.36.3/bacula-sd-conf, metadata.xml, -bacula-1.36.3-r2.ebuild:
removed old versions
11 Mar 2008; Wolfram Schlich
-files/2.2.4/bacula-all-conf, -files/2.2.4/bacula-all-init,
-files/2.2.4/bacula-default-configs.patch, -files/2.2.4/bacula-dir-conf,
-files/2.2.4/bacula-dir-init, -files/2.2.4/bacula-fd-conf,
-files/2.2.4/bacula-fd-init, -files/2.2.4/bacula-gnomesu2gksu.diff,
-files/2.2.4/bacula-sd-conf, -files/2.2.4/bacula-sd-init,
-files/2.2.5/bacula-all-conf, -files/2.2.5/bacula-all-init,
-files/2.2.5/bacula-default-configs.patch, -files/2.2.5/bacula-dir-conf,
-files/2.2.5/bacula-dir-init, -files/2.2.5/bacula-fd-conf,
-files/2.2.5/bacula-fd-init, -files/2.2.5/bacula-gnomesu2gksu.diff,
-files/2.2.5/bacula-sd-conf, -files/2.2.5/bacula-sd-init,
-files/2.2.5/fix-nextvol.patch, -files/2.2.6/bacula-all-conf,
-files/2.2.6/bacula-all-init, -files/2.2.6/bacula-default-configs.patch,
-files/2.2.6/bacula-dir-conf, -files/2.2.6/bacula-dir-init,
-files/2.2.6/bacula-fd-conf, -files/2.2.6/bacula-fd-init,
-files/2.2.6/bacula-gnomesu2gksu.diff, -files/2.2.6/bacula-sd-conf,
-files/2.2.6/bacula-sd-init, -files/2.2.7/bacula-all-conf,
-files/2.2.7/bacula-all-init, -files/2.2.7/bacula-default-configs.patch,
-files/2.2.7/bacula-dir-conf, -files/2.2.7/bacula-dir-init,
-files/2.2.7/bacula-fd-conf, -files/2.2.7/bacula-fd-init,
-files/2.2.7/bacula-gnomesu2gksu.diff, -files/2.2.7/bacula-sd-conf,
-files/2.2.7/bacula-sd-init, -bacula-2.2.4.ebuild, -bacula-2.2.5.ebuild,
-bacula-2.2.5-r1.ebuild, -bacula-2.2.6.ebuild, -bacula-2.2.7.ebuild:
removed old versions
*bacula-2.2.8 (28 Jan 2008)
28 Jan 2008; Wolfram Schlich
+files/2.2.8/bacula-all-conf, +files/2.2.8/bacula-all-init,
+files/2.2.8/bacula-default-configs.patch, +files/2.2.8/bacula-dir-conf,
+files/2.2.8/bacula-dir-init, +files/2.2.8/bacula-fd-conf,
+files/2.2.8/bacula-fd-init, +files/2.2.8/bacula-gnomesu2gksu.diff,
+files/2.2.8/bacula-sd-conf, +files/2.2.8/bacula-sd-init,
+bacula-2.2.8.ebuild:
version bump
01 Jan 2008; Matti Bickel
~ppc readded (bug #195682)
*bacula-2.2.7 (29 Dec 2007)
29 Dec 2007; Wolfram Schlich
+files/2.2.7/bacula-all-conf, +files/2.2.7/bacula-all-init,
+files/2.2.7/bacula-default-configs.patch, +files/2.2.7/bacula-dir-conf,
+files/2.2.7/bacula-dir-init, +files/2.2.7/bacula-fd-conf,
+files/2.2.7/bacula-fd-init, +files/2.2.7/bacula-gnomesu2gksu.diff,
+files/2.2.7/bacula-sd-conf, +files/2.2.7/bacula-sd-init,
+bacula-2.2.7.ebuild:
version bump
15 Nov 2007; Wolfram Schlich
+files/2.2.6/bacula-all-conf, +files/2.2.6/bacula-all-init,
+files/2.2.6/bacula-default-configs.patch, +files/2.2.6/bacula-dir-conf,
+files/2.2.6/bacula-dir-init, +files/2.2.6/bacula-fd-conf,
+files/2.2.6/bacula-fd-init, +files/2.2.6/bacula-gnomesu2gksu.diff,
+files/2.2.6/bacula-sd-conf, +files/2.2.6/bacula-sd-init,
bacula-2.2.6.ebuild:
add missing files subdir for 2.2.6, remove unsuitable patch
*bacula-2.2.6 (14 Nov 2007)
14 Nov 2007; Wolfram Schlich
version bump
15 Oct 2007; Ferris McCormick
Re-add ~sparc --- Bug #195682
14 Oct 2007; Jeroen Roovers
bacula-2.2.5-r1.ebuild:
Marked ~hppa (bug #195682).
*bacula-2.2.5-r1 (14 Oct 2007)
14 Oct 2007; Wolfram Schlich
+files/2.2.5/fix-nextvol.patch, +bacula-2.2.5-r1.ebuild:
fix bug #195794
13 Oct 2007; Jeroen Roovers
Fix quoting issues found by repoman.
*bacula-2.2.5 (12 Oct 2007)
12 Oct 2007; Wolfram Schlich
+files/2.2.5/bacula-all-conf, +files/2.2.5/bacula-all-init,
+files/2.2.5/bacula-default-configs.patch, +files/2.2.5/bacula-dir-conf,
+files/2.2.5/bacula-dir-init, +files/2.2.5/bacula-fd-conf,
+files/2.2.5/bacula-fd-init, +files/2.2.5/bacula-gnomesu2gksu.diff,
+files/2.2.5/bacula-sd-conf, +files/2.2.5/bacula-sd-init,
+bacula-2.2.5.ebuild:
version bump
*bacula-2.2.4 (10 Oct 2007)
10 Oct 2007; Wolfram Schlich
+files/2.2.4/bacula-all-conf, +files/2.2.4/bacula-all-init,
+files/2.2.4/bacula-default-configs.patch, +files/2.2.4/bacula-dir-conf,
+files/2.2.4/bacula-dir-init, +files/2.2.4/bacula-fd-conf,
+files/2.2.4/bacula-fd-init, +files/2.2.4/bacula-gnomesu2gksu.diff,
+files/2.2.4/bacula-sd-conf, +files/2.2.4/bacula-sd-init,
+bacula-2.2.4.ebuild:
version bump
21 Aug 2007; Ferris McCormick
Sparc stable --- Bug #153189 --- (requires ghostscript upgrade for USE=doc:
Bug #187280).
21 Aug 2007; Jeroen Roovers
Stable for HPPA (bug #153189).
04 Aug 2007; Tobias Scherbaum
ppc stable, bug #153189
03 Aug 2007; Christian Faulhammer
stable x86, bug 153189
29 Apr 2007; Ryan Hill
Fix wxGTK dep for bug #164139
28 Apr 2007; Sven Wegener
bacula-2.0.3.ebuild:
Fix *initd and *envd calls, bug #173884.
22 Apr 2007; Wolfram Schlich
fixup wrt bug #174266, fix docs build issue
27 Mar 2007; Michael Sterrett
-files/bacula-1.38.5-default-configs.patch,
-files/bacula-1.38.9-default-configs.patch, -files/1.38.5/bacula-all-conf,
-files/1.38.5/bacula-all-init, -files/1.38.5/bacula-dir-conf,
-files/1.38.5/bacula-dir-init, -files/1.38.5/bacula-fd-conf,
-files/1.38.5/bacula-fd-init, -files/1.38.5/bacula-sd-conf,
-files/1.38.5/bacula-sd-init, -files/2.0.2/bacula-all-conf,
-files/2.0.2/bacula-all-init, -files/2.0.2/bacula-dir-conf,
-files/2.0.2/bacula-dir-init, -files/2.0.2/bacula-fd-conf,
-files/2.0.2/bacula-fd-init, -files/2.0.2/bacula-sd-conf,
-files/2.0.2/bacula-sd-init, -bacula-1.36.3-r3.ebuild,
-bacula-1.38.5.ebuild, -bacula-1.38.9.ebuild, -bacula-2.0.2.ebuild:
clean out old versions with keywords overshadowed by newer ebuilds per lisa
25 Mar 2007;
Remove virtual/x11 depend
23 Mar 2007; René Nussbaumer
Added to ~hppa, ~ppc. Requested by Mr_Bones_.
*bacula-2.0.3 (10 Mar 2007)
10 Mar 2007; Wolfram Schlich
+files/2.0.3/bacula-all-init, +files/2.0.3/bacula-dir-init,
+files/bacula-2.0.3-default-configs.patch, +files/2.0.3/bacula-dir-conf,
+files/2.0.3/bacula-fd-conf, +files/bacula-2.0.3-gnomesu2gksu.diff,
+files/2.0.3/bacula-all-conf, +files/2.0.3/bacula-fd-init,
+files/2.0.3/bacula-sd-conf, +files/2.0.3/bacula-sd-init,
+bacula-2.0.3.ebuild:
version bump
08 Mar 2007; Lisa Seelye
Change src_compile so --with-$mydbtype as per bug 169698
07 Mar 2007;
bacula-1.36.3-r3.ebuild, bacula-1.38.5.ebuild, bacula-1.38.9.ebuild:
move from gnomesu to gksu wrt bug #147550
02 Mar 2007; Wolfram Schlich
remove prepall (already called by install_qa_check)
28 Feb 2007; Wolfram Schlich
+files/bacula-2.0.2-gnomesu2gksu.diff, bacula-2.0.2.ebuild:
move from gnomesu to gksu wrt bug #147550
*bacula-2.0.2 (28 Feb 2007)
28 Feb 2007; Wolfram Schlich
+files/2.0.2/bacula-all-conf, +files/2.0.2/bacula-dir-conf,
+files/2.0.2/bacula-fd-conf, +files/bacula-2.0.2-default-configs.patch,
+files/2.0.2/bacula-all-init, +files/2.0.2/bacula-dir-init,
+files/2.0.2/bacula-fd-init, +files/2.0.2/bacula-sd-conf,
+files/2.0.2/bacula-sd-init, +bacula-2.0.2.ebuild:
version bump
15 Feb 2007; Daniel Black
bacula-1.36.3-r3.ebuild, bacula-1.38.5.ebuild, bacula-1.38.9.ebuild:
no more prep all as per bug #140699
24 Jan 2007; Marius Mauch
bacula-1.36.3-r3.ebuild, bacula-1.38.5.ebuild, bacula-1.38.9.ebuild:
Replacing einfo with elog
02 Dec 2006; Fabian Groffen
Grab config scripts from 1.38.5, as there is no directory for the current
version.
23 Nov 2006; Francesco Riosa
bacula-1.36.3-r3.ebuild, bacula-1.38.5.ebuild, bacula-1.38.9.ebuild:
dev-db/mysql => virtual/mysql
07 Nov 2006; Andrew Ross
Remove labmonkey from metadata.xml, as he's no longer bacula's maintainer.
bacula.
04 Nov 2006; Fabian Groffen
Quoted some variables, and fixed use of USE-flags, see bug #153995
21 Sep 2006;
added ~amd64
14 Jun 2006; Lisa Seelye
Typo in the ChangeLog about the bug number. Oops. bacula-1.38.9 deals with
bug #125729 not #12529.
*bacula-1.38.9 (14 Jun 2006)
14 Jun 2006; Lisa Seelye
+files/bacula-1.38.9-default-configs.patch, files/1.38.5/bacula-dir-conf,
+bacula-1.38.9.ebuild:
For bug #125729. Version bump, fix the issues, and to deal with comment #9: I've
fixed sqlite vs. sqlite3 support as well as NOT defaulting to any database if
two or more database USE flags are set. Likewise, the ebuild will die if the
user hasn't set any database USE flags (or it'll fail in econf).
27 Mar 2006; Chris Lee
bacula-1.36.3-r3.ebuild, bacula-1.38.5.ebuild:
Fixed einfo wrt #124745
19 Feb 2006; Chris Lee
Fixed enewuser invocation wrt #123152
17 Feb 2006; Chris Lee
+files/bacula-1.38.5-default-configs.patch:
Last commit neglected to add bacula-1.38.5-default-configs.patch
*bacula-1.38.5 (17 Feb 2006)
*bacula-1.36.3-r3 (17 Feb 2006)
17 Feb 2006; Chris Lee
+files/bacula-1.36.3-default-configs.patch,
+files/bacula-doc-1.36.3-latex-icons.patch, +files/1.36.3/bacula-all-conf,
+files/1.36.3/bacula-all-init, +files/1.36.3/bacula-dir-conf,
+files/1.36.3/bacula-dir-init, +files/1.36.3/bacula-fd-conf,
+files/1.36.3/bacula-fd-init, +files/1.36.3/bacula-sd-conf,
+files/1.36.3/bacula-sd-init, +files/1.38.5/bacula-all-conf,
+files/1.38.5/bacula-all-init, +files/1.38.5/bacula-dir-conf,
+files/1.38.5/bacula-dir-init, +files/1.38.5/bacula-fd-conf,
+files/1.38.5/bacula-fd-init, +files/1.38.5/bacula-sd-conf,
+files/1.38.5/bacula-sd-init, +bacula-1.36.3-r3.ebuild,
+bacula-1.38.5.ebuild:
Revision bump. Modular X fix, docs handling, single/multiple init scripts
USE controlled. Added 1.38.5 ebuild.
11 Oct 2005; Daniel Black
-bacula-1.34.4.ebuild:
remove vulnerable version
11 Oct 2005; Gustavo Zacarias
bacula-1.36.3-r2.ebuild:
Stable on sparc wrt #104986
09 Oct 2005; Mark Loeser
Stable on x86; bug #104986
07 Oct 2005; Michael Hanselmann
bacula-1.36.3-r2.ebuild:
Stable on hppa, ppc.
07 Oct 2005; Michael Hanselmann
bacula-1.36.3-r2.ebuild:
Stable on hppa, ppc.
06 Oct 2005; Daniel Black
+files/bacula-1.36.3-mtxtmpfile.patch, bacula-1.36.3-r2.ebuild:
opps last minute patch
*bacula-1.36.3-r2 (06 Oct 2005)
06 Oct 2005; Daniel Black
-files/bacula-1.36.2-cdrecord-configure.patch,
-files/bacula-1.36.2-nocdrecord.patch,
-files/bacula-1.36.3-init-depends.patch,
-files/bacula-1.36.3-rescue-makefile.patch, +files/randpass-1.37.40,
-files/bacula-3.6.0-configure.diff, -files/bacula-init2,
-bacula-1.34.5.ebuild, -bacula-1.34.6.ebuild, -bacula-1.36.0.ebuild,
-bacula-1.36.3.ebuild, -bacula-1.36.3-r1.ebuild, +bacula-1.36.3-r2.ebuild:
randpass insecure file creation - bug #104986. Old version cleanout. Thanks
to Romang
04 Jul 2005; Robin H. Johnson
+files/bacula-1.36.2-cdrecord-configure.patch,
+files/bacula-1.36.2-nocdrecord.patch,
+files/bacula-1.36.3-cdrecord-configure.patch,
+files/bacula-1.36.3-init-depends.patch,
+files/bacula-1.36.3-rescue-makefile.patch,
+files/bacula-3.6.0-configure.diff, +files/bacula-conf,
+files/bacula-init, +files/bacula-init2, +files/bacula-init3,
+metadata.xml, +bacula-1.34.4.ebuild, +bacula-1.34.5.ebuild,
+bacula-1.34.6.ebuild, +bacula-1.36.0.ebuild, +bacula-1.36.3.ebuild,
+bacula-1.36.3-r1.ebuild:
Moved from app-admin/bacula to app-backup/bacula.
*bacula-1.36.3-r1 (03 Jul 2005)
03 Jul 2005; Fernando Serboncini
+files/bacula-1.36.3-cdrecord-configure.patch,
-files/1.32f/1.32f-1-weekofmonth.patch,
-files/1.32f/1.32f-2-eom-nextvol.patch, +files/bacula-conf,
+files/bacula-init3, metadata.xml, -bacula-1.32f.ebuild,
-bacula-1.32f-r5.ebuild, -bacula-1.34.1.ebuild, +bacula-1.36.3-r1.ebuild:
removed old versions.
Completely rewritten ebuild.
*bacula-1.36.3 (01 Jul 2005)
01 Jul 2005; Brian Jackson
+files/bacula-1.36.2-cdrecord-configure.patch,
+files/bacula-1.36.2-nocdrecord.patch,
+files/bacula-1.36.3-init-depends.patch,
+files/bacula-1.36.3-rescue-makefile.patch, +bacula-1.36.3.ebuild:
version bump and cleanups, ebuilds courtesy of bug #74953, thanks to
barningerATfairfieldcomputers.com
05 May 2005; Sven Wegener
Fixed [<>]=cat/pkg-ver* dependencies.
15 Mar 2005; Ciaran McCreesh
bacula-1.32f-r5.ebuild, bacula-1.34.1.ebuild, bacula-1.34.4.ebuild,
bacula-1.34.5.ebuild, bacula-1.34.6.ebuild, bacula-1.36.0.ebuild:
Dependency update: sys-apps/mtx -> sys-block/mtx.
09 Jan 2005; Sven Wegener
bacula-1.32f.ebuild:
Added missing parentheses in SRC_URI/*DEPEND/LICENSE.
30 Dec 2004; Sven Wegener
Moved inherit to the top.
*bacula-1.36.0 (18 Dec 2004)
18 Dec 2004; Martin Holzer
+files/bacula-3.6.0-configure.diff, +files/bacula-init2,
+bacula-1.36.0.ebuild:
Version bumped. Ebuild submitted by D. Scott Barninger
*bacula-1.34.6 (27 Nov 2004)
27 Nov 2004; Martin Holzer
Version bumped.
17 Oct 2004; Jason Wever
Stable on sparc.
16 Oct 2004; Mike Frysinger
bacula-1.32f.ebuild, bacula-1.34.1.ebuild, bacula-1.34.4.ebuild,
bacula-1.34.5.ebuild:
Fix stupid dependency on sys-libs/libtermcap-compat (i.e. remove it) #64212.
05 Oct 2004; Pieter Van den Abeele
bacula-1.32f-r5.ebuild, bacula-1.32f.ebuild, bacula-1.34.1.ebuild,
bacula-1.34.4.ebuild:
Masked bacula-1.34.4.ebuild stable for ppc
05 Oct 2004; Pieter Van den Abeele
bacula-1.32f-r5.ebuild, bacula-1.32f.ebuild, bacula-1.34.1.ebuild:
Masked bacula-1.34.1.ebuild stable for ppc
05 Oct 2004; Pieter Van den Abeele
bacula-1.32f-r5.ebuild, bacula-1.32f.ebuild:
Masked bacula-1.32f.ebuild stable for ppc
05 Oct 2004; Pieter Van den Abeele
bacula-1.32f-r5.ebuild:
Masked bacula-1.32f-r5.ebuild stable for ppc
05 Aug 2004; Anders Rune Jensen
bacula-1.34.4.ebuild, bacula-1.34.1.ebuild, bacula-1.32f.ebuild,
bacula-1.32f-r5.ebuild:
Depend on version 2 of sqlite.
02 Aug 2004; Chuck Short
Added mysql switch. Closes #49122.
02 Aug 2004; Chuck Short
bacula-1.34.5.ebuild:
Changed bindir path for sqllite. Closes #57146.
21 Jul 2004; Chuck Short
Fixed wxwindows support. Closes #57350.
Fixed client support. Closes #57302.
29 Jun 2004; Aron Griffis
sync IUSE (-postgres)
*bacula-1.34.5 (26 Jun 2004)
26 Jun 2004; Chuck Short
Version bump, closes #54766.
26 Jun 2004; Chuck Short
bacula-1.31.ebuild:
Removed old versions.
26 Jun 2004; Chuck Short
Marked stable for x86.
*bacula-1.34.4 (19 Jun 2004)
19 Jun 2004; Chuck Short
Version bump, closes #54097.
26 Apr 2004; Jason Wever
Stable on sparc wrt bug #48969.
26 Apr 2004; Chuck Short
Marked stable for x86.
*bacula-1.34.1 (26 Apr 2004)
26 Apr 2004; Chuck Short
Version bump, closes #48969.
26 Apr 2004; Chuck Short
Removed 1.34.0 becuase of race condition.
22 Apr 2004; Chuck Short
Force mysql to be used if sqlite and mysql are both in use flags. Closes
#47836.
14 Apr 2004; Daniel Ahlberg
Removed S=, inherit eutils for epatch.
*bacula-1.34.0 (13 Apr 2004)
13 Apr 2004; Chuck Short
Version bump, closes #47240.
09 Apr 2004; Chuck Short
Marked stable on x86.
09 Apr 2004; Chuck Short
Removed patch, it was not applying cleanly. Closes #46790.
23 Mar 2004;
Marked stable for x86.
21 Mar 2004; Chuck Short
bacula-1.32f.ebuild:
Fixed broken static support. Closes #23998.
16 Mar 2004; Chuck Short
Added ~sparc keyword
19 Mar 2004; Chuck Short
Fix for proper detection of sqlite. Closes #45152.
*bacula-1.32f-r5 (16 Mar 2004)
16 Mar 2004; Chuck Short
bacula-1.32f.ebuild:
Version bump, closes #44580.
Bacula 1.32f-r5 is 1.32f-5 and bacula 1.32f is 1.32f. The
next release 1.32f-6 will be 1.32f-r6.
14 Mar 2004; Chuck Short
Marked stable for x86.
11 Feb 2004; Chuck Short
For some reason console does not get installed to /usr/sbin. Added depend on
libtermcap-compat.
*bacula-1.32f (10 Feb 2004)
10 Feb 2004; Chuck Short
files/1.32f/1.32f-patchlist.txt:
Fixed way of using patches. Closes #4122.
02 Feb 2004; Chuck Short
bacula 1.31 now uses bacula 1.31a rather than the 04Jun03 snapshot.
Closes #25858.
02 Feb 2004; Chuck Short
Version bump.
29 Jan 2004; Chuck Short
Force the user to use mysql if they have both sqlite and mysql as use flags.
Closes #39764.
28 Jan 2004; Chuck Short
bacula-1.31.ebuild, metadata.xml:
Added metadata.xml
Updated headers
Fixed mysql issues when using mysql in USE. Closes #38547.
05 Dec 2003; Chuck Short
bacula-1.31.ebuild:
Chown fixes.
19 Oct 2003; Martin Holzer
bacula-1.31.ebuild: Backports...
*bacula-1.31 (11 Jun 2003)
11 Jun 2003; Donny Davies
files/bacula-init:
Update to latest release. Thanks to Rob de Beir
for fixing various bugs, including: #17059, #21607.
*bacula-1.29 (29 Jan 2003)
28 Mar 2003; Pieter Van den Abeele
Ready for some testing on ppc: ~ppc
12 Feb 2003; Yannick Koehler
Added the static flag to IUSE.
29 Jan 2003; Donny Davies
Initial import of Bacula; initscript and ebuild written by me.
AUX 2.0.3/bacula-all-conf 897 RMD160 ed0550834e463b65c958a51893a3de288864effe SHA1 a47ea9f828f3ac1175d44ff8aaefb8fdfc85685b SHA256 8d562c4ea4958131f9700466738150f0bec310aa534d009b941187042abf96f3
AUX 2.0.3/bacula-all-init 1658 RMD160 ed3a308299bd63ccf137f45e24b5389d0afcb949 SHA1 99dcddf573f1886de68b6c1a22b5973613ec584d SHA256 76525d85c6ebc1696463b58b44dfc9a7eb875c6e46d6aec3f7ac946a38985c79
AUX 2.0.3/bacula-dir-conf 630 RMD160 fdc5405bfcf33bdb085a01c9af1a5300594e362e SHA1 033bb69a51f196f85055e8068170e6e4317ea07b SHA256 392fa6e72bcf7933e815ea81ad9047956b6001d36c436b40cde3687ae6c203dd
AUX 2.0.3/bacula-dir-init 606 RMD160 4c7be2f11aa609159dbbd8bb0539e13cc16bd4c2 SHA1 9f9cfd2c573cbe6d1b5d4f49ed0e23ebfa049d6f SHA256 959dab173b5ccf1269b36c98c4314b76549490b1b2d6067d7ab7555e0291ce17
AUX 2.0.3/bacula-fd-conf 364 RMD160 3df0828b2d8e5b69b2a4040c150619311edee8cb SHA1 2f261ce2450edcc260d5899d32be8e010ed7e923 SHA256 16e054850feff0fe093684b9f1f6f2178ce04f3175966bc27459cd5a48ce8b49
AUX 2.0.3/bacula-fd-init 550 RMD160 75fdec06d68b682cd4f281bbaf74c450bdc30ea4 SHA1 87f082e50a990880285e57c1e95d51883b832bc0 SHA256 bda7b05db7232781f5f5f39552030dc5fcc3fc266da1329ced4be7275f069de3
AUX 2.0.3/bacula-sd-conf 500 RMD160 2916226d199092d57790cdf4132468cea39787c8 SHA1 e79922309b0c078945561779bfa8038133f26595 SHA256 8b5a22641153fa4220eed5c34765087b7fba6385ca02ad3a60c9c45b09e2d359
AUX 2.0.3/bacula-sd-init 557 RMD160 8618d3af1688d3de1554c9092b98c869a935f031 SHA1 ff43d26c235072ca2fd1a0b2d05856e31cfff5a1 SHA256 35b2c71741b3810a8b243047a3eab2c9f05f1130caec6e1bab3fc1ae5b7eb697
AUX 2.4.0/bacula-all-conf 897 RMD160 b75391f7d66988a3f4cf6d4fd2f876c63dd0bf5b SHA1 eadb08c3f5a47a609a3d21070af16be72e0335c1 SHA256 aad82cfbb4a98e350abf56733b5116b1fe4f43e868558455e11e849fa7ee3f17
AUX 2.4.0/bacula-all-init 1658 RMD160 ab3235c42aa5e025274de274ec8d883b6741ef0e SHA1 9b6337cd84ad5cb683bb365d032eddf36452e35d SHA256 ec7068d28c364192e83114457249daa7958bcadeace2930195ecec73360823aa
AUX 2.4.0/bacula-default-configs.patch 4657 RMD160 f485bd1a1ddb437ac5277d37bd60962959e66e17 SHA1 f749da3d07a92999cb9f679c9d1f9a7bffbb6f53 SHA256 835411c2c4c315877f7b19c40ee63dcdf9ee2ae5d8d14a03a4bfa86e6a0cb6ab
AUX 2.4.0/bacula-dir-conf 630 RMD160 6520112ed03d788402848a60c16a3952490027c1 SHA1 78b2e0ad4eba24f5684a29adf788ea5cd46d968c SHA256 9756b24728840d0423649cc47e97aa15c30e728a924159a2eaa3a8fbff05e1e9
AUX 2.4.0/bacula-dir-init 606 RMD160 fd5006e83bcf6532acca6a8051ce50f4e25b84f2 SHA1 deb0c16336bd7cc910d06a0c1ea42c00f96a2087 SHA256 b3aa3a5b600b1c921769c26bfd3fda6f2d010b9728c97f44a907471d827da87a
AUX 2.4.0/bacula-fd-conf 364 RMD160 5952efa69540ccfc51cd894941438ec99574dc6a SHA1 fc1823125772703aca4aa3419b06a26566cd35cd SHA256 8ed6f9765342dd3df69b6b10cdfd368dd2fab4d8a58037f6e3c5e020da6dff0b
AUX 2.4.0/bacula-fd-init 550 RMD160 0fa649379e1434b185b4c0e0d7697b6f36b54099 SHA1 bfafe07546a395b9231133bf7840810bf927133a SHA256 cb34dcb7fb67849235d9506ab27135aec92bdee1217194970e986c419ceb6fc1
AUX 2.4.0/bacula-gnomesu2gksu.diff 3059 RMD160 aa933d3c46b820b6de5dcbfb4e506f901b982fe2 SHA1 c78323959b88eb9c96acb83ca2586566bf1a2846 SHA256 818385c2ea137435683f752d25c2274afb28b4287ae7f90cdf41a23f67172fbd
AUX 2.4.0/bacula-sd-conf 500 RMD160 d676543053e0c2dc34cecadcf8fc66b95b2315ce SHA1 8198a140f725d20f2ba0336713b23ab0e88fbc52 SHA256 455a15a567e074fad6382dfa1aaedc0a253bbfdb21266a962ca245f1c5c764ea
AUX 2.4.0/bacula-sd-init 557 RMD160 dadec44a5637e9191d352b373db3b804ba564369 SHA1 fa9394dde56639539a407ac3072783c9343180e0 SHA256 56452980f73abd4ae6ee8428db47a8b5d81ad66ba0a7802e8d590694ec92bd0b
AUX bacula-2.0.3-default-configs.patch 3886 RMD160 f2a40a48deca75e6788f0dc703f7ea2b7a7671a3 SHA1 187040aaaf84d571076ecba379f41e211d55346f SHA256 2e423900f9c03c3f85979d237d2f51f39ec21869592478c69117c1170c1234cf
AUX bacula-2.0.3-gnomesu2gksu.diff 2129 RMD160 a54f6e378e9759254c0e3844d6d3f1f7d0ce824f SHA1 24b02ff8539e35261407ddf6ebb6b15285ba0dd4 SHA256 fb756510067a797410ccf404c64516bc26da8486ef805f5bf5236075eeb3935d
DIST bacula-2.0.3.tar.gz 2527956 RMD160 f632885b052f188d2b986c098167009353f32bb3 SHA1 ef58c91243bd819e0ac278b91aeae16639d6c8ce SHA256 519336560be6e92c004975a5a61c2c438eac50e38d9ab699b215ba269720c2de
DIST bacula-2.4.0.tar.gz 3082403 RMD160 0837b7f763f5b33c9b79f84e341617bae0a73d32 SHA1 9ae033911ef3d20e628457e9b7438e44df25f306 SHA256 856430e271dc151528a47ae82e89cd21fa5c720ab5be3f698ed754a8cc25520a
DIST bacula-docs-2.0.3.tar.gz 16601744 RMD160 ba2492ea8e5e85234a5e02fc0f4b5ba70997ad43 SHA1 d615b7a2fb88b181f10f453260824eee687403e5 SHA256 39e763b0860b73b20336d765e9496c08fc7e5940d3a9dc123cb929e45af66614
DIST bacula-docs-2.4.0.tar.bz2 23005131 RMD160 3946b0135e6cc5fedfbb78ffd49b918d2a6a70a8 SHA1 3d3fb90815f6ea3975dde0daefdd52e47218b585 SHA256 7b1a87559a5cd1b2b702149e76b59b6e1234397f0dbe08c719bcc52aa06714f3
EBUILD bacula-2.0.3.ebuild 9973 RMD160 fabfebb43ee1351dbfa60c9ae58897f763dbcaa3 SHA1 c50063aa4bb10c32f8e42304d595e808ebdcad14 SHA256 b43020a1cf4ffb09ff9e04b78b35bb1f4bd0ecdfc97c48b655752ec2deb354b9
EBUILD bacula-2.4.0.ebuild 11218 RMD160 17377639a0e679e2c60e81f26212d84d247aa347 SHA1 38ae1955c7e34ab75352f140d701702685fb5ee4 SHA256 1cbcd19d742d7e55d90a26c00e41596840dffab26d6d968cbd43309e34de4fdd
MISC ChangeLog 23227 RMD160 2fd16834cf9c84627b8d4bddfe409922aee0e60c SHA1 a4d20541d8e21797ddd556b472832e2fa8d632c5 SHA256 bec172ed50288b5c18b30e6537e8f490d63c7585479f0b5eb6979f52226a644b
MISC metadata.xml 309 RMD160 c42a2d1cb22ce2dbceb1c1410b75c4f0c5c49346 SHA1 ba09b363adbc6b76abb2ae2dac37843a4318ce42 SHA256 b0de2bd082a16cda9c3c340a84ca754ade06316562c122a4e8dabc142acee706
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-2.0.3.ebuild,v 1.11 2008/05/21 15:47:13 dev-zero Exp $
#
# TODO:
# - install stuff from examples/:
# - examples/nagios/ + add nagios USE flag etc.
# (see also example/reports/check_bacula_pools.sh which is newer
# than examples/nagios/check_bacula_pools.sh)
# - examples/autochangers/
# - examples/devices/
# - examples/python/
# - examples/reports/baculareport.pl
# - correctly filter unneeded /usr/libexec/bacula/ stuff depending
# on selected USE flags, e.g. bacula-clientonly
# - install bacula-web and/or bweb from bacula-gui
#
inherit eutils
IUSE="bacula-clientonly bacula-console bacula-nodir bacula-nosd bacula-split-init doc gnome logrotate logwatch mysql postgres python readline sqlite sqlite3 ssl static tcpd wxwindows X"
KEYWORDS="~amd64 hppa ppc sparc x86"
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
DOC_VER="${PV}"
SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz
doc? ( mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
DEPEND="
>=sys-libs/zlib-1.1.4
dev-libs/gmp
!bacula-clientonly? (
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( virtual/mysql )
sqlite? ( =dev-db/sqlite-2* )
sqlite3? ( >=dev-db/sqlite-3.0.0 )
virtual/mta
)
bacula-console? (
wxwindows? ( =x11-libs/wxGTK-2.6* )
gnome? (
>=gnome-base/libgnome-2
x11-libs/gksu
)
)
ssl? ( dev-libs/openssl )
logrotate? ( app-admin/logrotate )
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( >=sys-libs/readline-4.1 )
doc? (
virtual/ghostscript
dev-tex/latex2html
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
sys-block/mtx
app-arch/mt-st
)"
pkg_setup() {
local dbnum
declare -i dbnum=0
if ! useq bacula-clientonly; then
if useq mysql; then
export mydbtype='mysql'
let dbnum++
fi
if useq postgres; then
export mydbtype='postgresql'
let dbnum++
fi
if useq sqlite; then
export mydbtype='sqlite'
let dbnum++
fi
if useq sqlite3; then
export mydbtype='sqlite3'
let dbnum++
fi
if [[ "${dbnum}" -lt 1 ]]; then
eerror
eerror "To use ${P} it is required to set a database in the USE flags."
eerror "Supported databases are mysql, postgresql, sqlite, sqlite3"
eerror
die "No database type selected."
elif [[ "${dbnum}" -gt 1 ]]; then
eerror
eerror "You have set ${P} to use multiple database types."
eerror "I don't know which to set as the default!"
eerror "You can use /etc/portage/package.use to set per-package USE flags"
eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3"
eerror
die "Multiple database types selected."
fi
fi
# create the daemon group and user
if [ -z "$(egetent group bacula)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if ! useq bacula-clientonly; then
if [ -z "$(egetent passwd bacula)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
# adjusts default configuration files for several binaries
# to /etc/bacula/
pushd src && epatch "${FILESDIR}/${P}"-default-configs.patch && popd
# replaces (deprecated) gnomesu with gksu in the gnome menu files
useq bacula-console && useq gnome && epatch "${FILESDIR}/${P}"-gnomesu2gksu.diff
}
src_compile() {
local myconf=''
if useq bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
--with-${mydbtype} \
$(use_enable static static-tools) \
$(use_enable static static-fd) \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
if ! useq bacula-nodir; then
myconf="${myconf} $(use_enable static static-dir)"
fi
if ! useq bacula-nosd; then
myconf="${myconf} $(use_enable static static-sd)"
fi
fi
if useq bacula-console; then
myconf="${myconf} \
$(use_with X x) \
$(use_enable gnome) \
$(use_enable gnome tray-monitor) \
$(use_enable wxwindows wx-console) \
$(use_enable static static-cons)"
fi
myconf="${myconf} \
$(use_with python) \
$(use_with readline) \
$(use_with ssl openssl) \
$(use_with tcpd tcp-wrappers)"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--infodir=/usr/share/info \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--host=${CHOST} \
${myconf} \
|| die "configure failed"
emake || die "emake failed"
# build docs from bacula-docs tarball
if useq doc; then
pushd "${WORKDIR}/${PN}-docs-${DOC_VER}"
./configure \
--with-bacula="${S}" \
|| die "configure for bacula-docs failed"
# the main Makefile tries to build stuff in
# ./developer/ and ./bacula-web/, which is
# unfortunately broken in 2.0.3, so we only
# build stuff in ./manual/, which works.
pushd manual
emake -j1 || die "emake for bacula-docs failed"
popd
popd
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if useq static; then
pushd "${D}"/usr/sbin
mv static-bacula-fd bacula-fd
mv static-bconsole bconsole
if ! useq bacula-clientonly; then
mv static-bacula-dir bacula-dir
mv static-bacula-sd bacula-sd
fi
if useq bacula-console && useq gnome; then
mv static-gnome-console gnome-console
fi
popd
fi
# gnome-console menu entries using gksu
if useq bacula-console && useq gnome; then
emake DESTDIR="${D}" install-menu-xsu \
|| die "Failed to install gnome menu files"
fi
# extra files which 'make install' doesn't cover
if ! useq bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
if useq logrotate; then
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
fi
# the logwatch scripts
if useq logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
cd "${S}"/scripts/logwatch
emake DESTDIR="${D}" install || die "Failed to install logwatch scripts"
cd "${S}"
fi
fi
# documentation
for d in "${S}"/{ChangeLog,LICENSE,README,ReleaseNotes,SUPPORT,kernstodo,projects}; do
dodoc "${d}"
done
# FIXME: developers and bacula-web documentation is broken with 2.0.3 :-(
if useq doc; then
#! dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/developers/developers.pdf
dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/manual/bacula.pdf
diropts -m0755
#! dodir /usr/share/doc/"${PF}"/developers
dodir /usr/share/doc/"${PF}"/manual
insopts -m0644
#! insinto /usr/share/doc/"${PF}"/developers
#! doins "${WORKDIR}/${PN}-docs-${DOC_VER}"/developers/developers/*
insinto /usr/share/doc/"${PF}"/manual
doins "${WORKDIR}/${PN}-docs-${DOC_VER}"/manual/bacula/*
fi
# setup init scripts
myservices="fd"
if ! useq bacula-clientonly; then
if ! useq bacula-nodir; then
myservices="${myservices} dir"
fi
if ! useq bacula-nosd; then
myservices="${myservices} sd"
fi
fi
if useq bacula-split-init; then
myscripts=""
for service in ${myservices}; do
myscripts="${myscripts} bacula-${service}"
done
else
myscripts="bacula-all"
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${PV}/${script}"-conf "${T}/${script}".conf
cp "${FILESDIR}/${PV}/${script}"-init "${T}/${script}".init
# set database dependancy for the all-in-one and director init scripts
case "${mydbtype}" in
sqlite*)
# sqlite + sqlite3 databases don't have daemons
sed -i -e "s:%database%::" "${T}/${script}".init
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".init
;;
esac
# set services for the all-in-one init script
sed -i -e "s:%services%:${myservices}:" "${T}/${script}".conf
# install init script and config
newinitd "${T}/${script}".init "${script}"
newconfd "${T}/${script}".conf "${script}"
done
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
}
pkg_postinst() {
if useq bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! useq bacula-clientonly && ! useq bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
einfo "If you're upgrading from a major release, you must upgrade your bacula catalog database."
einfo "Please read the manual chapter for how to upgrade your database."
einfo "You can find database upgrade scripts in /usr/libexec/bacula/updatedb."
einfo
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-2.4.0.ebuild,v 1.1 2008/06/07 15:41:29 wschlich Exp $
#
# TODO:
# - install stuff from examples/:
# - examples/nagios/ + add nagios USE flag etc.
# (see also example/reports/check_bacula_pools.sh which is newer
# than examples/nagios/check_bacula_pools.sh)
# - examples/autochangers/
# - examples/devices/
# - examples/python/
# - examples/reports/baculareport.pl
# - correctly filter unneeded /usr/libexec/bacula/ stuff depending
# on selected USE flags, e.g. bacula-clientonly
# - install bacula-web and/or bweb from bacula-gui package
# - bacula >=2.4.0 supports --without-qwt -- reflect with USE=qwt
#
inherit eutils
IUSE="bacula-clientonly bacula-console bacula-nodir bacula-nosd bacula-split-init doc gnome ipv6 logrotate logwatch mysql postgres python qt4 readline sqlite sqlite3 ssl static tcpd wxwindows X"
KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="http://www.bacula.org/"
DOC_VER="${PV}"
SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz
doc? ( mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2 )"
LICENSE="GPL-2"
SLOT="0"
DEPEND="
>=sys-libs/zlib-1.1.4
dev-libs/gmp
!bacula-clientonly? (
postgres? ( >=virtual/postgresql-server-7.4 )
mysql? ( virtual/mysql )
sqlite? ( =dev-db/sqlite-2* )
sqlite3? ( >=dev-db/sqlite-3.0.0 )
virtual/mta
)
bacula-console? (
wxwindows? ( =x11-libs/wxGTK-2.6* )
qt4? (
=x11-libs/qt-4*
>=x11-libs/qwt-5
)
gnome? (
>=gnome-base/libgnome-2
x11-libs/gksu
)
)
ssl? ( dev-libs/openssl )
logrotate? ( app-admin/logrotate )
logwatch? ( sys-apps/logwatch )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
readline? ( >=sys-libs/readline-4.1 )
doc? (
virtual/ghostscript
dev-tex/latex2html
)"
RDEPEND="${DEPEND}
!bacula-clientonly? (
sys-block/mtx
app-arch/mt-st
)"
pkg_setup() {
local dbnum
declare -i dbnum=0
if ! useq bacula-clientonly; then
if useq mysql; then
export mydbtype='mysql'
let dbnum++
fi
if useq postgres; then
export mydbtype='postgresql'
let dbnum++
fi
if useq sqlite; then
export mydbtype='sqlite'
let dbnum++
fi
if useq sqlite3; then
export mydbtype='sqlite3'
let dbnum++
fi
if [[ "${dbnum}" -lt 1 ]]; then
eerror
eerror "To use ${P} it is required to set a database in the USE flags."
eerror "Supported databases are mysql, postgresql, sqlite, sqlite3"
eerror
die "No database type selected."
elif [[ "${dbnum}" -gt 1 ]]; then
eerror
eerror "You have set ${P} to use multiple database types."
eerror "I don't know which to set as the default!"
eerror "You can use /etc/portage/package.use to set per-package USE flags"
eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3"
eerror
die "Multiple database types selected."
fi
fi
# create the daemon group and user
if [ -z "$(egetent group bacula)" ]; then
enewgroup bacula
einfo
einfo "The group 'bacula' has been created. Any users you add to this"
einfo "group have access to files created by the daemons."
einfo
fi
if ! useq bacula-clientonly; then
if [ -z "$(egetent passwd bacula)" ]; then
enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
einfo
einfo "The user 'bacula' has been created. Please see the bacula manual"
einfo "for information about running bacula as a non-root user."
einfo
fi
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
# adjusts default configuration files for several binaries
# to /etc/bacula/
pushd src && epatch "${FILESDIR}/${PV}/${PN}"-default-configs.patch && popd
# replaces (deprecated) gnomesu with gksu in the gnome menu files
useq bacula-console && useq gnome && epatch "${FILESDIR}/${PV}/${PN}"-gnomesu2gksu.diff
}
src_compile() {
if useq doc && has_version dev-tex/latex2html && ! built_with_use dev-tex/latex2html png; then
eerror "${PN} needs the PNG support of latex2html"
eerror "Please re-emerge dev-tex/latex2html with USE=png"
die "need dev-tex/latex2html built with png USE flag"
fi
local myconf=''
if useq bacula-clientonly; then
myconf="${myconf} \
$(use_enable bacula-clientonly client-only) \
$(use_enable static static-fd)"
else
myconf="${myconf} \
--with-${mydbtype} \
$(use_enable static static-tools) \
$(use_enable static static-fd) \
$(use_enable !bacula-nodir build-dird) \
$(use_enable !bacula-nosd build-stored)"
if ! useq bacula-nodir; then
myconf="${myconf} $(use_enable static static-dir)"
fi
if ! useq bacula-nosd; then
myconf="${myconf} $(use_enable static static-sd)"
fi
fi
if useq bacula-console; then
if useq qt4 && has_version '
eerror "compilation of 'bat' would fail (see"
eerror "http://bugs.gentoo.org/188477#c11 for details)."
eerror "please either unmerge
die "incompatible slotted qwt version found"
fi
myconf="${myconf} \
$(use_with X x) \
$(use_enable gnome) \
$(use_enable gnome tray-monitor) \
$(use_enable wxwindows bwx-console) \
$(use_enable qt4 bat) \
$(use_enable static static-cons)"
fi
myconf="${myconf} \
$(use_with python) \
$(use_enable readline) \
$(use_with readline readline /usr) \
$(use_with ssl openssl) \
$(use_enable ipv6) \
$(use_with tcpd tcp-wrappers)"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--with-pid-dir=/var/run \
--sysconfdir=/etc/bacula \
--infodir=/usr/share/info \
--with-subsys-dir=/var/lock/subsys \
--with-working-dir=/var/lib/bacula \
--with-scriptdir=/usr/libexec/bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=root \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=bacula \
--enable-smartalloc \
--host=${CHOST} \
${myconf} \
|| die "configure failed"
emake || die "emake failed"
# build docs from bacula-docs tarball
if useq doc; then
pushd "${WORKDIR}/${PN}-docs-${DOC_VER}"
./configure \
--with-bacula="${S}" \
|| die "configure for bacula-docs failed"
# the main Makefile tries to build stuff in
# ./developer/ and ./bacula-web/, which is
# unfortunately broken in 2.0.3, so we only
# build stuff in ./manual/, which works.
pushd manual
emake -j1 || die "emake for bacula-docs failed"
popd
popd
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
# install bat when enabled (for some reason ./configure doesn't pick this up)
if useq bacula-console && useq qt4; then
dosbin "${S}"/src/qt-console/bat
fi
# remove some scripts we don't need at all
rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
# rename statically linked apps
if useq static; then
pushd "${D}"/usr/sbin
mv static-bacula-fd bacula-fd
mv static-bconsole bconsole
if ! useq bacula-clientonly; then
mv static-bacula-dir bacula-dir
mv static-bacula-sd bacula-sd
fi
if useq bacula-console && useq gnome; then
mv static-gnome-console gnome-console
fi
if useq bacula-console && useq qt4; then
mv static-bat bat
fi
popd
fi
# gnome-console menu entries using gksu
if useq bacula-console && useq gnome; then
emake DESTDIR="${D}" install-menu-xsu \
|| die "Failed to install gnome menu files"
fi
# extra files which 'make install' doesn't cover
if ! useq bacula-clientonly; then
# the database update scripts
diropts -m0750
insinto /usr/libexec/bacula/updatedb
insopts -m0754
doins "${S}"/updatedb/*
fperms 0640 /usr/libexec/bacula/updatedb/README
# the logrotate configuration
if useq logrotate; then
diropts -m0755
insinto /etc/logrotate.d
insopts -m0644
newins "${S}"/scripts/logrotate bacula
fi
# the logwatch scripts
if useq logwatch; then
diropts -m0750
dodir /etc/log.d/scripts/services
dodir /etc/log.d/conf/logfiles
dodir /etc/log.d/conf/services
cd "${S}"/scripts/logwatch
emake DESTDIR="${D}" install || die "Failed to install logwatch scripts"
cd "${S}"
fi
fi
# documentation
for d in "${S}"/{ChangeLog,LICENSE,README,ReleaseNotes,SUPPORT,kernstodo,projects}; do
dodoc "${d}"
done
# TODO FIXME: developers and bacula-web documentation is broken with 2.0.3 :-(
if useq doc; then
#! dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/developers/developers.pdf
dodoc "${WORKDIR}/${PN}-docs-${DOC_VER}"/manual/bacula.pdf
diropts -m0755
#! dodir /usr/share/doc/"${PF}"/developers
dodir /usr/share/doc/"${PF}"/manual
insopts -m0644
#! insinto /usr/share/doc/"${PF}"/developers
#! doins "${WORKDIR}/${PN}-docs-${DOC_VER}"/developers/developers/*
insinto /usr/share/doc/"${PF}"/manual
doins "${WORKDIR}/${PN}-docs-${DOC_VER}"/manual/bacula/*
fi
# setup init scripts
myservices="fd"
if ! useq bacula-clientonly; then
if ! useq bacula-nodir; then
myservices="${myservices} dir"
fi
if ! useq bacula-nosd; then
myservices="${myservices} sd"
fi
fi
if useq bacula-split-init; then
myscripts=""
for service in ${myservices}; do
myscripts="${myscripts} bacula-${service}"
done
else
myscripts="bacula-all"
fi
for script in ${myscripts}; do
# copy over init script and config to a temporary location
# so we can modify them as needed
cp "${FILESDIR}/${PV}/${script}"-conf "${T}/${script}".conf
cp "${FILESDIR}/${PV}/${script}"-init "${T}/${script}".init
# set database dependancy for the all-in-one and director init scripts
case "${mydbtype}" in
sqlite*)
# sqlite + sqlite3 databases don't have daemons
sed -i -e "s:%database%::" "${T}/${script}".init
;;
*)
# all other databases have daemons
sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".init
;;
esac
# set services for the all-in-one init script
sed -i -e "s:%services%:${myservices}:" "${T}/${script}".conf
# install init script and config
newinitd "${T}/${script}".init "${script}"
newconfd "${T}/${script}".conf "${script}"
done
# make sure the working directory exists
diropts -m0750
keepdir /var/lib/bacula
# make sure bacula group can execute bacula libexec scripts
fowners root:bacula /usr/libexec/bacula/*
}
pkg_postinst() {
if useq bacula-clientonly; then
fowners root:bacula /var/lib/bacula
else
fowners bacula:bacula /var/lib/bacula
fi
if ! useq bacula-clientonly && ! useq bacula-nodir; then
einfo
einfo "If this is a new install, you must create the ${mydbtype} databases with:"
einfo " /usr/libexec/bacula/create_${mydbtype}_database"
einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
einfo
einfo "If you're upgrading from a major release, you must upgrade your bacula catalog database."
einfo "Please read the manual chapter for how to upgrade your database."
einfo "You can find database upgrade scripts in /usr/libexec/bacula/updatedb."
einfo
fi
}