--- bacula-5.0.3.orig/configure +++ bacula-5.0.3/configure @@ -27993,7 +27993,7 @@ if test -n "$PG_CONFIG";then POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir` POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir` - POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir` + POSTGRESQL_BINDIR=/usr/bin elif test -f /usr/local/include/libpq-fe.h; then POSTGRESQL_INCDIR=/usr/local/include if test -d /usr/local/lib64; then @@ -28880,7 +28880,7 @@ db_prog="postgresql" PG_CONFIG=`which pg_config` if test -n "$PG_CONFIG"; then - SQL_BINDIR=`"$PG_CONFIG" --bindir` + SQL_BINDIR=/usr/bin SQL_LIBDIR=`"$PG_CONFIG" --libdir` elif test -f /usr/local/bin/psql; then SQL_BINDIR=/usr/local/bin --- bacula-5.0.3.orig/src/filed/bacula-fd.conf.in +++ bacula-5.0.3/src/filed/bacula-fd.conf.in @@ -34,6 +34,7 @@ WorkingDirectory = @working_dir@ Pid Directory = @piddir@ Maximum Concurrent Jobs = 20 + FDAddress = 127.0.0.1 } # Send all messages except skipped files back to Director --- bacula-5.0.3.orig/src/dird/bacula-dir.conf.in +++ bacula-5.0.3/src/dird/bacula-dir.conf.in @@ -21,6 +21,7 @@ Maximum Concurrent Jobs = 1 Password = "@dir_password@" # Console password Messages = Daemon + DirAddress = 127.0.0.1 } JobDefs { --- bacula-5.0.3.orig/src/lib/Makefile.in +++ bacula-5.0.3/src/lib/Makefile.in @@ -119,7 +119,7 @@ libbac.la: Makefile $(LIBBAC_LOBJS) @echo "Making $@ ..." - $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) + $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -lssl -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) libbaccfg.a: $(LIBBACCFG_OBJS) @echo "Making $@ ..." --- bacula-5.0.3.orig/src/cats/update_mysql_tables.in +++ bacula-5.0.3/src/cats/update_mysql_tables.in @@ -15,7 +15,6 @@ if mysql $* -f < Fri, 20 May 2011 10:10:13 +0100 + +bacula (5.0.3-1ubuntu1) oneiric; urgency=low + + * Merge from debian unstable. Remaining changes: + - Daemons listen on all interfaces. (LP: #286643) + - Start Daemons on installation. + - Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + - debian/rules: Disable fortify source since it was causing bacula-director to + segfault. + - debian/control: + + Cleaned up bacula-director-pgsql dependences and recommends. + + Made mysql the default director to install bacula-director-mysql. + + -- Chuck Short Mon, 02 May 2011 11:35:26 +0100 + +bacula (5.0.3-1) unstable; urgency=low + + * [27362ff7] Adopted by bacula packaging group (Closes: #612296) + * [14bbb35e] New upstream version (Closes: #592622) + + Fixes OpenSSL 1.0.0 issue (Closes: #622003) + + Doesn't install any Product column (Closes: #615570) + * [7562cd38] Install alternative binary name for tray-monitor (Closes: 461943) + + -- Jan Hauke Rahm Thu, 21 Apr 2011 15:16:55 +0200 + +bacula (5.0.3-0ubuntu2) natty; urgency=low + + * debian/bacula-directory-{mysql,pgsql}.postinst: Wrap $dbc_dbname + in quotes in postinst. (LP: #689327) + + + -- Chuck Short Mon, 07 Mar 2011 10:00:03 -0500 + +bacula (5.0.3-0ubuntu1) natty; urgency=low + + * New upstream version. + + -- Chuck Short Mon, 14 Feb 2011 14:08:20 -0500 + +bacula (5.0.2-3) unstable; urgency=low + + * Wrap password commands in quotes. Closes: #607443. + * Orphaning this package; changing maintainer to QA group. + WNPP bug #612296 filed. + + -- John Goerzen Mon, 07 Feb 2011 08:20:22 -0600 + +bacula (5.0.2-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix "make_catalog_backup is broken": patch configure to use /usr/bin as + the path of the PostgreSQL binaries instead of dynamically setting it at + build time to /usr/lib/postgresql/$VERSION/bin (closes: #606802). + + -- gregor herrmann Wed, 15 Dec 2010 16:42:56 +0100 + +bacula (5.0.2-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "bacula meta-package not installable with recommended packages": + bacula-sd: Recommends: add a real package to the virtual bacula-sd-tools; + thanks to Hideki Yamane for the proposal (closes: #602222). + + -- gregor herrmann Sat, 27 Nov 2010 17:18:41 +0100 + +bacula (5.0.2-2ubuntu3) natty; urgency=low + + * Added libssl explicit build dependency in src/lib/Makefile.in for libbac. + Closes: (LP: #687968) + + -- Ahmed Kamal Fri, 10 Dec 2010 10:30:04 +0200 + +bacula (5.0.2-2ubuntu2) natty; urgency=low + + * Rebuild with python 2.7 as the python default. + + -- Matthias Klose Thu, 09 Dec 2010 16:43:46 +0000 + +bacula (5.0.2-2ubuntu1) natty; urgency=low + + * Merge from debian unstable. Remaining changes: + - Daemons listen on all interfaces. (LP: #286643) + - Start daemons on installation + - Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + - debian/rules: Disable fortify source since it was causing bacula-director + to segfault. + - debian/control: + + Cleaned up bacula-director-pgsql dependencies and recommends. + + Made mysql the default director to install bacula-director-{mysql|pgsql}. + + -- Chuck Short Fri, 27 Aug 2010 20:54:42 +0100 + +bacula (5.0.2-2) unstable; urgency=medium + + * Remove spurious creation of file_jpfid_idx on upgrade. Closes: #591293. + + -- John Goerzen Fri, 20 Aug 2010 14:58:19 -0500 + +bacula (5.0.2-1ubuntu1) maverick; urgency=low + + * Resynchronize with debian, remaining changes: + - Daemons listen on all interfaces. (LP: #286643) + - Start daemons on installation + - Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + - debian/rules: Disable fortify source since it was causing bacula-director + to segfault. + - debian/control: + + Cleaned up bacula-director-pgsql dependencies and recommends. + + Made mysql the default director to install bacula-director-{mysql|pgsql}. + + -- Chuck Short Tue, 22 Jun 2010 09:11:35 -0400 + +bacula (5.0.2-1) unstable; urgency=medium + + * New upstream release. Closes: #585729, #582484. + * Drop bacula-sd-tools from Conflicts and Replaces line of bacula-sq-sqlite. + Fixes RC bug. Closes: #582422. + * Update PostgreSQL recommendations to 8.4. + * Add sqlite to deps for bacula-director-sqlite3. Closes: #542825. + + -- John Goerzen Mon, 21 Jun 2010 09:22:47 -0500 + +bacula (5.0.2-0ubuntu1) maverick; urgency=low + + * New upstream release, changes since 5.0.1: + - Probable fix for SD crash bug #1553 + - Fix #1559 problem when restoring pruned jobs with a regexp + - Fix for bug #1560 bcopy cannot find Volume + - Fix cancel crash bug #1551 + - Check if sql backend is thread-safe + - Correct Pool display in SD status. Fixes bug #1541 + - Fix cancel crash reported by Stephen Thompson + - Rewind on close to fix #1549 + - Remove closelog() in bpipe fixes bug #1536 + - Fix #1517 about missing Base level in .level command + - Replace ASSERT in block.c with fail Job + - Fix database locking calling db_lock and returning from function without + calling db_unlock. + - Add missing db_unlock to bvfs_update_cache. + - Fix #1532 about permission on binaries + - Fix #1527 about deadlock during migration + - Another fix for OpenSSLv1 + - Fix tls.c for OpenSSLv1 + - Fix #1511 when trying to insert more than 50.000 directories in bvfs + - Fix plugin load not to stop if one plugin bad -- pointed out by James + - Remove --without-qwt from configure statement. + - Second correct fix to bug #1524 verify fails after adding or removing files + - Fix bug #1524 verify fails after adding or removing files + - Apply fix suggested by Andreas in bug #1502 for mediaview column sort problem + - Fix OpenSSL 1.x problem in crypto.c on Fedora 12 + - Display AllowCompress warning message only if compression used in FileSet + * Dropped debian/patches/ubuntu_address.patch. + + -- Chuck Short Thu, 29 Apr 2010 09:45:01 -0400 + +bacula (5.0.1-1ubuntu1) lucid; urgency=low + + * Merge from debian testing. Remaining changes: + - Daemons listen on all interfaces. (LP: #286643) + - Start daemons on installation + - Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + - debian/rules: Disable fortify source since it was causing bacula-director + to segfault. + - debian/control: + + Cleaned up bacula-director-pgsql dependencies and recommends. + + Made mysql the default director to install bacula-director-{mysql|pgsql}. + * Dropped: + - Generate default passwords at install time, integrated upstream. + - Added LSB support to init scripts, integrated upstream. + + -- Chuck Short Sun, 14 Mar 2010 02:19:12 +0000 + +bacula (5.0.1-1) unstable; urgency=low + + * New upstream release. Closes: #572166. + * Revert dbcheck.8 to exact upstream version. + * Drop Debian patches that add indices to databases. This is per the + new upstream statement saying "we strongly recommend to avoid the + temptation to add new indexes. In general, these will cause very + significant performance problems in other areas." + * Reverted other Debian-specific patches to database update scripts + that are no longer included in our packages. + * Fix for MySQL and PostgreSQL postinst to correctly put catalog backup + name in bacula-dir.conf. + + -- John Goerzen Wed, 03 Mar 2010 08:38:35 -0600 + +bacula (5.0.0-6) unstable; urgency=low + + * Generate default passwords at install time instead of at build time. + Closes: #365097. Patch originated in Ubuntu; modified for Debian. + Merged to Debian master at 8381602cfbecaea0ca8559100020f878af81a237. + * Call rm -rf /var/{log,lib}/bacula on purge. This patch was part of + Ubuntu's set merged above. + * Modified Ubuntu's password patch to use + /etc/bacula/common_default_passwords instead of debconf per Debian + practice. + * Added full LSB support to init scripts. Patch originated in Ubuntu, + and was merged with LSB status support already in Debian. + Merged to Debian master at b3e2b4bc8dc1ad2a66b1e80c4cfa6176a15a062d. + * Correct perms on new Sqlite3 database so it's owned by bacula:bacula. + * Correct Sqlite3 postinst to handle paths of DBNAME correctly. + + -- John Goerzen Mon, 01 Mar 2010 15:43:02 -0600 + +bacula (5.0.0-5) unstable; urgency=medium + + * Fix bashism in scripts/disk-changer.in. Closes: #530049. + * Correct MySQL index patch to avoid syntax error on install. + Closes: #569535. + * Corrected MySQL upgrade issue by adding a shell script to determine + whether to remove Stripe column from JobMedia table. This would have + caused upgrade to crash for people that had upgraded all the way from + the 1.x days. + Closes: #569285. + * Patch from Petr Salinger to disable ACLs on kfreebsd-* archs. + This corrects a FTBFS and Closes: #570890. + * Correct saving password to bacula-dir.conf on new install + with MySQL or PostgreSQL flavor. Closes: #538824. + * Added make_catalog_backup.pl script to *-director debs. + + -- John Goerzen Mon, 22 Feb 2010 13:47:19 -0600 + +bacula (5.0.0-4) unstable; urgency=low + + * Corrected fail to install bug: after removing /var/run from the package + in 5.0.0-3, needed to also remove reference to it in + bacula-common.postinst. Closes: #569288, #569298, #569305, #569326. + + -- John Goerzen Thu, 11 Feb 2010 08:05:47 -0600 + +bacula (5.0.0-3) unstable; urgency=low + + * Added MySQL indices to match PostgreSQL ones. Closes: #563899. + * Copy slight spelling tweak to debian/copyright. + * Remove bad patch that caused double-restart of init scripts. + Closes: #569126. + * Fixed errant DROP INDEX command in sqlite upgrade process. + * Added --disable-conio to ./configure args to force use of readline. + --with-readline=yes was already supplied. This will enable + new tab completion code. Closes: #569154, #513393. + * [lintian] Add ${misc:Depends} to all package Depends lines. + * [lintian] Bump debhelper compat level to 6. + * [lintian] Update build-dep on debhelper due to use of dh_lintian. + * [lintian] No longer create /var/run in .dirs files. init scripts are + already making sure it's there. + * [lintian] Remove now-useless bacula-director-common.preinst + + -- John Goerzen Wed, 10 Feb 2010 14:05:08 -0600 + +bacula (5.0.0-2) unstable; urgency=low + + * Now upload 5.0.x to unstable. + * Now install mtx-changer.conf in bacula-sd. Closes: #531471. + + -- John Goerzen Tue, 09 Feb 2010 12:05:20 -0600 + +bacula (5.0.0-1) experimental; urgency=low + + * New upstream version. + * Removed build-dep option libreadline5-dev, leaving only libreadline-dev + option. Closes: #553735. + * Update bacula-console-qt section to utils to match override file. + * Update standards-version to 3.8.3. + + -- John Goerzen Mon, 08 Feb 2010 15:44:00 -0600 + +bacula (3.0.3-3) unstable; urgency=medium + + * Fixed situation where dbconfig-common bits weren't being called. This + prevented proper upgrades from lenny. Closes: #516900, #542774. + * Convert Sqlite3 to use dbconfig-common like PostgreSQL and MySQL directors + have been for some time now. + * This change means it now correctly upgrades from Sqlite2. + Closes: #552413. + * This change means that all Bacula debconf templates are finally removed. + As a result, no need for translations remains. Closing open translation + bugs since there is no longer anything to translate in this package. + Closes: #568469. + * Clean up handling of database upgrade scripts in debian/rules to make it + easier to handle new Bacula versions when they arrive. + * Make sure to stop the director before upgrading its database. + * Add lsb init.d status support. Patch from Peter Eisentraut. + Closes: #536573. + + -- John Goerzen Mon, 08 Feb 2010 14:37:04 -0600 + +bacula (3.0.3-2) unstable; urgency=medium + + * Update build-dep from libmysqlclient15-dev to libmysqlclient-dev. + Rebuild on a newer i386 sid machine; 3.0.3-1 will not migrate to testing + due to dep on old libmysqlclient15 on i386. + * Remove bacula-doc ln in debian/rules, correcting dpkg's idea that bacula + has been completely removed on upgrade. + Closes: #545473, #554197, #545313. + * Add bpipe to built package. Patch from Alex Bramley. Closes: #549081. + * Added comments about make_catalog_backup to README.Debian. Closes: #452687. + + -- John Goerzen Wed, 03 Feb 2010 21:37:56 -0600 + +bacula (3.0.3-1) unstable; urgency=medium + + * New upstream release. Closes: #566646. + * Update all PostgreSQL dependencies to 8.4 only. + Closes: #559581. + * Ack NMU. Closes: #549982, #565877, #543179, #544594, #544610. + Closes: #545729, #555450, #545408, #567660. + * Improve manpages for: bcopy, bextract, bls, btraceback, bacula-fd, + bacula-sd, bacula-dir, bconsole, dbcheck, btape, bscan. + Patches by Lucas B. Cohen + Closes: #499619. + * Import upstream patch to add bsmtp manpage and update + manpages. Closes: #519573. + * Add lintian overrides for rpath warning for /usr/lib/bacula. + * Add explicit dep from bacula to bacula-common. This dep is enforced + by other deps already, but was causing a lintian warning. + + -- John Goerzen Mon, 01 Feb 2010 11:33:48 -0600 + +bacula (3.0.2-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix pending l10n issues. Debconf translations: + * German (Helge Kreutzmann). Closes: #549982, #565877 + * Russian (Yuri Kozlov). Closes: #543179 + * Italian (Luca Monducci). Closes: #544594 + * French (Christian Perrier). Closes: #544610 + * Swedish (Martin Bagge). Closes: #545729 + * Spanish (Francisco Javier Cuadrado). Closes: #555450 + * Japanese (Hideki Yamane (Debian-JP)). Closes: #545408 + * Czech (Miroslav Kure). Closes: #567660 + + -- Christian Perrier Sun, 24 Jan 2010 08:01:18 +0100 + +bacula (3.0.2-3ubuntu6) lucid; urgency=low + + * Fix FTBFS. + + -- Chuck Short Wed, 10 Mar 2010 16:36:15 -0500 + +bacula (3.0.2-3ubuntu5) lucid; urgency=low + + [ Chuck Short ] + * debian/rules: Add place holder so auto-upgrader doesnt fail. (LP: #499389) + + -- Chuck Short Wed, 10 Mar 2010 16:36:12 -0500 + +bacula (3.0.2-3ubuntu4) lucid; urgency=low + + * debian/bacula-sd.install: Install mtx-changer.conf script. (LP: #494380) + + -- Chuck Short Mon, 08 Mar 2010 14:38:52 -0500 + +bacula (3.0.2-3ubuntu3) lucid; urgency=low + + * debian/rules: add empty LDFLAGS (LP: #508382) + + -- Ante Karamatic Fri, 26 Feb 2010 15:28:56 +0000 + +bacula (3.0.2-3ubuntu2) lucid; urgency=low + + * No op rebuild for bacula-console-qt. (LP: #508394) + + -- Chuck Short Mon, 25 Jan 2010 09:19:56 -0500 + +bacula (3.0.2-3ubuntu1) lucid; urgency=low + + * Merge from debian testing, remaining changes: + + debian/rules: + - added bat_icon.png and bat.desktop for bacula-console-qt (LP: #314746) + - added bacula-tray-monitor.xpm icon, fix Exec path in .desktop + + Store sd|fd|director passwords in debconf (LP: #222558) + - added debian/bacula-common.templates + - modified debian/bacula-common.postinst: + + generate random passwords and store them in debconf + - modified debian/bacula-[sd|fd|director-mysql|director-pgsql].postinst + + read and set passwords from debconf + + Daemons listen on all interfaces (LP: #286643) + + Start daemons on installation + + Build with generic XXX_*_XXX username, password and database name + and replace it with dbconfig's settings in postinstall scripts + + Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + + debian/rules: Disable fortify source since it was causing + bacula-director to segfault. + + debian/control: + - Added libdbi-perl and libdb-mysql-perl to depends for + bacula-director-mysql due to new postinst configuration. + - Cleaned up bacula-director-pgsql dependenices and recommends. + - Made mysql the default director to install bacula-director-{mysql|pgsql} + added database handling to postinstall scripts and templates, modifiied + postinstall script's sed expressions. + - Removed libwgtk-2.6-dev as a build dependency; as a result + bacula-console-wx isn't built anymore. + - Install gawk if not installed. (LP: #207527) + + debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]: + - New scripts for catalog backup. (CVE-2007-5626) + + debian/bacula-console-wx: + - Dropped since we are not building them anymore. + + debian/bacula-director-common.bacula-director.init, + debian/bacula-fd.init, debian/bacula-sd.init: + - Made more LSB specific. + + Add missing bacula-director-[pgsql|mysql].templates. + + Suggest bacula-traymonitor rather than Recommends so we dont pull in the libgtk libraries + on the server seed. + + debian/control: Change build dependencies to MySQL 5.1. + + bacula.desktop: Run /usr/bin/bat not /usr/sbin/bat (LP: #38778) + + -- Chuck Short Fri, 06 Nov 2009 00:30:35 +0000 + +bacula (3.0.2-3) unstable; urgency=low + + * bacula-director-common doesn't require bacula-fd. Patch from Sven + Hartge. Closes: #542829. + * Use sed to tweak AUTOINCREMENT columns on sqlite2->sqlite3 upgrades. + Closes: #542810. + * Correct dep on "sqlite2" to "sqlite". Closes: #543330. + * Chown converted sqlite2->sqlite3 db to bacula:bacula. Closes: #543345. + + -- John Goerzen Mon, 24 Aug 2009 16:22:41 -0500 + +bacula (3.0.2-2) unstable; urgency=low + + * Fix syntax error in baclua-director-sqlite3 postinst. + Closes: #542758. + + -- John Goerzen Fri, 21 Aug 2009 08:10:17 -0500 + +bacula (3.0.2-1) unstable; urgency=low + + * New Upstream Version. Supports IPv6. Closes: #523852. + * Install bat from the correct place. Closes: #532646. + * Add conflicts between bacula-common-* packages. Closes: #529645. + + -- John Goerzen Thu, 20 Aug 2009 14:26:44 -0500 + +bacula (3.0.1-2) experimental; urgency=low + + * Apply patches from Sami Haahtinen: correct behavior on systems + where bash isn't the default, and move btape into SQL-specific + packages because it now links with database code. + * Fixing up links in bacula metapackage + + -- John Goerzen Mon, 18 May 2009 08:46:24 -0500 + +bacula (3.0.1-1) experimental; urgency=low + + * New Upstream Version + + -- John Goerzen Wed, 06 May 2009 08:49:31 -0500 + +bacula (3.0.0-1) experimental; urgency=low + + * New upstream version. Now license-compatible with OpenSSL. + Closes: #523479. + * Upstream has deprecated Sqlite v2. No longer build Sqlite v2. + * Upstream has deprecated wx console. No longer build wx console. + * Document reload option in bacula-director init option. Closes: #519563. + * This version has mt-st smarts. Closes: #495464. + * Fixed init script stop order. Closes: #502341. + * Make /usr/share/doc/bacula point to bacula-common. + * Update NEWS and README.Debian. Closes: #492664. + * Correct NEWS format to shut up lintian warnings. + * Move bsmtp to bacula-common. Closes: #476227. + * Update postgresql-client deps. Closes: #492670. + * Remove ancient (pre-lenny) database upgrade scripts from .debs. + * Added Spanish translation from Francisco Javier Cuadrado. Closes: #502950. + + -- John Goerzen Thu, 30 Apr 2009 16:52:53 -0500 + +bacula (2.4.4-1ubuntu9) karmic; urgency=low + + * debian/bacula-director-common.bacula-director.init: doesn't require + bacula-fd. + + -- Chuck Short Mon, 05 Oct 2009 10:26:36 -0400 + +bacula (2.4.4-1ubuntu8) karmic; urgency=low + + * bacula.desktop: Run /usr/bin/bat not /usr/sbin/bat (LP: #38778) + + -- Chuck Short Wed, 09 Sep 2009 10:02:24 -0400 + +bacula (2.4.4-1ubuntu7) karmic; urgency=low + + * debian/control: Change build dependencies to MySQL 5.1. + + -- Mathias Gug Mon, 17 Aug 2009 17:20:06 -0400 + +bacula (2.4.4-1ubuntu6) karmic; urgency=low + + * debian/control: Change build and binary dependencies to PostgreSQL 8.4. + (LP: #403381) + + -- Martin Pitt Thu, 23 Jul 2009 11:53:12 +0200 + +add-console-use-vt +bacula (2.4.4-1ubuntu5) jaunty; urgency=low + + * debian/rules: + - don't start director on bacula-director-common install (LP: #334781) + + -- Ante Karamatic Thu, 12 Mar 2009 09:10:07 +0000 + +bacula (2.4.4-1ubuntu4) jaunty; urgency=low + + * Rebuild against python 2.6, adding a build-conflicts with python2.5. + + -- Steve Langasek Thu, 05 Mar 2009 22:06:19 +0000 + +bacula (2.4.4-1ubuntu3) jaunty; urgency=low + + * Suggest bacula-traymonitor rather than Recommends so we + dont pull in the libgtk libraries on the server seed. + + -- Chuck Short Thu, 29 Jan 2009 14:53:54 -0500 + +bacula (2.4.4-1ubuntu2) jaunty; urgency=low + + * Add missing bacula-director-[pgsql|mysql].templates + + -- Ante Karamatic Tue, 20 Jan 2009 07:45:53 +0000 + +bacula (2.4.4-1ubuntu1) jaunty; urgency=low + + * Upload fixes LP #269251, LP: #308903 and LP: #293515 + * debian/rules: + - added bat_icon.png and bat.desktop for bacula-console-qt (LP: #314746) + - added bacula-tray-monitor.xpm icon, fix Exec path in .desktop + * debian/bacula-traymonitor.install + - remove bacula-tray-monitor.xpm, add bacula-tray-monitor.desktop + * Merge from debian unstable, remaining changes: + * Store sd|fd|director passwords in debconf (LP: #222558) + - added debian/bacula-common.templates + - modified debian/bacula-common.postinst: + + generate random passwords and store them in debconf + - modified debian/bacula-[sd|fd|director-mysql|director-pgsql].postinst + + read and set passwords from debconf + * Daemons listen on all interfaces (LP: #286643) + * Start daemons on installation + * Build with generic XXX_*_XXX username, password and database name + and replace it with dbconfig's settings in postinstall scripts + * Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + * debian/rules: Disable fortify source since it was causing + bacula-director to segfault. + * debian/control: + - Added libdbi-perl and libdb-mysql-perl to depends for + bacula-director-mysql + due to new postinst configuration. + - Cleaned up bacula-director-pgsql dependenices and recommends. + - Made mysql the default director to install bacula-director-{mysql|pgsql} + added database handling to postinstall scripts and templates, modifiied + postinstall script's sed expressions. + - Removed libwgtk-2.6-dev as a build dependency; as a result + bacula-console-wx isn't built anymore. + - Install gawk if not installed. (LP: #207527) + * debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]: + - New scripts for catalog backup. (CVE-2007-5626) + * debian/bacula-console-wx: + - Dropped since we are not building them anymore. + * debian/bacula-director-common.bacula-director.init, + debian/bacula-fd.init, debian/bacula-sd.init + - Made more LSB specific. + + -- Ante Karamatic Sat, 10 Jan 2009 04:57:41 +0000 + +bacula (2.4.4-1) unstable; urgency=low + + * New Upstream Version - a bugfix release. Closes: #508816. + * Build-conflicts on Python 2.4. Closes: #496512. + + -- John Goerzen Fri, 09 Jan 2009 14:07:27 -0600 + +bacula (2.4.3-1ubuntu2) jaunty; urgency=low + + * debian/bacula-common.postrm: + Fix the deletion of the bacula user and remove the + /var/log/bacula and /var/lib/bacula + + -- Chuck Short Mon, 08 Dec 2008 20:12:58 +0000 + +bacula (2.4.3-1ubuntu1) jaunty; urgency=low + + * Store sd|fd|director passwords in debconf (LP: #222558) + - added debian/bacula-common.templates + - modified debian/bacula-common.postinst: + + generate random passwords and store them in debconf + - modified debian/bacula-[sd|fd|director-mysql|director-pgsql].postinst + + read and set passwords from debconf + * Daemons listen on all interfaces (LP: #286643) + * Start daemons on installation + * Build with generic XXX_*_XXX username, password and database name + and replace it with dbconfig's settings in postinstall scripts + * Merge from debian unstable, remaining changes: + - Drop mt-st to suggests. So that bacula goes back to main. (LP: #286528) + - debian/rules: Disable fortify source since it was causing + bacula-director to segfault. + - debian/control: + + Added libdbi-perl and libdb-mysql-perl to depends for + bacula-director-mysql + due to new postinst configuration. + + Cleaned up bacula-director-pgsql dependenices and recommends. + + Made mysql the default director to install bacula-director-{mysql|pgsql} + added database handling to postinstall scripts and templates, modifiied + postinstall script's sed expressions. + + Removed libwgtk-2.6-dev as a build dependency; as a result + bacula-console-wx isn't built anymore. + + Install gawk if not installed. (LP: #207527) + - debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]: + + New scripts for catalog backup. (CVE-2007-5626) + - debian/bacula-console-wx: + + Dropped since we are not building them anymore. + - debian/bacula-director-common.bacula-director.init, + debian/bacula-fd.init, debian/bacula-sd.init + + Made more LSB specific. + + -- Ante Karamatic Wed, 26 Nov 2008 13:53:30 +0100 + +bacula (2.4.3-1) unstable; urgency=low + + * New Upstream Version. Closes: #503457. + * Apply upstream 2.4.3-orphaned-jobs.patch. Closes: #504688. + + -- John Goerzen Thu, 06 Nov 2008 10:42:21 -0600 + +bacula (2.4.2-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Built against Python 2.5. Closes: #496512. + * Fix removal of original configuration file during upgrade of + bacula-director-pgsql. Closes: #496174. + + -- Ben Hutchings Sun, 05 Oct 2008 22:00:10 +0100 + +bacula (2.4.2-3) unstable; urgency=low + + * Apply upstream 2.4.2-verifydisk.patch + * Apply upstream 2.4.2-verify.patch + * Apply upstream 2.4.2-storename.patch + * Apply upstream 2.4.2-null-vol.patch + * Apply upstream 2.4.2-mig-message.patch + * Apply upstream 2.4.2-inchanger.patch + * Apply upstream 2.4.2-estimate-cmd.patch + * Apply upstream 2.4.2-bat.patch + + -- John Goerzen Fri, 03 Oct 2008 10:17:01 -0500 + +bacula (2.4.2-2) unstable; urgency=low + + * Updated Swedish strings for debconf. Closes: #491758. + * Updated Japanese debconf translation from Hideki Yamane. + Closes: #489942. + * Added bacula-tray-monitor.1 manpage. Closes: #461942. + + -- John Goerzen Sat, 30 Aug 2008 08:57:07 -0500 + +bacula (2.4.2-1) unstable; urgency=high + + * Fix sed pattern in debian/rules to correctly remove + 'USE ${db_name};' from the MySQL command tables. This prevented + bacula-director-mysql from being installed properly and was thus RC. + Closes: #441995, #489578. + * While investigating the above problem, also discovered 'USE bacula;' + statements in some upgrade tables. This would cause the upgrade of + bacula-director-mysql to fail for anyone that had their MySQL + database named something other than "bacula". Added pattern to fix this. + * New upstream release is a bugfix release, and fixes these issues: + + 2.4.1 included an unintentional debug statement whose purpose + was to crash the storage daemon. This was triggered during a restore + at the end of a tape. Fixed in 2.4.2 (upstream bug 1125). When the + SD is crashed, no backups or restores can be performed until it is + restarted. + + During a multi-tape restore, Bacula could incorrectly attempt + to reread the same tape. (Upstream bug 1126) + + bcopy no longer reads too many records (upstream bug 1107) + + Now sets a large timeout on MySQL databases to prevent trouble + with the connection timining out before data gets inserted. + Upstream bug 1034. + + There are also some other minor bugfixes and win32 changes upstream + in this release, which of course don't impact Debian. + + -- John Goerzen Mon, 04 Aug 2008 09:22:36 -0500 + +bacula (2.4.1-1) unstable; urgency=high + + * New Upstream Version. + + Fixes a bug where a tape may be incorrectly reused, destroying + data. Closes: #490996. + + -- John Goerzen Wed, 16 Jul 2008 13:26:06 -0500 + +bacula (2.4.0-1) unstable; urgency=low + + [ John Goerzen ] + * Removed debian/Makefile and debian/po/Makefile + * Apply upstream 2.4.1-restore-wrong-mediatype.patch + * bacula-fd: fix LSB init headers to not require bacula-sd. Closes: + #486256. + + [ Mark Hymers ] + * Bump Standards-Version to 3.8.0. No changes needed. + * Imported bacula-2.4.0. Closes: #487767. + + [ John Goerzen ] + * Corrected GIT URL + * Clarify the presence of BAT + + -- John Goerzen Mon, 30 Jun 2008 09:15:11 -0500 + +bacula (2.2.8-8) unstable; urgency=high + + * Apply upstream 2.2.8-jobmedia-fix.patch, high urgency. + * Hard code an archive directory in call to configure. This prevents + the default bacula sd file from having a syntax error. + Closes: #472126 + + -- John Goerzen Fri, 28 Mar 2008 10:01:41 -0500 + +bacula (2.2.8-7) unstable; urgency=low + + * Updated for compatibility with PostgreSQL 8.3. Closes: #468880 + * Run debconf-updatepo + * Update Brazilian Portuguese translation. Patch from Eder L. Marques. + Closes: #466703. + + -- John Goerzen Tue, 25 Mar 2008 12:48:53 -0500 + +bacula (2.2.8-6) unstable; urgency=low + + * Change section to admin to match override file + * Add Homepage: line to control per devref 6.2.4 + * More fixes to make Bacula binNMU safe. Patch from Lior Kaplan. + Closes: #472249. + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #462210 + * [Debconf translation updates] + + German. Closes: #462981 + + Galician. Closes: #462991 + + Portuguese. Closes: #463314 + + Finnish. Closes: #463954 + + Czech. Closes: #464427 + + French. Closes: #464838 + + Italian. Closes: #465068 + + Russian. Closes: #465079 + + Vietnamese. Closes: #465536 + + -- John Goerzen Mon, 24 Mar 2008 10:42:44 -0500 + +bacula (2.2.8-5) unstable; urgency=low + + * Added Debian VCS fields to debian/control. + * Applied 2.2.8-bacula-conf.patch from upstream + * Applied upstream 2.2.8-jobmedia.patch + * Applied upstream 2.2.8-pool-source.patch. Closes: #464687. + * Revert the patch to src/filed/backup.c introduced by Bastian in + 2.2.6-0.1 in preparation for applying upstream's new patch. + * Apply upstream 2.2.8-strip-path.patch. Closes: #452195. + + -- John Goerzen Wed, 27 Feb 2008 05:44:58 -0600 + +bacula (2.2.8-4) unstable; urgency=low + + * Added Replaces: on bacula-common, so it overwrites btraceback + in bacula-director-common for upgraders. Closes: #463317. + * Applied updated Portugese debconf translation from + Miguel Figueiredo. Closes: #463314. + + -- John Goerzen Thu, 31 Jan 2008 08:44:26 -0600 + +bacula (2.2.8-3) unstable; urgency=low + + * Simplified cleanup. Closes: #453112. + * Corrected debian/rules pattern for removing USE statements in + MySQL scripts. Closes: #441995. + * Clarified the effect of not using SSL/TLS in README.Debian. + Closes: #444732. + + -- John Goerzen Wed, 30 Jan 2008 06:40:44 -0600 + +bacula (2.2.8-2) unstable; urgency=low + + * Fix binary-arch target so that bacula-common contains all + of the necessary files. Thanks to Mark Hymers for the patch. + + -- John Goerzen Tue, 29 Jan 2008 21:14:55 -0600 + +bacula (2.2.8-1) unstable; urgency=low + + * New upstream release. (2.2.8 prepared by John Goerzen) + * Added build-dep on postgresql-server-dev-8.2. Closes: #462502. + * Moved btraceback and btraceback.gdb from bacula-director-common + to bacula-common. Closes: #452183. This change meant that + bacula-common changes from arch all to arch any. + * Fixed debian/watch file. Thanks to Raphael Geissert for the + patch. Closes: #449666. + * New German debconf translation from Helge Kreutzmann. + Closes: #462981. + * New Galician debconf translation from Jacobo Tarrio. + Closes: #462991. + * New Japenese debconf translation from Hideki Yamane. + Closes: #463092. + * Init script updates to help improve /var/run on tmpfs support. + Applied patch ac7bb3384082 from James Westby. Closes: #452683. + * Init script updates to have dependency information. + Applied patch from Petter Reinholdtsen. CLoses: #460252. + * Make bacula-common Pre-Depends instead of Depends on adduser. + Closes: #452684. + * Added postgresql-8.2 to Recommends: for + bacula-director-pgsql. Closes: #459859. + * Change recommends on kde|desktop-environment to suggests + on kde|gnome-desktop-environment. Closes: #459891. + * Merged the following changes from Mark Hymer's Mercurial tree: + + Upstream 2.2.6 and 2.2.7. Closes: #458780. + + Bump Build-Dep for libgtk2.0-dev to be >= 2.10 as the traymonitor + code needs it. Closes: #451499. + + Update libmysqlclient-dev Build-Dep. Closes: #439969. + + Use correct path to mtx-changer. Closes: #435627. + + Install tray-monitor.conf file. Closes: #413754. + + Only alter permissions and ownership on files in /etc/bacula when we + install them; don't clobber local changes. + + Simplify scripts by removing support for upgrading from versions which + are pre-sarge. + + -- John Goerzen Tue, 29 Jan 2008 04:12:36 -0600 + +bacula (2.2.6-0.1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream release. + - Release stdout/stderr on daemonization. (closes: #441621) + * Fix symlinks case for strippath in File Set. (closes: #452200) + * Fix hostname replace in default config. + + -- Bastian Blank Tue, 27 Nov 2007 13:59:29 +0000 + +bacula (2.2.5-1) unstable; urgency=medium + + * New upstream release. + urgency=medium due to a number of major bugfixes + * Updated menu section. Closes: #444913. + * Fix for binNMU safety. Thanks to Lior Kaplan for the patch. + Closes: #444694. + * Added text to traymonitor description. Closes: #442117. + + -- John Goerzen Thu, 18 Oct 2007 11:59:50 -0500 + +bacula (2.2.4-1) unstable; urgency=high + + * New upstream version. Closes: #441849, #441855, #441878, #441990. + * Documented lack of SSL/TLS in NEWS.Debian and README.Debian. + Closes: #440034. + * Enhance traymonitor description in control. Closes: #442117. + + -- John Goerzen Wed, 19 Sep 2007 09:17:02 -0500 + +bacula (2.2.0-1) unstable; urgency=low + + * Update debian/copyright from LICENSE. + * Disable OpenSSL support due to licensing concerns + See thread at + http://lists.debian.org/debian-legal/2007/07/msg00144.html + * Applied updated Vietnamese translation from Clytie Siddall. + Closes: #427042. + * Following changes prepared by Mark Hymers : + * New upstream version. Closes: #438806. + * make_catalog_backup script now takes a host parameter. + Closes: #419885. + * Deal with moving wx-console.conf to bwx-console.conf + * Add new bacula-console-qt package. + * Update Standards-Version to 3.7.2. No changes required. + * Remove postgresql-dev Build-Dep. Closes: #429963. + * Make binNMU safe. Based on patch from Lior Kaplan. Closes: #430106. + * Re-order postgresql-client Depends. Closes: #419311. + * Remove libwxgtk2.4-dev Build-Depends. Closes: #425159. + + -- John Goerzen Fri, 24 Aug 2007 02:13:34 -0500 + +bacula (2.0.3-4) unstable; urgency=low + + * Applied patches from upstream: + 2.0.3-ampm + 2.0.3-maxbyteslist + 2.0.3-maxwaittime + 2.0.3-schedule-next-hour + * Rebuild fixes binNMU problems. Closes: #419843. + * Added README.Debian to bacula-common. (It was already installed + in bacula). This should make it easier to find. Closes: #418498. + * Documented upgrade procedure in README.Debian. + * Don't try to rebuild configs when there is no need to and + when the source is unavailable. Closes: #420197, #413145. + * Fix typo in bacula-sd manpage. Closes: #417571. + + -- John Goerzen Mon, 23 Apr 2007 07:09:31 -0500 + +bacula (2.0.3-3) unstable; urgency=low + + * Make postrm scripts more versatile. Closes: #416649. + + -- John Goerzen Fri, 13 Apr 2007 03:13:05 -0500 + +bacula (2.0.3-2) unstable; urgency=low + + * Finally upload to unstable. + * Added note to README.Debian about /etc/bacula/scripts + and multiple versions of PostgreSQL. Closes: #383357. + * Added dep from bacula-director-common on mailx, and drop explicit + deps on mail-transport-agent. Closes: #386920. + * Version 2.0.x now properly initializes supplemental groups. + Closes: #391492. (This should have been closed in 2.0.2-1 upload) + * Properly remove password in sqlite/sqlite3 postinsts. + Closes: #404866. + * Consoles connect to localhost by default. Closes: #404868, #407081. + * Don't munge make_catalog_backup in bacula-dir.conf. Closes: #407082. + * Remove spurious dep from bacula-director-pgsql on sqlite3. + Closes: #396921. + + -- John Goerzen Tue, 13 Mar 2007 10:40:14 -0500 + +bacula (2.0.3-1) experimental; urgency=low + + * New upstream release. + * Local manpage bug should have been closed with 2.0.2-1. + Closes: #367643. + + -- John Goerzen Wed, 7 Mar 2007 03:40:37 -0600 + +bacula (2.0.2-1) experimental; urgency=low + + * New upstream release. Closes: #408381. + * Upstream has dropped Gnome console. Closes: #391820. + * Remove debian/manpages since manpages are now shipped upstream. + Modify debian/*.manpages to reference these files. + * debian/ support for automatically upgrading database to v10. + * Updated German translation. Closes: #406547. + * Removed references to obsolete docs. + + -- John Goerzen Fri, 23 Feb 2007 08:21:36 -0600 + +bacula (1.38.11-8) unstable; urgency=high + + * Rebuild to fix earlier binNMU. Closes: #411652. + * debian/control switched to suggested source:Version approach from + debian-devel. + + -- John Goerzen Thu, 22 Feb 2007 12:58:55 -0600 + +bacula (1.38.11-7) unstable; urgency=low + + * ACK NMU. Closes: #394605. + * New Japanese translation thanks to Hideky Yamane. Closes: #392638. + * New Czech translation from Jakup Kasparec. Closes: #392680. + + -- John Goerzen Fri, 27 Oct 2006 08:39:46 -0500 + +bacula (1.38.11-6.1) unstable; urgency=low + + * Remove explicit build dependency on python2.3. + + -- Matthias Klose Fri, 27 Oct 2006 05:47:35 +0200 + +bacula (1.38.11-6) unstable; urgency=high + + * Only call dbconfig-common if it exists in maintainer scripts. + Closes: #388220, #388222. + + -- John Goerzen Fri, 22 Sep 2006 10:06:22 -0500 + +bacula (1.38.11-5) unstable; urgency=high + + * Added missing shlibs:Depends for bacula-director-pgsql. Closes: #384837. + + -- John Goerzen Sun, 27 Aug 2006 18:48:24 -0500 + +bacula (1.38.11-4) unstable; urgency=high + + * Rebuild against newer libmysql15-dev. Closes: #384433. + * Build build-dep on libmysql15-dev. + + -- John Goerzen Fri, 25 Aug 2006 13:52:24 -0500 + +bacula (1.38.11-3) unstable; urgency=high + + * Update postrm to new dbconfig-common method. Closes: #383142. + + -- John Goerzen Mon, 21 Aug 2006 09:19:49 -0500 + +bacula (1.38.11-2) unstable; urgency=low + + * Updated Brazilian Portugese translation from Felipe August van de Wiel. + Closes: #373992. + * Updated Dutch translation from Kurt De Bree. Closes: #375128. + * New Portugese translation from Rui Branco. Closes: #380675. + + -- John Goerzen Sat, 12 Aug 2006 09:40:36 -0500 + +bacula (1.38.11-1) unstable; urgency=low + + * New upstream release + * Update debian/copyright with new upstream LICENSE + * Add Suggests on bacula-doc + + -- John Goerzen Fri, 30 Jun 2006 08:02:36 -0500 + +bacula (1.38.10-2) unstable; urgency=low + + * Applied 1.38.10-scheduler.patch and 1.38.10-dvd-eof.patch from upstream. + + -- John Goerzen Mon, 26 Jun 2006 17:12:43 -0500 + +bacula (1.38.10-1) unstable; urgency=low + + * New upstream version. + * New French translation from Thomas Huriaux. Closes: #370476. + * Update dep on dbconfig-common for new PostgreSQL date style config. + * Daemons listen only on localhost by default. Closes: #367105. + + -- John Goerzen Mon, 12 Jun 2006 15:44:23 -0500 + +bacula (1.38.9-10) unstable; urgency=low + + * Update LICENSE with newer version from upstream. Closes: #367970. + * Applied patch from Kern Sibbald, Bacula author, to fix odd + segfault in bacula-sd. Closes: #367424. + + -- John Goerzen Wed, 24 May 2006 22:25:03 -0500 + +bacula (1.38.9-9) unstable; urgency=low + + * Remove LD_ASSUME_KERNEL from bacula-director-common init script. + Closes: #367537. + + -- John Goerzen Tue, 16 May 2006 21:29:27 -0500 + +bacula (1.38.9-8) unstable; urgency=low + + * Now use GNU sed instead of ssed for inplace editing -- GNU sed + now has this feature. Closes: #367201. + * Include examples/ directory in bacula-common. + * Remove old bacula-doc files. + * Create additional PostgreSQL indices (like we alredy do for MySQL) + * Added dbconfig-common as a dep for bacula-director-mysql. + Closes: #367420. + * Added build-dep on libxt-dev. + * Listed postgresql-8.1 and postgresql-8.0 as recommends for + bacula-director-pgsql. + + -- John Goerzen Mon, 15 May 2006 16:48:57 -0500 + +bacula (1.38.9-7) unstable; urgency=low + + * Made bacula-sd-* also Replace the old bacula-sd package. Closes: #367075. + * Update debian/copyright from LICENSE. + * Remove bsmtp and btraceback manpages from debian/manpages. + + -- John Goerzen Sat, 13 May 2006 11:09:03 -0500 + +bacula (1.38.9-6) unstable; urgency=low + + * Rewrote remaining templates to use better language. + Closes: #236992, #313149. + * Removed obsolete file debian/RATIONALE. + * Added build-dependency on bc, which is used by autoconf/randpass. + * Changed Recommends in bacula-sd to dep on python for the dvd-changer + script. + * Rewrite most of README.Debian. Include information about + users/security. Closes: #304076. + * Remove obsolete directory debian/_pending. + + -- John Goerzen Sat, 13 May 2006 10:02:24 -0500 + +bacula (1.38.9-5) unstable; urgency=low + + * bacula-sd-*: added conflict on bacula-sd < 1.38.9, since some + manpages have moved around since that version and conflicts + could exist on upgrade. Closes: #367075. + * Removed accidentally-copied bacula-director-pgsql.preinst. + Closes: #367066, #367069, #367070. + + -- John Goerzen Sat, 13 May 2006 09:25:35 -0500 + +bacula (1.38.9-4) unstable; urgency=low + + * Sanitize multi-variant deps with virtual packages + + * Move bwild and bregex into bacula-director-common instead of all + the bacula-director-* packages. Change bacula-director-common + from arch all to arch any. + + * Changed all URLs from html-manual to rel-manual, and forwarded + this patch upstream. Closes: #363151. + + * Fix bacula-director-sqlite postinst to properly handle the upgrade + to 1.38. + + * Added missing scripts disk-changer and dvd-handler to bacula-sd. + + * Removed cruft in debian/additions and debian/patches. + + * Revert changes to: + + grant_postgresql_privileges.in (no longer necessary) + + gnome2-console/console.c (should respect upstream syntax choices) + + update_mysql_tables_6_to_7, 7_to_8 (irrelevant) + + update_sqlite_tables_7_to_8 (gratuitous) + + * Thanks to new support in dbconfig-common 1.8.13, the encoding for + the PostgreSQL database can now be specified. PostgreSQL encoding + should therefore be fixed. + + * Removed obsolete per-arch build code from rules. + + -- John Goerzen Fri, 12 May 2006 08:50:19 -0500 + +bacula (1.38.9-3) unstable; urgency=low + + * Clean up Sqlite3 postinst + + * Added some more upstream docs to bacula-common + + * Switched MySQL to use dbconfig-common. Removed largs amounts of + old code for MySQL support. Closes: #338884, #357386. + + * No longer force removal of director conffiles on removal (only + purge). + + * Removed obsolete templates for MySQL & PostgreSQL. + + * Removed obsolete install-flavors templates in debian/rules. + + * Install Sqlite and Sqlite3 scripts properly. + + * Removed obsolete translations (they were causing build errors now + that the obsolete templates are gone) + + -- John Goerzen Thu, 11 May 2006 06:45:44 -0500 + +bacula (1.38.9-2) unstable; urgency=low + + * Sanitize dependencies in control -- make sure everything that + needs to depends on bacula-common and use bacula-server and + bacula-client. + + * Reverse direction of /var/log/bacula/log symlink to have main + logfile written in /var/log/bacula. + + * Install upstream's default logrotate (with Debian's path). + Previously, there was no logrotate installed by default. + Closes: #309675. + + * Removed duplicate user-adding code from bacula-director-common. + bacula-common already does this. + + * Removed spurious chown/chmod of /var/run/bacula from bacula-sd + and bacula-fd. bacula-common already does this. + + * Moved chmod/chown of /var/lib/bacula and /var/log/bacula + from bacula-director-common to bacula-common. These areas may be + used by non-director packages as well. + + * Slight simplification of debian/rules + + * Switched to dbconfig-common for PostgreSQL. Closes: #365096. + + * Removed large amounts of old code for PostgreSQL support. + + -- John Goerzen Wed, 10 May 2006 22:17:29 -0500 + +bacula (1.38.9-1) unstable; urgency=low + + * New maintainer: John Goerzen . + Closes: #366625. + Thanks to Jose Luis Tallon for initially packaging and maintaining + Bacula in Debian. + + * Close bugs that have been fixed in my earlier NMUs. + Closes: #322753, #335809, #343762, #326175, #309601, #305220, #329271. + Closes: #326178, #312329, #303456, #339341, #339322, #281957, #331757. + Closes: #358762, #357619, #337250, #337376, #346430, #314492, #303862. + Closes: #339084. + + * Examine all diffs to upstream and revert ones that are not + (any longer) necessary. + + * Revert diff to db.m4 -- Bacula is now aware of pg_config natively. + + * Removed commented-out patching/unpatching code in debian/rules + + * Removed obsolete patch files debian/patches/*.patches, + debian/patches/*old. These were only referenced by commented-out + code in debian/rules. + + * Revert patch to dbd_find.c -- no apparent reason existed for + the change. + + * Reverted hack to comment in update_mysql_tables_6_to_7 + + * Reverted hack to configure checking on syntax + + * Renamed bacula-wxconsole to bacula-console-wx to maintain a + sane naming scheme. Closes: #326177. + + * Removed commented-out bacula-doc section from debian/control. + + * Build-depends on mtx. + + * Removed commented-out build-depends-indep for docs. + + * Rewrote debian/rules build system -- now uses suggested vim-like + build system. It calls configure several times and builds the + package for each DB, rather than trying to hack the configure + system to short-circuit that. + + * Use stock make_catalog_backup/delete_catalog_backup scripts, + and move these into the per-db bacula-director-* packages. + + * Now build Sqlite3 packages (in addition to existing Sqlite v2 + packages) and make them the default. + + * Fix sqlite build-deps. Previous versions build-dep'd on sqlite3 + but built using sqlite2. + + * No longer rename consoles in rules. + + * Update standards-version to 3.7.0. + + * Clean target removes config.log + + * Move bcopy and bscan manpages into proper bacula-sd-*sql* packages + + * Added missing debconf dependencies to the bacula director packages + + * Added missing adduser dependency to bacula-director-common + + * Fixed menu files for correct location of console files + + -- John Goerzen Wed, 10 May 2006 11:16:05 -0500 + +bacula (1.38.9-0.2) unstable; urgency=low + + * No longer rm -rf /var/lib/bacula in bacula-director-common postinst. + Other Bacula packages may still be installed, and this breaks them. + * Include bwild and bregex in bacula-director-* packages. + + -- John Goerzen Tue, 9 May 2006 08:45:28 -0500 + +bacula (1.38.9-0.1) unstable; urgency=low + + * New upstream release: 1.38.9, which is mostly a bugfix release. + + -- John Goerzen Mon, 8 May 2006 10:50:45 -0500 + +bacula (1.38.8-0.1) unstable; urgency=low + + * Non-maintainer upload by John Goerzen. + * Add missing build-deps: libgnomeui-dev, libx11-dev. + * Commented out code that attempts to patch pg_hba.conf. This sort of + thing should never be done without prompting the user. It was broken + for sid as written, and also failed to take into account the + possibility of Unix domain sockets or having multiple versions of + PostgreSQL on a machine. Closes: #309601. + * Build-Conflicts on python2.2-dev. The configure script will use it + by default, instead of python2.3-dev, if it's available. This could + lead to different Python versions being linked in on different archs. + * Numerous fixes to clean target to make sure all sorts of otherwise-missed + generated files get removed. + * Removed spurious chown of /var/lib/bacula in + bacula-director-common.preinst. Having it there could lead to + failure to install that package since that directory may not already + exist. postinst for that package was already doing the same chown + anyway. + * Removed erreneous chown attempt of /var/log/bacula/log in + bacula-director-common.postinst. This file is not installed + by this package. Closes: #303862. + * Fixed distribution of bscan and bcopy such that they appear in their + bacula-sd-* properly, and not in bacula-director or bacula-sd. + * debian/rules contains bashisms and will not build if bash is not + the default shell. Explicitly set SHELL in debian/rules. + + * The below changes were made available by Jose Luis Tallon on SourceForge. + + * New upstream version (Closes: #339322) + - fixes insecure temporary file creation (Closes: #329271) + - fixes error in online help (Closes: #303456) + - fixes segfault w/ fd (Closes: #346430) + + * debian/rules : fix typo w/in build process (Closes: #337250) + - enable TLS functionality + - added upstream's generic 'bacula' manpage + + * debian/control, dependency information + - simplify dependencies; allow transition to cdebconf (Closes: #331757) + - wrapped Build-Depends line + - upgrade to building with wxWidgets2.6 (Closes: #326178) + - upgrade to libmysqlclient15 (Closes: #358762) + - bacula-doc is now another set of packages + - splitted bacula-sd in 'flavors'(avoid static linking) + + * init process: auto-create /var/run/bacula on startup (Closes: #357619) + + * bacula-director-mysql: + - fix db-autoconfig -- typo in grant sentence(improper quoting) (Closes: #312329) + - upgrade to libmysqlclient15-dev (Closes: #343762) + - Automatically add indexes to tables (Closes: #335809) + + * bacula-director-pgqsl: + - purge debconf data on purge (Closes: #314492) + - rebuild -- update postgresql-client dependency (Closes: #339341) + + * bacula-sd + - Solves problem w/ Linux2.6 and no tapes on startup (Closes: #337376) + - Better handling of auto-labels (Closes: #322753) + + * GUI + - bacula-wxconsole: Link against GNOME2 libs only (Closes: #326178) + - bacula-console-gnome: provide desktop entry (Closes: #326175) + - bacula-console-gnome: fix help (Closes: #305220) + - created bacula-traymonitor package (Closes: #281957) + + * Localization + - se_SV (tack så mycket, Daniel) (Closes: #339084) + + * Christoph Haas added to "Uploaders" + + -- John Goerzen Thu, 27 Apr 2006 10:04:07 -0500 + +bacula (1.36.3-2) unstable; urgency=low + + * bacula-director-mysql: fix granting of privileges during postinst + -- typo in grant sentence('eval' missing) (Closes: #312329) + + * bacula-director-pgsql: fix problems with unicode filenames + -- CREATE DATABASE $CATALOG WITH ENCODING = 'SQL_ASCII' (Closes: #313227) + + * bacula-sd: Fix MTX support (Closes: #308803) + + * Localization enhancements: + - JA (Closes: #310104) + - FR (Closes: #309664) + - CS (Closes: #312148) + - VI (Closes: #313148) + + * Solved problem with bacula-sd's lib dependencies + -- bcopy was being improperly compiled (Closes: #309919) + + * PostgreSQL transition completed: build-depend on libpq-dev instead + + -- Jose Luis Tallon Wed, 9 Jun 2005 02:33:13 +0200 + +bacula (1.36.3-1) unstable; urgency=low + + * New upstream version; several bugfixes (Closes: #306176) + + * bacula-director-mysql: link against libmysql12, in order + to better support MySQL-4.1 installations which have not + been properly configured (Closes: #305669) + + * bacula-director-mysql: Additional fixes for the solution of + #303111 -- Add much more robustness to the autoconfig process + + * Included patch from bugs.bacula.org to have proper behaviour on backup + attempts when FD is unreachable(Closes: #304531) + + * Documentation: fix bscan and bls's manpage(rewritten). + + -- Jose Luis Tallon Wed, 11 May 2005 18:56:13 +0200 + +bacula (1.36.2-2) unstable; urgency=low + + * bacula-director-pgsql: postinst enhancements by Jamie Ffolliott + + * bacula-fd: proper behaviour on restart (Closes: #293570) + + * bacula-director-common: fix to template for make_catalog_backup + to force users to configure it properly (Closes: #299052) + + * bacula-common: remove dup'd btraceback (Closes: #301219) + + * Updated french translation (Closes: #303120) + + * bacula-director-mysql: + - succeed also when password contains spaces (Closes: #303111) + + -- Jose Luis Tallon Sun, 10 Apr 2005 19:21:25 +0200 + +bacula (1.36.2-1) unstable; urgency=low + + * New upstream version. Some fixes and enhancements (Closes: #297477) + + * bacula-director-pgsql: postinst fixed (Closes: #289838, #272191) + - connect to db, create tables, create user & grant privs + - use the configured root password + - support remote pgsql hosts + - patch the grant script to re-enable key indexes needed + - set create_tables to false after successful creation, and + reset variables configured by debconf if they result in an error + so they are re-entered on the next install attempt. + - fix the catalog upgrade process + - save .pgpass with user/pass, for secure use by bacula scripts, + package upgrades + - write bacula-dir.conf with correct bacula user/pass/db, and + correct the catalog backup command + - enable auth to the local bacula db in pg_hba.conf. Fixes a + director startup error. + * bacula-director-pgsql: config fixed + - configure remote pgsql hosts + - add reconfigure + - add drop db option in reconfigure, to re-create the bacula db + + * bacula-director-pgsql: postrm completed + - drop the db and user, & remove the .pgpass file + + * Many thanks to Jamie ffolliott , the author of + all of the PostgreSQL-related fixes. Long overdue, now in :-) + + * UpdateDB: fix typo in 'update_mysql_tables_7_to_8' (Closes: #288107) + + * bacula-director-mysql: fix typo in sql_cmds (Closes: #295823) + + * bacula-director-sqlite: fix db upgrade logic (Closes: #282416, #289209) + (lines 62 & 71 of the postinst script) + + * bacula-fd: new version apparently solves crashes (Closes: #277273) + + * bacula-common: move symlink to proper package (Closes: #285659) + + * Patch by Nicolas Boichat to fix "cancel" in wx-console (Closes: #292517) + + * Updated Dutch translation (Closes: #281559) + + -- Jose Luis Tallon Tue, 22 Mar 2005 13:31:34 +0100 + +bacula (1.36.1-1) unstable; urgency=low + + * New upstream version. Includes several minor improvements. + + * bacula-director-pgsql: really compile in support for PostgreSQL, after + latest breakages (Closes: #274997, #282788) + + * bacula-director-sqlite: revised upgrade logic. Should work now -- + feedback requested (Closes: #282416) + + * Fix once and for all, broken variable assignment(hopefully) + (Closes: 275284) + + * UpdateDB: robustness added to upstream scripts; should be able to better + detect broken setups. Integrated upstream. Thanks, Kern! + + -- Jose Luis Tallon Fri, 3 Dec 2004 18:22:05 +0100 + +bacula (1.36.0-1) unstable; urgency=low + + * New upstream version (Closes: #278605) + - hopefully solves problems where bacula-fd segfaulted + - database format changed to v8. Add upgrading v6 -> v7 -> v8 + capabilities to postinst scripts. (Closes: #271892) + - updatedb scripts patched, to avoid problem with PostgreSQL update. + + * bacula-director-common: added "reload" action (send SIGHUP) + + * bacula-fd: + - to avoid problems with broken setups, postinst scripts now use + '/bin/bash' instead of '/bin/sh' (Closes: #277127) + + * bacula-doc: added missing image (Closes: #279913) + + * UpdateDB: robustness added to upstream scripts; should be able to better + detect broken setups. + + * Really close bug due to typo in 'config' (Closes: #275284) + + * Fix a typo in package description, by (Closes: #277220) + + -- Jose Luis Tallon Wed, 17 Nov 2004 20:41:05 +0100 + +bacula (1.34.6-2) unstable; urgency=low + + * PgSQL "flavor": + - another little build improvement (Closes: #274997) + - typo in 'config', reported by PMHahn (Closes: #275284) + + -- Jose Luis Tallon Sat, 9 Oct 2004 16:04:05 +0200 + +bacula (1.34.6-2) unstable; urgency=high + + * Urgency high because the PostgreSQL "flavor" is not properly built. + It is linked against the "internal" database, which is not functional. + - The flag to enable PostgreSQL is called "HAVE_POSTGRESQL" instead of + HAVE_PGSQL -- Reported by E Zanardi + - Newer libpq needs -lssl -lcrypto... + + * bacula-director-mysql: fixed bogus update procedure + - succeed when catalog is already up-to-date (Closes: #271998) + - work when admin user has a non-blank password. + + * bacula-director-pgsql: fixed problem, where --regardless of specified + dbadmin-- root was used to connect to PgSQL (Closes: #272181) + + * bacula-sd: daemon leaves FD 0,1,2 open; Close them. + Backported change to lib/daemon.c from 1.35.3 (Closes: #272083) + + * bacula-director-common: + - link /usr/lib/bacula/smtp to bsmtp to preserve older configurations + (Closes: #272880) + - Integrated patch from Daniel Hermann, to ensure proper 'director' + termination in init.d script (Closes: #271579) + + * Integrated some more of PMHahn build enhancements. Thanks! + + * Properly building the static bscan "flavors" brings in + many build dependencies..ggrrrr + ( libpq depends on libkrb5, libk5crypto, libcom_err, libcrypt,... ) + + * Corrected some more typos + - Missing cleanup after building "flavored" binaries + - Missing 'btraceback' component + + * Package sponsored by Roberto Lumbreras + + -- Jose Luis Tallon Wed, 29 Sep 2004 16:04:05 +0200 + +bacula (1.34.6-1) unstable; urgency=high + + * New upstream version + * Applied patch to avoid deadlocks in bacula-dir (urgency -> high) + + * Several cleanups from both Philipp M Hahn & Filip Van Raemdonck. I can't + sufficiently express my gratitude here. Thanks!! + - fixed upgrade support + - build improvements + - several minor fixups/reorganization. I hope i got it right this time.. + + * Now bscan is a set of 3 statically-linked binaries, so that bacula-sd + does not pull all three client libs. This had been pending for a long time... + + * Some more minor improvements + - Logfiles are already in /var/log/bacula/ (Closes: #254245) + - Fixed perms on /var/log/bacula/log (Closes: #252410) + + * Bacula's GNOME console was already linked against v2 libs + since 1.34.5-1 (Closes: #264975) + + * MySQL flavor's postinst issues + - Wrong ordering of db_get / assignment (Closes: #270329) + - Split line changes meaning, other cleanups (Closes: #270197) + + * Updated debconf translations + - FR (Closes: #269958) + - JA, by Hideki Yamane (Closes: #270765) + + * Debconf-related fixes: + - Updated versioned dependency w/Debconf: v1.4.30 seems to work. + - Reset password's "seen" flag, so that it gets asked again + - Moved root password question back to 'config' grr... + + * Several adjustments to descriptions; minor additions to Suggests: + Matthew Hawkins has provided invaluable feedback here. Thanks!!! + + * The "fix all those typos" release. + - Shin-young Yune: -director-pgsql.postinst + - typos in -director-{my,pg}sql 's postinst scripts + - typos in dh_link commands to get manpages installed + + * Misc fixes + - /var/lib/bacula absent from -director-common (Closes: #270196) + - /usr/share/bacula-common/defconfig dir was empty! + - grant_pgsql_privileges missing from -director-common + - adjusted dependencies so that meta-packages can be upgraded + + * Package sponsored by Roberto Lumbreras + + -- Jose Luis Tallon Wed, 2 Sep 2004 12:36:51 +0200 + +bacula (1.34.5-1) unstable; urgency=high + + * Urgency high, because: + - TLS libraries from libc6-i686 no longer break bacula. (Closes: #250351) + + * New upstream version (Closes: #242725, #242735) + - Supports PostgreSQL for the catalog (Closes: #252244) + - Supports backup to disk. + - Supports backing up ACLs (enabled in this package) + - Several minor bugfixes since 1.34.2 + + * Completely redone, much more efficient, build system. Contributed by + Turbo Fredriksson and adapted by me: now only the + "flavor-dependent"(cats,dird,tools) are rebuilt, instead of the full + package. The scripts are also generated from 'rules' instead. + + * Several upstream enhancements/changes; + + Database schema changes: `postinst' will try to upgrade MySQL & SQLite + + Added PostgreSQL support for the catalog + + Added support for disk-based backups, etc (see Documentation) + + * Security related changes + - More secure password handling in configure/postinst (prompt during postinst, + delete password inmediately) -- breaks unattended installs unless one + uses debconf seeding, sorry; Warnings with lintian/linda, grrr... + - Added TCP wrappers(libwrap) support, after agreement with + Steve Smith (Closes: #245626) + - Ensured proper ownership and permissions for /var/lib/bacula, in order + for the PostgreSQL port to run securely. + + * Upgrade to compiling/linking the console against Gnome2; + renamed to bconsole-gnome to avoid namespace pollution (Closes: #246953) + + * Added wxWindows console version, bacula-wxconsole. + + * Moved bcopy,bls,bextract,bscan,btape manpages to sect 8 - lintian's advice. + - Fix minor error in bconsole's displayed usage (Closes: #254427) + + * Include bscan.sqlite, bscan.mysql, bscan.pgsql in bacula-sd, under /usr/lib + so that data recovery can be attempted with the supplied package in the event + that the catalog gets damaged; As politely asked by Christof Lehmann, and + later by Tilo Levante (Closes: #255059) + + * PostgreSQL port of the maintainer scripts, merged from contributions by + Alvaro Hernandez Tortosa and + Philipp Matthias Hahn . Many thanks!. + + * Merged enhancements/patches by PMHahn: PgSQL support, docs, + maint. scripts, debian/rules. I owe you one. + + * Added pt_BR translation, by (Closes: #254110) + + * Misc minor bugfixes: + - Restart breakage if not running (Closes: #252360) + - Fixed wrong paths in scripts: added "flavor-independent" catalog backup + script for bacula-sd (Closes: #250863) + - Depend on exim4|mail-transport-agent (Closes: #255340) + + * Package sponsored by Filip Van Raemdonck + + -- Jose Luis Tallon Sun, 29 Aug 2004 19:08:51 +0200 + +bacula (1.32f-5-3.1) unstable; urgency=high + + * NMU - acknowledged. + + * Changes from NMUer Filip Van Raedmdonck: + - Build database specific catalog backup script and install it in the + respective packages. This fixes tests and paths. (Closes: #250863) + - Build GNOME 2 console. (Closes: #264975) + Rename to gnome-bconsole to avoid namespace pollution. (Closes: #246953) + - Retitle the menu entry to avoid conflict with the textual one, point it to + the right config file location and run it with help of gksu. + - Add Brazilian Portuguese debconf template translation. (Closes: #254110) + - Depend on exim4 instead of exim. (Closes: #255340) + + -- Filip Van Raemdonck Mon, 11 Aug 2004 18:42:34 +0200 + +bacula (1.32f-5-3) unstable; urgency=low + + * Added *real* DE translation and some enhancements to the manual pages, + submitted by Philipp Hahn . Thanks! (Closes: #246676) + + * Fix permissions problem in -director-sqlite's postinst (Closes: #246955) + + * Package sponsored by Roberto Lumbreras + + -- Jose Luis Tallon Sun, 2 May 2004 23:58:06 +0100 + +bacula (1.32f-5-2) unstable; urgency=low + + * Create '/var/lib/bacula/bacula.db' in postinst (Closes: #243983) + + * Fix dependency goofup which made the 'bacula' meta-package uninstallable (Closes: #245259) + + * Changed architecture for 'bacula', 'bacula-client' and 'bacula-server' + meta-packages from 'any' to 'all'. Thanks to Linda ;) + + * Package sponsored by Roberto Lumbreras + + -- Jose Luis Tallon Wed, 21 Apr 2004 12:48:01 +0100 + +bacula (1.32f-5-1) unstable; urgency=low + + * Do not provide same file as conserver-client: moved /usr/bin/console + to /usr/bin/bconsole. (Closes: #240282) + + * Added menu entries for 'bacula-console' & 'bacula-console-gnome'. + + * Added French translation of Bacula's templates (Closes: #238190) + * Added Dutch translation of Bacula's templates (Closes: #241310) + Thanks, guys!!! + + * Since Katie does not understand tham i am myself ;) when comparing my + name in changelog[UTF-8] & control[7bit ascii], remove accentuated vowels. + + * Fix wrong substitutions in FD scripts: provide customized + {start,stop}mysql scripts for Debian (Closes: #238630) + + * Tweak dependencies, so that one can install the "everything" + meta-package(`bacula_x.yy-*.deb') with the MySQL version of the director + [depend on the 'bacula-director' virtual package] (Closes: #240005) + + * Package sponsored by Roberto Lumbreras + + -- Jose Luis Tallon Mon, 12 Apr 2004 22:03:19 +0200 + +bacula (1.32f-4-3) unstable; urgency=low + + * Fix typo in bacula-director-sqlite.postinst introduced in the previous + upload. Cosmetic enhancement when reinstalling/upgrading: avoid error + messages from SQLite. + + * Package sponsored by Roberto Lumbreras + + -- José Luis Tallón Sun, 14 Mar 2004 01:18:31 +0100 + +bacula (1.32f-4-2) unstable; urgency=low + + * Add missing logic to bacula-director-sqlite's postinst so that + configuration succeeds (Closes: #236126) + + * Fix compilation problem in Alpha platform (var.c file) + + * Package sponsored by Roberto Lumbreras + + -- José Luis Tallón Sat, 13 Mar 2004 21:39:33 +0100 + +bacula (1.32f-4-1) unstable; urgency=low + + * Do *not* depend on OpenSSL, since it is not really needed, as confirmed + by upstream. + + * Increase robustnes in bacula-director-mysql's postinst: succeed + also when MySQL runs at localhost and network connectivity is disabled. + + * Increase robustness & polish some rough edges in the 'config' script: + detect whether tables are created and act accordingly. + + * Make bacula-director-mysql *restart* bacula if there was a previous + version installed, do *stop* it on remove. + + * Increase robustness of bacula-director-common's initscript : killall -15 + if start-stop-daemon --stop did not succeed. + + * Fix packaging bug in bacula-console introduced with prev. release changes. + + * Fix several typos/leftovers from package polishing lately: mostly + forgetting to update vars to reflect changes in file location/name + + * New upstream version + + * RFP/ITP fullfilled (Closes: bug#188946) + + * Package sponsored by Roberto Lumbreras + + * Moved /usr/sbin/console to /usr/sbin/bacula-console, and provided a + wrapper script so that it gets called with appropiate arguments, as a + convenience to users. Added corresponding manpage (linked to console.1) + + * Previous changes, before first upload to the Debian archive: + + - bacula (1.32f-3-1) 28 Jan 2004 + + * Fixed a typo in bacula-director-mysql, which made postinst stomp on + existing configuration file. Noticed by Dick Middleton. + Robustness features in bacula-director-mysql.postinst. + + * Slightly better manpages. + + * Readied for first upload to Debian's archive. + + - bacula (1.32b-5) 24 Dec 2003 + + * Completely revamped the bacula-director-mysql postinst, based + upon suggestions/debugging by Frank Lenaerts. + Most work was done during the DebConf-ES, with assistance from + Alvaro Hernandez Tortosa + + * Added "chmod 755" for scripts in the patches subdir to rules, + fixing a sure FTBFS bug. Pointed by Frank Lenaerts + + + - bacula (1.32b-4) 23 Nov 2003 + + * Polished 'purge' behaviour[postrm scripts] -- do remove files. + + * Updated Build-Depends & debian/rules to better comply with policy, + following advice from Roberto Lumbreras + + * Strengthened permissions on /etc/bacula and FD/SD/Director config + files, to avoid giving away passwords to local users and thus + avoid attacks. Problem reported/solution suggested by Frank + Lenaerts. + + * Verified dependencies, loosened a bit so that backporting is easier. + Suggested by Frank Lenaerts + + - bacula (1.32b-3) 10 Nov 2003 + + * Fixed several little packaging bugs: + - Dir & SD ports were mistakenly exchanged. + - SD privileges were a little too low. + - Gnome-Console's config file was missing. + + - bacula (1.32b-2) 6 Nov 2003 + + * Polished Packaging a little bit + + * Fixed daemon stop bug, based on suggestions + by Matthieu Racine + + * bacula-common's postinst now adds needed entries to /etc/services + + - bacula (1.32b-1) 19 Oct 2003 + + * Initial Packaging: 12 binary packages built + + -- José Luis Tallón Wed, 18 Feb 2004 00:04:11 +0100 + --- bacula-5.0.3.orig/debian/bacula-sd-sqlite3.manpages +++ bacula-5.0.3/debian/bacula-sd-sqlite3.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-5.0.3.orig/debian/bacula-sd-mysql.lintian-overrides +++ bacula-5.0.3/debian/bacula-sd-mysql.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/bacula-fd.manpages +++ bacula-5.0.3/debian/bacula-fd.manpages @@ -0,0 +1 @@ +manpages/bacula-fd.8 --- bacula-5.0.3.orig/debian/rules +++ bacula-5.0.3/debian/rules @@ -0,0 +1,364 @@ +#!/usr/bin/make -f +# debian/rules for Bacula +# based upon dh_make template, copyright 1997 by Joey Hess. +# + +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +LDFLAGS = +CFLAGS = -g -Wall -D_FORTIFY_SOURCE=0 +INSTALL_PROGRAM = install + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +VARIANTS := sqlite3 pgsql mysql + +###################################################################### + +NAME=bacula + +# The variant that is used when we install non-variant-specific stuff. +# Only bother building extra consoles and stuff for this one. +DEFAULTVARIANT := sqlite3 +TEMPLATES = $(wildcard debian/*.templates) +BUILDDIR := $(CURDIR)/debian/tmp-build +INSTALLDIR := $(CURDIR)/debian/tmp-install +DEFAULTINSTALLDIR := $(INSTALLDIR)-$(DEFAULTVARIANT) +DBC := usr/share/dbconfig-common/data/ + +CONF_ALL = --enable-smartalloc \ + --with-python --with-tcp-wrappers \ + --with-openssl \ + --with-libiconv-prefix=/usr/include --with-readline=/usr/include/readline \ + --disable-conio \ + --with-libintl-prefix=/usr/include --with-x \ + --docdir=\$${prefix}/share/doc/bacula-common \ + --htmldir=\$${prefix}/share/doc/bacula-common/html \ + --libdir=\$${prefix}/lib/bacula \ + --enable-batch-insert \ + --disable-bwx-console \ + --without-qwt \ + --enable-ipv6 \ + --with-dir-passowrd=XXX_DIRPASSWORD_XXX \ + --with-fd-password=XXX_FDPASSWORD_XXX \ + --with-sd-password=XXX_SDPASSWORD_XXX \ + --with-mon-dir-password=XXX_MONDIRPASSWORD_XXX \ + --with-mon-fd-password=XXX_MONFDPASSWORD_XXX \ + --with-mon-sd-password=XXX_MONSDPASSWORD_XXX \ + --with-db-name=XXX_DBNAME_XXX \ + --with-db-user=XXX_DBUSER_XXX \ + --with-db-password=XXX_DBPASSWORD_XXX + + +CONF_common = --disable-gnome --disable-bwx-console --disable-tray-monitor \ + --disable-bat + +ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) +CONF_ALL += --disable-acl --disable-xattr +endif + +CONF_sqlite3 = --with-sqlite3 --without-mysql --without-postgresql --without-sqlite \ + --enable-tray-monitor --enable-bat +CONF_mysql = --with-mysql --without-sqlite --without-postgresql --without-sqlite3 $(CONF_common) +CONF_pgsql = --with-postgresql --without-sqlite --without-mysql --without-sqlite3 $(CONF_common) + +########################################################################### + +extract: extract-stamp +extract-stamp: $(foreach s,$(VARIANTS),extract-stamp-$(s)) +extract-stamp-%: + @echo " *** DEBIAN *** VARIANT $(*): EXTRACTING to $(BUILDDIR)-$(*)" + mkdir $(BUILDDIR)-$(*) + tar -cSf - --exclude=./.git --exclude=./debian . | tar -xSpf - -C $(BUILDDIR)-$(*) + touch $@ + +configure-stamp-%: extract-stamp-% + dh_testdir + @echo " *** DEBIAN *** CONFIGURING VARIANT $*" + cp /usr/share/misc/config.guess /usr/share/misc/config.sub \ + $(BUILDDIR)-$(*)/autoconf/ + cd $(BUILDDIR)-$(*) && \ + QMAKE=/usr/bin/qmake-qt4 ./configure --config-cache \ + --host=${DEB_HOST_GNU_TYPE} --build=${DEB_BUILD_GNU_TYPE} \ + --prefix=/usr \ + --with-archivedir=/nonexistant/path/to/file/archive/dir \ + --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts \ + --sharedstatedir=/var/lib/bacula \ + --localstatedir=/var/lib/bacula \ + --with-pid-dir=/var/run/bacula --with-smtp-host=localhost \ + --with-working-dir=/var/lib/bacula \ + --with-subsys-dir=/var/lock \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + $(CONF_ALL) $(CONF_$(*)) + touch $@ + +build-stamp-%: configure-stamp-% + dh_testdir + @echo " *** DEBIAN *** BUILDING VARIANT $*" + +# Main building process + $(MAKE) -C $(BUILDDIR)-$(*) + +# Grrr... client-only does not build needed db-independent 'bsmtp', 'stored' + $(MAKE) -C $(BUILDDIR)-$(*)/src/tools + $(MAKE) -C $(BUILDDIR)-$(*)/src/stored + + chmod 755 debian/additions/postinst-common + chmod 755 debian/additions/bconsole + + touch $@ + +build-arch: build-stamp +build-stamp: $(foreach v,$(VARIANTS),build-stamp-$(v)) + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: + dh_testdir + + touch $@ + + +build: patch build-arch build-indep + +############################################### +# Cleaning macro +############################################### + +clean: + +# [ ! -f patch-stamp ] || patch -R -p0 -i debian/patches/ubuntu_bacula-dir.conf.patch +# [ ! -f patch-stamp ] || patch -R -p0 -i debian/patches/ubuntu_address.patch + + $(RM) *stamp* + + dh_clean + + $(RM) -r debian/tmp* debian/bacula-doc \ + scripts/disk-changer + + ## delete ${FLAVORED_BINARIES} + $(RM) $(foreach pkg,$(VARIANTS), src/dird/bacula-dir.$(pkg) src/tools/dbcheck.$(pkg) src/stored/bscan.$(pkg) src/stored/bcopy.$(pkg)) + + #-$(MAKE) -C doc/latex clean + + $(RM) build-arch-flavor-stamp + + $(RM) patch-stamp + + +# Macro to extract a here document and put it in place +# args: 1 -- db name, 2 -- file to extract, 3 -- version +define ext-upgrade +debian/patches/extract_here < $(2) > debian/bacula-director-$(1)/$(DBC)/bacula-director-$(1)/upgrade/$(1)/$(3) +endef + +# Macro to process upgrades for all flavors +# args: 1 -- file to extract relative to updatedb/update_x_tables_ +# 2 -- version +define ext-upgrade-all +$(call ext-upgrade,pgsql,debian/tmp-build-pgsql/updatedb/update_postgresql_tables_$(1),$(2)) +$(call ext-upgrade,mysql,debian/tmp-build-mysql/updatedb/update_mysql_tables_$(1),$(2)) +$(call ext-upgrade,sqlite3,debian/tmp-build-sqlite3/updatedb/update_sqlite3_tables_$(1),$(2)) +endef + +# Macro to process latest version upgrades for all flavors +# args: 1 -- version +define ext-upgrade-latest +$(call ext-upgrade,pgsql,debian/tmp-build-pgsql/src/cats/update_postgresql_tables,$(1)) +$(call ext-upgrade,mysql,debian/tmp-build-mysql/src/cats/update_mysql_tables,$(1)) +$(call ext-upgrade,sqlite3,debian/tmp-build-sqlite3/src/cats/update_sqlite3_tables,$(1)) +endef + +# Macro to extract a here document for install and put it in place +# args: 1 -- db name, 2 -- file to extract +# We append so we can do the postgresql hack for datestyle +define ext-install +debian/patches/extract_here < $(2) > debian/bacula-director-$(1)/$(DBC)/bacula-director-$(1)/install/$(1) +endef + +install: build install-stamp +install-stamp: build-stamp $(foreach v,$(VARIANTS),install-stamp-$(v)) + dh_installdirs -a + dh_install -pbacula-director-common + + dh_install -pbacula-fd + dh_install -pbacula-console -pbacula-console-qt + cp $(DEFAULTINSTALLDIR)/usr/sbin/bconsole debian/bacula-console/usr/sbin/bacula-console + cp debian/tmp-build-$(DEFAULTVARIANT)/src/qt-console/.libs/bat debian/bacula-console-qt/usr/bin/bat + +######### dbconfig-common stuff +# $(call ext-upgrade-all,7_to_8,1.36.0) +# $(call ext-upgrade-all,8_to_9,1.38.0) +# $(call ext-upgrade-all,9_to_10,2.0.0) +# above lines commented out because they are pre-lenny and no longer needed + $(call ext-upgrade-all,10_to_11,3.0.0) + +# Sometimes the latest release doesn't have a copy of the data in updatedb. +# Manually install those. CHECK THIS FOR EACH NEW RELEASE, and move older +# versions to an ext-upgrade-all line as above. + + $(call ext-upgrade-latest,5.0.0) # 5.0.0 upgrade 11 to 12 + + +# PostgreSQL + echo "ALTER DATABASE _DBC_DBNAME_ SET datestyle TO 'ISO, YMD';" > \ + debian/bacula-director-pgsql/$(DBC)/bacula-director-pgsql/install-dbadmin/pgsql + + $(call ext-install,pgsql,debian/tmp-build-pgsql/src/cats/make_postgresql_tables) +# MySQL + $(call ext-install,mysql,debian/tmp-build-mysql/src/cats/make_mysql_tables) +# Remove USE bacula -- dbconfig-common selects the database for us + sed -i -e 's/USE \$${db_name};//' -e 's/USE bacula;//' debian/bacula-director-mysql/$(DBC)/bacula-director-mysql/install/mysql debian/bacula-director-mysql/$(DBC)/bacula-director-mysql/upgrade/mysql/* + +# Next two lines required for upgrade to 5.0.0. Remove that and +# debian/bacula-director-mysql.script.5.0.0 post-squeeze + cp debian/bacula-director-mysql.script.5.0.0 \ + debian/bacula-director-mysql/usr/share/dbconfig-common/scripts/bacula-director-mysql/upgrade/mysql/5.0.0 + chmod 0755 debian/bacula-director-mysql/usr/share/dbconfig-common/scripts/bacula-director-mysql/upgrade/mysql/5.0.0 + +# SQLite3 + $(call ext-install,sqlite3,debian/tmp-build-sqlite3/src/cats/make_sqlite3_tables) + + dh_link -pbacula-console usr/share/man/man8/bconsole.8.gz usr/share/man/man8/bacula-console.8.gz + + touch $@ + +install-stamp-%: build-stamp-% + @echo " *** DEBIAN *** INSTALLING VARIANT $*" + dh_installdirs -pbacula-director-$(*) + mkdir $(INSTALLDIR)-$(*) + $(MAKE) -C $(BUILDDIR)-$(*) install DESTDIR=$(INSTALLDIR)-$(*) + + dh_install -pbacula-director-$(*) + cp debian/make_catalog_backup_awk.$(*) debian/bacula-director-$(*)/etc/bacula/scripts/make_catalog_backup_awk + touch $@ + + +install-indep: build install-stamp + dh_testdir + dh_testroot + dh_install -i + dh_installdirs -i + dh_link -pbacula-director-common + dh_install -pbacula -pbacula-client -pbacula-server + #install doc/html-manual/* \ + # $(CURDIR)/debian/bacula-doc/usr/share/doc/bacula-doc/html-manual + #$(RM) $(CURDIR)/debian/bacula-doc/usr/share/doc/bacula-doc/html-manual/*.wml + +install-arch: build install-stamp + dh_install -a + dh_link -pbacula-common + for f in bconsole.conf bat.conf \ + bacula-sd.conf bacula-fd.conf tray-monitor.conf; do \ + debian/patches/fix_config \ + debian/tmp-install-sqlite3/etc/bacula/$$f \ + debian/bacula-common/usr/share/bacula-common/defconfig/$$f; \ + done + debian/patches/fix_director \ + debian/tmp-install-sqlite3/etc/bacula/bacula-dir.conf \ + debian/bacula-common/usr/share/bacula-common/defconfig/bacula-dir.conf + + cp $(CURDIR)/debian/common-functions $(CURDIR)/debian/bacula-common/usr/share/bacula-common + chmod 755 $(CURDIR)/debian/bacula-common/usr/lib/bacula/btraceback + +patch: patch-stamp +patch-stamp: + chmod 755 debian/patches/fix_config debian/patches/fix_director \ + debian/patches/extract_here + chmod 755 debian/additions/bconsole + +# patch -p0 -i debian/patches/ubuntu_bacula-dir.conf.patch +# patch -p0 -i debian/patches/ubuntu_address.patch + + touch patch-stamp + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install-indep patch + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i -X.cvsignore -X1 -X*.wml -X*.inc -X*.list -X*.pl -X*.apf -X*.book -Nbacula + dh_installexamples -i +# dh_installmenu -i + dh_installlogrotate -i +# dh_installinit -i + dh_installcron -i + dh_installman -i + dh_installinfo -i + dh_installchangelogs ChangeLog -i + rm -r debian/bacula/usr/share/doc/bacula + dh_link -i + dh_compress -i -X.pdf + dh_lintian -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + + +# Build architecture-dependent files here. +binary-arch: build install install-arch binary-arch-common + +binary-arch-common: DH_OPTIONS= +binary-arch-common: build install + dh_testdir -a + dh_testroot -a + dh_installdebconf -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -pbacula-console -pbacula-console-qt + dh_installlogrotate -a + dh_installinit -pbacula-sd -- defaults 90 10 + dh_installinit -pbacula-fd -- defaults 91 9 + dh_installinit --name=bacula-director -pbacula-director-common --no-start -- defaults 92 8 +# dh_installcron -a + dh_installman -a + dh_installinfo -a + dh_installchangelogs ChangeLog -a + dh_strip -a + dh_link -a + dh_lintian -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + +# Handle shlibs for the database packages specially so they get +# the deps on the correct libraries. + dh_shlibdeps -pbacula-sd-mysql -Lbacula-common-mysql + dh_shlibdeps -pbacula-director-mysql -Lbacula-common-mysql + dh_shlibdeps -pbacula-sd-sqlite3 -Lbacula-common-sqlite3 + dh_shlibdeps -pbacula-director-sqlite3 -Lbacula-common-sqlite3 + dh_shlibdeps -pbacula-sd-pgsql -Lbacula-common-pgsql + dh_shlibdeps -pbacula-director-pgsql -Lbacula-common-pgsql + +# Now build all other shlibdeps. + dh_shlibdeps -a -Nbacula-sd-mysql -Nbacula-director-mysql \ + -Nbacula-sd-sqlite3 -Nbacula-director-sqlite3 \ + -Nbacula-sd-pgsql -Nbacula-director-pgsql + + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install build-arch --- bacula-5.0.3.orig/debian/bacula-fd.lintian-overrides +++ bacula-5.0.3/debian/bacula-fd.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/bacula.links +++ bacula-5.0.3/debian/bacula.links @@ -0,0 +1 @@ +/usr/share/doc/bacula-common /usr/share/doc/bacula --- bacula-5.0.3.orig/debian/bacula-common.manpages +++ bacula-5.0.3/debian/bacula-common.manpages @@ -0,0 +1,5 @@ +manpages/bacula.8 +#debian/tmp-install-sqlite3/usr/share/man/man8/bacula.8.gz +manpages/bsmtp.1 +manpages/btraceback.8 + --- bacula-5.0.3.orig/debian/bacula-common.templates +++ bacula-5.0.3/debian/bacula-common.templates @@ -0,0 +1,23 @@ +Template: bacula/dir_passwd +Type: string +Description: Password for bacula-director + +Template: bacula/dir_monpasswd +Type: string +Description: Password for bacula-director monitor + +Template: bacula/sd_passwd +Type: string +Description: Password for bacula-sd + +Template: bacula/sd_monpasswd +Type: string +Description: Password for bacula-sd monitor + +Template: bacula/fd_passwd +Type: string +Description: Password for bacula-fd + +Template: bacula/fd_monpasswd +Type: string +Description: Password for bacula-fd monitor --- bacula-5.0.3.orig/debian/watch +++ bacula-5.0.3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/bacula/bacula-?_?([\w+\d+\.]+|\d+)\.tar\.gz debian uupdate --- bacula-5.0.3.orig/debian/bacula-common.dirs +++ bacula-5.0.3/debian/bacula-common.dirs @@ -0,0 +1,7 @@ +etc/bacula +var/lib/bacula +var/log/bacula +usr/share/bacula-common +usr/share/bacula-common/defconfig +usr/lib/bacula +usr/share/doc/bacula-common --- bacula-5.0.3.orig/debian/bacula-console-qt.manpages +++ bacula-5.0.3/debian/bacula-console-qt.manpages @@ -0,0 +1 @@ +manpages/bat.1 --- bacula-5.0.3.orig/debian/bacula-traymonitor.postrm +++ bacula-5.0.3/debian/bacula-traymonitor.postrm @@ -0,0 +1,46 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +CFGDIR=/etc/bacula +CFGFILE="tray-monitor.conf" + +case "$1" in + purge) + rm -f $CFGDIR/$CFGFILE.* + ;; + + remove) + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-common.postinst +++ bacula-5.0.3/debian/bacula-director-common.postinst @@ -0,0 +1,55 @@ +#! /bin/bash +# postinst script for bacula-director-common +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-dir.conf" + + +case "$1" in + configure) + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-console.manpages +++ bacula-5.0.3/debian/bacula-console.manpages @@ -0,0 +1 @@ +manpages/bconsole.8 --- bacula-5.0.3.orig/debian/bacula-sd.install +++ bacula-5.0.3/debian/bacula-sd.install @@ -0,0 +1,7 @@ +debian/tmp-install-sqlite3/usr/sbin/bacula-sd usr/sbin +debian/tmp-install-sqlite3/usr/sbin/bls usr/sbin +debian/tmp-install-sqlite3/usr/sbin/bextract usr/sbin +debian/tmp-install-sqlite3/etc/bacula/scripts/mtx-changer etc/bacula/scripts +debian/tmp-install-sqlite3/etc/bacula/scripts/mtx-changer.conf etc/bacula/scripts +debian/tmp-install-sqlite3/etc/bacula/scripts/disk-changer etc/bacula/scripts +debian/tmp-install-sqlite3/etc/bacula/scripts/dvd-handler etc/bacula/scripts --- bacula-5.0.3.orig/debian/bacula-traymonitor.postinst +++ bacula-5.0.3/debian/bacula-traymonitor.postinst @@ -0,0 +1,64 @@ +#! /bin/sh +# postinst script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="tray-monitor.conf" + +CONSOLE=/usr/sbin/bacula-console + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e "s~@hostname@~localhost~" < $SRCDIR/$CONFIG > $TARGET + chown root:bacula $TARGET + chmod 640 $TARGET + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.prerm +++ bacula-5.0.3/debian/bacula-director-sqlite3.prerm @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|deconfigure) + /usr/sbin/invoke-rc.d bacula-director stop + ;; + upgrade) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- bacula-5.0.3.orig/debian/bacula-console-qt.postinst +++ bacula-5.0.3/debian/bacula-console-qt.postinst @@ -0,0 +1,61 @@ +#! /bin/sh +# postinst script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CFGFILE="bat.conf" + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CFGFILE ]; then + TARGET=$DSTDIR/$CFGFILE + else + TARGET=$DSTDIR/$CFGFILE.dist + fi + + # bconsole & wx-console use the same config file ;) + sed -e "s~@hostname@~localhost~" < $SRCDIR/$CFGFILE > $TARGET + + chown root:bacula $TARGET + chmod 640 $TARGET + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-common.bacula-director.init +++ bacula-5.0.3/debian/bacula-director-common.bacula-director.init @@ -0,0 +1,138 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bacula-director +# Required-Start: $remote_fs $syslog +# Should-Start: bacula-fd +# Required-Stop: $remote_fs $syslog +# Should-Stop: bacula-fd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# bacula-director SysV init script for Bacula-Director. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux by Ian Murdock . +# Customized for Bacula by Jose Luis Tallon +# +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/bacula-dir +NAME="bacula-dir" +PORT=9101 +DESC="Bacula Director" +ARGS="-c /etc/bacula/bacula-dir.conf -u bacula -g bacula" + +test -f $DAEMON || exit 0 + +set -e + +if [ -n "`getent services bacula-dir`" ]; then + PORT=`getent services bacula-dir | awk '{ gsub("/tcp","",$2); print $2; }'` +fi + + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +. /lib/lsb/init-functions +. /usr/share/bacula-common/common-functions +create_var_run_dir + +get_pid() +{ + if [ -r "$1" ]; then pid="`cat $1`"; + else pid=""; fi +} + +check_pid() +{ + /bin/ps -p $1 >/dev/null 2>&1; return $? +} + +kill_pid() +{ + kill -$1 $2 2>/dev/null || true +} + +# do_start() +do_start() +{ + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS +} + +# do_stop() +do_stop() +{ + get_pid $PIDFILE ; + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + # make sure daemon is stopped/killed + if [ -n "$pid" ]; then + if check_pid $pid ; then + # TERM first, then KILL if not dead + kill_pid TERM $pid + sleep 1 + if check_pid $pid ; then + sleep 1 # some time to die peacefully... + if check_pid $pid ; then + sleep 3 + if check_pid $pid ; then kill_pid KILL $pid ; fi + fi + fi + fi + fi +} + + +######################################################################## + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + log_failure_msg "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + create_var_run_dir + log_daemon_msg "Starting $DESC..." + if do_start ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + stop) + log_daemon_msg "Stopping $DESC..." + if do_stop ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + reload) + log_daemon_msg "Reloading $DESC..." + get_pid $PIDFILE + if [ -n "$pid" ]; then kill_pid HUP $pid ; + else do_start ; + fi + ;; + + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + + status) + status_of_proc -p $PIDFILE $DAEMON $NAME + ;; + + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-5.0.3.orig/debian/bacula-sd.manpages +++ bacula-5.0.3/debian/bacula-sd.manpages @@ -0,0 +1,4 @@ +manpages/bacula-sd.8 +manpages/btape.8 +manpages/bls.8 +manpages/bextract.8 --- bacula-5.0.3.orig/debian/bacula-console.lintian-overrides +++ bacula-5.0.3/debian/bacula-console.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/bacula-fd.init +++ bacula-5.0.3/debian/bacula-fd.init @@ -0,0 +1,92 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bacula-fd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: bacula-sd +# Should-Stop: bacula-sd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# +# bacula-fd SysV init script for Bacula-FD. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux by Ian Murdock . +# Customized for Bacula by Jose Luis Tallon +# + +. /lib/lsb/init-functions + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/bacula-fd +NAME="bacula-fd" +PORT=9102 +DESC="Bacula File daemon" +ARGS="-c /etc/bacula/bacula-fd.conf" + +test -f $DAEMON || exit 0 + +set -e + +if [ -n "`getent services bacula-fd`" ]; then + PORT=`getent services bacula-fd | awk '{ gsub("/tcp","",$2); print $2; }'` +fi + +. /lib/lsb/init-functions +. /usr/share/bacula-common/common-functions +create_var_run_dir + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +do_start() +{ + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS +} + +do_stop() +{ + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON +} + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + log_failure_msg "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + + log_daemon_msg "Starting $DESC..." + if do_start ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC..." + if do_stop ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + status) + status_of_proc -p $PIDFILE $DAEMON $NAME + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-5.0.3.orig/debian/bacula-sd-sqlite3.install +++ bacula-5.0.3/debian/bacula-sd-sqlite3.install @@ -0,0 +1,3 @@ +debian/tmp-install-sqlite3/usr/sbin/bscan usr/bin +debian/tmp-install-sqlite3/usr/sbin/bcopy usr/bin +debian/tmp-install-sqlite3/usr/sbin/btape usr/sbin --- bacula-5.0.3.orig/debian/bacula-console-qt.dirs +++ bacula-5.0.3/debian/bacula-console-qt.dirs @@ -0,0 +1,4 @@ +usr/bin +etc/bacula +usr/share/applications +usr/share/pixmaps --- bacula-5.0.3.orig/debian/bacula-sd.postrm +++ bacula-5.0.3/debian/bacula-sd.postrm @@ -0,0 +1,41 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + rm -f /etc/bacula/bacula-sd.* + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.postinst +++ bacula-5.0.3/debian/bacula-director-sqlite3.postinst @@ -0,0 +1,142 @@ +#! /bin/bash +# postinst script for bacula-director-sqlite3 +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +dbc_first_version=3.0.3-3 +dbc_dbfile_owner=bacula:bacula +# set in config, must not be set here: dbc_dbuser=bacula +# set in config, must not be set here: dbc_dbname=bacula.db +# set in config, must not be set here: dbc_basepath=/var/lib/bacula + +# After squeeze, restore this test. This was needed for sqlite2 migration. +#if [ -n "$2" ]; then + /etc/init.d/bacula-director stop || true + sleep 1 +#fi + + +#### REMOVE THIS CODE POST-SQUEEZE +CONVERTED_SQLITE2=NO + +if [ "$1" = "configure" ] ; then + DB=/var/lib/bacula/bacula.db + echo -n " *** Checking type of existing DB at $DB: " + if [ -f "$DB" ]; then + if file "$DB" | grep -q "SQLite 2"; then + echo "SQLite v2" + echo " *** Converting SQLite2 database to SQLite3 format." + echo " *** This may take awhile. Please be patient..." + echo "Converting $DB to temporary location $DB.sqlite3" + sqlite "$DB" .dump \ + | sed 's/ INTEGER UNSIGNED AUTOINCREMENT,/ INTEGER,/' \ + | sqlite3 "$DB.sqlite3" + echo "SQLite conversion complete. Cleaning up:" + echo -n "Renaming: " + mv -v "$DB" "$DB.old-sqlite2" + echo -n "Renaming: " + mv -v "$DB.sqlite3" "$DB" + chown bacula:bacula "$DB" + echo " *** Conversion complete. Your sqlite v2 database was left in" + echo " *** $DB.old-sqlite2. You may delete it at your leisure." + echo " *** Continuing with upgrade process..." + CONVERTED_SQLITE2=YES + else + echo "SQLite v3" + fi + else + echo "None" + echo " *** Will create new database at this location." + fi +fi + +#### END OF CODE TO REMOVE POST-SQUEEZE + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.sqlite3 ]; then + . /usr/share/dbconfig-common/dpkg/postinst.sqlite3 + #### POST-SQUEEZE, REMOVE THE FOLLOWING LINES AND SIMPLY USE: + # dbc_go bacula-director-sqlite3 $@ + if [ "$1" = "configure" -a "$CONVERTED_SQLITE2" = "YES" ]; then + # If we converted from Sqlite v2 in this run, then we have to + # pass a fake prior version number to dbc_go. Otherwise, it + # would think that this is a new sqlite3 install and not upgrade + # the database. + dbc_go bacula-director-sqlite3 configure 2.4.4-1 + else + dbc_go bacula-director-sqlite3 $@ + fi +fi + +LOGDIR="/var/log/bacula" +POSTINST_COMMON="/usr/share/bacula-director/postinst-common" +DEFCONFIG="/usr/share/bacula-common/defconfig" +CFGFILE="/etc/bacula/bacula-dir.conf" + +. /usr/share/bacula-common/common-functions +readOrCreatePasswords + +case "$1" in +configure) + + echo -n "Processing configuration..." + . /etc/dbconfig-common/bacula-director-sqlite3.conf + TARGET=$CFGFILE.dpkg-tmp + # FIXME: should this tweak make_catalog_backup like bacula-director-pgsql.postinst does? + BACULADBNAME=`echo "$dbc_dbname" | sed 's/.db$//'` + + sed -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \ + -e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \ + -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \ + -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \ + -e "s~/XXX_DBNAME_XXX~/$BACULADBNAME~" \ + -e "s~\"XXX_DBNAME_XXX~\"$BACULADBNAME~" \ + -e s~XXX_DBUSER_XXX~~ \ + -e s~XXX_DBPASSWORD_XXX~~ \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + /bin/bash $POSTINST_COMMON + + echo "Ok." + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Do start daemon +db_stop + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/compat +++ bacula-5.0.3/debian/compat @@ -0,0 +1 @@ +6 --- bacula-5.0.3.orig/debian/bacula-common.install +++ bacula-5.0.3/debian/bacula-common.install @@ -0,0 +1,8 @@ +debian/tmp-install-sqlite3/usr/sbin/btraceback usr/lib/bacula +debian/tmp-install-sqlite3/etc/bacula/scripts/btraceback.gdb etc/bacula/scripts +debian/tmp-install-sqlite3/usr/lib/bacula/libbaccfg* usr/lib/bacula +debian/tmp-install-sqlite3/usr/lib/bacula/libbacfind* usr/lib/bacula +debian/tmp-install-sqlite3/usr/lib/bacula/libbac.* usr/lib/bacula +debian/tmp-install-sqlite3/usr/lib/bacula/libbac-* usr/lib/bacula +debian/tmp-install-sqlite3/usr/lib/bacula/libbacpy* usr/lib/bacula +debian/tmp-install-sqlite3/usr/sbin/bsmtp usr/lib/bacula --- bacula-5.0.3.orig/debian/bacula-director-mysql.install +++ bacula-5.0.3/debian/bacula-director-mysql.install @@ -0,0 +1,6 @@ +debian/tmp-install-mysql/etc/bacula/scripts/make_mysql_tables usr/share/bacula-director +debian/tmp-install-mysql/etc/bacula/scripts/update_mysql* usr/share/bacula-director +debian/tmp-install-mysql/etc/bacula/scripts/*catalog_backup etc/bacula/scripts +debian/tmp-install-mysql/etc/bacula/scripts/*catalog_backup.pl etc/bacula/scripts +debian/tmp-install-mysql/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-mysql/usr/sbin/dbcheck usr/sbin --- bacula-5.0.3.orig/debian/bacula-common.links +++ bacula-5.0.3/debian/bacula-common.links @@ -0,0 +1,4 @@ +usr/lib/bacula/btraceback usr/sbin/btraceback +var/log/bacula/log var/lib/bacula/log +usr/lib/bacula/bsmtp usr/lib/bacula/smtp +usr/lib/bacula/bsmtp usr/sbin/bsmtp --- bacula-5.0.3.orig/debian/bacula-director-pgsql.prerm +++ bacula-5.0.3/debian/bacula-director-pgsql.prerm @@ -0,0 +1,48 @@ +#! /bin/sh +# prerm script for bacula +# +# see: dh_installdeb(1) + +set -e + +. /usr/share/debconf/confmodule + +dbc_first_version=1.38.9-2 +dbc_dbuser=bacula +dbc_dbname=bacula + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/prerm.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/prerm.pgsql + dbc_go bacula-director-pgsql $@ +fi + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|deconfigure) + /usr/sbin/invoke-rc.d bacula-director stop + ;; + upgrade) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/README.Debian +++ bacula-5.0.3/debian/README.Debian @@ -0,0 +1,148 @@ +Bacula, network-based backup, recovery & verification system +http://www.bacula.org +=============================================================================== + +The 'bacula-common' package provides some of the common infrastructure +for Bacula. You can find Bacula READMEs and other documentation files +there. + +BASIC INFORMATION +----------------- + +To use bacula you must install one of the flavors of director, +depending on your preferred database, onto a server. + +You must also install bacula-sd on the machine where you will be +storing your backed-up data. And you'll need bacula-fd on any machine +that you want to back up. + +The installation will run the necessary daemons automatically, but to +get any backups working you must customize the relevant configuration +files in /etc/bacula as described in the bacula manual. Once you have +edited the files you should issue an appropriate /etc/init.d/bacula-xx +force-reload. + +NETWORK ENABLING +---------------- + +By default, Debian's Bacula packages install config files in which the +servers listen only on localhost by default. If you want to be able +to do backups over the network, you'll need to find the lines in +bacula-dir.conf, bacula-sd.conf, and bacula-fd.conf that reference +127.0.0.1 and remove them. + +PACKAGES +======== + +The virtual package 'bacula-director' is provided by + + - bacula-director-sqlite3 + - bacula-director-mysql + - bacula-director-pgsql + +These binaries have been compiled against the database indicated +in the package's name. + +CONSOLE +======= + +The package bacula-console provides the administration console for +Bacula, so that users can contact the director. + + There is, in fact, a wrapper +script to ease usage by users: /usr/bin/bconsole + +The BAT graphical admin console is contained in the +bacula-console-qt package. + +There are no wrappers for bacula-console-qt since it +will likely be run from the corresponding +launchers with appropriate '-c /etc/bacula/.conf' arguments. +The convenient '.menu' files are provided, too. + +USERS & SECURITY +================ + +Make sure you customize the passwords in the files in /etc/bacula. + +The installation will create a bacula user on the system, and the +daemons and RunBefore/RunAfter jobs will run as that user. However, +the file director must run as root, as will your ClientRunBefore/After +jobs. Installation of a director will ask you for a database user to +use. + +You can run Bacula consoles as any user, but the user you use will +need to be able to read the console config files. These files are, by +default, under /etc/bacula. You'll need to specify the config file +with -c for any of the GUI consoles. + +PERFORMANCE NOTES +================= + +This was announced on Bacula's website with the release of Bacula 5.0.1: + + Some of you have encountered performance problems with your + database (mainly with MySQL) with Bacula version 5.0.0. This is + mainly because we've changed the SQL query used for restore, + accurate jobs and base jobs. We have extensively tested this + change, and though it should be a little bit slower than the previous + versions, on a well configured database it should run + extremely well. + + We strongly recommend to avoid the temptation to add new indexes. + In general, these will cause very significant performance + problems in other areas. A better approch is to carefully check + that all your MySQL memory configuation parameters are are + suitable for the size of your installation. If you backup + millions of files, you need to adapt the database memory + configuration parameters concerning sorting, joining and global + memory. By default, sort and join parameters are very small + (sometimes 8Kb), and having sufficient memory specified by those + parameters is extremely important to run fast. + + If adjusting your MySQL memory configuration values does not + solve your problem, you can also consider switching to + PostgreSQL, which performs much better with Bacula on big + installations (many millions of files per Job). However for + large installations, you will also need to adjust the default + PostgreSQL memory configuration parameters. + +from http://www.bacula.org/en/?page=news + +POSTGRESQL NOTES +================ + +The PostgreSQL Bacula packages are designed to work with PostgreSQL 8.4. +If you are using an older version, you may need to edit some scripts +in /etc/bacula/scripts so that it uses the correct version of the +PostgreSQL binaries. As it is possible to have multiple PostgreSQL +versions on a single Debian system, we cannot handle this in a completely +automated way. + +UPGRADES +======== + +Debian packages will, unless you have asked them not to, attempt to +automatically upgrade your catalog during a major Bacula upgrade. + +However, please be sure to examine /usr/share/doc/bacula-common/ReleaseNotes +for potential changes in the configuration files. + +CATALOG BACKUPS +=============== + +Please see the comments in the bacula-dir.conf file regarding the +make_catalog_backup script for information on tailoring it for your own +particular environment. + +FURTHER READING +=============== + +See the Bacula documentation on the upstream author's website, +http://www.bacula.org. + +-- John Goerzen + +based on a file by Jose Luis Tallon + + -- John Goerzen , Mon, 1 Mar 2010 16:03:29 -0600 --- bacula-5.0.3.orig/debian/bacula-fd.postinst +++ bacula-5.0.3/debian/bacula-fd.postinst @@ -0,0 +1,71 @@ +#! /bin/bash +# postinst script for bacula-fd +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-fd.conf" + +. /usr/share/bacula-common/common-functions +readOrCreatePasswords + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e s~@hostname@~`hostname`~ \ + -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \ + -e s~XXX_MONFDPASSWORD_XXX~$FDMPASSWD~ < $SRCDIR/$CONFIG > $TARGET + + + # Harden permissions, so that passwords can not be looked at + chown root:root $TARGET + chmod 640 $TARGET + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/make_catalog_backup_awk.sqlite3 +++ bacula-5.0.3/debian/make_catalog_backup_awk.sqlite3 @@ -0,0 +1,3 @@ +#!/usr/bin/gawk -f + +system("echo '.dump' | /usr/bin/sqlite3 /var/lib/bacula/bacula.db > /var/lib/bacula/bacula.sql") --- bacula-5.0.3.orig/debian/bacula-common.postinst +++ bacula-5.0.3/debian/bacula-common.postinst @@ -0,0 +1,77 @@ +#! /bin/sh +# postinst script for bacula-director-common +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +DBCHECK=`db_get bacula/dir_passwd` + +if [ "$DBCHECK" = "" ]; then + DIRPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` + DIRMPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` + SDPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` + SDMPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` + FDPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` + FDMPASSWD=`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33` +fi + + +case "$1" in + configure) + chown bacula:bacula /var/lib/bacula + chmod 700 /var/lib/bacula + chown bacula:adm /var/log/bacula + chmod 750 /var/log/bacula + db_set bacula/dir_passwd "$DIRPASSWD" + db_set bacula/dir_monpasswd "$DIRMPASSWD" + db_set bacula/sd_passwd "$SDPASSWD" + db_set bacula/sd_monpasswd "$SDMPASSWD" + db_set bacula/fd_passwd "$FDPASSWD" + db_set bacula/fd_monpasswd "$FDMPASSWD" + + . /usr/share/bacula-common/common-functions + readOrCreatePasswords # create our common passwords if needed + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/bacula-director-mysql.dirs +++ bacula-5.0.3/debian/bacula-director-mysql.dirs @@ -0,0 +1,6 @@ +usr/sbin +usr/lib/bacula +etc/bacula +usr/share/dbconfig-common/data/bacula-director-mysql/upgrade/mysql +usr/share/dbconfig-common/scripts/bacula-director-mysql/upgrade/mysql +usr/share/dbconfig-common/data/bacula-director-mysql/install --- bacula-5.0.3.orig/debian/bacula-fd.postrm +++ bacula-5.0.3/debian/bacula-fd.postrm @@ -0,0 +1,42 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + rm -f /etc/bacula/bacula-fd.* + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-traymonitor.dirs +++ bacula-5.0.3/debian/bacula-traymonitor.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/pixmaps +usr/share/applications --- bacula-5.0.3.orig/debian/gbp.conf +++ bacula-5.0.3/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True --- bacula-5.0.3.orig/debian/bacula-console-qt.menu +++ bacula-5.0.3/debian/bacula-console-qt.menu @@ -0,0 +1,2 @@ +?package(bat):needs="X11" section="Apps/System" \ + title="Bacula qtConsole" command="/usr/bin/bat -c /etc/bacula/bat.conf" --- bacula-5.0.3.orig/debian/bacula-sd-pgsql.manpages +++ bacula-5.0.3/debian/bacula-sd-pgsql.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-5.0.3.orig/debian/bacula-common-pgsql.install +++ bacula-5.0.3/debian/bacula-common-pgsql.install @@ -0,0 +1 @@ +debian/tmp-install-pgsql/usr/lib/bacula/libbacsql* usr/lib/bacula --- bacula-5.0.3.orig/debian/bacula-director-pgsql.templates +++ bacula-5.0.3/debian/bacula-director-pgsql.templates @@ -0,0 +1,52 @@ +Template: bacula/db_host +Type: string +Default: localhost +_Description: Database server hostname: + Please enter the hostname of the database server host. + +Template: bacula/dba_name +Type: string +Default: root +_Description: Database administrator username: + Please enter the PostgreSQL administrator username, needed for + the database creation. + +Template: bacula/dba_password +Type: password +_Description: Database administrator password: + Please enter the PostgreSQL administrator password, needed for + the database creation. + +Template: bacula/dba_confirm +Type: password +_Description: DBA password confirmation: + Please confirm the password in order to continue the process. + +Template: bacula/mismatch +Type: note +_Description: Password mismatch + The password and its confirmation do not match. Please + reenter the passwords. + +Template: bacula/dbu_name +Type: string +Default: bacula +_Description: Database owner username: + Please enter the username of the Bacula database owner. + +Template: bacula/dbu_password +Type: password +_Description: Database owner password: + Please enter the password of the Bacula database owner. + +Template: bacula/dbu_confirm +Type: password +_Description: Database user password confirmation: + Please confirm the password of the Bacula database owner. + +Template: bacula/notconfigured +Type: note +_Description: Warning - Bacula is not configured + Please note that you have not completed the Bacula configuration. For + completing it, please use "dpkg-reconfigure bacula-director-pgsql" later. + --- bacula-5.0.3.orig/debian/bacula-common.docs +++ bacula-5.0.3/debian/bacula-common.docs @@ -0,0 +1,9 @@ +README +ReleaseNotes +kernstodo +ABOUT-NLS +projects +AUTHORS +SUPPORT +technotes +debian/README.Debian --- bacula-5.0.3.orig/debian/control +++ bacula-5.0.3/debian/control @@ -0,0 +1,332 @@ +Source: bacula +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Debian Bacula packaging Group +Uploaders: Jan Hauke Rahm +Build-Depends: autotools-dev, debhelper (>= 6.0.7~), po-debconf (>= 0.8.2), + zlib1g-dev, libreadline-dev, + libsqlite0-dev, libsqlite3-dev, libmysqlclient-dev, libpq-dev (>= 8.4), + postgresql-server-dev-8.4, + libwrap0-dev, python-dev, libgtk2.0-dev (>= 2.10), + libgnome2-dev, libacl1-dev, libkrb5-dev, libgnomeui-dev, + libx11-dev, mtx, bc, libxt-dev, dpkg-dev (>= 1.13.19), libqt4-dev, + libssl-dev, libqwt5-qt4-dev +Build-Conflicts: python2.2-dev, python2.3, python2.4, qt3-dev-tools +Standards-Version: 3.8.3 +Vcs-Browser: http://git.debian.org/?p=users/jgoerzen/bacula +Vcs-Git: git://git.debian.org/git/users/jgoerzen/bacula +Homepage: http://www.bacula.org/ + +Package: bacula +Architecture: all +Depends: bacula-server, bacula-client, bacula-common, ${misc:Depends} +Suggests: bacula-doc +Description: network backup, recovery and verification - meta-package + Bacula is a set of programs to manage backup, recovery and verification + of computer data across a network of computers of different kinds. + . + It is efficient and relatively easy to use, while offering many advanced + storage management features that make it easy to find and recover lost or + damaged files. Due to its modular design, Bacula is scalable from small + single computer systems to networks of hundreds of machines. + . + This meta-package installs the entire suite of Bacula applications: job + scheduling, storage control, node connector, and administrative console. + +Package: bacula-common +Replaces: bacula-director-common +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, adduser (>= 3.0) +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: bacula-doc +Description: network backup, recovery and verification - common support files + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This package provides files that are useful for other Bacula packages. + +Package: bacula-common-sqlite3 +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, adduser (>= 3.0) +Depends: bacula-common, ${shlibs:Depends}, ${misc:Depends} +Suggests: bacula-doc +Conflicts: bacula-common-pgsql, bacula-common-mysql +Description: network backup, recovery and verification - SQLite v3 common files + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This package provides files that are useful for other Bacula packages + for the SQLite v3 database. + +Package: bacula-common-pgsql +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, adduser (>= 3.0) +Depends: bacula-common, ${shlibs:Depends}, ${misc:Depends} +Suggests: bacula-doc +Conflicts: bacula-common-sqlite3, bacula-common-mysql +Description: network backup, recovery and verification - PostgreSQL common files + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This package provides files that are useful for other Bacula packages + for the PostgreSQL database. + +Package: bacula-common-mysql +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, adduser (>= 3.0) +Depends: bacula-common, ${shlibs:Depends}, ${misc:Depends} +Suggests: bacula-doc +Conflicts: bacula-common-sqlite3, bacula-common-pgsql +Description: network backup, recovery and verification - MySQL common files + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This package provides files that are useful for other Bacula packages + for the MySQL database. + +Package: bacula-director-common +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, bacula-common (= ${binary:Version}) +Depends: ${shlibs:Depends}, adduser, mailx, lsb-base (>= 3.2-13), ${misc:Depends} +Description: network backup, recovery and verification - Director common files + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The Bacula Director service supervises all the backup, restore, verify and + archive operations. It can run as a daemon or as a foreground service which + administrators can use to schedule backups and recover files. + . + This package provides common files for the Bacula Director daemon. + +Package: bacula-director-sqlite +Depends: bacula-director-sqlite3 (>= ${binary:Version}), sqlite3, sqlite, ${shlibs:Depends}, ${misc:Depends} +Architecture: all +Description: network backup, recovery and verification - SQLite 2 director transition + This package exists to upload pre-3.0 Bacula SQLite v2 installations to + SQLite v3 with Bacula 3.0. The SQLite v2 support has been deprecated + in Bacula 3.0, and this package will get you migrated to Bacula 3.0. + . + Once you are successfully migrated, you can safely delete this package. + . + This package does nothing for people that aren't upgrading. + +Package: bacula-director-sqlite3 +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Architecture: any +Depends: bacula-director-common (= ${binary:Version}), sqlite3, ${shlibs:Depends}, bacula-common-sqlite3 (>= ${binary:Version}), file, dbconfig-common (>= 1.8.19), ${misc:Depends} +# Can remove dep on file once sqlite2 migration code is dropped from postinst +# after squeeze (that migration code is for lenny -> squeeze) +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Description: network backup, recovery and verification - SQLite 3 storage for Director + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The Bacula Director service supervises all the backup, restore, verify and + archive operations. It can run as a daemon or as a foreground service which + administrators can use to schedule backups and recover files. + . + This version stores Bacula's catalog in an SQLite 3 database, and thus is + suited for smaller installations. + +Package: bacula-director-mysql +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Depends: bacula-director-common (= ${binary:Version}), dbconfig-common (>= 1.8.19), mysql-client, ${shlibs:Depends}, bacula-common-mysql (>= ${binary:Version}), ${misc:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Recommends: mysql-server (>= 4.0) +Description: network backup, recovery and verification - MySQL storage for Director + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The Bacula Director service supervises all the backup, restore, verify and + archive operations. It can run as a daemon or as a foreground service which + administrators can use to schedule backups and recover files. + . + This version stores Bacula's catalog in a MySQL server, and thus is suited + for large installations. + +Package: bacula-director-pgsql +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Architecture: any +Depends: bacula-director-common (= ${binary:Version}), dbconfig-common (>= 1.8.19), postgresql-client (>= 7.4), ${shlibs:Depends}, bacula-common-pgsql (>= ${binary:Version}), ${misc:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Recommends: postgresql-8.4 | postgresql (>= 7.4) +Suggests: postgresql-contrib, postgresql-doc +Description: network backup, recovery and verification - PostgreSQL storage for Director + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The Bacula Director service supervises all the backup, restore, verify and + archive operations. It can run as a daemon or as a foreground service which + administrators can use to schedule backups and recover files. + . + This version stores Bacula's catalog in a PostgreSQL server, and thus is + suited for large installations. + +Package: bacula-client +Architecture: all +Depends: bacula-console (>= ${source:Version}), bacula-fd (>= ${source:Version}), ${misc:Depends} +Suggests: bacula-traymonitor +Description: network backup, recovery and verification - client meta-package + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The Bacula Director service supervises all the backup, restore, verify and + archive operations. It can run as a daemon or as a foreground service which + administrators can use to schedule backups and recover files. + . + The package is a meta-package for client installations (file daemon and + console only). + +Package: bacula-fd +Architecture: any +Depends: bacula-common (= ${binary:Version}), ${shlibs:Depends}, lsb-base (>= 3.2-13), ${misc:Depends} +Suggests: bacula-traymonitor +Description: network backup, recovery and verification - file daemon + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The file daemon has to be installed on the machine to be backed up. It is + responsible for providing the file attributes and data when requested by + the Director, and also for the file system-dependent part of restoration. + +Package: bacula-server +Architecture: all +Depends: bacula-director-mysql (>= ${source:Version})|bacula-director, bacula-sd (>= ${source:Version}), bacula-sd-mysql (>= ${source:Version})|bacula-sd-tools, ${misc:Depends} +Recommends: bacula-fd +Description: network backup, recovery and verification - server meta-package + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This meta-package provides a standard server install, consisting of the + director and storage daemons. + +Package: bacula-sd +Architecture: any +Pre-Depends: bacula-common (= ${binary:Version}) +Depends: ${shlibs:Depends}, mtx, python, lsb-base (>= 3.2-13), ${misc:Depends} +Recommends: bacula-sd-tools +Suggests: dds2tar, scsitools, sg3-utils, mt-st +Description: network backup, recovery and verification - storage daemon + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The storage daemon performs the storage and recovery of the file + attributes and data to the physical media; in other words, it is + responsible for reading and writing the backups. + . + It runs on the machine which has access to the backup device(s) - usually + a tape drive, but alternatively other storage media, such as files. + +Package: bacula-sd-sqlite3 +Architecture: any +Depends: bacula-sd (= ${binary:Version}), ${shlibs:Depends}, bacula-common-sqlite3 (>= ${binary:Version}), ${misc:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Replaces: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Provides: bacula-sd-tools +Description: network backup, recovery and verification - SQLite 3 SD tools + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The storage daemon performs the storage and recovery of the file + attributes and data to the physical media; in other words, it is + responsible for reading and writing the backups. + . + This package contains SQLite 3 versions of the bscan and bcopy utilities, + which are used for recovery when Bacula's catalog is unavailable. + +Package: bacula-sd-sqlite +Architecture: any +Depends: bacula-sd (= ${binary:Version}), bacula-sd-sqlite3 (>= 3.0.0), ${misc:Depends} +Conflicts: bacula-sd (<< 1.38.9) +Replaces: bacula-sd (<< 1.38.9) +Description: network backup, recovery and verification - SQLite SD tools + This is a transition package. SQLite v2 support has been deprecated + as of Bacula 3.0.0. This package depends on the SQLite v3 version of the + storage daemon. + +Package: bacula-sd-mysql +Architecture: any +Depends: bacula-sd (= ${binary:Version}), ${shlibs:Depends}, bacula-common-mysql (>= ${binary:Version}), ${misc:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Replaces: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Provides: bacula-sd-tools +Description: network backup, recovery and verification - MySQL SD tools + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The storage daemon performs the storage and recovery of the file + attributes and data to the physical media; in other words, it is + responsible for reading and writing the backups. + . + This package contains MySQL versions of the bscan and bcopy utilities, + which are used for recovery when Bacula's catalog is unavailable. + +Package: bacula-sd-pgsql +Architecture: any +Depends: bacula-sd (= ${binary:Version}), ${shlibs:Depends}, bacula-common-pgsql (>= ${binary:Version}), ${misc:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Replaces: bacula-sd-tools, bacula-sd (<= 3.0.1-1) +Provides: bacula-sd-tools +Description: network backup, recovery and verification - PostgreSQL SD tools + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The storage daemon performs the storage and recovery of the file + attributes and data to the physical media; in other words, it is + responsible for reading and writing the backups. + . + This package contains PostgreSQL versions of the bscan and bcopy utilities, + which are used for recovery when Bacula's catalog is unavailable. + +Package: bacula-console +Architecture: any +Pre-Depends: debconf (>= 1.4.30) +Depends: bacula-common (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: network backup, recovery and verification - text console + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The management console allows the administrator or user to + communicate with the Bacula Director. + . + This package provides the text-interface version of the console. + +Package: bacula-console-qt +Section: utils +Architecture: any +Pre-Depends: debconf (>= 1.4.30) +Depends: bacula-common (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Bacula Administration Tool Console + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + The management console allows the administrator or user to + communicate with the Bacula Director. + . + This package provides the most advanced GUI to bacula: the Bacula + Administration Tool (BAT) console. + . + This GUI interface has been designed to ease restore operations as much as + possible as compared to the basic text console. + +Package: bacula-traymonitor +Architecture: any +Depends: ${shlibs:Depends}, bacula-common (= ${binary:Version}), ${misc:Depends} +Suggests: kde|gnome-desktop-environment +Description: network backup, recovery and verification - tray monitor + Bacula is a set of programs to manage backup, recovery and verification of + data across a network of computers of different kinds. + . + This package provides a tray monitor for the Bacula backup system. It is + FreeDesktop-compatible, which means it will work under both KDE and + GNOME. + . + The monitor constantly displays Bacula's status. --- bacula-5.0.3.orig/debian/bacula-director-common.install +++ bacula-5.0.3/debian/bacula-director-common.install @@ -0,0 +1,4 @@ +debian/tmp-install-sqlite3/etc/bacula/scripts/query.sql etc/bacula/scripts +debian/tmp-install-sqlite3/usr/sbin/bwild usr/sbin +debian/tmp-install-sqlite3/usr/sbin/bregex usr/sbin +debian/additions/postinst-common usr/share/bacula-director --- bacula-5.0.3.orig/debian/bacula-sd-mysql.manpages +++ bacula-5.0.3/debian/bacula-sd-mysql.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-5.0.3.orig/debian/common-functions +++ bacula-5.0.3/debian/common-functions @@ -0,0 +1,49 @@ +create_var_run_dir() +{ + if [ ! -d /var/run/bacula/ ]; then + mkdir -p -m 0755 /var/run/bacula/ + chown bacula:daemon /var/run/bacula/ + fi +} + +genRandomPassword() +{ + cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c33 +} + +readOrCreatePasswords() +{ + BACULAPWFILE=/etc/bacula/common_default_passwords + if [ -f $BACULAPWFILE ]; then + . $BACULAPWFILE + fi + + if [ -z "$DIRPASSWD" -o -z "$DIRMPASSWD" -o -z "$SDPASSWD" -o \ + -z "$SDMPASSWD" -o -z "$FDPASSWD" -o -z "$FDMPASSWD" ] ; then + # Create the passwords. + DIRPASSWD=`genRandomPassword` + DIRMPASSWD=`genRandomPassword` + SDPASSWD=`genRandomPassword` + SDMPASSWD=`genRandomPassword` + FDPASSWD=`genRandomPassword` + FDMPASSWD=`genRandomPassword` + + # Save the passwords. + echo "# " > $BACULAPWFILE + chown root:root $BACULAPWFILE + chmod 0600 $BACULAPWFILE + cat >>$BACULAPWFILE < `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/bacula.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/bacula-director-pgsql.install +++ bacula-5.0.3/debian/bacula-director-pgsql.install @@ -0,0 +1,7 @@ +debian/tmp-install-pgsql/etc/bacula/scripts/make_postgresql_tables usr/share/bacula-director +debian/tmp-install-pgsql/etc/bacula/scripts/grant_postgresql_privileges usr/share/bacula-director +debian/tmp-install-pgsql/etc/bacula/scripts/update_postgres* usr/share/bacula-director +debian/tmp-install-pgsql/etc/bacula/scripts/*catalog_backup etc/bacula/scripts +debian/tmp-install-pgsql/etc/bacula/scripts/*catalog_backup.pl etc/bacula/scripts +debian/tmp-install-pgsql/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-pgsql/usr/sbin/dbcheck usr/sbin --- bacula-5.0.3.orig/debian/bacula-traymonitor.install +++ bacula-5.0.3/debian/bacula-traymonitor.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite3/usr/sbin/bacula-tray-monitor usr/bin +src/tray-monitor/generic.xpm usr/share/pixmaps/bacula-traymonitor.xpm --- bacula-5.0.3.orig/debian/bacula-director-mysql.templates +++ bacula-5.0.3/debian/bacula-director-mysql.templates @@ -0,0 +1,52 @@ +Template: bacula/db_host +Type: string +Default: localhost +Description: Database server hostname: + Please enter the hostname of the database server host. + +Template: bacula/dba_name +Type: string +Default: root +Description: Database administrator username: + Please enter the MySQL administrator username, needed for + the database creation. + +Template: bacula/dba_password +Type: password +Description: Database administrator password: + Please enter the MySQL administrator password, needed for + the database creation. + +Template: bacula/dba_confirm +Type: password +Description: DBA password confirmation: + Please confirm the password in order to continue the process. + +Template: bacula/mismatch +Type: note +Description: Password mismatch + The password and its confirmation do not match. Please + reenter the passwords. + +Template: bacula/dbu_name +Type: string +Default: bacula +Description: Database owner username: + Please enter the username of the Bacula database owner. + +Template: bacula/dbu_password +Type: password +Description: Database owner password: + Please enter the password of the Bacula database owner. + +Template: bacula/dbu_confirm +Type: password +Description: Database user password confirmation: + Please confirm the password of the Bacula database owner. + +Template: bacula/notconfigured +Type: note +_Description: Warning - Bacula is not configured + Please note that you have not completed the Bacula configuration. For + completing it, please use "dpkg-reconfigure bacula-director-mysql" later. + --- bacula-5.0.3.orig/debian/bacula-console.postrm +++ bacula-5.0.3/debian/bacula-console.postrm @@ -0,0 +1,47 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +CONSOLE=/usr/sbin/bacula-console +CFGDIR=/etc/bacula +CFGFILE="bconsole.conf" + +case "$1" in + purge) + rm -f $CFGDIR/$CFGFILE.* + ;; + + remove) + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.dirs +++ bacula-5.0.3/debian/bacula-director-sqlite3.dirs @@ -0,0 +1,5 @@ +usr/sbin +usr/lib/bacula +etc/bacula +usr/share/dbconfig-common/data/bacula-director-sqlite3/upgrade/sqlite3 +usr/share/dbconfig-common/data/bacula-director-sqlite3/install --- bacula-5.0.3.orig/debian/bacula-traymonitor.links +++ bacula-5.0.3/debian/bacula-traymonitor.links @@ -0,0 +1,2 @@ +usr/bin/bacula-tray-monitor usr/bin/bacula-traymonitor +usr/share/man/man1/bacula-tray-monitor.1.gz usr/share/man/man1/bacula-traymonitor.1.gz --- bacula-5.0.3.orig/debian/NEWS +++ bacula-5.0.3/debian/NEWS @@ -0,0 +1,29 @@ +bacula (3.0.0-1) unstable; urgency=low + + * SSL/TLS is now available in Bacula in Debian. + * SQLite v2 support has been deprecated upstream. Debian + packages will convert your catalog to SQLite v3. + * The WX console has been deprecated upstream. Please instead + use bat, available in package bacula-console-qt. + + -- John Goerzen Thu, 30 Apr 2009 16:25:36 -0500 + +bacula (2.2.0-1) unstable; urgency=low + + * SSL/TLS has been disabled in this version of Bacula due to licensing + concerns. See README.Debian and the thread at + http://lists.debian.org/debian-legal/2007/07/msg00144.html for more + details. + + -- John Goerzen Wed, 19 Sep 2007 06:46:55 -0500 + +bacula (1.38.9-3) unstable; urgency=low + + * Welcome to the 1.38 series of Bacula. + + This version of Bacula in Debian introduces some significant changes in the + Debian packages. PostgreSQL director packages and MySQL packages + have already switched to using dbconfig-common. And new Sqlite3 + packages are available. + + -- John Goerzen Thu, 11 May 2006 06:46:55 -0500 --- bacula-5.0.3.orig/debian/bacula-console.install +++ bacula-5.0.3/debian/bacula-console.install @@ -0,0 +1 @@ +debian/additions/bconsole usr/bin --- bacula-5.0.3.orig/debian/bacula-director-pgsql.manpages +++ bacula-5.0.3/debian/bacula-director-pgsql.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-5.0.3.orig/debian/bacula-common-sqlite3.install +++ bacula-5.0.3/debian/bacula-common-sqlite3.install @@ -0,0 +1 @@ +debian/tmp-install-sqlite3/usr/lib/bacula/libbacsql* usr/lib/bacula --- bacula-5.0.3.orig/debian/bacula-director-common.dirs +++ bacula-5.0.3/debian/bacula-director-common.dirs @@ -0,0 +1,4 @@ +usr/lib/bacula +var/lib/bacula +var/log/bacula +usr/share/bacula-director --- bacula-5.0.3.orig/debian/copyright +++ bacula-5.0.3/debian/copyright @@ -0,0 +1,197 @@ +This package was debianized by Jose Luis Tallon on +Sun, 19 Oct 2003 14:36:45 +0200 and is now maintained by John Goerzen +. + +It was downloaded from http://www.bacula.org + +Upstream Authors: Kern Sibbald and John Walker. + +History: +The original Bacula code was Copyright Kern Sibbald and John Walker. +After November 2004, it became Copyright Kern Sibbald, and finally, +the copyright was transferred to the Free Software Foundation Europe +on 15 November 2006. + +Trademark: +The name Bacula is a registered trademark of Kern Sibbald. + +=================================== + +License: +For the most part, Bacula is licensed under the GPL version 2. This +code is listed under Copyright Free Software Foundation Europe e.V. +What follows is the addition(s) to the GPL version 2 license, that +applies to code that is copyrighted by the Free Software Foundation +Europe e.V. + +Linking: +As a special exception to the GPLv2, the Bacula Project gives +permission to link the code of its release of Bacula with the OpenSSL +project's "OpenSSL" library (or with modified versions of it that use +the same license as the "OpenSSL" library), and distribute the linked +executables. You must obey the GNU General Public License in all +respects for all of the code used other than "OpenSSL". + +As a special exception to the GPLv2, the Bacula Project gives +permission to link the code of its release of the Bacula Win32 File +daemon with the Microsoft supplied Volume Shadow Copy (VSS) libraries +and distribute the linked executables. You must obey the GNU General +Public License in all respects for all of the code used other than for +the Microsoft VSS code, where you must obey their license terms. + +The Bacula Project gives permission for plugins with GPLv2 compatible +licenses to be loaded and distributed with the Bacula executables as +long as the combined work is distributed under the terms listed in the +Bacula LICENSE file. A full list of GPLv2 compatible licenses can be +found at: http://www.fsf.org/licensing/licenses/. If you wish to load +or distribute plugins with different licensing terms please contact +the Bacula Project at: license@bacula.org + +=================================== + + +What follows is information from the authors of the code: + +License: +To the best of our knowledge, all code used in Bacula, which is +copyrighted by a third party, has licenses that are compatible +with the OpenSSL license, and so given the exception that we have +made to the GPLv2 above, Bacula can be freely linked and distributed +with the OpenSSL libraries. + +Intellectual Property rights: +Recipient understands that although each Contributor to Bacula grants +the licenses to its Contributions set forth herein, no assurances are +provided by any Contributor that the Program does not infringe the +patent or other intellectual property rights of any other entity. +Each Contributor disclaims any liability to Recipient for claims +brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights +and licenses granted hereunder, each Recipient hereby assumes sole +responsibility to secure any other intellectual property rights +needed, if any. For example, if a third party patent license is +required to allow Recipient to distribute the Program, it is +Recipient's responsibility to acquire that license before distributing +the Program. + +Copyrights: +Each Contributor to Bacula represents that to its knowledge it has +sufficient copyright rights in its Contribution, if any, to grant +the copyright license set forth in this Agreement. + +Code falling under the above conditions will be marked as follows: + + Bacula® - The Network Backup Solution + + Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + + The main author of Bacula is Kern Sibbald, with contributions from + many others, a complete list can be found in the file AUTHORS. + This program is Free Software; you can redistribute it and/or + modify it under the terms of version two of the GNU General Public + License as published by the Free Software Foundation plus additions + that are listed in the file LICENSE. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + + Bacula® is a registered trademark of Kern Sibbald. + The licensor of Bacula is the Free Software Foundation Europe + (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, + Switzerland, email:ftf@fsfeurope.org. + + +Windows: +Certain source code used to build the Windows version of the +Bacula File daemon is copyrighted and or trademarked by Microsoft +and may contain Microsoft intellectual property (examples: +Microsoft VC++, the source to the VSS libraries, the Microsoft C +runtime libraries). As such we cannot and do not distribute that +software. We are permitted however to distribute Bacula with the +necessary Microsoft libraries in binary form. + +You may obtain the parts that we cannot distribute as follows. The +Microsoft compiler available for purchase, and Microsoft provides a free +version of the compiler. The source code and libraries are available for +download from Microsoft public Web servers. We have documented in the +src/win32 directory the URLs from which we obtained the library source, and +how we build the Windows File daemon and many users have succeeded in doing +so themselves. Our intention is to respect as closely as possible Open +Source practices while maintaining full respect for proprietary and +copyrighted code. + +GPLv2 or later license: + src/tools/bsmtp.c + Copyright (C) 1997 Ralf S. Engelschall, All Rights Reserved. + (note, bsmtp.c does not use OpenSSL, nor is it used with the code + of any other part of Bacula) + +3 clause BSD License notice for inclusion with the binary: + src/lib/fnmatch.c + * Copyright (c) 1989, 1993, 1994 + * The Regents of the University of California. All rights reserved. + src/lib/fnmatch.h + * Copyright (c) 1992, 1993 + * The Regents of the University of California. All rights reserved. + +Permissive licenses: + src/lib/var.c/h + ** OSSP var - Variable Expansion + ** Copyright (c) 2001-2002 Ralf S. Engelschall + ** Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) + ** Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) + + src/lib/bsnprintf.c + * Copyright Patrick Powell 1995 + + src/bregex.c/h + * Copyright (c) 1991 Tatu Ylonen, Espoo, Finland + + src/lib/sha1.c/h + Copyright (C) The Internet Society (2001). All Rights Reserved. + + src/win32/compat/getopt.c + "... licensed under IBM copyrights to use the IBM-provided source code + in any way he or she deems fit ..." + + src/win32/compat/sys/mtio.h (LGPL) + Copyright (C) 1996, 1997 Free Software Foundation, Inc. + + +Bacula can be enabled with data encryption and/or communications +encryption. If this is the case, you will be including OpenSSL code that +that contains cryptographic software written by Eric Young +(eay@cryptsoft.com) and also software written by Tim Hudson +(tjh@cryptsoft.com). + +There are parts of Bacula that are licensed under the LGPL so +that those files may be used in proprietary code to interface with +Bacula. + +Finally there are parts of Bacula that are in the public domain. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===================================== + +On Debian systems, the complete text of the GNU General Public +License and the GNU Lesser General Public License can be found +in /usr/share/common-licenses/. --- bacula-5.0.3.orig/debian/bacula-fd.prerm +++ bacula-5.0.3/debian/bacula-fd.prerm @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for bacula-fd +# + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/bacula.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/bacula-console.menu +++ bacula-5.0.3/debian/bacula-console.menu @@ -0,0 +1,2 @@ +?package(bacula-console):needs="text" section="Applications/System/Administration" \ + title="Bacula console" command="/usr/bin/bconsole" --- bacula-5.0.3.orig/debian/bacula-traymonitor.lintian-overrides +++ bacula-5.0.3/debian/bacula-traymonitor.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/make_catalog_backup_awk.mysql +++ bacula-5.0.3/debian/make_catalog_backup_awk.mysql @@ -0,0 +1,53 @@ +#!/usr/bin/gawk -f +# extract.awk script expects Catalog definition in a form of: +# Catalog { +# Name = NameOfCatalog +# dbname = ""; DB Address = ""; user = ""; password = ""; DB Socket = ""; DB Port = "" +# } +# + + +BEGIN { RS= "}" ; FS="[;\n]+"} + +function trim(v) { + ## Remove leading and trailing spaces + sub(/^ */,"",v) + sub(/ *$/,"",v) + return v +} + + +$0 ~ /Catalog[[:space:]]*{/ { + for ( i = 1; i <= NF ; i++) + { + split($i,a,"=") + if (a[1] ~ /dbname/) + dbname = trim(gensub("\"","","g",a[2])) # remove " char + if (a[1] ~ /user/) + user = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /Name/) + catname = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /password/) + password = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Address/) + dbaddress = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Socket/) + dbsocket = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Port/) + dbport = trim(gensub("\"","","g",a[2])) + } + + if (catname == cat1 || catname == cat2 || catname == cat3 || catname == cat4) { + if (dbaddress == "") #Not optional in the case of MySQL + dbaddress = "localhost" + system("rm -rf /var/lib/bacula/.my.cnf") + system("touch /var/lib/bacula/.my.cnf") + system("chmod 600 /var/lib/bacula/.my.cnf") + printf "[client]\n host=%s\n user=%s\n password=%s\n",dbaddress,user,password >> "/var/lib/bacula/.my.cnf" + if (dbport != "") + printf " port=%s\n",dbport >> "/var/lib/bacula/.my.cnf" + if (dbsocket != "") + printf " socket=%s\n",dbsocket >> "/var/lib/bacula/.my.cnf" + system(sprintf ("HOME=/var/lib/bacula mysqldump %s > /var/lib/bacula/bacula.sql",dbname)) + } +} --- bacula-5.0.3.orig/debian/bacula-sd-pgsql.install +++ bacula-5.0.3/debian/bacula-sd-pgsql.install @@ -0,0 +1,3 @@ +debian/tmp-install-pgsql/usr/sbin/bscan usr/bin +debian/tmp-install-pgsql/usr/sbin/bcopy usr/bin +debian/tmp-install-pgsql/usr/sbin/btape usr/sbin --- bacula-5.0.3.orig/debian/bacula-director-pgsql.dirs +++ bacula-5.0.3/debian/bacula-director-pgsql.dirs @@ -0,0 +1,6 @@ +usr/sbin +usr/lib/bacula +etc/bacula +usr/share/dbconfig-common/data/bacula-director-pgsql/upgrade/pgsql +usr/share/dbconfig-common/data/bacula-director-pgsql/install +usr/share/dbconfig-common/data/bacula-director-pgsql/install-dbadmin --- bacula-5.0.3.orig/debian/bacula-director-pgsql.postinst +++ bacula-5.0.3/debian/bacula-director-pgsql.postinst @@ -0,0 +1,99 @@ +#! /bin/bash +# postinst script for bacula-director-pgsql +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +dbc_first_version=1.38.9-2 +# set in config, must not be set here: dbc_dbuser=bacula +# set in config, must not be set here: dbc_dbname=bacula + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/postinst.pgsql + dbc_pgsql_createdb_encoding="SQL_ASCII" + dbc_sql_substitutions="1" + dbc_go bacula-director-pgsql $@ +fi + +LOGDIR="/var/log/bacula" +POSTINST_COMMON="/usr/share/bacula-director/postinst-common" +DEFCONFIG="/usr/share/bacula-common/defconfig" +CFGFILE="/etc/bacula/bacula-dir.conf" +CATALOG=bacula +PGSQL=/usr/bin/psql +GRANT_SQL_PRIVS="/usr/share/bacula-director/grant_pgsql_privileges" +AUTHFILE=`getent passwd bacula | cut -d ':' -f 6`/.pgpass + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop || true + sleep 1 +fi + +. /usr/share/bacula-common/common-functions +readOrCreatePasswords + +case "$1" in +configure) + + echo -n "Processing configuration..." + . /etc/dbconfig-common/bacula-director-pgsql.conf + TARGET=$CFGFILE.dpkg-tmp + + if [ "$dbc_install" = "true" ] ; then + sed -e "s/make_catalog_backup bacula bacula/make_catalog_backup -h '$dbc_dbserver' -U $dbc_dbuser/" \ + -e "s/dbname = \"XXX_DBNAME_XXX\";/dbname = \"$dbc_dbname\"; DB Address = \"$dbc_dbserver\";/" \ + -e "s~/XXX_DBNAME_XXX~/$dbc_dbname~" \ + -e "s/XXX_DBUSER_XXX/$dbc_dbuser/" -e "s/XXX_DBPASSWORD_XXX/$dbc_dbpass/" \ + -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \ + -e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \ + -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \ + -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \ + $DEFCONFIG/bacula-dir.conf > $TARGET + fi + + /bin/sh $POSTINST_COMMON + echo "Ok." + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# Do start daemon +db_stop + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-sd-mysql.install +++ bacula-5.0.3/debian/bacula-sd-mysql.install @@ -0,0 +1,3 @@ +debian/tmp-install-mysql/usr/sbin/bscan usr/bin +debian/tmp-install-mysql/usr/sbin/bcopy usr/bin +debian/tmp-install-mysql/usr/sbin/btape usr/sbin --- bacula-5.0.3.orig/debian/bacula-common.postrm +++ bacula-5.0.3/debian/bacula-common.postrm @@ -0,0 +1,45 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + userdel bacula > /dev/nulli 2>&1 || true + rm -rf /var/run/bacula + rm -rf /etc/bacula + rm -rf /var/log/bacula + rm -rf /var/lib/bacula + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-sd.postinst +++ bacula-5.0.3/debian/bacula-sd.postinst @@ -0,0 +1,70 @@ +#! /bin/bash +# postinst script for bacula-sd +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-sd.conf" + +. /usr/share/bacula-common/common-functions +readOrCreatePasswords + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e s~@hostname@~`hostname`~ \ + -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \ + -e s~XXX_MONSDPASSWORD_XXX~$SDMPASSWD~ < $SRCDIR/$CONFIG > $TARGET + + # Harden permissions, so that passwords can not be looked at + chown bacula:bacula $TARGET + chmod 640 $TARGET + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/bacula-director-mysql.script.5.0.0 +++ bacula-5.0.3/debian/bacula-director-mysql.script.5.0.0 @@ -0,0 +1,63 @@ +#!/bin/sh + +# This script exists to remove the JobMedia column in Bacula 5.0.0. +# It can be removed from the tree after upgrades to 5.0.0 are no longer +# a concern. +# +# More details are at +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569285 +# http://bugs.bacula.org/view.php?id=1498 +# +# Quoting the latter, with summary by John Goerzen: +# +# In Bacula 5.0.0, src/cats/update_mysql_tables.in contains this line: +# +# ALTER TABLE JobMedia DROP Stripe ; +# +# And indeed, in Bacula 3.0.0, src/cats/make_mysql_tables.in created +# that column. Trouble is: +# +# bacula/updatedb$ grep -i stripe *mysql* +# update_mysql_tables_8_to_9:ALTER TABLE JobMedia ADD COLUMN Stripe +# INTEGER UNSIGNED NOT NULL DEFAULT 0; +# update_mysql_tables_9_to_10.in:ALTER TABLE JobMedia DROP COLUMN +# Stripe; +# +# In other words, users that were running Bacula 1.38, and upgraded to +# 2.0, would have had the Stripe column removed at that point and never +# re-created. It seems like somebody added the code to remove the +# stripe column to 2.0 but forgot to remove it from the +# make_mysql_tables.in until 5.0. + +. /etc/dbconfig-common/bacula-director-mysql.conf + +mysqlcmd () { + MYSQLUSER="--skip-comments" # a no-op for us + MYSQLPASS="--skip-comments" + MYSQLSERVER="--skip-comments" + MYSQLPORT="--skip-comments" + if [ -n "$dbc_dbuser" ]; + then MYSQLUSER="--user=$dbc_dbuser" + fi + + if [ -n "$dbc_dbpass" ]; + then MYSQLPASS="--password=$dbc_dbpass" + fi + + if [ -n "$dbc_dbserver" ]; + then MYSQLSERVER="--host=$dbc_dbserver" + fi + + if [ -n "$dbc_dbport" ]; + then MYSQLPORT="$MYSQL --port=$dbc_dbport" + fi + + mysql "$MYSQLUSER" "$MYSQLPASS" "$MYSQLSERVER" "$MYSQLPORT" "$dbc_dbname" +} + +if echo "DESCRIBE JobMedia;" | mysqlcmd | grep -q -i Stripe; then + echo "Found column Stripe in JobMedia; removing." + echo "ALTER TABLE JobMedia DROP Stripe;" | mysqlcmd +else + echo "Did not find column Stripe in JobMedia; not attempting to remove it." +fi --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.install +++ bacula-5.0.3/debian/bacula-director-sqlite3.install @@ -0,0 +1,6 @@ +debian/tmp-install-sqlite3/etc/bacula/scripts/make_sqlite*tables usr/share/bacula-director +debian/tmp-install-sqlite3/etc/bacula/scripts/update_sqlite* usr/share/bacula-director +debian/tmp-install-sqlite3/etc/bacula/scripts/*catalog_backup etc/bacula/scripts +debian/tmp-install-sqlite3/etc/bacula/scripts/*catalog_backup.pl etc/bacula/scripts +debian/tmp-install-sqlite3/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-sqlite3/usr/sbin/dbcheck usr/sbin --- bacula-5.0.3.orig/debian/bacula-director-pgsql.config +++ bacula-5.0.3/debian/bacula-director-pgsql.config @@ -0,0 +1,36 @@ +#!/bin/sh +# config script for bacula-dir ( PostgreSQL flavor ) + +. /usr/share/debconf/confmodule +db_version 2.0 + +dbc_first_version=1.38.9-2 +dbc_dbuser=bacula +dbc_dbname=bacula + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/config.pgsql + dbc_go bacula-director-pgsql $@ +fi + +set -e + + +case "$1" in + configure) + + ;; + + reconfigure) + + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + +exit 0 + --- bacula-5.0.3.orig/debian/bacula-console.dirs +++ bacula-5.0.3/debian/bacula-console.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/bacula --- bacula-5.0.3.orig/debian/bacula-traymonitor.menu +++ bacula-5.0.3/debian/bacula-traymonitor.menu @@ -0,0 +1,2 @@ +?package(bacula-traymonitor):needs="X11" section="Apps/System"\ + title="Bacula tray monitor" command="/usr/bin/bacula-tray-monitor" --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.config +++ bacula-5.0.3/debian/bacula-director-sqlite3.config @@ -0,0 +1,42 @@ +#!/bin/sh +# config script for bacula-director (SQLite3 flavor) + +. /usr/share/debconf/confmodule +#db_version 2.0 + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.sqlite3 ]; then + dbc_first_version=3.0.3-3 + dbc_dbuser=bacula + dbc_dbname=bacula.db + dbc_basepath=/var/lib/bacula + . /usr/share/dbconfig-common/dpkg/config.sqlite3 + # Remove the following lines post-squeeze and replace with simple + #dbc_go bacula-director-sqlite3 $@ + DB="$dbc_basepath/$dbc_dbname" + if [ -f "$DB" ] && file "$DB" | grep -q "SQLite 2"; then + # This will be upgraded in postinst. Have to pass fake old + # version to dbc_go. See comments in bacula-director-sqlite3.postinst + dbc_go bacula-director-sqlite3 "$1" 2.4.4-1 + else + echo "config: Running dbc_go bacula-director-sqlite3 $@" + dbc_go bacula-director-sqlite3 $@ + fi +fi + +set -e + +case "$1" in + configure) + ;; + + reconfigure) + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-mysql.postrm +++ bacula-5.0.3/debian/bacula-director-mysql.postrm @@ -0,0 +1,63 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_version 2.0 + + dbc_first_version=1.38.9-3 + dbc_dbuser=bacula + dbc_dbname=bacula +fi + +if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then + . /usr/share/dbconfig-common/dpkg/postrm.mysql + dbc_go bacula-director-mysql $@ +fi + + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +CONFFILE=/etc/bacula/bacula-dir.conf + +case "$1" in + purge) + rm -f $CONFFILE $CONFFILE.dist + # Drop Bacula's user privileges? Can't do + # Potentially, drop DB ... Can't do? + db_purge + ;; + + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-common-mysql.install +++ bacula-5.0.3/debian/bacula-common-mysql.install @@ -0,0 +1 @@ +debian/tmp-install-mysql/usr/lib/bacula/libbacsql* usr/lib/bacula --- bacula-5.0.3.orig/debian/bacula-sd.dirs +++ bacula-5.0.3/debian/bacula-sd.dirs @@ -0,0 +1,4 @@ +usr/sbin +usr/lib/bacula +var/lib/bacula +etc/bacula --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.manpages +++ bacula-5.0.3/debian/bacula-director-sqlite3.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-5.0.3.orig/debian/bacula-sd-pgsql.lintian-overrides +++ bacula-5.0.3/debian/bacula-sd-pgsql.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/bacula-fd.dirs +++ bacula-5.0.3/debian/bacula-fd.dirs @@ -0,0 +1,5 @@ +usr/sbin +usr/lib/bacula +var/lib/bacula +etc/bacula +etc/bacula/scripts --- bacula-5.0.3.orig/debian/bacula-sd.init +++ bacula-5.0.3/debian/bacula-sd.init @@ -0,0 +1,90 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bacula-sd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# +# bacula-fd SysV init script for Bacula-FD. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux by Ian Murdock +# Customized for Bacula by Jose Luis Tallon +# + +. /lib/lsb/init-functions + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/bacula-sd +NAME="bacula-sd" +PORT=9103 +DESC="Bacula Storage daemon" +ARGS="-c /etc/bacula/bacula-sd.conf -u bacula -g tape" + +test -f $DAEMON || exit 0 + +set -e + +if [ -n "`getent services bacula-sd`" ]; then + PORT=`getent services bacula-sd | awk '{ gsub("/tcp","",$2); print $2; }'` +fi + +. /lib/lsb/init-functions +. /usr/share/bacula-common/common-functions +create_var_run_dir + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +do_start() +{ + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS +} + +do_stop() +{ + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS +} + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + log_failure_msg "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + + log_daemon_msg "Starting $DESC..." + if do_start ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC... " + if do_stop ; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + status) + status_of_proc -p $PIDFILE $DAEMON $NAME + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-mysql.manpages +++ bacula-5.0.3/debian/bacula-director-mysql.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-5.0.3.orig/debian/make_catalog_backup_awk.sqlite +++ bacula-5.0.3/debian/make_catalog_backup_awk.sqlite @@ -0,0 +1,3 @@ +#!/usr/bin/gawk -f + +system("echo '.dump' | /usr/bin/sqlite /var/lib/bacula/bacula.db > /var/lib/bacula/bacula.sql") --- bacula-5.0.3.orig/debian/make_catalog_backup_awk.pgsql +++ bacula-5.0.3/debian/make_catalog_backup_awk.pgsql @@ -0,0 +1,51 @@ +#!/usr/bin/gawk -f +# extract.awk script expects Catalog definition in a form of: +# Catalog { +# Name = NameOfCatalog +# dbname = ""; DB Address = ""; user = ""; password = ""; DB Socket = ""; DB Port = "" +# } +# + + +BEGIN { RS= "}" ; FS="[;\n]+"} + +function trim(v) { + ## Remove leading and trailing spaces + sub(/^ */,"",v) + sub(/ *$/,"",v) + return v +} + + +$0 ~ /Catalog[[:space:]]*{/ { + for ( i = 1; i <= NF ; i++) + { + split($i,a,"=") + if (a[1] ~ /dbname/) + dbname = trim(gensub("\"","","g",a[2])) # remove " char + if (a[1] ~ /user/) + user = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /Name/) + catname = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /password/) + password = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Address/) + dbaddress = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Socket/) + dbsocket = trim(gensub("\"","","g",a[2])) + if (a[1] ~ /DB Port/) + dbport = trim(gensub("\"","","g",a[2])) + } + + if (catname == cat1 || catname == cat2 || catname == cat3 || catname == cat4) { + if (dbaddress == "") #Not optional in the case of MySQL + dbaddress = "localhost" + system("rm -rf /var/lib/bacula/pg_service.conf") + system("touch /var/lib/bacula/pg_service.conf") + system("chmod 600 /var/lib/bacula/pg_service.conf") + printf "[bacula]\n dbname=%s\n user=%s\n password=%s\n",dbname,user,password >> "/var/lib/bacula/pg_service.conf" + if (dbport != "") + printf " port=%s\n",dbport >> "/var/lib/bacula/pg_service.conf" + system("HOME=/var/lib/bacula PGSERVICE=bacula PGSYSCONFDIR=/var/lib/bacula pg_dump > /var/lib/bacula/bacula.sql") + } +} --- bacula-5.0.3.orig/debian/bacula-sd-sqlite3.lintian-overrides +++ bacula-5.0.3/debian/bacula-sd-sqlite3.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/bacula-console.postinst +++ bacula-5.0.3/debian/bacula-console.postinst @@ -0,0 +1,63 @@ +#! /bin/sh +# postinst script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bconsole.conf" + +CONSOLE=/usr/sbin/bacula-console + +case "$1" in + configure) + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e "s~@hostname@~localhost~" < $SRCDIR/$CONFIG > $TARGET + + chown root:bacula $TARGET + chmod 640 $TARGET + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- bacula-5.0.3.orig/debian/TODO +++ bacula-5.0.3/debian/TODO @@ -0,0 +1,21 @@ +POST SQUEEZE: + + * Remove old -sqlite (sqlitev2) packages + * Remove old -sqlite logic in sqlite3 .config, .postinst + * Remove old -sqlite logic in rules, if any + * Remove dep on sqlite from bacula-director-sqlite3 + +* Make sure btraceback can be found in /usr/lib/bacula? + +* Verify upgrades work as expected + +* Maybe: + + Remove old AUTHFILE=`getent passwd bacula | cut -d ':' -f 6`/.pgpass + and $AUTHFILE.bak + +* check backup_catalog scripts & make sure they're getting installed + +* Sanitize consoles + +* Update debian/copyright --- bacula-5.0.3.orig/debian/bacula-director-common.postrm +++ bacula-5.0.3/debian/bacula-director-common.postrm @@ -0,0 +1,40 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-common.logrotate +++ bacula-5.0.3/debian/bacula-common.logrotate @@ -0,0 +1,6 @@ +/var/log/bacula/log { + monthly + rotate 5 + notifempty + missingok +} --- bacula-5.0.3.orig/debian/bacula-director-mysql.postinst +++ bacula-5.0.3/debian/bacula-director-mysql.postinst @@ -0,0 +1,89 @@ +#! /bin/bash +# postinst script for bacula-director-mysql +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +dbc_first_version=1.38.9-3 +# set in config, must not be set here: dbc_dbuser=bacula +# set in config, must not be set here: dbc_dbname=bacula + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then + . /usr/share/dbconfig-common/dpkg/postinst.mysql + dbc_go bacula-director-mysql $@ +fi + +LOGDIR="/var/log/bacula" +POSTINST_COMMON="/usr/share/bacula-director/postinst-common" +DEFCONFIG="/usr/share/bacula-common/defconfig" +CFGFILE="/etc/bacula/bacula-dir.conf" + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop || true + sleep 1 +fi + +. /usr/share/bacula-common/common-functions +readOrCreatePasswords + +case "$1" in +configure) + + echo -n "Processing configuration..." + . /etc/dbconfig-common/bacula-director-mysql.conf + TARGET=$CFGFILE.dpkg-tmp + # FIXME: should this tweak make_catalog_backup like bacula-director-pgsql.postinst does? + sed -e "s/dbname = \"XXX_DBNAME_XXX\";/dbname = \"$dbc_dbname;\" DB Address = \"$dbc_dbserver\";/" \ + -e "s~/XXX_DBNAME_XXX~/$dbc_dbname~" \ + -e "s/XXX_DBUSER_XXX/$dbc_dbuser/" -e "s/XXX_DBPASSWORD_XXX/$dbc_dbpass/" \ + -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \ + -e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \ + -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \ + -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + /bin/bash $POSTINST_COMMON + + echo "Ok." + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Do start daemon +db_stop + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-fd.install +++ bacula-5.0.3/debian/bacula-fd.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite3/usr/sbin/bacula-fd usr/sbin +debian/tmp-install-sqlite3/usr/lib/bacula/bpipe-fd.so usr/lib/bacula --- bacula-5.0.3.orig/debian/bacula-common.preinst +++ bacula-5.0.3/debian/bacula-common.preinst @@ -0,0 +1,79 @@ +#! /bin/bash +# preinst script for bacula +# + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +create_bacula_do_not_run() +{ + if [ "$1" = "install" -a "$#" -eq 1 ]; then + test -d /etc/bacula || mkdir -p /etc/bacula + + cat > /etc/bacula/do_not_run </dev/null; then + echo -n "Adding user 'bacula'... " + adduser --system --no-create-home --group bacula 2>&1 > /dev/null + usermod -c "Bacula" bacula + usermod -G tape bacula + echo "Ok." + usermod -d /var/lib/bacula bacula + fi + ;; + + upgrade) + # Before 1.38.9-2, logs were in the wrong place. Fix. + if dpkg --compare-versions "$2" lt 1.38.9-2 && + test -h /var/log/bacula/log && + test -f /var/lib/bacula/log; then + rm /var/log/bacula/log + mv /var/lib/bacula/log /var/log/bacula/log + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- bacula-5.0.3.orig/debian/bacula-director-sqlite3.postrm +++ bacula-5.0.3/debian/bacula-director-sqlite3.postrm @@ -0,0 +1,48 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_version 2.0 +fi + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +CONFFILE=/etc/bacula/bacula-dir.conf +case "$1" in + purge) + rm -f $CONFFILE $CONFFILE.dist + db_purge + ;; + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-mysql.config +++ bacula-5.0.3/debian/bacula-director-mysql.config @@ -0,0 +1,31 @@ +#!/bin/sh +# config script for bacula-dir ( MySQL flavor ) + +. /usr/share/debconf/confmodule +#db_version 2.0 + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then + dbc_first_version=1.38.9-3 + dbc_dbuser=bacula + dbc_dbname=bacula + . /usr/share/dbconfig-common/dpkg/config.mysql + dbc_go bacula-director-mysql $@ +fi + +set -e + +case "$1" in + configure) + ;; + + reconfigure) + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + +exit 0 --- bacula-5.0.3.orig/debian/bacula-director-mysql.prerm +++ bacula-5.0.3/debian/bacula-director-mysql.prerm @@ -0,0 +1,49 @@ +#! /bin/sh +# prerm script for bacula +# +# see: dh_installdeb(1) + +. /usr/share/debconf/confmodule + +dbc_first_version=1.38.9-3 +dbc_dbuser=bacula +dbc_dbname=bacula + +# source dbconfig-common shell library, and call the hook function +if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then + . /usr/share/dbconfig-common/dpkg/prerm.mysql + dbc_go bacula-director-mysql $@ +fi + + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|deconfigure) + /usr/sbin/invoke-rc.d bacula-director stop + ;; + upgrade) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-traymonitor.manpages +++ bacula-5.0.3/debian/bacula-traymonitor.manpages @@ -0,0 +1 @@ +manpages/bacula-tray-monitor.1 --- bacula-5.0.3.orig/debian/bacula-common.examples +++ bacula-5.0.3/debian/bacula-common.examples @@ -0,0 +1 @@ +examples/* --- bacula-5.0.3.orig/debian/bacula-director-pgsql.postrm +++ bacula-5.0.3/debian/bacula-director-pgsql.postrm @@ -0,0 +1,65 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_version 2.0 + + dbc_first_version=1.38.9-2 + dbc_dbuser=bacula + dbc_dbname=bacula +fi + +if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/postrm.pgsql + dbc_go bacula-director-pgsql $@ +fi + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +CATALOG=bacula +PGSQL=/usr/bin/psql +CONFFILE=/etc/bacula/bacula-dir.conf +AUTHFILE=`getent passwd bacula | cut -d ':' -f 6`/.pgpass + + +case "$1" in + purge) + rm -f $CONFFILE $CONFFILE.dist $AUTHFILE + + db_purge + ;; + + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-5.0.3.orig/debian/bacula-console-qt.lintian-overrides +++ bacula-5.0.3/debian/bacula-console-qt.lintian-overrides @@ -0,0 +1 @@ +binary-or-shlib-defines-rpath --- bacula-5.0.3.orig/debian/additions/postinst-common +++ bacula-5.0.3/debian/additions/postinst-common @@ -0,0 +1,31 @@ +#!/bin/sh + +DEFCONFIGDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-dir.conf" +TMPCONFIG=$DSTDIR/$CONFIG.dpkg-tmp + +if [ -f $TMPCONFIG ]; then + SOURCE=$TMPCONFIG +else + SOURCE=$DEFCONFIGDIR/$CONFIG +fi + +if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG +else + TARGET=$DSTDIR/$CONFIG.dist +fi + +# Final config fix +sed -e "s/@hostname@/`hostname`/" < $SOURCE > $TARGET + +# get rid of now unnecessary file +rm -f $TMPCONFIG + +# Harden permissions, so that passwords can not be looked at +# Fixed by Philipp M Hahn +chown root:bacula $TARGET +chmod 640 $TARGET + +exit 0 --- bacula-5.0.3.orig/debian/additions/bacula-tray-monitor.desktop +++ bacula-5.0.3/debian/additions/bacula-tray-monitor.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Bacula Monitor +Comment=Notification Tray Monitor +Icon=/usr/share/pixmaps/bacula-tray-monitor.xpm +Exec=/usr/sbin/bacula-tray-monitor -c /etc/bacula/tray-monitor.conf +Terminal=false +Type=Application +Encoding=UTF-8 +X-Desktop-File-Install-Version=0.3 +Categories=System;Application;Utility;X-Red-Hat-Base; --- bacula-5.0.3.orig/debian/additions/bacula-console-gnome.desktop +++ bacula-5.0.3/debian/additions/bacula-console-gnome.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Bacula console +Name[fr]=Console Bacula +Comment=Bacula GNOME console +Comment[es]=Consola GNOME para Bacula +Comment[fr]=Console GNOME pour Bacula +Exec=/usr/bin/bacula-console-gnome -c /etc/bacula/gnome-console.conf +Terminal=false +Categories=System;Application --- bacula-5.0.3.orig/debian/additions/bconsole +++ bacula-5.0.3/debian/additions/bconsole @@ -0,0 +1,3 @@ +#!/bin/sh +CFGFILE=/etc/bacula/bconsole.conf +exec /usr/sbin/bacula-console -c $CFGFILE $* --- bacula-5.0.3.orig/debian/patches/fix_config +++ bacula-5.0.3/debian/patches/fix_config @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + + +if [ -z "$1" -o -z "$2" ]; then + test -n "$DH_VERBOSE" && echo "Params missing!" >/dev/fd/2; + exit 1 +fi + +cat $1 | sed -e s~`uname -n | cut -d '.' -f 1`~@hostname@~g | sed -r -f `dirname $0`/fix_config.sed > $2 --- bacula-5.0.3.orig/debian/patches/fix_director.sed +++ bacula-5.0.3/debian/patches/fix_director.sed @@ -0,0 +1,2 @@ +s~Job[ ]+= "/etc/bacula/scripts/~Job = "/usr/lib/bacula/~ +s~user = bacula; password = ""~user = @db_user@; password = "@db_pswd@"~ --- bacula-5.0.3.orig/debian/patches/fix_config.sed +++ bacula-5.0.3/debian/patches/fix_config.sed @@ -0,0 +1,2 @@ +s~/usr/sbin/bsmtp~/usr/lib/bacula/bsmtp~g +s~/home/kern/bacula/bin/mtx-changer~/etc/bacula/scripts/mtx-changer~g --- bacula-5.0.3.orig/debian/patches/ubuntu_bacula-dir.conf.patch +++ bacula-5.0.3/debian/patches/ubuntu_bacula-dir.conf.patch @@ -0,0 +1,21 @@ +--- src/dird/bacula-dir.conf.in.old 2008-11-26 14:17:16.000000000 +0100 ++++ src/dird/bacula-dir.conf.in 2008-11-26 14:18:12.000000000 +0100 +@@ -62,11 +62,17 @@ + FileSet="Catalog" + Schedule = "WeeklyCycleAfterBackup" + # This creates an ASCII copy of the catalog ++ # + # WARNING!!! Passing the password via the command line is insecure. + # see comments in make_catalog_backup for details. + # Arguments to make_catalog_backup are: + # make_catalog_backup +- RunBeforeJob = "@scriptdir@/make_catalog_backup @db_name@ @db_user@" ++ # ++ # Ubuntu uses make_catalog_backup_awk script for ++ # security reasons ++ # Replace with the real Catalog name ++ # ++ RunBeforeJob = "/usr/bin/awk -f @scriptdir@/make_catalog_backup_awk -v cat1= @sysconfdir@/bacula-dir.conf" + # This deletes the copy of the catalog + RunAfterJob = "@scriptdir@/delete_catalog_backup" + Write Bootstrap = "@working_dir@/BackupCatalog.bsr" --- bacula-5.0.3.orig/debian/patches/fix_director +++ bacula-5.0.3/debian/patches/fix_director @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + + +if [ -z "$1" -o -z "$2" ]; then + test -n "$DH_VERBOSE" && echo "Params missing!" >/dev/fd/2; + exit 1 +fi + +cat $1 | sed -e s~`hostname`~@hostname@~g | \ + sed -e "s~Address =`hostname`~Address = @fqdn@~g" | \ + sed -f `dirname $0`/fix_director.sed | \ + sed -f `dirname $0`/fix_config.sed > $2 --- bacula-5.0.3.orig/debian/patches/fix_scripts.sed +++ bacula-5.0.3/debian/patches/fix_scripts.sed @@ -0,0 +1,3 @@ +s~^bindir=@SQL_BINDIR@~bindir=/usr/bin~g +s~@working_dir@~/var/lib/bacula~ +s~MTX=mtx~MTX=/usr/sbin/mtx~ --- bacula-5.0.3.orig/debian/patches/extract_here +++ bacula-5.0.3/debian/patches/extract_here @@ -0,0 +1,8 @@ +#!/usr/bin/perl +# Extract a shell-style here-document from a script +$found = 0; +while (<>) { + if (m/END.OF.DATA/ && !$found) {$found = 1; next;}; + last if (m/END.OF.DATA/); + print if $found; +}