summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2005-07-04 01:52:06 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2005-07-04 01:52:06 +0000
commit70655b3a328b6512151b89834c5f3369af822da3 (patch)
tree51bcaea0877f58eadba117c39bc47a3f03ed4658 /app-backup/bacula
parentMoved app-admin/amanda to app-backup/amanda (diff)
downloadgentoo-2-70655b3a328b6512151b89834c5f3369af822da3.tar.gz
gentoo-2-70655b3a328b6512151b89834c5f3369af822da3.tar.bz2
gentoo-2-70655b3a328b6512151b89834c5f3369af822da3.zip
Moved from app-admin/bacula to app-backup/bacula.
Diffstat (limited to 'app-backup/bacula')
-rw-r--r--app-backup/bacula/ChangeLog236
-rw-r--r--app-backup/bacula/Manifest34
-rw-r--r--app-backup/bacula/bacula-1.34.4.ebuild164
-rw-r--r--app-backup/bacula/bacula-1.34.5.ebuild172
-rw-r--r--app-backup/bacula/bacula-1.34.6.ebuild172
-rw-r--r--app-backup/bacula/bacula-1.36.0.ebuild307
-rw-r--r--app-backup/bacula/bacula-1.36.3-r1.ebuild184
-rw-r--r--app-backup/bacula/bacula-1.36.3.ebuild327
-rw-r--r--app-backup/bacula/files/bacula-1.36.2-cdrecord-configure.patch19
-rw-r--r--app-backup/bacula/files/bacula-1.36.2-nocdrecord.patch125
-rw-r--r--app-backup/bacula/files/bacula-1.36.3-cdrecord-configure.patch19
-rw-r--r--app-backup/bacula/files/bacula-1.36.3-init-depends.patch57
-rw-r--r--app-backup/bacula/files/bacula-1.36.3-rescue-makefile.patch46
-rw-r--r--app-backup/bacula/files/bacula-3.6.0-configure.diff19
-rw-r--r--app-backup/bacula/files/bacula-conf16
-rw-r--r--app-backup/bacula/files/bacula-init62
-rw-r--r--app-backup/bacula/files/bacula-init293
-rw-r--r--app-backup/bacula/files/bacula-init360
-rw-r--r--app-backup/bacula/files/digest-bacula-1.34.41
-rw-r--r--app-backup/bacula/files/digest-bacula-1.34.51
-rw-r--r--app-backup/bacula/files/digest-bacula-1.34.61
-rw-r--r--app-backup/bacula/files/digest-bacula-1.36.01
-rw-r--r--app-backup/bacula/files/digest-bacula-1.36.31
-rw-r--r--app-backup/bacula/files/digest-bacula-1.36.3-r11
-rw-r--r--app-backup/bacula/metadata.xml11
25 files changed, 2129 insertions, 0 deletions
diff --git a/app-backup/bacula/ChangeLog b/app-backup/bacula/ChangeLog
new file mode 100644
index 000000000000..2f136459542a
--- /dev/null
+++ b/app-backup/bacula/ChangeLog
@@ -0,0 +1,236 @@
+# ChangeLog for app-admin/bacula
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/ChangeLog,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+ 04 Jul 2005; Robin H. Johnson <robbat2@gentoo.org>
+ +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 <fserb@gentoo.org>
+ +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 <iggy@gentoo.org>
+ +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 <swegener@gentoo.org> bacula-1.34.1.ebuild:
+ Fixed [<>]=cat/pkg-ver* dependencies.
+
+ 15 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> bacula-1.32f.ebuild,
+ 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 <swegener@gentoo.org> bacula-1.32f-r5.ebuild,
+ bacula-1.32f.ebuild:
+ Added missing parentheses in SRC_URI/*DEPEND/LICENSE.
+
+ 30 Dec 2004; Sven Wegener <swegener@gentoo.org> bacula-1.36.0.ebuild:
+ Moved inherit to the top.
+
+*bacula-1.36.0 (18 Dec 2004)
+
+ 18 Dec 2004; Martin Holzer <mholzer@gentoo.org>
+ +files/bacula-3.6.0-configure.diff, +files/bacula-init2,
+ +bacula-1.36.0.ebuild:
+ Version bumped. Ebuild submitted by D. Scott Barninger
+ <barninger@fairfieldcomputers.com> in #68707.
+
+*bacula-1.34.6 (27 Nov 2004)
+
+ 27 Nov 2004; Martin Holzer <mholzer@gentoo.org> +bacula-1.34.6.ebuild:
+ Version bumped.
+
+ 17 Oct 2004; Jason Wever <weeve@gentoo.org> bacula-1.34.4.ebuild:
+ Stable on sparc.
+
+ 16 Oct 2004; Mike Frysinger <vapier@gentoo.org> bacula-1.32f-r5.ebuild,
+ 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 <pvdabeel@gentoo.org>
+ 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 <pvdabeel@gentoo.org>
+ 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 <pvdabeel@gentoo.org>
+ bacula-1.32f-r5.ebuild, bacula-1.32f.ebuild:
+ Masked bacula-1.32f.ebuild stable for ppc
+
+ 05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
+ bacula-1.32f-r5.ebuild:
+ Masked bacula-1.32f-r5.ebuild stable for ppc
+
+ 05 Aug 2004; Anders Rune Jensen <arj@gentoo.org> bacula-1.34.5.ebuild,
+ 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 <zul@gentoo.org> bacula-1.34.5.ebuild:
+ Added mysql switch. Closes #49122.
+
+ 02 Aug 2004; Chuck Short <zul@gentoo.org> bacula-1.34.4.ebuild,
+ bacula-1.34.5.ebuild:
+ Changed bindir path for sqllite. Closes #57146.
+
+ 21 Jul 2004; Chuck Short <zul@gentoo.org> bacula-1.34.5.ebuild:
+ Fixed wxwindows support. Closes #57350.
+ Fixed client support. Closes #57302.
+
+ 29 Jun 2004; Aron Griffis <agriffis@gentoo.org> bacula-1.34.1.ebuild:
+ sync IUSE (-postgres)
+
+*bacula-1.34.5 (26 Jun 2004)
+
+ 26 Jun 2004; Chuck Short <zul@gentoo.org> bacula-1.34.5.ebuild:
+ Version bump, closes #54766.
+
+ 26 Jun 2004; Chuck Short <zul@gentoo.org> bacula-1.29.ebuild,
+ bacula-1.31.ebuild:
+ Removed old versions.
+
+ 26 Jun 2004; Chuck Short <zul@gentoo.org> bacula-1.34.4.ebuild:
+ Marked stable for x86.
+
+*bacula-1.34.4 (19 Jun 2004)
+
+ 19 Jun 2004; Chuck Short <zul@gentoo.org> bacula-1.34.4.ebuild:
+ Version bump, closes #54097.
+
+ 26 Apr 2004; Jason Wever <weeve@gentoo.org> bacula-1.34.1.ebuild:
+ Stable on sparc wrt bug #48969.
+
+ 26 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.34.1.ebuild:
+ Marked stable for x86.
+
+*bacula-1.34.1 (26 Apr 2004)
+
+ 26 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.34.1.ebuild:
+ Version bump, closes #48969.
+
+ 26 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.34.0.ebuild:
+ Removed 1.34.0 becuase of race condition.
+
+ 22 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.34.0.ebuild:
+ Force mysql to be used if sqlite and mysql are both in use flags. Closes
+ #47836.
+
+ 14 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> bacula-1.32f.ebuild:
+ Removed S=, inherit eutils for epatch.
+
+*bacula-1.34.0 (13 Apr 2004)
+
+ 13 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.34.0.ebuild:
+ Version bump, closes #47240.
+
+ 09 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.32f-r5.ebuild:
+ Marked stable on x86.
+
+ 09 Apr 2004; Chuck Short <zul@gentoo.org> bacula-1.32f.ebuild:
+ Removed patch, it was not applying cleanly. Closes #46790.
+
+ 23 Mar 2004; <chuck@gentoo.org> bacula-1.32f.ebuild:
+ Marked stable for x86.
+
+ 21 Mar 2004; Chuck Short <zul@gentoo.org> bacula-1.32f-r5.ebuild,
+ bacula-1.32f.ebuild:
+ Fixed broken static support. Closes #23998.
+
+ 16 Mar 2004; Chuck Short <zul@gentoo.org> bacula-1.32f.ebuild:
+ Added ~sparc keyword
+
+ 19 Mar 2004; Chuck Short <zul@gentoo.org> bacula-1.32f-r5.ebuild:
+ Fix for proper detection of sqlite. Closes #45152.
+
+*bacula-1.32f-r5 (16 Mar 2004)
+
+ 16 Mar 2004; Chuck Short <zul@gentoo.org> bacula-1.32f-r5.ebuild,
+ 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 <zul@gentoo.org> bacula-1.32f.ebuild:
+ Marked stable for x86.
+
+ 11 Feb 2004; Chuck Short <zul@gentoo.org> bacula-1.29.ebuild:
+ 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 <zul@gentoo.org> bacula-1.32f.ebuild,
+ files/1.32f/1.32f-patchlist.txt:
+ Fixed way of using patches. Closes #4122.
+
+ 02 Feb 2004; Chuck Short <zul@gentoo.org> bacula-1.31.ebuild:
+ bacula 1.31 now uses bacula 1.31a rather than the 04Jun03 snapshot.
+ Closes #25858.
+
+ 02 Feb 2004; Chuck Short <zul@gentoo.org> :
+ Version bump.
+
+ 29 Jan 2004; Chuck Short <zul@gentoo.org> bacula-1.31.ebuild:
+ Force the user to use mysql if they have both sqlite and mysql as use flags.
+ Closes #39764.
+
+ 28 Jan 2004; Chuck Short <zul@gentoo.org> bacula-1.29.ebuild,
+ 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 <zul@gentoo.org> bacula-1.29.ebuild,
+ bacula-1.31.ebuild:
+ Chown fixes.
+
+ 19 Oct 2003; Martin Holzer <mholzer@gentoo.org> bacula-1.29.ebuild,
+ bacula-1.31.ebuild: Backports...
+
+*bacula-1.31 (11 Jun 2003)
+
+ 11 Jun 2003; Donny Davies <woodchip@gentoo.org> bacula-1.31.ebuild,
+ files/bacula-init:
+
+ Update to latest release. Thanks to Rob de Beir <wakunga@hotmail.com>
+ for fixing various bugs, including: #17059, #21607.
+
+*bacula-1.29 (29 Jan 2003)
+
+ 28 Mar 2003; Pieter Van den Abeele <pvdabeel@gentoo.org> bacula-1.29.ebuild :
+ Ready for some testing on ppc: ~ppc
+
+ 12 Feb 2003; Yannick Koehler <ykoehler@gentoo.org> bacula-1.29.ebuild :
+ Added the static flag to IUSE.
+
+ 29 Jan 2003; Donny Davies <woodchip@gentoo.org> :
+ Initial import of Bacula; initscript and ebuild written by me.
diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest
new file mode 100644
index 000000000000..197a62bd98ed
--- /dev/null
+++ b/app-backup/bacula/Manifest
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 6b3619650423031dd77a61a28d180a65 ChangeLog 7756
+MD5 061c04a7448b7b81ec1b3416fb8cb44a bacula-1.36.3.ebuild 10122
+MD5 5850bd0a47c8b92d9254ae0182468d72 bacula-1.36.3-r1.ebuild 5409
+MD5 329bbdebf5ff06ee0b4fdd54b6741d2b bacula-1.34.4.ebuild 4245
+MD5 0ec66074f9a978d2d95797fe64ae9fc2 bacula-1.34.5.ebuild 4434
+MD5 ec5fd66209d4ce884a9ec67fba51f7cc bacula-1.34.6.ebuild 4433
+MD5 83e4f6b6f66ab9a9625f34207084c198 bacula-1.36.0.ebuild 9229
+MD5 7ab3ac8b0c5f4bcb03495c99dcbec0b0 metadata.xml 290
+MD5 28a23cdcf8c8723f3f8cb0b87d110864 files/bacula-1.36.2-cdrecord-configure.patch 635
+MD5 43cfaaf0d0cd0cf963f005a524edddfa files/bacula-1.36.2-nocdrecord.patch 8874
+MD5 8ff342665d696d0719491c33d744f294 files/bacula-1.36.3-init-depends.patch 1864
+MD5 618c837ccb4512095e8e3e274db54ce5 files/bacula-1.36.3-rescue-makefile.patch 1275
+MD5 2552434ccc44047b9b503045a9cff932 files/bacula-3.6.0-configure.diff 7578
+MD5 d12f73af10ee40c23d29afc62f9a02b2 files/bacula-init 1916
+MD5 9238a842a0292637c8f00243c5967527 files/bacula-init2 2574
+MD5 42374b055f69dd5eb5eebe2b17542c03 files/bacula-1.36.3-cdrecord-configure.patch 616
+MD5 bbe2d2a39e5c9b172ce27d749ece635a files/bacula-conf 559
+MD5 8d33b9e89f3b819d12d1a0762442cce3 files/bacula-init3 1476
+MD5 0b9309406bd6631e14ba47c132ef3b33 files/digest-bacula-1.34.4 66
+MD5 8e55a5f04a3cd9e096e9a5dfb46f1de7 files/digest-bacula-1.34.5 66
+MD5 551003183e612a958cc974532d004224 files/digest-bacula-1.34.6 66
+MD5 aad89729d5313c52d3b3b0b9246f8f47 files/digest-bacula-1.36.0 66
+MD5 100b7479b58ce6c2f62473914b12c02d files/digest-bacula-1.36.3 67
+MD5 100b7479b58ce6c2f62473914b12c02d files/digest-bacula-1.36.3-r1 67
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFCx2KRxtZcznfol0URAmP2AKD+Zv7RCyLnSHijIIIIDGH6ktqgAwCg9Xjk
+Fer7yBCPEiNe429w9FqHlTw=
+=ErrO
+-----END PGP SIGNATURE-----
diff --git a/app-backup/bacula/bacula-1.34.4.ebuild b/app-backup/bacula/bacula-1.34.4.ebuild
new file mode 100644
index 000000000000..9be059a8ee9a
--- /dev/null
+++ b/app-backup/bacula/bacula-1.34.4.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.34.4.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="hppa ppc sparc x86"
+IUSE="readline tcpd gnome mysql sqlite X static postgres wxwindows"
+
+#theres a local sqlite use flag. use it -OR- mysql, not both.
+#mysql is the reccomended choice ...
+DEPEND=">=sys-libs/zlib-1.1.4
+ readline? ( >=sys-libs/readline-4.1 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ gnome? ( gnome-base/gnome-libs )
+ sqlite? ( =dev-db/sqlite-2* )
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ X? ( virtual/x11 )
+ virtual/mta
+ dev-libs/gmp"
+RDEPEND="${DEPEND}
+ sys-block/mtx
+ app-arch/mt-st"
+
+src_compile() {
+ local myconf=""
+
+ #define this to skip building the other daemons ...
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ myconf="
+ `use_enable readline`
+ `use_enable gnome`
+ `use_enable tcpd tcp-wrappers`
+ `use_enable X x`
+ `use_enable wxwindows wx-console`
+ "
+ #not ./configure'able
+ #`use_enable ssl`
+
+ # mysql is the reccomended choice ...
+ if use mysql
+ then
+ myconf="${myconf} --with-mysql=/usr"
+ elif use postgres
+ then
+ myconf="${myconf} --with-postgresql=/usr"
+ elif use sqlite
+ then
+ myconf="${myconf} --with-sqlite=/usr"
+ elif use sqlite && use mysql
+ then
+ myconf="${myconf/--with-sqlite/}"
+ fi
+
+ ./configure \
+ --enable-smartalloc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --infodir=/usr/share/info \
+ --with-subsys-dir=/var/lib/bacula \
+ --with-working-dir=/var/lib/bacula \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+
+ if use static
+ then
+ cd ${S}/src/filed
+ make static-baula-fd
+ cd ${S}/src/console
+ make static-console
+ cd ${S}/src/dird
+ make static-bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ make static-gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ make static-wx-console
+ fi
+ cd ${S}/src/stored
+ make static-bacula-sd
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ if use static
+ then
+ cd ${S}/src/filed
+ cp static-bacula-fd ${D}/usr/sbin/bacula-fd
+ cd ${S}/src/console
+ cp static-console ${D}/usr/sbin/console
+ cd ${S}/src/dird
+ cp static-bacula-dir ${D}/usr/sbin/bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ cp static-gnome-console ${D}/usr/sbin/gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ cp static-wx-console ${D}/usr/sbin/wx-console
+ fi
+ cd ${S}/src/storge
+ cp static-bacula-sd ${D}/usr/sbin/bacula-sd
+ fi
+
+ rm -rf ${D}/var #empty dir
+
+ for a in ${S}/{Changelog,CheckList,INSTALL \
+ README,ReleaseNotes,kernstodo,doc/bacula.pdf}
+ do
+ dodoc $a
+ done
+
+ cp -a ${S}/examples ${D}/usr/share/doc/${PF}
+ chown -R root:root ${D}/usr/share/doc/${PF} #hrmph :\
+ dohtml -r ${S}/doc/html-manual doc/home-page
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bacula-init bacula
+}
+
+pkg_postinst() {
+ # empty dir ...
+ install -m0755 -o root -g root -d ${ROOT}/var/lib/bacula
+ einfo
+ einfo "Please note either/or nature of database USE flags for"
+ einfo "Bacula. If mysql is set, it will be used, else postgresql"
+ einfo "else finally SQLite. If you wish to have multiple DBs on"
+ einfo "one system, you may wish to unset auxillary DBs for this"
+ einfo "build."
+ einfo
+ einfo "If this is a new install and you plan to use mysql for your"
+ einfo "catalog database, then you should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_mysql_privileges"
+ einfo " sh /etc/bacula/create_mysql_database"
+ einfo " sh /etc/bacula/make_mysql_tables"
+ einfo
+ einfo "Then setup your configuration files in /etc/bacula and"
+ einfo "start the daemons:"
+ einfo " /etc/init.d/bacula start"
+ einfo
+ einfo "If upgrading from version 1.30 or below, please note that"
+ einfo "the database format has changed. Please read the"
+ einfo "release notes for how to upgrade your database!!!"
+ einfo
+}
diff --git a/app-backup/bacula/bacula-1.34.5.ebuild b/app-backup/bacula/bacula-1.34.5.ebuild
new file mode 100644
index 000000000000..852228e32045
--- /dev/null
+++ b/app-backup/bacula/bacula-1.34.5.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.34.5.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~hppa ~ppc ~sparc ~x86"
+IUSE="readline tcpd gnome mysql sqlite X static postgres wxwindows"
+
+#theres a local sqlite use flag. use it -OR- mysql, not both.
+#mysql is the reccomended choice ...
+DEPEND=">=sys-libs/zlib-1.1.4
+ readline? ( >=sys-libs/readline-4.1 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ gnome? ( gnome-base/gnome-libs )
+ sqlite? ( =dev-db/sqlite-2* )
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ X? ( virtual/x11 )
+ wxwindows? ( >=x11-libs/wxGTK-2.4.2 )
+ virtual/mta
+ dev-libs/gmp"
+RDEPEND="${DEPEND}
+ sys-block/mtx
+ app-arch/mt-st"
+
+src_compile() {
+ local myconf=""
+
+ sed -i -e "s:$bindir/mysql:$bindir/mysql -p:g" grant_mysql_privileges.in
+
+ #define this to skip building the other daemons ...
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ myconf="
+ `use_enable readline`
+ `use_enable gnome`
+ `use_enable tcpd tcp-wrappers`
+ `use_enable X x`"
+
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ # mysql is the reccomended choice ...
+ if use mysql
+ then
+ myconf="${myconf} --with-mysql=/usr"
+ elif use postgres
+ then
+ myconf="${myconf} --with-postgresql=/usr"
+ elif use sqlite
+ then
+ myconf="${myconf} --with-sqlite=/usr"
+ elif use sqlite && use mysql
+ then
+ myconf="${myconf/--with-sqlite/}"
+ fi
+
+ if use wxwindows
+ then
+ myconf="${myconf} --enable-wx-console"
+ fi
+
+
+ ./configure \
+ --enable-smartalloc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --infodir=/usr/share/info \
+ --with-subsys-dir=/var/lib/bacula \
+ --with-working-dir=/var/lib/bacula \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+
+ if use static
+ then
+ cd ${S}/src/filed
+ make static-baula-fd
+ cd ${S}/src/console
+ make static-console
+ cd ${S}/src/dird
+ make static-bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ make static-gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ make static-wx-console
+ fi
+ cd ${S}/src/stored
+ make static-bacula-sd
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ if use static
+ then
+ cd ${S}/src/filed
+ cp static-bacula-fd ${D}/usr/sbin/bacula-fd
+ cd ${S}/src/console
+ cp static-console ${D}/usr/sbin/console
+ cd ${S}/src/dird
+ cp static-bacula-dir ${D}/usr/sbin/bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ cp static-gnome-console ${D}/usr/sbin/gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ cp static-wx-console ${D}/usr/sbin/wx-console
+ fi
+ cd ${S}/src/storge
+ cp static-bacula-sd ${D}/usr/sbin/bacula-sd
+ fi
+
+ rm -rf ${D}/var #empty dir
+
+ for a in ${S}/{Changelog,CheckList,INSTALL \
+ README,ReleaseNotes,kernstodo,doc/bacula.pdf}
+ do
+ dodoc $a
+ done
+
+ cp -a ${S}/examples ${D}/usr/share/doc/${PF}
+ chown -R root:root ${D}/usr/share/doc/${PF} #hrmph :\
+ dohtml -r ${S}/doc/html-manual doc/home-page
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bacula-init bacula
+}
+
+pkg_postinst() {
+ # empty dir ...
+ install -m0755 -o root -g root -d ${ROOT}/var/lib/bacula
+ einfo
+ einfo "Please note either/or nature of database USE flags for"
+ einfo "Bacula. If mysql is set, it will be used, else postgresql"
+ einfo "else finally SQLite. If you wish to have multiple DBs on"
+ einfo "one system, you may wish to unset auxillary DBs for this"
+ einfo "build."
+ einfo
+ einfo "If this is a new install and you plan to use mysql for your"
+ einfo "catalog database, then you should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_mysql_privileges"
+ einfo " sh /etc/bacula/create_mysql_database"
+ einfo " sh /etc/bacula/make_mysql_tables"
+ einfo
+ einfo "Then setup your configuration files in /etc/bacula and"
+ einfo "start the daemons:"
+ einfo " /etc/init.d/bacula start"
+ einfo
+ einfo "If upgrading from version 1.30 or below, please note that"
+ einfo "the database format has changed. Please read the"
+ einfo "release notes for how to upgrade your database!!!"
+ einfo
+}
diff --git a/app-backup/bacula/bacula-1.34.6.ebuild b/app-backup/bacula/bacula-1.34.6.ebuild
new file mode 100644
index 000000000000..d8c3c2c67c53
--- /dev/null
+++ b/app-backup/bacula/bacula-1.34.6.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.34.6.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~hppa ~ppc ~sparc ~x86"
+IUSE="readline tcpd gnome mysql sqlite X static postgres wxwindows"
+
+#theres a local sqlite use flag. use it -OR- mysql, not both.
+#mysql is the reccomended choice ...
+DEPEND=">=sys-libs/zlib-1.1.4
+ readline? ( >=sys-libs/readline-4.1 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ gnome? ( gnome-base/gnome-libs )
+ sqlite? ( =dev-db/sqlite-2* )
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ X? ( virtual/x11 )
+ wxwindows? ( >=x11-libs/wxGTK-2.4.2 )
+ virtual/mta
+ dev-libs/gmp"
+RDEPEND="${DEPEND}
+ sys-block/mtx
+ app-arch/mt-st"
+
+src_compile() {
+ local myconf=""
+
+ sed -i -e "s:$bindir/mysql:$bindir/mysql -p:g" grant_mysql_privileges.in
+
+ #define this to skip building the other daemons ...
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ myconf="
+ `use_enable readline`
+ `use_enable gnome`
+ `use_enable tcpd tcp-wrappers`
+ `use_enable X x`"
+
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ # mysql is the reccomended choice ...
+ if use mysql
+ then
+ myconf="${myconf} --with-mysql=/usr"
+ elif use postgres
+ then
+ myconf="${myconf} --with-postgresql=/usr"
+ elif use sqlite
+ then
+ myconf="${myconf} --with-sqlite=/usr"
+ elif use sqlite && use mysql
+ then
+ myconf="${myconf/--with-sqlite/}"
+ fi
+
+ if use wxwindows
+ then
+ myconf="${myconf} --enable-wx-console"
+ fi
+
+
+ ./configure \
+ --enable-smartalloc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --infodir=/usr/share/info \
+ --with-subsys-dir=/var/lib/bacula \
+ --with-working-dir=/var/lib/bacula \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+
+ if use static
+ then
+ cd ${S}/src/filed
+ make static-baula-fd
+ cd ${S}/src/console
+ make static-console
+ cd ${S}/src/dird
+ make static-bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ make static-gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ make static-wx-console
+ fi
+ cd ${S}/src/stored
+ make static-bacula-sd
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ if use static
+ then
+ cd ${S}/src/filed
+ cp static-bacula-fd ${D}/usr/sbin/bacula-fd
+ cd ${S}/src/console
+ cp static-console ${D}/usr/sbin/console
+ cd ${S}/src/dird
+ cp static-bacula-dir ${D}/usr/sbin/bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ cp static-gnome-console ${D}/usr/sbin/gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ cp static-wx-console ${D}/usr/sbin/wx-console
+ fi
+ cd ${S}/src/storge
+ cp static-bacula-sd ${D}/usr/sbin/bacula-sd
+ fi
+
+ rm -rf ${D}/var #empty dir
+
+ for a in ${S}/{Changelog,CheckList,INSTALL \
+ README,ReleaseNotes,kernstodo,doc/bacula.pdf}
+ do
+ dodoc $a
+ done
+
+ cp -a ${S}/examples ${D}/usr/share/doc/${PF}
+ chown -R root:root ${D}/usr/share/doc/${PF} #hrmph :\
+ dohtml -r ${S}/doc/html-manual doc/home-page
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bacula-init bacula
+}
+
+pkg_postinst() {
+ # empty dir ...
+ install -m0755 -o root -g root -d ${ROOT}/var/lib/bacula
+ einfo
+ einfo "Please note either/or nature of database USE flags for"
+ einfo "Bacula. If mysql is set, it will be used, else postgresql"
+ einfo "else finally SQLite. If you wish to have multiple DBs on"
+ einfo "one system, you may wish to unset auxillary DBs for this"
+ einfo "build."
+ einfo
+ einfo "If this is a new install and you plan to use mysql for your"
+ einfo "catalog database, then you should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_mysql_privileges"
+ einfo " sh /etc/bacula/create_mysql_database"
+ einfo " sh /etc/bacula/make_mysql_tables"
+ einfo
+ einfo "Then setup your configuration files in /etc/bacula and"
+ einfo "start the daemons:"
+ einfo " /etc/init.d/bacula start"
+ einfo
+ einfo "If upgrading from version 1.30 or below, please note that"
+ einfo "the database format has changed. Please read the"
+ einfo "release notes for how to upgrade your database!!!"
+ einfo
+}
diff --git a/app-backup/bacula/bacula-1.36.0.ebuild b/app-backup/bacula/bacula-1.36.0.ebuild
new file mode 100644
index 000000000000..322db3b5b244
--- /dev/null
+++ b/app-backup/bacula/bacula-1.36.0.ebuild
@@ -0,0 +1,307 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.36.0.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~hppa ~ppc ~sparc ~x86"
+IUSE="readline tcpd gnome mysql sqlite X static postgres wxwindows"
+
+#theres a local sqlite use flag. use it -OR- mysql, not both.
+#mysql is the reccomended choice ...
+#may need sys-libs/libtermcap-compat but try without first
+DEPEND=">=sys-libs/zlib-1.1.4
+ sys-block/mtx
+ readline? ( >=sys-libs/readline-4.1 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ gnome? ( gnome-base/libgnome )
+ gnome? ( app-admin/gnomesu )
+ sqlite? ( =dev-db/sqlite-2* )
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ X? ( virtual/x11 )
+ wxwindows? ( >=x11-libs/wxGTK-2.4.2 )
+ virtual/mta
+ dev-libs/gmp"
+RDEPEND="${DEPEND}
+ sys-block/mtx
+ app-arch/mt-st"
+
+src_compile() {
+
+ # patch configure for scripts/bacula-tray-monitor.desktop
+ patch ${S}/configure ${FILESDIR}/${P}-configure.diff
+
+ local myconf=""
+
+ #sed -i -e "s:$bindir/mysql:$bindir/mysql -p:g" grant_mysql_privileges.in
+
+ #define this to skip building the other daemons ...
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ myconf="
+ `use_enable readline`
+ `use_enable gnome`
+ `use_enable tcpd tcp-wrappers`
+ `use_enable X x`"
+
+ [ -n "$BUILD_CLIENT_ONLY" ] \
+ && myconf="${myconf} --enable-client-only"
+
+ # mysql is the reccomended choice ...
+ if use mysql
+ then
+ myconf="${myconf} --with-mysql=/usr"
+ elif use postgres
+ then
+ myconf="${myconf} --with-postgresql=/usr"
+ elif use sqlite
+ then
+ myconf="${myconf} --with-sqlite=/usr"
+ elif use sqlite && use mysql
+ then
+ myconf="${myconf/--with-sqlite/}"
+ fi
+
+ if use wxwindows
+ then
+ myconf="${myconf} --enable-wx-console"
+ fi
+
+ if use readline
+ then
+ myconf="${myconf} --enable-readline"
+ fi
+
+ if use gnome
+ then
+ myconf="${myconf} --enable-tray-monitor"
+ fi
+
+
+ ./configure \
+ --enable-smartalloc \
+ --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/bacula \
+ --with-scriptdir=/etc/bacula \
+ --with-dir-user=root \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+
+ if use static
+ then
+ cd ${S}/src/filed
+ make static-baula-fd
+ cd ${S}/src/console
+ make static-console
+ cd ${S}/src/dird
+ make static-bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ make static-gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ make static-wx-console
+ fi
+ cd ${S}/src/stored
+ make static-bacula-sd
+ fi
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ if use static
+ then
+ cd ${S}/src/filed
+ cp static-bacula-fd ${D}/usr/sbin/bacula-fd
+ cd ${S}/src/console
+ cp static-console ${D}/usr/sbin/console
+ cd ${S}/src/dird
+ cp static-bacula-dir ${D}/usr/sbin/bacula-dir
+ if use gnome
+ then
+ cd ${S}/src/gnome-console
+ cp static-gnome-console ${D}/usr/sbin/gnome-console
+ fi
+ if use wxwindows
+ then
+ cd ${S}/src/wx-console
+ cp static-wx-console ${D}/usr/sbin/wx-console
+ fi
+ cd ${S}/src/storge
+ cp static-bacula-sd ${D}/usr/sbin/bacula-sd
+ fi
+
+ # the menu stuff
+ if use gnome
+ then
+ mkdir -p ${D}/usr/share/pixmaps
+ mkdir -p ${D}/usr/share/applications
+ cp ${S}/scripts/bacula.png ${D}/usr/share/pixmaps/bacula.png
+ cp ${S}/scripts/bacula.desktop.gnome2.xsu ${D}/usr/share/applications/bacula.desktop
+ cp ${S}/src/tray-monitor/generic.xpm ${D}/usr/share/pixmaps/bacula-tray-monitor.xpm
+ cp ${S}/scripts/bacula-tray-monitor.desktop \
+ ${D}/usr/share/applications/bacula-tray-monitor.desktop
+ chmod 755 ${D}/usr/sbin/bacula-tray-monitor
+ chmod 644 ${D}/etc/bacula/tray-monitor.conf
+ fi
+
+ # the database update scripts
+ mkdir -p ${D}/etc/bacula/updatedb
+ cp ${S}/updatedb/* ${D}/etc/bacula/updatedb/
+ chmod 754 ${D}/etc/bacula/updatedb/*
+
+ # documentation
+ for a in ${S}/{Changelog,README,ReleaseNotes,kernstodo,LICENSE,doc/bacula.pdf}
+ do
+ dodoc $a
+ done
+
+ dohtml -r ${S}/doc/html-manual doc/home-page
+ chown -R root:root ${D}/usr/share/doc/${PF}
+ chmod -R 644 ${D}/usr/share/doc/${PF}/*
+
+ # clean up permissions left broken by install
+ chmod o-r ${D}/etc/bacula/query.sql
+
+ # remove the working dir so we can add it postinst with group
+ rmdir ${D}/var/bacula
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bacula-init2 bacula
+}
+
+pkg_postinst() {
+ # create the daemon group
+ HAVE_BACULA=`cat /etc/group | grep bacula 2>/dev/null`
+ if [ -z $HAVE_BACULA ]; then
+ enewgroup bacula
+ einfo
+ einfo "The group bacula has been created. Any users you add to"
+ einfo "this group have access to files created by the daemons."
+ fi
+
+ # the working directory
+ install -m0750 -o root -g bacula -d ${ROOT}/var/bacula
+
+ einfo
+ einfo "Please note either/or nature of database USE flags for"
+ einfo "Bacula. If mysql is set, it will be used, else postgresql"
+ einfo "else finally SQLite. If you wish to have multiple DBs on"
+ einfo "one system, you may wish to unset auxillary DBs for this"
+ einfo "build."
+ einfo
+
+ if use mysql
+ then
+ # test for an existing database
+ # note: this ASSUMES no password has been set for bacula database
+ DB_VER=`mysql bacula -e 'select * from Version;'|tail -n 1 2>/dev/null`
+ if [ -z "$DB_VER" ]; then
+ einfo "This appears to be a new install and you plan to use mysql"
+ einfo "for your catalog database. You should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_mysql_privileges"
+ einfo " sh /etc/bacula/create_mysql_database"
+ einfo " sh /etc/bacula/make_mysql_tables"
+ elif [ "$DB_VER" -lt "8" ]; then
+ elinfo "This release requires an upgrade to your bacula database"
+ einfo "as the database format has changed. Please read the"
+ einfo "manual chapter for how to upgrade your database!!!"
+ einfo
+ einfo "Backup your database with the command:"
+ einfo " mysqldump -f --opt bacula | bzip2 > /var/bacula/bacula_backup.sql.bz"
+ einfo
+ einfo "Then update your database using the scripts found in"
+ einfo "/etc/bacula/updatedb/ from your current version $DB_VER to"
+ einfo "version 8. Note that scripts must be run in order from your"
+ einfo "version to the current version."
+ fi
+ fi
+
+ if use postgresql
+ then
+ # test for an existing database
+ # note: this ASSUMES no password has been set for bacula database
+ DB_VER=`echo 'select * from Version;' | psql bacula | tail -3 | head -1 2>/dev/null`
+ if [ -z "$DB_VER" ]; then
+ einfo "This appears to be a new install and you plan to use postgresql"
+ einfo "for your catalog database. You should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_postgresql_privileges"
+ einfo " sh /etc/bacula/create_postgresql_database"
+ einfo " sh /etc/bacula/make_postgresql_tables"
+ elif [ "$DB_VER" -lt "8" ]; then
+ elinfo "This release requires an upgrade to your bacula database"
+ einfo "as the database format has changed. Please read the"
+ einfo "manual chapter for how to upgrade your database!!!"
+ einfo
+ einfo "Backup your database with the command:"
+ einfo " pg_dump bacula | bzip2 > /var/bacula/bacula_backup.sql.bz2"
+ einfo
+ einfo "Then update your database using the scripts found in"
+ einfo "/etc/bacula/updatedb/ from your current version $DB_VER to"
+ einfo "version 8. Note that scripts must be run in order from your"
+ einfo "version to the current version."
+ fi
+ fi
+
+ if use sqlite
+ then
+ # test for an existing database
+ # note: this ASSUMES no password has been set for bacula database
+ DB_VER=`echo "select * from Version;" | sqlite /var/bacula/bacula.db | tail -n 1 2>/dev/null`
+ if [ -z "$DB_VER" ]; then
+ einfo "This appears to be a new install and you plan to use sqlite"
+ einfo "for your catalog database. You should now create it by doing"
+ einfo "these commands:"
+ einfo " sh /etc/bacula/grant_sqlite_privileges"
+ einfo " sh /etc/bacula/create_sqlite_database"
+ einfo " sh /etc/bacula/make_sqlite_tables"
+ elif [ "$DB_VER" -lt "8" ]; then
+ elinfo "This release requires an upgrade to your bacula database"
+ einfo "as the database format has changed. Please read the"
+ einfo "manual chapter for how to upgrade your database!!!"
+ einfo
+ einfo "Backup your database with the command:"
+ einfo " echo .dump | sqlite /var/bacula/bacula.db | bzip2 > \\"
+ einfo " /var/bacula/bacula_backup.sql.bz2"
+ einfo
+ einfo "Then update your database using the scripts found in"
+ einfo "/etc/bacula/updatedb/ from your current version $DB_VER to"
+ einfo "version 8. Note that scripts must be run in order from your"
+ einfo "version to the current version."
+ fi
+ fi
+
+ einfo
+ einfo "Then setup your configuration files in /etc/bacula and"
+ einfo "start the daemons:"
+ einfo " /etc/init.d/bacula start"
+ einfo
+ einfo "You may also wish to:"
+ einfo " rc-update add bacula default"
+ einfo
+}
diff --git a/app-backup/bacula/bacula-1.36.3-r1.ebuild b/app-backup/bacula/bacula-1.36.3-r1.ebuild
new file mode 100644
index 000000000000..851f31094be5
--- /dev/null
+++ b/app-backup/bacula/bacula-1.36.3-r1.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.36.3-r1.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="readline ncurses tcpd gnome mysql sqlite X static postgres client-only"
+
+DEPEND=">=sys-libs/zlib-1.1.4
+ sys-block/mtx
+ readline? ( >=sys-libs/readline-4.1 )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ gnome? ( gnome-base/libgnome )
+ gnome? ( app-admin/gnomesu )
+ sqlite? ( =dev-db/sqlite-2* )
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ X? ( virtual/x11 )
+ ncurses? ( sys-libs/ncurses )
+ virtual/mta
+ dev-libs/gmp"
+
+RDEPEND="${DEPEND}
+ sys-block/mtx
+ app-arch/mt-st"
+
+pkg_setup() {
+ if ! use mysql && ! use postgres && ! use sqlite && ! use client-only; then
+ einfo "Bacula must compile with one database or client only."
+ einfo "Please add mysql, postgres, sqlite or client-only to your USE flags."
+ einfo "You may add the right USE flags on /etc/portage/package.use if you want to."
+ die "Invalid USE flags"
+ fi
+
+ if ( use mysql && use sqlite ) ||
+ ( use mysql && use postgres ) ||
+ ( use sqlite && use postgres ) ; then
+ einfo "For this ebuild to work, only one database may be selected."
+ einfo "Please select mysql, postgres OR sqlite only on the USE flags."
+ einfo "You may add the right USE flags on /etc/portage/package.use if you want to."
+ die "Invalid USE flags"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-cdrecord-configure.patch || die "Patch failed"
+
+ # This changes the default conf files to /etc/bacula files
+ sed -i -e 's:"./gnome-console.conf":"/etc/bacula/gnome-console.conf":' \
+ src/gnome-console/console.c src/gnome2-console/console.c
+ sed -i -e 's:"./tray-monitor.conf":"/etc/bacula/tray-monitor.conf":' \
+ src/tray-monitor/tray-monitor.c
+ sed -i -e 's:"bacula-sd.conf":"/etc/bacula/bacula-sd.conf":' src/stored/bls.c \
+ src/stored/bextract.c src/stored/bcopy.c src/stored/bscan.c src/stored/btape.c \
+ src/stored/stored.c
+ sed -i -e 's:"./bacula-fd.conf":"/etc/bacula/bacula-fd.conf":' src/filed/filed.c
+ sed -i -e 's:"./bacula-dir.conf":"/etc/bacula/bacula-dir.conf":' src/dird/dird.c
+ sed -i -e 's:"./bconsole.conf":"/etc/bacula/bconsole.conf":' src/console/console.c
+}
+
+src_compile() {
+ econf --enable-smartalloc \
+ --with-dir-user=root \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --sysconfdir=/etc/bacula \
+ --with-subsys-dir=/var/lock/subsys \
+ --with-working-dir=/var/bacula \
+ --with-scriptdir=/var/lib/bacula \
+ `use_enable readline` \
+ `use_enable gnome` \
+ `use_enable static static-tools` \
+ `use_enable static static-fd` \
+ `use_enable static static-sd` \
+ `use_enable static static-dir` \
+ `use_enable static static-cons` \
+ `use_enable gnome tray-monitor` \
+ `use_enable tcpd tcp-wrappers` \
+ `use_enable X x` \
+ `use_enable readline` \
+ `use_enable client-only` \
+ `use_with mysql` \
+ `use_with postgres postgresql` \
+ `use_with sqlite` \
+ `use_enable ncurses conio` \
+ || die "configure failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+
+ if use static ; then
+ cd ${D}/usr/sbin
+ mv static-bacula-fd bacula-fd
+ mv static-bconsole bconsole
+ if ! use client-only ; then
+ mv static-bacula-dir bacula-dir
+ mv static-bacula-sd bacula-sd
+ fi
+ if use gnome ; then
+ mv static-gnome-console gnome-console
+ fi
+ cd ${S}
+ fi
+
+ if use gnome ; then
+ make_desktop_entry \
+ "gnome-console -c /etc/bacula/gnome-console.conf" \
+ "Bacula Console" /usr/share/pixmaps/bacula.png "app-admin" \
+ "/usr/sbin"
+ fi
+
+ insinto /usr/share/pixmaps
+ doins scripts/bacula.png
+
+ insinto /var/lib/bacula/update
+ doins updatedb/update*
+
+ dodoc ChangeLog README ReleaseNotes
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bacula-init3 bacula
+
+ # fix init script
+ if use mysql ; then
+ USEDB='use mysql'
+ elif use postgres ; then
+ USEDB='use postgres'
+ else
+ USEDB=''
+ fi
+ sed -i -e "s:%%USE_DB%%:${USEDB}:" ${D}/etc/init.d/bacula
+
+ insinto /etc/conf.d
+ newins ${FILESDIR}/bacula-conf bacula
+ if use client-only ; then
+ SERVICES='fd'
+ else
+ SERVICES='sd fd dir'
+ fi
+ sed -i -e "s:%%SERVICES%%:${SERVICES}:" ${D}/etc/conf.d/bacula
+
+ chgrp bacula ${D}/usr/sbin/*
+ chgrp -R bacula ${D}/etc/bacula
+}
+
+pkg_preinst() {
+ enewgroup bacula || die "problem adding group bacula"
+}
+
+pkg_postinst() {
+ # the working directory
+ install -m0750 -o root -g bacula -d ${ROOT}/var/bacula
+
+ if use mysql ; then DB="mysql" ; fi
+ if use postgres ; then DB="postgresql" ; fi
+ if use sqlite ; then DB="sqlite" ; fi
+
+ if ! use client-only ; then
+ einfo "If this is a new install, you must create the ${DB} databases with:"
+ einfo " /var/lib/bacula/create_${DB}_database"
+ einfo " /var/lib/bacula/grant_${DB}_privileges"
+ einfo " /var/lib/bacula/make_${DB}_tables"
+ einfo
+ einfo "If you're upgrading from a major release, you must upgrade your bacula database."
+ einfo "Please read the manual chapter for how to upgrade your database."
+ einfo "You can find database upgrade scripts on /var/lib/bacula."
+ einfo
+ fi
+} \ No newline at end of file
diff --git a/app-backup/bacula/bacula-1.36.3.ebuild b/app-backup/bacula/bacula-1.36.3.ebuild
new file mode 100644
index 000000000000..8086a730393e
--- /dev/null
+++ b/app-backup/bacula/bacula-1.36.3.ebuild
@@ -0,0 +1,327 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/bacula-1.36.3.ebuild,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~sparc ~x86"
+IUSE="bacula-clientonly bacula-console bacula-split doc gnome logrotate logwatch mysql postgres readline sqlite static tcpd wxwindows X"
+
+#theres a local sqlite use flag. use it -OR- mysql, not both.
+#mysql is the reccomended choice ...
+#may need sys-libs/libtermcap-compat but try without first
+DEPEND="
+ >=sys-libs/zlib-1.1.4
+ dev-libs/gmp
+ !bacula-clientonly? (
+ mysql? ( >=dev-db/mysql-3.23 )
+ postgres? ( >=dev-db/postgresql-7.4.0 )
+ sqlite? ( =dev-db/sqlite-2* )
+ !mysql? ( !postgres? ( !sqlite? ( >=dev-db/mysql-3.23 ) ) )
+ virtual/mta
+ )
+ bacula-console? (
+ X? ( virtual/x11 )
+ wxwindows? ( >=x11-libs/wxGTK-2.4.2 )
+ gnome? ( gnome-base/libgnome )
+ gnome? ( app-admin/gnomesu )
+ )
+ doc? (
+ app-text/tetex
+ dev-tex/latex2html
+ )
+ logrotate? ( app-admin/logrotate )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ readline? ( >=sys-libs/readline-4.1 )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ sys-block/mtx
+ app-arch/mt-st
+ )"
+
+pkg_setup() {
+ if ( use mysql || use postgres ) && [ -z ${BACULA_DB_USER} ] && [ -z ${BACULA_DB_PASSWORD} ] && [ -z ${BACULA_DB_HOST} ]; then
+ # Display warning about DB query environment variables
+ einfo
+ einfo "If you are upgrading or rebuilding your bacula installation and"
+ einfo "your database requires you to specify user, password, or host"
+ einfo "you may do so with the environment variables BACULA_DB_USER,"
+ einfo "BACULA_DB_PASSWORD, and BACULA_DB_HOST respectively."
+ einfo
+ einfo "For example:"
+ einfo "# export BACULA_DB_USER=\"bacula\""
+ einfo "# export BACULA_DB_PASSWORD=\"mydbpassword\""
+ einfo "# export BACULA_DB_HOST=\"mydbhost.mydomain.net\""
+ einfo "# emerge bacula"
+ einfo
+ einfo "If you require these variables and have not set them yet, you"
+ einfo "may wish to abort now and do so. If this is a new installation"
+ einfo "of bacula, this should not affect you."
+ einfo
+
+ ebeep 3
+ ewarn "Press Ctrl-C to abort. Merge will resume in 10 seconds."
+ epause 10
+ fi
+}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+ # this resolves bacula bug #181
+ epatch ${FILESDIR}/${PN}-1.36.2-cdrecord-configure.patch
+ # fixes lack of depend() in split init scripts
+ epatch ${FILESDIR}/${PN}-1.36.3-init-depends.patch
+ # adds build/install capability to ${S}/rescue/linux/Makefile.in
+ epatch ${FILESDIR}/${PN}-1.36.3-rescue-makefile.patch
+ cd ${S}
+}
+
+src_compile() {
+ local myconf=""
+ if use bacula-clientonly ; then
+ myconf="${myconf}
+ `use_enable bacula-clientonly client-only`
+ `use_enable static static-fd`"
+ fi
+ if use bacula-console ; then
+ myconf="${myconf}
+ `use_enable X x`
+ `use_enable gnome tray-monitor`
+ `use_enable wxwindows wx-console`
+ `use_enable static static-cons`"
+ fi
+ myconf="${myconf}
+ `use_enable readline`
+ `use_enable tcpd tcp-wrappers`"
+
+ # select database support
+ if ! use bacula-clientonly; then
+ if ! use mysql && ! use postgres && ! use sqlite ; then
+ ewarn "No database enabled in USE."
+ ewarn "Using mysql database support by default."
+ myconf="${myconf}
+ `use_with mysql`"
+ elif use mysql ; then
+ if use postgres ; then
+ ewarn "Multiple databases enabled in USE."
+ ewarn "Using mysql database support by default."
+ elif use sqlite ; then
+ ewarn "Multiple databases enabled in USE."
+ ewarn "Using mysql database support by default."
+ fi
+ myconf="${myconf}
+ `use_with mysql`"
+ elif use postgres ; then
+ if use sqlite ; then
+ ewarn "Multiple databases enabled in USE."
+ ewarn "Using postgresql database support by default."
+ fi
+ myconf="${myconf}
+ `use_with postgres postgresql`"
+ else
+ myconf="${myconf}
+ `use_with sqlite`"
+ fi
+ fi
+ if ! use bacula-clientonly; then
+ if use static ; then
+ myconf="${myconf}
+ `use_enable static static-tools`
+ `use_enable static static-fd`
+ `use_enable static static-sd`
+ `use_enable static static-dir`"
+ fi
+ fi
+
+ ./configure \
+ --prefix=/usr \
+ --enable-smartalloc \
+ --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/bacula \
+ --with-scriptdir=/etc/bacula \
+ --with-dir-user=root \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --host=${CHOST} ${myconf} || die "Configure failed!"
+
+ emake || die "Failed primary build!"
+
+ if use doc ; then
+ # make the docs
+ cd ${S}/doc/latex && emake || die "Failed to build tetx docs!" && cd ${S}
+ fi
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "Failed install to ${D} !"
+
+ if use gnome ; then
+ dodir /usr/bin
+ emake DESTDIR=${D} \
+ install-menu \
+ install-menu-xsu \
+ install-menu-consolehelper || die "Failed to install gnome menu files to ${D} !"
+
+ #chmod 755 ${D}/usr/sbin/bacula-tray-monitor
+ #chmod 644 ${D}/etc/bacula/tray-monitor.conf
+ fi
+ if ! use bacula-clientonly ; then
+ # the database update scripts
+ mkdir -p ${D}/etc/bacula/updatedb
+ cp ${S}/updatedb/* ${D}/etc/bacula/updatedb/
+ chmod 754 ${D}/etc/bacula/updatedb/*
+
+ # the logrotate configuration
+ if use logrotate ; then
+ mkdir -p ${D}/etc/logrotate.d
+ cp ${S}/scripts/logrotate ${D}/etc/logrotate.d/bacula
+ chmod 644 ${D}/etc/logrotate.d/bacula
+ fi
+
+ # the logwatch scripts
+ if use logwatch ; then
+ cd ${S}/scripts/logwatch
+ emake DESTDIR=${D} install || die "Failed to install logwatch scripts to ${D} !"
+ cd ${S}
+ fi
+ fi
+ # documentation
+ for a in ${S}/{Changelog,LICENSE,README,ReleaseNotes,kernstodo,doc/BaculaRoadMap_*.pdf}
+ do
+ dodoc ${a}
+ done
+ # clean up permissions left broken by install
+ chown -R root:root ${D}/usr/share/doc/${PF}
+ chmod -R 644 ${D}/usr/share/doc/${PF}/*
+ chmod o-r ${D}/etc/bacula/query.sql
+ # remove the working dir so we can add it postinst with group
+ rmdir ${D}/var/bacula
+
+ exeinto ${S}/etc/init.d
+ if use bacula-clientonly ; then
+ newexe ${S}/platforms/gentoo/bacula-fd bacula-fd
+ else
+ if use bacula-split ; then
+ newexe ${S}/platforms/gentoo/bacula-fd bacula-fd
+ newexe ${S}/platforms/gentoo/bacula-sd bacula-sd
+ newexe ${S}/platforms/gentoo/bacula-dir bacula-dir
+ else
+ newexe ${S}/platforms/gentoo/bacula-init bacula
+ fi
+ fi
+}
+
+pkg_postinst() {
+ # create the daemon group
+ HAVE_BACULA=`cat /etc/group | grep bacula 2>/dev/null`
+ if [ -z ${HAVE_BACULA} ]; then
+ enewgroup bacula
+ einfo "The group bacula has been created. Any users you add to"
+ einfo "this group have access to files created by the daemons."
+ # the working directory
+ install -m0750 -o root -g bacula -d ${ROOT}/var/bacula
+ fi
+
+ einfo
+ einfo "The CD-ROM rescue disk package has been installed into the"
+ einfo "/etc/bacula/rescue/cdrom/ directory. Please examine the manual"
+ einfo "for information on creating a rescue CD."
+ einfo
+
+ if ! use bacula-clientonly ; then
+ # test for an existing database
+ if use mysql ; then
+ mydb="mysql"
+ elif use postgres ; then
+ mydb="postgresql"
+ elif use sqlite ; then
+ mydb="sqlite"
+ else
+ mydb="mysql"
+ fi
+
+ if [ ${mydb} == "sqlite" ]; then
+ DB_VER=`echo "select * from Version;" | sqlite /var/bacula/bacula.db | tail -n 1 2>/dev/null`
+ else
+ if [ -z ${BACULA_DB_USER} ] && [ -z ${BACULA_DB_PASSWORD} ] && [ -z ${BACULA_DB_HOST} ]; then
+ if [ ${mydb} == "mysql" ]; then
+ DB_VER=`mysql bacula -e 'select * from Version;' | tail -n 1 2>/dev/null`
+ elif [ ${mydb} == "postgresql" ]; then
+ DB_VER=`echo 'select * from Version;' | psql bacula | tail -3 | head -n 1 2>/dev/null`
+ fi
+ else
+ BACULA_DB_OPTS=""
+ if [ ${mydb} == "mysql" ]; then
+ if [ ! -z ${BACULA_DB_HOST} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --host=${BACULA_DB_HOST}"
+ fi
+ if [ ! -z ${BACULA_DB_USER} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --user=${BACULA_DB_USER}"
+ fi
+ if [ ! -z ${BACULA_DB_PASSWORD} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --password=${BACULA_DB_PASSWORD}"
+ fi
+ DB_VER=`mysql ${BACULA_DB_OPTS} -e 'select * from Version' bacula | tail -n 1 2>/dev/null`
+ elif [ ${mydb} == "postgresql" ]; then
+ if [ ! -z ${BACULA_DB_HOST} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --host ${BACULA_DB_HOST}"
+ fi
+ if [ ! -z ${BACULA_DB_USER} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --username ${BACULA_DB_USER}"
+ fi
+ # psql prompts for password by default but we can force it.
+ # psql(1) does not seem to support --password=somepass
+ # NOTE: this is untested
+ if [ ! -z ${BACULA_DB_PASSWORD} ]; then
+ BACULA_DB_OPTS="${BACULA_DB_OPTS} --password"
+ fi
+ DB_VER=`echo 'select * from Version;' | psql ${BACULA_DB_OPTS} bacula | tail -3 | head -n 1 2>/dev/null`
+ fi
+ fi
+ fi
+ if [ -z "${DB_VER}" ]; then
+ einfo "This appears to be a new install and you plan to use ${mydb}"
+ einfo "for your catalog database. You should now create it with the"
+ einfo "following commands:"
+ einfo " sh /etc/bacula/grant_${mydb}_privileges"
+ einfo " sh /etc/bacula/create_${mydb}_database"
+ einfo " sh /etc/bacula/make_${mydb}_tables"
+ elif [ "${DB_VER}" -lt "8" ]; then
+ einfo "This release requires an upgrade to your bacula database"
+ einfo "as the database format has changed. Please read the"
+ einfo "manual chapter for upgrading your database!"
+ fi
+ fi
+
+ einfo
+ einfo "Configuration files are installed in /etc/bacula and"
+ einfo "init script(s) are:"
+ if use bacula-clientonly ; then
+ einfo " /etc/init.d/bacula-fd"
+ else
+ if use bacula-split ; then
+ einfo " /etc/init.d/bacula-sd"
+ einfo " /etc/init.d/bacula-dir"
+ einfo " /etc/init.d/bacula-fd"
+ einfo " or /etc/bacula/bacula will start all three."
+ else
+ einfo " /etc/init.d/bacula"
+ fi
+ fi
+ einfo
+}
diff --git a/app-backup/bacula/files/bacula-1.36.2-cdrecord-configure.patch b/app-backup/bacula/files/bacula-1.36.2-cdrecord-configure.patch
new file mode 100644
index 000000000000..bd29540cb40a
--- /dev/null
+++ b/app-backup/bacula/files/bacula-1.36.2-cdrecord-configure.patch
@@ -0,0 +1,19 @@
+diff -uNr bacula-1.36.2/configure bacula-1.36.2-fixed/configure
+--- bacula-1.36.2/configure 2005-02-25 04:46:49.000000000 -0500
++++ bacula-1.36.2-fixed/configure 2005-03-06 10:11:23.905848861 -0500
+@@ -7301,15 +7301,6 @@
+ # get scsibus,target,lun
+ # -------------------------------------------
+ CDSTL="3,0,0"
+-if test ! x$CDRECORD = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
+- if test x${CDSTL} = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
+- fi
+- if test x${CDSTL} = x ; then
+- CDSTL="3,0,0"
+- fi
+-fi
+
+
+
diff --git a/app-backup/bacula/files/bacula-1.36.2-nocdrecord.patch b/app-backup/bacula/files/bacula-1.36.2-nocdrecord.patch
new file mode 100644
index 000000000000..95842c1955d3
--- /dev/null
+++ b/app-backup/bacula/files/bacula-1.36.2-nocdrecord.patch
@@ -0,0 +1,125 @@
+diff -uNr bacula-1.36.2-original/autoconf/configure.in bacula-1.36.2-nocdrecord/autoconf/configure.in
+--- bacula-1.36.2-original/autoconf/configure.in 2005-02-25 04:47:03.000000000 -0500
++++ bacula-1.36.2-nocdrecord/autoconf/configure.in 2005-03-05 23:46:28.000000000 -0500
+@@ -63,7 +63,6 @@
+ AC_PATH_PROG(MTX, mtx, mtx)
+ AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
+ AC_PATH_PROG(WXCONFIG, wx-config, wx-config)
+-AC_PATH_PROG(CDRECORD, cdrecord, cdrecord)
+ AC_PATH_PROG(PIDOF, pidof, pidof)
+ AC_PROG_AWK
+ # Some AWK programs fail, so test it and warn the user
+@@ -521,23 +520,6 @@
+ # End of readline/conio stuff
+ # -----------------------------------------------------------------------
+
+-# -------------------------------------------
+-# check for cdrecord writer location
+-# get scsibus,target,lun
+-# -------------------------------------------
+-CDSTL="3,0,0"
+-if test ! x$CDRECORD = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
+- if test x${CDSTL} = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
+- fi
+- if test x${CDSTL} = x ; then
+- CDSTL="3,0,0"
+- fi
+-fi
+-AC_SUBST(CDSTL)
+-
+-
+ # ---------------------------------------------------
+ # Check for GMP support/directory
+ # ---------------------------------------------------
+diff -uNr bacula-1.36.2-original/configure bacula-1.36.2-nocdrecord/configure
+--- bacula-1.36.2-original/configure 2005-02-25 04:46:49.000000000 -0500
++++ bacula-1.36.2-nocdrecord/configure 2005-03-05 23:42:12.000000000 -0500
+@@ -309,7 +309,7 @@
+ # include <unistd.h>
+ #endif"
+
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
+ ac_subst_files='MCOMMON'
+
+ # Initialize some variables set by options.
+@@ -3830,46 +3830,6 @@
+ echo "${ECHO_T}no" >&6
+ fi
+
+-# Extract the first word of "cdrecord", so it can be a program name with args.
+-set dummy cdrecord; ac_word=$2
+-echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+-if test "${ac_cv_path_CDRECORD+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- case $CDRECORD in
+- [\\/]* | ?:[\\/]*)
+- ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
+- ;;
+- *)
+- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+- ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
+- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+-done
+-
+- test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
+- ;;
+-esac
+-fi
+-CDRECORD=$ac_cv_path_CDRECORD
+-
+-if test -n "$CDRECORD"; then
+- echo "$as_me:$LINENO: result: $CDRECORD" >&5
+-echo "${ECHO_T}$CDRECORD" >&6
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-fi
+-
+ # Extract the first word of "pidof", so it can be a program name with args.
+ set dummy pidof; ac_word=$2
+ echo "$as_me:$LINENO: checking for $ac_word" >&5
+@@ -7296,22 +7256,6 @@
+ # End of readline/conio stuff
+ # -----------------------------------------------------------------------
+
+-# -------------------------------------------
+-# check for cdrecord writer location
+-# get scsibus,target,lun
+-# -------------------------------------------
+-CDSTL="3,0,0"
+-if test ! x$CDRECORD = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
+- if test x${CDSTL} = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
+- fi
+- if test x${CDSTL} = x ; then
+- CDSTL="3,0,0"
+- fi
+-fi
+-
+-
+
+ # ---------------------------------------------------
+ # Check for GMP support/directory
+@@ -21984,7 +21928,6 @@
+ s,@MTX@,$MTX,;t t
+ s,@PKGCONFIG@,$PKGCONFIG,;t t
+ s,@WXCONFIG@,$WXCONFIG,;t t
+-s,@CDRECORD@,$CDRECORD,;t t
+ s,@PIDOF@,$PIDOF,;t t
+ s,@AWK@,$AWK,;t t
+ s,@ARFLAGS@,$ARFLAGS,;t t
diff --git a/app-backup/bacula/files/bacula-1.36.3-cdrecord-configure.patch b/app-backup/bacula/files/bacula-1.36.3-cdrecord-configure.patch
new file mode 100644
index 000000000000..6fa8511484e3
--- /dev/null
+++ b/app-backup/bacula/files/bacula-1.36.3-cdrecord-configure.patch
@@ -0,0 +1,19 @@
+diff -uNr bacula-1.36.2/configure bacula-1.36.2-fixed/configure
+--- bacula-1.36.2/configure 2005-02-25 04:46:49.000000000 -0500
++++ bacula-1.36.2-fixed/configure 2005-03-06 10:11:23.905848861 -0500
+@@ -7301,15 +7301,6 @@
+ # get scsibus,target,lun
+ # -------------------------------------------
+ CDSTL="3,0,0"
+-if test ! x$CDRECORD = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
+- if test x${CDSTL} = x ; then
+- CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
+- fi
+- if test x${CDSTL} = x ; then
+- CDSTL="3,0,0"
+- fi
+-fi
+
+
+
diff --git a/app-backup/bacula/files/bacula-1.36.3-init-depends.patch b/app-backup/bacula/files/bacula-1.36.3-init-depends.patch
new file mode 100644
index 000000000000..95f01ef830ee
--- /dev/null
+++ b/app-backup/bacula/files/bacula-1.36.3-init-depends.patch
@@ -0,0 +1,57 @@
+diff -uNr platforms/gentoo/bacula-dir.in platforms/gentoo-fixed/bacula-dir.in
+--- platforms/gentoo/bacula-dir.in 2004-10-19 08:35:07.000000000 -0500
++++ platforms/gentoo-fixed/bacula-dir.in 2005-06-08 09:58:21.000000000 -0500
+@@ -9,6 +9,11 @@
+ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
+ #
+
++depend() {
++ need net
++ use dns @DB_NAME@
++}
++
+ start() {
+ ebegin "Starting the Bacula Director"
+ start-stop-daemon --start --quiet --exec @sbindir@/bacula-dir -- $2 -c @sysconfdir@/bacula-dir.conf
+diff -uNr platforms/gentoo/bacula-fd.in platforms/gentoo-fixed/bacula-fd.in
+--- platforms/gentoo/bacula-fd.in 2004-10-19 08:35:07.000000000 -0500
++++ platforms/gentoo-fixed/bacula-fd.in 2005-06-08 09:58:56.000000000 -0500
+@@ -9,6 +9,11 @@
+ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
+ #
+
++depend() {
++ need net
++ use dns
++}
++
+ start() {
+ ebegin "Starting the Bacula File daemon"
+ start-stop-daemon --start --quiet --exec @sbindir@/bacula-fd -- $2 -c @sysconfdir@/bacula-fd.conf
+diff -uNr platforms/gentoo/bacula-init.in platforms/gentoo-fixed/bacula-init.in
+--- platforms/gentoo/bacula-init.in 2004-10-24 08:58:25.000000000 -0500
++++ platforms/gentoo-fixed/bacula-init.in 2005-06-08 09:54:23.000000000 -0500
+@@ -6,7 +6,7 @@
+
+ depend() {
+ need net
+- use @DB_NAME@
++ use dns @DB_NAME@
+ }
+
+ opts="test"
+diff -uNr platforms/gentoo/bacula-sd.in platforms/gentoo-fixed/bacula-sd.in
+--- platforms/gentoo/bacula-sd.in 2004-10-19 08:35:07.000000000 -0500
++++ platforms/gentoo-fixed/bacula-sd.in 2005-06-08 10:00:33.000000000 -0500
+@@ -9,6 +9,11 @@
+ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
+ #
+
++depend() {
++ need net
++ use dns @DB_NAME@
++}
++
+ start() {
+ ebegin "Starting the Bacula Storage daemon"
+ start-stop-daemon --start --quiet --exec @sbindir@/bacula-sd -- $2 -c @sysconfdir@/bacula-sd.conf
diff --git a/app-backup/bacula/files/bacula-1.36.3-rescue-makefile.patch b/app-backup/bacula/files/bacula-1.36.3-rescue-makefile.patch
new file mode 100644
index 000000000000..0c5d975019ee
--- /dev/null
+++ b/app-backup/bacula/files/bacula-1.36.3-rescue-makefile.patch
@@ -0,0 +1,46 @@
+--- rescue/linux/Makefile.in 2004-08-31 16:05:50.000000000 -0500
++++ rescue/linux-fixed/Makefile.in 2005-06-20 08:07:50.000000000 -0500
+@@ -1,12 +1,41 @@
+-
+-all:
++topdir = @BUILD_DIR@
++thisdir = $(topdir)/rescue/linux
++sysconfdir = @sysconfdir@
++
++MKDIR = $(topdir)/autoconf/mkinstalldirs
++CP = @CP@
++RM = @RM@
++RMF = "$(RM) -f"
++
++all: Makefile
++ (cd $(topdir)/src/filed; \
++ $(MAKE) static-bacula-fd; \
++ cd $(thisdir))
+
+ install:
++ $(MKDIR) -m 750 $(DESTDIR)$(sysconfdir)/rescue/cdrom;
++ $(CP) -R $(thisdir)/cdrom/* \
++ $(DESTDIR)$(sysconfdir)/rescue/cdrom/
++ $(MKDIR) -m 750 $(DESTDIR)$(sysconfdir)/rescue/cdrom/bin
++ $(CP) -R $(topdir)/src/filed/static-bacula-fd \
++ $(DESTDIR)$(sysconfdir)/rescue/cdrom/bin/bacula-fd
++ $(MKDIR) $(DESTDIR)$(sysconfdir)/rescue/floppy
++ $(CP) -R $(thisdir)/floppy/* \
++ $(DESTDIR)$(sysconfdir)/rescue/floppy/
++ $(CP) -R $(topdir)/src/filed/static-bacula-fd \
++ $(DESTDIR)$(sysconfdir)/rescue/floppy/bacula-fd
++ chmod 754 $(DESTDIR)$(sysconfdir)/rescue/cdrom/bin/bacula-fd \
++ $(DESTDIR)$(sysconfdir)/rescue/floppy/bacula-fd
+
+ uninstall:
++ $(RMF) -r $(DESTDIR)$(sysconfdir)/rescue
+
+ clean:
+
+ distclean:
+
+ depend:
++
++Makefile: Makefile.in
++ cd $(topdir) \
++ && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
diff --git a/app-backup/bacula/files/bacula-3.6.0-configure.diff b/app-backup/bacula/files/bacula-3.6.0-configure.diff
new file mode 100644
index 000000000000..698492e52976
--- /dev/null
+++ b/app-backup/bacula/files/bacula-3.6.0-configure.diff
@@ -0,0 +1,19 @@
+--- bacula-1.36.0/configure 2004-10-19 08:35:02.000000000 -0500
++++ bacula-1.36.0-patched/configure 2004-10-23 21:20:33.000000000 -0500
+@@ -19190,7 +19190,7 @@
+ exit 1
+ fi
+
+- ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
++ ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
+ ac_config_commands="$ac_config_commands default"
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+@@ -19746,6 +19746,7 @@
+ "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
+ "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
+ "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
++ "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
+ "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
+ "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
diff --git a/app-backup/bacula/files/bacula-conf b/app-backup/bacula/files/bacula-conf
new file mode 100644
index 000000000000..5c6afcf85a93
--- /dev/null
+++ b/app-backup/bacula/files/bacula-conf
@@ -0,0 +1,16 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/bacula-conf,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+# Config file for /etc/init.d/bacula
+
+# Add on SERVICES the daemons you want to run
+# sd -
+# fd -
+# dir -
+SERVICES="%%SERVICES%%"
+
+# Options for each daemon
+SD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-sd.conf"
+FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf"
+DIR_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-dir.conf"
diff --git a/app-backup/bacula/files/bacula-init b/app-backup/bacula/files/bacula-init
new file mode 100644
index 000000000000..35002672e056
--- /dev/null
+++ b/app-backup/bacula/files/bacula-init
@@ -0,0 +1,62 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/bacula-init,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+depend() {
+ need net
+ use mysql
+}
+
+opts="test"
+
+# A client would only need to run the file daemon, so if thats the
+# case for this machine just comment the other two out below here...
+start() {
+ ebegin "Starting bacula storage daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
+ -- -c /etc/bacula/bacula-sd.conf
+ result=$?
+
+ ebegin "Starting bacula file daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
+ -- -c /etc/bacula/bacula-fd.conf
+ result=$(( $result + $? ))
+ sleep 2
+
+ ebegin "Starting bacula director"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
+ -- -c /etc/bacula/bacula-dir.conf
+ result=$(( $result + $? ))
+
+ eend $result
+}
+
+# The default port numbers appear in the pidfile paths below.
+# Might wanna programmatically grab them from the config files
+# or something...
+stop() {
+ ebegin "Stopping bacula file daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.9102.pid
+ result=$?
+ ebegin "Stopping bacula storage daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.9103.pid
+ result=$(( $result + $? ))
+ ebegin "Stopping bacula director"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.9101.pid
+ result=$(( $result + $? ))
+ eend $result
+}
+
+test() {
+ ebegin "Testing bacula storage daemon configuration"
+ /usr/sbin/bacula-sd -t -c /etc/bacula/bacula-sd.conf
+ result=$?
+ ebegin "Testing bacula file daemon configuration"
+ /usr/sbin/bacula-fd -t -c /etc/bacula/bacula-fd.conf
+ result=$(( $result + $? ))
+ ebegin "Testing bacula director configuration"
+ /usr/sbin/bacula-dir -t -c /etc/bacula/bacula-dir.conf
+ result=$(( $result + $? ))
+ eend $result
+}
diff --git a/app-backup/bacula/files/bacula-init2 b/app-backup/bacula/files/bacula-init2
new file mode 100644
index 000000000000..2e9d5f5ac295
--- /dev/null
+++ b/app-backup/bacula/files/bacula-init2
@@ -0,0 +1,93 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/bacula-init2,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+depend() {
+ need net
+ use mysql
+}
+
+opts="test"
+
+DIR_USER=root
+DIR_GROUP=bacula
+SD_USER=root
+SD_GROUP=bacula
+FD_USER=root
+FD_GROUP=bacula
+
+# A client would only need to run the file daemon, so if thats the
+# case for this machine just comment the other two out below here...
+start() {
+ ebegin "Starting bacula storage daemon"
+ OPTIONS=''
+ if [ "${SD_USER}" != '' ]; then
+ OPTIONS="${OPTIONS} -u ${SD_USER}"
+ fi
+
+ if [ "${SD_GROUP}" != '' ]; then
+ OPTIONS="${OPTIONS} -g ${SD_GROUP}"
+ fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
+ -- ${OPTIONS} -c /etc/bacula/bacula-sd.conf
+ result=$?
+
+ ebegin "Starting bacula file daemon"
+ OPTIONS=''
+ if [ "${FD_USER}" != '' ]; then
+ OPTIONS="${OPTIONS} -u ${FD_USER}"
+ fi
+
+ if [ "${FD_GROUP}" != '' ]; then
+ OPTIONS="${OPTIONS} -g ${FD_GROUP}"
+ fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
+ -- ${OPTIONS} -c /etc/bacula/bacula-fd.conf
+ result=$(( $result + $? ))
+ sleep 2
+
+ ebegin "Starting bacula director"
+ OPTIONS=''
+ if [ "${DIR_USER}" != '' ]; then
+ OPTIONS="${OPTIONS} -u ${DIR_USER}"
+ fi
+
+ if [ "${DIR_GROUP}" != '' ]; then
+ OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
+ fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
+ -- ${OPTIONS} -c /etc/bacula/bacula-dir.conf
+ result=$(( $result + $? ))
+
+ eend $result
+}
+
+# The default port numbers appear in the pidfile paths below.
+# Might wanna programmatically grab them from the config files
+# or something...
+stop() {
+ ebegin "Stopping bacula file daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.9102.pid
+ result=$?
+ ebegin "Stopping bacula storage daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.9103.pid
+ result=$(( $result + $? ))
+ ebegin "Stopping bacula director"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.9101.pid
+ result=$(( $result + $? ))
+ eend $result
+}
+
+test() {
+ ebegin "Testing bacula storage daemon configuration"
+ /usr/sbin/bacula-sd -t -c /etc/bacula/bacula-sd.conf
+ result=$?
+ ebegin "Testing bacula file daemon configuration"
+ /usr/sbin/bacula-fd -t -c /etc/bacula/bacula-fd.conf
+ result=$(( $result + $? ))
+ ebegin "Testing bacula director configuration"
+ /usr/sbin/bacula-dir -t -c /etc/bacula/bacula-dir.conf
+ result=$(( $result + $? ))
+ eend $result
+}
diff --git a/app-backup/bacula/files/bacula-init3 b/app-backup/bacula/files/bacula-init3
new file mode 100644
index 000000000000..a3329070ca41
--- /dev/null
+++ b/app-backup/bacula/files/bacula-init3
@@ -0,0 +1,60 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/bacula-init3,v 1.1 2005/07/04 01:52:06 robbat2 Exp $
+
+depend() {
+ need net
+ %%USE_DB%%
+}
+
+start() {
+ local retval=0
+ for s in ${SERVICES} ; do
+ case ${s} in
+ sd)
+ ebegin "Starting bacula storage daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
+ -- ${SD_OPTIONS}
+ retval=$(( $retval + $? ))
+ ;;
+ fd)
+ ebegin "Starting bacula file daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
+ -- ${FD_OPTIONS}
+ retval=$(( $retval + $? ))
+ ;;
+ dir)
+ ebegin "Starting bacula director"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
+ -- ${DIR_OPTIONS}
+ retval=$(( $retval + $? ))
+ ;;
+ esac
+ done
+ eend $retval
+}
+
+stop() {
+ local retval=0
+ for s in ${SERVICES} ; do
+ case ${s} in
+ sd)
+ ebegin "Stopping bacula storage daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid
+ retval=$(( $retval + $? ))
+ ;;
+ fd)
+ ebegin "Stopping bacula file daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid
+ retval=$(( $retval + $? ))
+ ;;
+ dir)
+ ebegin "Stopping bacula director"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid
+ retval=$(( $retval + $? ))
+ ;;
+ esac
+ done
+ eend $retval
+}
diff --git a/app-backup/bacula/files/digest-bacula-1.34.4 b/app-backup/bacula/files/digest-bacula-1.34.4
new file mode 100644
index 000000000000..45526c7cbbd1
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.34.4
@@ -0,0 +1 @@
+MD5 8c03b37e0b2d5da893fca068b8971521 bacula-1.34.4.tar.gz 4584570
diff --git a/app-backup/bacula/files/digest-bacula-1.34.5 b/app-backup/bacula/files/digest-bacula-1.34.5
new file mode 100644
index 000000000000..50642fab004c
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.34.5
@@ -0,0 +1 @@
+MD5 3bdccf8c9ee7e794c0035afbc529a33a bacula-1.34.5.tar.gz 4628068
diff --git a/app-backup/bacula/files/digest-bacula-1.34.6 b/app-backup/bacula/files/digest-bacula-1.34.6
new file mode 100644
index 000000000000..016a6388a4d0
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.34.6
@@ -0,0 +1 @@
+MD5 9de593cb206df126a8e27774281c5bf6 bacula-1.34.6.tar.gz 4633962
diff --git a/app-backup/bacula/files/digest-bacula-1.36.0 b/app-backup/bacula/files/digest-bacula-1.36.0
new file mode 100644
index 000000000000..f332aa1861d1
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.36.0
@@ -0,0 +1 @@
+MD5 caa6b417b4fdd65caf714fb2baf5f385 bacula-1.36.0.tar.gz 6806740
diff --git a/app-backup/bacula/files/digest-bacula-1.36.3 b/app-backup/bacula/files/digest-bacula-1.36.3
new file mode 100644
index 000000000000..e744487479d1
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.36.3
@@ -0,0 +1 @@
+MD5 9499d6277b8673ae7c24dcdbf89ee026 bacula-1.36.3.tar.gz 11153154
diff --git a/app-backup/bacula/files/digest-bacula-1.36.3-r1 b/app-backup/bacula/files/digest-bacula-1.36.3-r1
new file mode 100644
index 000000000000..e744487479d1
--- /dev/null
+++ b/app-backup/bacula/files/digest-bacula-1.36.3-r1
@@ -0,0 +1 @@
+MD5 9499d6277b8673ae7c24dcdbf89ee026 bacula-1.36.3.tar.gz 11153154
diff --git a/app-backup/bacula/metadata.xml b/app-backup/bacula/metadata.xml
new file mode 100644
index 000000000000..d4e64fa57ca2
--- /dev/null
+++ b/app-backup/bacula/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>fserb@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>hadfield@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>