--- bacula-2.2.8.orig/scripts/logwatch/logfile.bacula.conf +++ bacula-2.2.8/scripts/logwatch/logfile.bacula.conf @@ -0,0 +1,3 @@ +# What actual file? Defaults to LogPath if not absolute path.... +LogFile = /var/lib/bacula/log + --- bacula-2.2.8.orig/.hgtags +++ bacula-2.2.8/.hgtags @@ -0,0 +1,63 @@ +d4970fa84b7c0f20d842016247d36b7a8297e68f UPSTREAM_bacula_1.36.3 +2fcd6cdd3d53d09345227b1390fb6110b3053d5b UPSTREAM_bacula_1.36.3_TAG +c903e59b2e624e9aa9f6257639e28538d079bd89 UPSTREAM_bacula_1.38.10 +17db554092ae7f1a0c2c9eabaf582cdd921f03a0 UPSTREAM_bacula_1.38.10_TAG +73105df369e6765c2948e2d11ef52b77d3071650 UPSTREAM_bacula_1.38.11 +128bbaa0249df5a1cf0b6e6e673ff1664df4c025 UPSTREAM_bacula_1.38.11_TAG +8e8f50418d66adeb7c5fa4627ce91e29e5f7f952 UPSTREAM_bacula_1.38.8 +564e7b2f4202dbce2c414bf44ce9f25928a2200e UPSTREAM_bacula_1.38.8_TAG +f87c56cc12733994080d9434dd55282820d86596 UPSTREAM_bacula_1.38.9 +a36aaa7d8bc8df769dde122140dd904be298e161 UPSTREAM_bacula_1.38.9_TAG +908d82f8f03b719cc9cb8e466005868d68f6a44b UPSTREAM_bacula_2.0.2 +7dd9098c7225f569a4bc1c9c798180ea67702013 UPSTREAM_bacula_2.0.2_TAG +d00f0ae0bd5828671835d99d07e64a813edb90f3 UPSTREAM_bacula_2.0.3 +4e95174b28afac92b661551208bf75d7d5a89d4d UPSTREAM_bacula_2.0.3_TAG +4310d206ead206a09a85b0b101627696256eaf93 DEBIAN_bacula_1.36.3-1 +54862bce4f703e54bcadcd23f1153224cab9e725 DEBIAN_bacula_1.36.3-2 +2906b512820dacd23ba350566c26d07516d5c30f UPSTREAM_bacula_2.2.0 +72ef70a40ef299bd84e94ae53ea9421ccf2085c3 UPSTREAM_bacula_2.2.0_TAG +00328f74614b862e099474a0f07b0954da34d32f DEBIAN_bacula_1.38.10-1 +b15467cd98836a2c3686f35bba7671f62d158e93 DEBIAN_bacula_1.38.10-2 +6fdfecbc7ac0a8263b89ca538163c2b0a7b0f9bc UPSTREAM_bacula_2.2.4 +f67a5e6c18b5cf661dae317c593dbbb707304aad UPSTREAM_bacula_2.2.4_TAG +40d3ba0f2c13d7bbb9333a18dcd84da259089d0a DEBIAN_bacula_1.38.11-1 +e18fc952c7666d567d6c19380c64e03b3b11ddc8 DEBIAN_bacula_1.38.11-2 +7980c55debd24a7f110c245ab21cd4d782f44b7c UPSTREAM_bacula_2.2.5 +862b3ea66692693aa2782ae72c71b36fe2827bc2 UPSTREAM_bacula_2.2.5_TAG +e17331d9e438f1743fe6af6401db4ef185acbe6d DEBIAN_bacula_1.38.11-3 +bc9152672955b57770d35cd00dbefb359d27b28d DEBIAN_bacula_1.38.11-4 +1ae9d641032ecd6e31ed58236c400f94c89303a3 DEBIAN_bacula_1.38.11-5 +f092a56e8ddec13767414fbab6da949257bf32e8 DEBIAN_bacula_1.38.11-6 +06e2586b07bd687d2cefcaf20752ae000b20bef2 DEBIAN_bacula_1.38.11-7 +447489882e9064ede553256f897614ef2410b6e9 DEBIAN_bacula_1.38.11-8 +f2f8f618fb2ca76c52b6e22ed6cd5aa71c2cb9e9 DEBIAN_bacula_1.38.8-0.1 +df755ec3a3f591d3fd61574ed6543da422efe3c2 DEBIAN_bacula_1.38.9-0.1 +81908124c39eb23358077c6cde8aa719527646a4 DEBIAN_bacula_1.38.9-0.2 +6a74eea3903dc051c78912f43bcbf5019ef32354 DEBIAN_bacula_1.38.9-1 +333593388e9185cf7f00ae8e20893d033c5af589 DEBIAN_bacula_1.38.9-10 +6df536d9a0247f14be571b38dbcc62c71e58a782 DEBIAN_bacula_1.38.9-2 +22986f2d3cf675953fe586498dbf1735f47b03c5 DEBIAN_bacula_1.38.9-3 +054743427d8200488e0fb2cb9ca4378cf5b6f844 DEBIAN_bacula_1.38.9-4 +59dad432971b266097b3648fda7e79144386a52c DEBIAN_bacula_1.38.9-5 +cf915d4af80817bf823fc0a6ab43abdf45e6f72d DEBIAN_bacula_1.38.9-6 +de5794dd7089a0e057c1624de31943c598b8dc7c DEBIAN_bacula_1.38.9-7 +9ae3a2bf63e9537fcc417fcf658bb99f9a555f6d DEBIAN_bacula_1.38.9-8 +dd7feb8ef4eaab5a98c5ee354fb20c768538f87b DEBIAN_bacula_1.38.9-9 +1e8a3c4b37d895ddc49ed819592e2819aa356319 DEBIAN_bacula_2.0.2-1 +634545347c1fd971bf00ec27dd41755810a0445a DEBIAN_bacula_2.0.3-1 +cd6c29d3674f95f29c4bb91265ce94f3b074bffc DEBIAN_bacula_2.0.3-2 +96677d4e1202c7b825a430f13df97e0bb44654b0 DEBIAN_bacula_2.0.3-3 +b04130d99c7de8b104717db01177cad6924e2175 Applied 2.0.3 patches +ccae339a6ff903e176a3a1c53031418e0cde9a5a DEBIAN_bacula_2.0.3-4 +3bf48534204b76b40c6a38abe66daf04511b0acd DEBIAN_bacula_2.2.0-1 +f53906ca3965c7840e750025f2c73948db8514ea DEBIAN_bacula_2.2.4-1 +7c2678669bbafebe68bfdba2a5d2ef8569d57486 DEBIAN_bacula_2.2.5-1 +ebf7dd939ce0ef6dfe85d67b20f4418296f52f17 DEBIAN_bacula_2.2.6-0.1 +43bb7278573f20a18723ef03343d2afd0b852b78 UPSTREAM_bacula_2.2.6_TAG +829f5c852be45a6697ebc335e2273415f167d44f UPSTREAM_bacula_2.2.7_TAG +ce2df0a2f792db14041132d5b660c7f9717cc3cb UPSTREAM_bacula_2.2.8 +8706294adb5ed5e0f009ca861cfc774d06220746 UPSTREAM_bacula_2.2.8_TAG +3cdaa39c43eb1e65fbd9782942f4395a835acedb DEBIAN_bacula_2.2.8-1 +17d9921c0be03b1edd2272eaee3e8df18e5a9def DEBIAN_bacula_2.2.8-2 +732857bde06d0de5b0a372b4bb16bebe37399723 DEBIAN_bacula_2.2.8-3 +7cac5b6a68e88353e20f1ff9ce69c89a29c04d63 DEBIAN_bacula_2.2.8-4 --- bacula-2.2.8.orig/updatedb/update_sqlite_tables_6_to_7 +++ bacula-2.2.8/updatedb/update_sqlite_tables_6_to_7 @@ -9,9 +9,9 @@ echo " " # The location of the sqlite program -bindir=/usr/lib/sqlite +bindir=/usr/bin # The location of your bacula working directory -cd /var/bacula +cd /var/lib/bacula if [ -s bacula.db ];then DB_VER=`echo "select * from Version;" | $bindir/sqlite bacula.db | tail -n 1 2>/dev/null` --- bacula-2.2.8.orig/updatedb/update_mysql_tables_7_to_8 +++ bacula-2.2.8/updatedb/update_mysql_tables_7_to_8 @@ -9,7 +9,7 @@ echo " " bindir=/usr/bin -DB_VER="$bindir/mysql $* bacula -e 'select * from Version;'|tail -n 1 2>/dev/null" +DB_VER="`$bindir/mysql $* bacula -e 'select * from Version;'|tail -n 1 2>/dev/null`" if [ -z "$DB_VER" ]; then echo "Sorry, I can't seem to locate a bacula database." exit 1 --- bacula-2.2.8.orig/updatedb/update_sqlite_tables_8_to_9 +++ bacula-2.2.8/updatedb/update_sqlite_tables_8_to_9 @@ -9,7 +9,7 @@ echo " " bindir=/usr/bin -cd /var/bacula/working +cd /var/lib/bacula sqlite=sqlite ${bindir}/${sqlite} $* bacula.db < `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-2.2.8.orig/debian/bacula-director-mysql.postinst +++ bacula-2.2.8/debian/bacula-director-mysql.postinst @@ -0,0 +1,165 @@ +#! /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'. + +# DoMySQL from moodle and mythtv Ubuntu packages + +escape_quotes() { + cat < /var/lib/bacula/.my.install.cf +[client] +host=$db_host +user=$dbu_name +password=$dbu_password +EOF + +/usr/share/bacula-director/make_mysql_tables --defaults-file=/var/lib/bacula/.my.install.cf +rm -rf /var/lib/bacula/.my.install.cf +} + +DoMySQL() { + local dbtype="$1" + local host="$2" + local admin_username="$3" + local admin_password="$4" + local database="$5" + local statement="`escape_quotes \"$6\"`" + local tmp=`tempfile -m 600` + cat <$tmp +$admin_password +EOF + perl -e " +use DBI; +chomp(\$password=<>); +@statements=split(/;/, '$statement'); +\$db = DBI->connect('dbi:mysql:host=$host;database=$database', + '$admin_username', \$password, + { PrintError => 0 }) || die 'Failed to connect to database: ' . \$DBI::errstr; +for \$s (@statements) { \$db->do(\$s) || die 'Failed to execute SQL: ' . \$s . '\n' . \$DBI::errstr; } +" < $tmp + ret=$? + rm -f $tmp + return $ret +} + +get_config() { + db_get bacula/db_host + db_host="$RET" + + db_get bacula/dba_name + dba_name="$RET" + + db_get bacula/dba_password + dba_password="$RET" + + db_get bacula/dbu_name + dbu_name="$RET" + + db_get bacula/dbu_password + dbu_password="$RET" + + db_name='bacula' +} + +LOGDIR=/var/log/bacula +POSTINST_COMMON=/usr/share/bacula-director/postinst-common +DEFCONFIG=/usr/share/bacula-common/defconfig +CFGFILE=/etc/bacula/bacula-dir.conf + + +case "$1" in +configure) + if dpkg --compare-versions "$2" lt 2.2.8-5ubuntu1 + then + # PreProcess configuration + echo -n "Processing configuration ..." + TARGET=$CFGFILE.dpkg-tmp + + get_config + db_stop + exec 0<&1 + + if ! DoMySQL "$db_server" "$db_host" "$dba_name" "$dba_password" "$db_name" "SELECT NULL" 2>/dev/null; then + if ! DoMySQL "$db_server" "$db_host" "$dba_name" "$dba_password" "" \ + "CREATE DATABASE $db_name"; then + echo "Failed to create database (incorrect admin username/password?)" >&2 + echo "It's also possible that mysql-server wasn't running. After install" >&2 + echo "is completed, you will need to make sure mysql-server is running" >&2 + echo "and that you supplied correct information. Try:" >&2 + echo "sudo dpkg-reconfigure bacula-director-mysql" >&2 + # silently exit, instead pop up a notification for user indicating this + #unud=/var/lib/update-notifier/user.d + #if test -d $uund; then + # cp -f /usr/share/bacula-director/bacula-reconfigure-required.update-notifier \ + # /var/lib/update-notifier/user.d/bacula-reconfigure-required + #fi + exit 0 + fi + fi + DoMySQL "$db_server" "$db_host" "$dba_name" "$dba_password" "$db_name" \ + "GRANT ALL PRIVILEGES ON $db_name.* TO $dbu_name@localhost IDENTIFIED BY '$dbu_password'" + create_tables + + sed -e "s/dbname = bacula;/dbname = $db_name; DB Address = \"$db_host\";/" \ + -e "s/@db_user@/$dbu_name/" -e "s/@db_pswd@/$dbu_password/" \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + /bin/bash $POSTINST_COMMON + + echo "Ok." + fi + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Do start daemon +db_stop + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop + sleep 1 +fi + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.templates +++ bacula-2.2.8/debian/bacula-director-sqlite3.templates @@ -0,0 +1,14 @@ +Template: bacula-director-sqlite3/create_tables +Type: boolean +Default: true +_Description: Create tables for Bacula's Catalog? + The tables needed for Bacula's catalog are missing. This is normal + for a fresh install of Bacula. These tables are needed for the + Bacula director to function. + +Template: bacula-director-sqlite3/remove_catalog_on_purge +Type: boolean +Default: false +_Description: Remove Catalog on purge? + If you want to remove the Bacula catalog when the package is purged, + you should choose this option. --- bacula-2.2.8.orig/debian/bacula-director-sqlite.config +++ bacula-2.2.8/debian/bacula-director-sqlite.config @@ -0,0 +1,45 @@ +#!/bin/sh +# config script for bacula-dir ( SQLite flavor ) +# +# by Jose Luis Tallon + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_title "Bacula Director" + +set -e + +CATALOG="/var/lib/bacula/bacula.db" + +case "$1" in + configure) + if [ ! -f "$CATALOG" ]; then + db_input medium bacula-director-sqlite/create_tables || true + db_go + fi + + db_input medium bacula-director-sqlite/remove_catalog_on_purge || true + db_go + ;; + + reconfigure) + if [ ! -f "$CATALOG" ]; then + touch $CATALOG + chown bacula:bacula $CATALOG + fi + if [ ! -n "sqlite $CATALOG .tables" ]; then + db_input medium bacula-director-sqlite/create_tables || true + db_go + fi + + db_input medium bacula-director-sqlite/remove_catalog_on_purge || true + db_go + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + --- bacula-2.2.8.orig/debian/bacula-console.menu +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-sd.postinst +++ bacula-2.2.8/debian/bacula-sd.postinst @@ -0,0 +1,66 @@ +#! /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" + + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e s~@hostname@~`hostname`~ < $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-2.2.8.orig/debian/bacula-director-common.dirs +++ bacula-2.2.8/debian/bacula-director-common.dirs @@ -0,0 +1,5 @@ +usr/lib/bacula +var/lib/bacula +var/log/bacula +var/run/bacula +usr/share/bacula-director --- bacula-2.2.8.orig/debian/bacula-sd.manpages +++ bacula-2.2.8/debian/bacula-sd.manpages @@ -0,0 +1,4 @@ +manpages/bacula-sd.8 +manpages/btape.8 +manpages/bls.8 +manpages/bextract.8 --- bacula-2.2.8.orig/debian/bacula-fd.install +++ bacula-2.2.8/debian/bacula-fd.install @@ -0,0 +1 @@ +debian/tmp-install-sqlite/usr/sbin/bacula-fd usr/sbin --- bacula-2.2.8.orig/debian/bacula-director-sqlite.postrm +++ bacula-2.2.8/debian/bacula-director-sqlite.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-2.2.8.orig/debian/bacula-fd.init +++ bacula-2.2.8/debian/bacula-fd.init @@ -0,0 +1,68 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: bacula-fd +# Required-Start: $remote_fs $syslog bacula-sd +# Required-Stop: $remote_fs $syslog 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 +# +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 + +. /usr/share/bacula-common/common-functions +create_var_run_dir + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +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 $NAME" + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + stop) + log_daemon_msg "Stopping $DESC $NAME" + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + + restart|force-reload) + log_daemon_msg "Restarting $DESC $NAME" + start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-2.2.8.orig/debian/bacula-console.postinst +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-sd-sqlite.install +++ bacula-2.2.8/debian/bacula-sd-sqlite.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite/usr/sbin/bscan usr/bin +debian/tmp-install-sqlite/usr/sbin/bcopy usr/bin --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.manpages +++ bacula-2.2.8/debian/bacula-director-sqlite3.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.prerm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-traymonitor.postinst +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-common.docs +++ bacula-2.2.8/debian/bacula-common.docs @@ -0,0 +1,9 @@ +README +ReleaseNotes +kernstodo +ABOUT-NLS +projects +AUTHORS +SUPPORT +technotes-2.1 +debian/README.Debian --- bacula-2.2.8.orig/debian/bacula-director-sqlite.templates +++ bacula-2.2.8/debian/bacula-director-sqlite.templates @@ -0,0 +1,15 @@ +Template: bacula-director-sqlite/create_tables +Type: boolean +Default: true +_Description: Create tables for Bacula's Catalog? + The tables needed for Bacula's catalog are missing. This is normal + for a fresh install of Bacula. These tables are needed for the + Bacula director to function. + +Template: bacula-director-sqlite/remove_catalog_on_purge +Type: boolean +Default: false +_Description: Remove Catalog on purge? + If you want to remove the Bacula catalog when the package is purged, + you should choose this option. + --- bacula-2.2.8.orig/debian/bacula-traymonitor.install +++ bacula-2.2.8/debian/bacula-traymonitor.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite/usr/sbin/bacula-tray-monitor usr/bin +src/tray-monitor/generic.xpm usr/share/pixmaps/bacula-traymonitor.xpm --- bacula-2.2.8.orig/debian/bacula-console.dirs +++ bacula-2.2.8/debian/bacula-console.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/bacula --- bacula-2.2.8.orig/debian/bacula-fd.manpages +++ bacula-2.2.8/debian/bacula-fd.manpages @@ -0,0 +1 @@ +manpages/bacula-fd.8 --- bacula-2.2.8.orig/debian/bacula-traymonitor.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-director-sqlite.prerm +++ bacula-2.2.8/debian/bacula-director-sqlite.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-2.2.8.orig/debian/bacula-director-mysql.manpages +++ bacula-2.2.8/debian/bacula-director-mysql.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-2.2.8.orig/debian/README.Debian +++ bacula-2.2.8/debian/README.Debian @@ -0,0 +1,122 @@ +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-sqlite + - 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 GNOME version of the admin console is contained in the +bacula-console-gnome package. + +The wxWidgets-based console is included in the bacula-console-wx +package. + +There are no wrappers for bacula-console-gnome nor +bacula-wxconsole since they 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. + +SSL/TLS +======= + +Due to licensing concerns (see NEWS.Debian), SSL/TLS is disabled in current +Debian builds. This disables both encryption for the on-the-wire +protocol as well as encryption of the backed-up data. + +To build your own package with SSL/TLS support, edit debian/rules and add +--with-openssl to the configure parameters. + +POSTGRESQL NOTES +================ + +The PostgreSQL Bacula packages are designed to work with PostgreSQL 8.1. +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. + +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 , Sat, 13 May 2006 10:18:42 -0500 --- bacula-2.2.8.orig/debian/bacula-director-mysql.config +++ bacula-2.2.8/debian/bacula-director-mysql.config @@ -0,0 +1,122 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_version 2.0 +db_capb backup + +db_input high bacula/sgbd || true + +STATE=1 +while [ "$STATE" != 0 -a "$STATE" -lt 10 ] + do + case "$STATE" in + 1) + db_input critical bacula/db_host || true + if db_go; then + db_get bacula/db_host || true + if [ ! -z "$RET" ]; then + STATE=2 + fi + else + STATE=1 + fi + ;; + + 2) + db_input critical bacula/dba_name || true + if db_go; then + db_get bacula/dba_name || true + if [ ! -z "$RET" ]; then + STATE=3 + fi + else + STATE=2 + fi + ;; + + 3) + db_input critical bacula/dba_password || true + if db_go; then + db_get bacula/dba_password || true + STATE=4 + else + STATE=3 + fi + ;; + + 4) + db_input critical bacula/dba_confirm || true + if db_go; then + db_get bacula/dba_confirm || true + CONFIRM="$RET" + db_get bacula/dba_password || true + if [ "$RET" != "$CONFIRM" ]; then + STATE=5 + else + STATE=6 + fi + else + STATE=3 + fi + ;; + + 5) + db_input critical bacula/mismatch || true + db_go + STATE=3 + ;; + + 6) + db_input critical bacula/dbu_name || true + if db_go; then + db_get bacula/dbu_name || true + if [ ! -z "$RET" ]; then + STATE=7 + fi + else + STATE=6 + fi + ;; + + 7) + db_input critical bacula/dbu_password || true + if db_go; then + db_get bacula/dbu_password || true + STATE=8 + else + STATE=7 + fi + ;; + + 8) + db_input critical bacula/dbu_confirm || true + if db_go; then + db_get bacula/dbu_confirm || true + CONFIRM="$RET" + db_get bacula/dbu_password || true + if [ "$RET" != "$CONFIRM" ]; then + STATE=9 + else + STATE=10 + fi + else + STATE=7 + fi + ;; + + 9) + db_input critical bacula/mismatch || true + db_go + STATE=7 + ;; + + esac +done + +if [ "$STATE" = 0 ]; then + db_input critical bacula/notconfigured || true + db_go + exit 1 +fi --- bacula-2.2.8.orig/debian/bacula-sd.init +++ bacula-2.2.8/debian/bacula-sd.init @@ -0,0 +1,68 @@ +#!/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 +# +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 + +. /usr/share/bacula-common/common-functions +create_var_run_dir + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +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 $NAME" + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + stop) + log_daemon_msg "Stopping $DESC $NAME " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + + restart|force-reload) + log_daemon_msg "Restarting $DESC $NAME" + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-2.2.8.orig/debian/bacula-traymonitor.menu +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-sd.prerm +++ bacula-2.2.8/debian/bacula-sd.prerm @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for bacula-sd +# + +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-2.2.8.orig/debian/bacula-director-pgsql.templates +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-common.dirs +++ bacula-2.2.8/debian/bacula-common.dirs @@ -0,0 +1,7 @@ +etc/bacula +var/run/bacula +var/lib/bacula +var/log/bacula +usr/share/bacula-common +usr/share/bacula-common/defconfig +usr/lib/bacula --- bacula-2.2.8.orig/debian/bacula-fd.postinst +++ bacula-2.2.8/debian/bacula-fd.postinst @@ -0,0 +1,66 @@ +#! /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" + + +case "$1" in + configure) + + if [ ! -f $DSTDIR/$CONFIG ]; then + TARGET=$DSTDIR/$CONFIG + else + TARGET=$DSTDIR/$CONFIG.dist + fi + + sed -e s~@hostname@~`hostname`~ < $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-2.2.8.orig/debian/watch +++ bacula-2.2.8/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/bacula/bacula-?_?([\w+\d+\.]+|\d+)\.tar\.gz debian uupdate --- bacula-2.2.8.orig/debian/bacula-sd-mysql.manpages +++ bacula-2.2.8/debian/bacula-sd-mysql.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-2.2.8.orig/debian/bacula-sd.dirs +++ bacula-2.2.8/debian/bacula-sd.dirs @@ -0,0 +1,5 @@ +usr/sbin +usr/lib/bacula +var/lib/bacula +var/run/bacula +etc/bacula --- bacula-2.2.8.orig/debian/rules +++ bacula-2.2.8/debian/rules @@ -0,0 +1,313 @@ +#!/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) + + +CFLAGS = -g -Wall +INSTALL_PROGRAM = install + +SHELL := bash + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +VARIANTS := sqlite 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 := sqlite +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-libiconv-prefix=/usr/include --with-readline=yes \ + --with-libintl-prefix=/usr/include --with-x --with-readline=yes + +CONF_common = --disable-gnome --disable-bwx-console --disable-tray-monitor \ + --disable-bat + +CONF_sqlite = --with-sqlite --without-mysql --without-postgresql --without-sqlite3 \ + --disable-bwx-console --enable-tray-monitor --disable-bat + +CONF_sqlite3 = --with-sqlite3 --without-mysql --without-postgresql --without-sqlite $(CONF_common) +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=./_darcs --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 $(SHELL) ./configure --config-cache \ + --host=${DEB_HOST_GNU_TYPE} --build=${DEB_BUILD_GNU_TYPE} \ + --prefix=/usr \ + --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 debian/po/templates.pot + +############################################### +# Cleaning macro +############################################### + +clean: + + [ ! -f patch-stamp ] || patch -R -p0 -i debian/patches/ubuntu_bacula-dir.conf.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 + + +debian/po/templates.pot: $(TEMPLATES) + @debconf-updatepo + +# 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 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 + cp $(DEFAULTINSTALLDIR)/usr/sbin/bconsole debian/bacula-console/usr/sbin/bacula-console + + +######### dbconfig-common stuff +# PostgreSQL +# Releases prior to 2.0 put update scripts in updatedb. +# 2.0.0 now has it in src/cats without a version number. +# Will need to watch this on the next upgrade (also check it with mysql) +# $(call ext-upgrade,pgsql,updatedb/update_postgresql_tables_7_to_8,1.36.0) +# $(call ext-upgrade,pgsql,updatedb/update_postgresql_tables_8_to_9,1.38.0) +# $(call ext-upgrade,pgsql,debian/tmp-build-pgsql/src/cats/update_postgresql_tables,2.0.0) +# 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-upgrade,mysql,updatedb/update_mysql_tables_6_to_7,1.32f-5) +# $(call ext-upgrade,mysql,updatedb/update_mysql_tables_7_to_8,1.36.0) +# $(call ext-upgrade,mysql,updatedb/update_mysql_tables_8_to_9,1.38.0) +# $(call ext-upgrade,mysql,debian/tmp-build-mysql/src/cats/update_mysql_tables,2.0.0) +# $(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 's/USE \${db_name};//' debian/bacula-director-mysql/$(DBC)/bacula-director-mysql/install/mysql debian/bacula-director-mysql/$(DBC)/bacula-director-mysql/upgrade/mysql/* +# +## SQLite +# cp updatedb/update_sqlite_tables_[678]* \ +# debian/bacula-director-sqlite/usr/share/bacula-director/ +# cp debian/tmp-build-sqlite/src/cats/update_sqlite_tables \ +# debian/bacula-director-sqlite/usr/share/bacula-director/ +# cp debian/tmp-install-sqlite/etc/bacula/scripts/make_sqlite_tables \ +# debian/bacula-director-sqlite/usr/share/bacula-director +# sed -i 's./var/bacula./var/lib/bacula.' \ +# debian/bacula-director-sqlite/usr/share/bacula-director/update* +## SQLite3 +# cp debian/tmp-install-sqlite3/etc/bacula/scripts/make_sqlite3_tables \ +# debian/bacula-director-sqlite3/usr/share/bacula-director +# cp debian/tmp-build-sqlite3/src/cats/update_sqlite3_tables \ +# debian/bacula-director-sqlite3/usr/share/bacula-director/ +# sed -i 's./var/bacula./var/lib/bacula.' \ +# debian/bacula-director-sqlite3/usr/share/bacula-director/update* + + 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 \ + bacula-sd.conf bacula-fd.conf tray-monitor.conf; do \ + debian/patches/fix_config \ + debian/tmp-install-sqlite/etc/bacula/$$f \ + debian/bacula-common/usr/share/bacula-common/defconfig/$$f; \ + done + debian/patches/fix_director \ + debian/tmp-install-sqlite/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 + + 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 + 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 + dh_link -i + dh_compress -i -X.pdf + 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 + dh_installlogrotate -a + dh_installinit -pbacula-sd --no-start -- defaults 90 + dh_installinit -pbacula-fd --no-start -- defaults 91 + dh_installinit --name=bacula-director -pbacula-director-common --no-start -- defaults 92 +# dh_installcron -a + dh_installman -a + dh_installinfo -a + dh_installchangelogs ChangeLog -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + 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-2.2.8.orig/debian/bacula-common.postinst +++ bacula-2.2.8/debian/bacula-common.postinst @@ -0,0 +1,58 @@ +#! /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'. + +case "$1" in + configure) + chown bacula:daemon /var/run/bacula + chmod 755 /var/run/bacula + chown bacula:bacula /var/lib/bacula + chmod 700 /var/lib/bacula + chown bacula:adm /var/log/bacula + chmod 750 /var/log/bacula + + ;; + + 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-2.2.8.orig/debian/bacula-sd.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-director-mysql.templates +++ bacula-2.2.8/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: bacula +_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-2.2.8.orig/debian/bacula-common.install +++ bacula-2.2.8/debian/bacula-common.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite/usr/sbin/btraceback usr/lib/bacula +debian/tmp-install-sqlite/etc/bacula/scripts/btraceback.gdb etc/bacula/scripts --- bacula-2.2.8.orig/debian/bacula-common.manpages +++ bacula-2.2.8/debian/bacula-common.manpages @@ -0,0 +1,3 @@ +manpages/bacula.8 +#debian/tmp-install-sqlite/usr/share/man/man8/bacula.8.gz + --- bacula-2.2.8.orig/debian/bacula-director-mysql.postrm +++ bacula-2.2.8/debian/bacula-director-mysql.postrm @@ -0,0 +1,51 @@ +#! /bin/sh +# postrm script for bacula +# +# see: dh_installdeb(1) + +. /usr/share/debconf/confmodule +db_version 2.0 + +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-2.2.8.orig/debian/common-functions +++ bacula-2.2.8/debian/common-functions @@ -0,0 +1,7 @@ +create_var_run_dir() +{ + if [ ! -d /var/run/bacula/ ]; then + mkdir -p -m 0755 /var/run/bacula/ + chown bacula:daemon /var/run/bacula/ + fi +} --- bacula-2.2.8.orig/debian/control +++ bacula-2.2.8/debian/control @@ -0,0 +1,225 @@ +Source: bacula +Section: utils +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: John Goerzen +Build-Depends: autotools-dev, debhelper (>= 4.2), po-debconf (>= 0.8.2), + zlib1g-dev, libreadline5-dev | libreadline-dev, + libsqlite0-dev, libsqlite3-dev, libmysqlclient15-dev, libpq-dev, + postgresql-server-dev-8.3, + 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, +Build-Conflicts: python2.2-dev, python2.3, qt3-dev-tools +Standards-Version: 3.7.3 +Vcs-Browser: http://git.debian.org/?p=users/jgoerzen/bacula +Vcs-Git: git://git.debian.org/users/jgoerzen/bacula + +Package: bacula +Architecture: all +Depends: bacula-server, bacula-client +Suggests: bacula-doc +Description: Network backup, recovery and verification (Meta-package) + Bacula is a set of computer programs that permit you (or the system + administrator) to manage backup, recovery and verification of computer data + across a network of computer of different kinds. + . + Bacula is relatively easy to use and efficient, 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 systems consisting of hundreds of computers located over + a large network. + . + This meta-package provides 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} +Suggests: bacula-doc +Description: Network backup, recovery and verification (Common Support files) + Bacula is a set of computer programs that permit you to manage backup, + recovery, and verification of computer data across a network of computers + of different kinds. + +Package: bacula-director-common +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, bacula-common (= ${source:Version}) +Depends: ${shlibs:Depends}, adduser, mailx +Description: Network backup, recovery and verification (Director common files) + Bacula is a set of computer programs that permit you to manage backup, + recovery, and verification of computer data across a network of computers + of different kinds. + +Package: bacula-director-sqlite +Architecture: any +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Depends: bacula-director-common (= ${binary:Version}), sqlite, ${shlibs:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Description: Network backup, recovery and verification (Director daemon) + The Bacula Director service supervises all the backup, restore, verify and + archive operations. The system administrator uses the Director to schedule + backups and to recover files. + The Director can run as a daemon or as a service (i.e. in the foreground) + . + This version stores Bacula's Catalog in an SQLite database, and thus is + suited for smaller installations. + +Package: bacula-director-sqlite3 +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Architecture: any +Depends: bacula-director-common (= ${binary:Version}), sqlite3, ${shlibs:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Description: Network backup, recovery and verification (Director daemon) + The Bacula Director service supervises all the backup, restore, verify and + archive operations. The system administrator uses the Director to schedule + backups and to recover files. + The Director can run as a daemon or as a service (i.e. in the foreground) + . + This version stores Bacula's Catalog in an SQLite3 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}), mysql-client, libdbi-perl, libdbd-mysql-perl, ${shlibs:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Recommends: mysql-server (>= 4.0) +Description: Network backup, recovery and verification (Director daemon) + The Bacula Director service supervises all the backup, restore, verify and + archive operations. The system administrator uses the Director to schedule + backups and to recover files. + The Director can run as a daemon or as a service (i.e. in the foreground) + . + This version stores Bacula's Catalog in a MySQL server, and thus is suited + for largish installations. + +Package: bacula-director-pgsql +Pre-Depends: debconf (>= 1.4.30) | debconf-2.0 +Architecture: any +Depends: bacula-director-common (= ${binary:Version}), postgresql-client (>= 7.4), ${shlibs:Depends} +Conflicts: bacula-director +Provides: bacula-director +Replaces: bacula-director +Recommends: postgresql (>= 7.4) +Suggests: postgresql-contrib, postgresql-doc +Description: Network backup, recovery and verification (Director daemon) + The Bacula Director service supervises all the backup, restore, verify and + archive operations. The system administrator uses the Director to schedule + backups and to recover files. + The Director can run as a daemon or as a service (i.e. in the foreground) + . + This version stores Bacula's Catalog in a PostgreSQL server, and thus is + suited for largish installations. + +Package: bacula-client +Architecture: all +Depends: bacula-console (>= ${source:Version}), bacula-fd (>= ${source:Version}) +Recommends: bacula-traymonitor +Description: Network backup, recovery and verification (Client meta-package) + Minimal Bacula system client (File Daemon and Console only) + +Package: bacula-fd +Architecture: any +Depends: bacula-common (= ${source:Version}), ${shlibs:Depends} +Suggests: bacula-traymonitor +Description: Network backup, recovery and verification (Filer daemon) + This program has to be installed in 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 filesystem-dependent part of restoration. + . + There is a Win32 version of this program available for download from + Bacula's website: www.bacula.org + +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 +Recommends: bacula-fd +Description: Network backup, recovery and verification (Server meta-package) + Bacula system server: SQL-based catalog (SQLite, MySQL, or PgSQL) and + Storage Daemon, for a single machine (medium-sized deployment) + . + This meta-package provides an standard server install, comprising Director + and Storage daemons. + +Package: bacula-sd +Architecture: any +Pre-Depends: bacula-common (= ${source:Version}) +Depends: ${shlibs:Depends}, mtx, python +Recommends: mt-st, bacula-sd-tools +Suggests: dds2tar, scsitools, sg3-utils +Description: Network backup, recovery and verification (Storage daemon) + This program performs the storage and recovery of the file attributes and + data to the physical backup media or volumes. In other words, it is + responsible for reading and writing your tapes (or other storage media, + such as files). + . + The Storage Daemon runs as a daemon on the machine which has the backup + device(s) (usually a tape drive). + +Package: bacula-sd-sqlite3 +Architecture: any +Depends: bacula-sd (= ${binary:Version}), ${shlibs:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<< 1.38.9) +Replaces: bacula-sd-tools, bacula-sd (<< 1.38.9) +Provides: bacula-sd-tools +Description: Network backup, recovery and verification (SD tools-SQLite3) + This package contains 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}), ${shlibs:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<< 1.38.9) +Replaces: bacula-sd-tools, bacula-sd (<< 1.38.9) +Provides: bacula-sd-tools +Description: Network backup, recovery and verification (SD tools-SQLite) + This package contains the bscan and bcopy utilities, which are used for + recovery when Bacula's catalog is unavailable. + +Package: bacula-sd-mysql +Architecture: any +Depends: bacula-sd (= ${binary:Version}), ${shlibs:Depends} +Conflicts: bacula-sd-tools, bacula-sd (<< 1.38.9) +Replaces: bacula-sd-tools, bacula-sd (<< 1.38.9) +Provides: bacula-sd-tools +Description: Network backup, recovery and verification (SD tools-MySQL) + This package contains 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} +Conflicts: bacula-sd-tools, bacula-sd (<< 1.38.9) +Replaces: bacula-sd-tools, bacula-sd (<< 1.38.9) +Provides: bacula-sd-tools +Description: Network backup, recovery and verification (SD tools-PostgreSQL) + This package contains 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 (= ${source:Version}), ${shlibs:Depends} +Description: Network backup, recovery and verification (Mgmt. Console) + The Console allows the administrator or user to communicate with the + Bacula Director. This is the TTY version. + +Package: bacula-traymonitor +Architecture: any +Depends: ${shlibs:Depends}, bacula-common (= ${source:Version}) +Suggests: kde|gnome-desktop-environment +Description: Network backup, recovery and verification (Tray monitor) + This is the tray monitor for the Bacula backup system. It is + FreeDesktop-compatible, which means it will work under both KDE and + GNOME. + . + This lets you easily keep an eye on the status of Bacula. --- bacula-2.2.8.orig/debian/po/pt_BR.po +++ bacula-2.2.8/debian/po/pt_BR.po @@ -0,0 +1,91 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: bacula\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2006-07-04 00:29-0300\n" +"Last-Translator: Felipe Augusto van de Wiel (faw) \n" +"Language-Team: l10n portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"pt_BR utf-8\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Criar as tabelas para o Catálogo do Bacula ?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"As tabelas necessárias para o catálogo do Bacula estão faltando. Isso é " +"normal para uma nova instalação do Bacula." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Remover Catálogo ao expurgar o pacote ?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "These tables are needed for the Bacula director to function. Should these " +#~ "tables be automatically set up for you?" +#~ msgstr "" +#~ "Essas tabelas são necessárias para que o \"Bacula director\" funcione. As " +#~ "mesmas devem ser criadas automaticamente para você ?" + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Você deseja que o Catálogo do Bacula seja removido caso você expurge " +#~ "(remova com a opção \"purge\") o \"Bacula director\" ?" + +#~ msgid "" +#~ "Warning: This is not undoable. Once you remove the catalog, you won't be " +#~ "able to restore your backups unless you have another copy of the catalog " +#~ "at hand." +#~ msgstr "" +#~ "Aviso : Isso é perigoso. Uma vez que o catálogo tenha sido removido, não " +#~ "será mais possível restaurar seus backups a menos que você tenha uma " +#~ "outra cópia da caálogo em mãos." + +#~ msgid "" +#~ "Shall I remove the Catalog / SQLite database at package purge time? This " +#~ "will free all the used space." +#~ msgstr "" +#~ "O Catálogo / base de dados SQLite deverá ser removido quando o pacote do " +#~ "Bacula for expurgado ? Isso irá liberar todo o espaço ocupado." --- bacula-2.2.8.orig/debian/po/vi.po +++ bacula-2.2.8/debian/po/vi.po @@ -0,0 +1,81 @@ +# Vietnamese translation for bacula. +# Copyright © 2007 Free Software Foundation, Inc. +# Clytie Siddall , 2005-2007. +# +msgid "" +msgstr "" +"Project-Id-Version: bacula_2.0.3-4\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2007-06-01 22:28+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: LocFactoryEditor 1.6.3b1\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Tạo bảng cho phân loại của Bacula không?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"Thiếu bảng cần đến cho phân loại Bacula: trường hợp chuẩn cho bản cài đặt " +"Bacula mới." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Gỡ bỏ phân loại khi tẩy không?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "These tables are needed for the Bacula director to function. Should these " +#~ "tables be automatically set up for you?" +#~ msgstr "" +#~ "Những bảng này cần thiết để trình điều khiển Bacula hoạt động được. Có " +#~ "nên tự động thiết lập những bảng cho bạn không?" + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Bạn có muốn Phân loại Bacula bị gỡ bỏ nếu bạn tẩy thư mục Bacula không?" + +#~ msgid "" +#~ "Warning: This is not undoable. Once you remove the catalog, you won't be " +#~ "able to restore your backups unless you have another copy of the catalog " +#~ "at hand." +#~ msgstr "" +#~ "Cảnh báo: không thể hủy bước này. Một khi đã loại bỏ phân loại, không thể " +#~ "phục hồi bản lưu trữ, trừ bạn có một bản sao phân loại nữa." + +#~ msgid "" +#~ "Shall I remove the Catalog / SQLite database at package purge time? This " +#~ "will free all the used space." +#~ msgstr "" +#~ "Bạn có muốn loại phân loại /bỏ cơ sở dữ liệu SQLite khi tẩy gói tin này? " +#~ "Làm như thế sẽ giải phóng các sức chứa đã dùng." --- bacula-2.2.8.orig/debian/po/pt.po +++ bacula-2.2.8/debian/po/pt.po @@ -0,0 +1,73 @@ +# Portuguese Translation for bacula debconf messages +# This file is distributed under the same license as the bacula package. +# Ricardo Silva , 2006 +# +# +msgid "" +msgstr "" +"Project-Id-Version: bacula 2.2.6-0.2\n" +"Report-Msgid-Bugs-To: bacula@packages.debian.org\n" +"POT-Creation-Date: 2008-01-27 22:28+0100\n" +"PO-Revision-Date: 2008-01-29 17:21+0000\n" +"Last-Translator: Ricardo Silva \n" +"Language-Team: Native Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#| msgid "Create tables for Bacula's Catalog?" +msgid "Create tables for Bacula's catalog?" +msgstr "Criar tabelas para o catálogo do Bacula?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#| msgid "" +#| "The tables needed for Bacula's catalog are missing. This is normal for a " +#| "fresh install of Bacula." +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula." +msgstr "" +"As tabelas necessárias para o catálogo do Bacula não existem. Isto é normal " +"numa instalação fresca do Bacula." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#| msgid "" +#| "These tables are needed for the Bacula director to function. Should these " +#| "tables be automatically set up for you?" +msgid "" +"These tables are needed for the Bacula director to function. Please choose " +"whether these tables should be automatically created." +msgstr "" +"Estas tabelas são necessárias para o director do Bacula funcionar. Por favor " +"indique se estas tabelas devem ser criadas automaticamente." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +#| msgid "Remove Catalog on purge?" +msgid "Remove catalog on purge?" +msgstr "Remover o catálogo aquando da eliminação?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "" +"Please choose whether the Bacula catalog should be removed when the director " +"package is purged." +msgstr "" +"Por favor indique se quer que o catálogo do Bacula seja removido quando o pacote " +"do director for eliminado." + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Deseja que o Catálogo do Bacula seja removido se eliminar o director do " +#~ "Bacula?" --- bacula-2.2.8.orig/debian/po/nl.po +++ bacula-2.2.8/debian/po/nl.po @@ -0,0 +1,81 @@ +# translation of bacula 1.38.9-10_templates.po to Dutch +# This file is distributed under the same license as the bacula package. +# Please see debian/copyright. +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# Luk Claes , 2004 +# Kurt De Bree , 2006 +# This is an unofficial translation +# +msgid "" +msgstr "" +"Project-Id-Version: bacula 1.38.9-10\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2006-06-19 19:28+0100\n" +"Last-Translator: Kurt De Bree \n" +"Language-Team: Debian l10n Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Tabellen creëren voor de catalogus van Bacula?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"De benodigde tabellen voor de Bacula catalogus ontbreken. Dit is normaal " +"voor een verse installatie." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Catalogus verwijderen bij wissen (purge)?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "These tables are needed for the Bacula director to function. Should these " +#~ "tables be automatically set up for you?" +#~ msgstr "" +#~ "Deze tabellen zijn nodig voor de werking van de 'Bacula director'. Wilt u " +#~ "deze tabellen automatisch aanmaken?" + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Wilt u dat de Bacula catalogus verwijderd wordt als de Bacula director " +#~ "wordt gewist (purge)?" --- bacula-2.2.8.orig/debian/po/es.po +++ bacula-2.2.8/debian/po/es.po @@ -0,0 +1,77 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2004-09-08 03:35+CET\n" +"Last-Translator: Jose Luis Tallon \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Crear las tablas para el catlogo?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"Hemos detectado que las tablas necesarias para contener el catlogo de " +"Bacula no estn accesibles (tiene pinta de tratarse de una instalacin " +"nueva). Debo crearlas ahora?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Borrar el catlogo al eliminar el paquete?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "Warning: This is not undoable. Once you remove the catalog, you won't be " +#~ "able to restore your backups unless you have another copy of the catalog " +#~ "at hand." +#~ msgstr "" +#~ "Advertencia: Esta accin no se puede deshacer. Una vez que se elimine el " +#~ "catlogo, no podr restaurar sus copias de seguridad a menos que disponga " +#~ "de otra copia del catlogo." + +#~ msgid "" +#~ "Shall I remove the Catalog / SQLite database at package purge time? This " +#~ "will free all the used space." +#~ msgstr "" +#~ "Debo borrar el catlogo cuando se elimine el paquete? Esto liberar todo " +#~ "el espacio utilizado por el catlogo." --- bacula-2.2.8.orig/debian/po/cs.po +++ bacula-2.2.8/debian/po/cs.po @@ -0,0 +1,77 @@ +# translation of bacula_1.38.11-6_cs-utf8.po to czech +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# Jakub Kasparec , 2006. +msgid "" +msgstr "" +"Project-Id-Version: bacula_1.38.11-6_cs-utf8\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2006-10-12 21:26+0200\n" +"Last-Translator: Jakub Kasparec \n" +"Language-Team: czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Přejete si vytvořit tabulky pro katalog Baculy?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"Zjistil jsem, že chybí tabulky potřebné pro katalog Baculy (pravděpodobně " +"instalujete Baculu prvně)." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Odebrat při odstraňování balíku také katalog?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "These tables are needed for the Bacula director to function. Should these " +#~ "tables be automatically set up for you?" +#~ msgstr "" +#~ "Tyto tabulky jsou potřeba pro správnou funkci balíku Bacula director. Mám " +#~ "pro vás tyto tabulky automaticky nastavit?" + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Přejete si odebrat také katalog Baculy při odstranění balíku Bacula " +#~ "director?" --- bacula-2.2.8.orig/debian/po/POTFILES.in +++ bacula-2.2.8/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] bacula-director-sqlite.templates +[type: gettext/rfc822deb] bacula-director-sqlite3.templates --- bacula-2.2.8.orig/debian/po/templates.pot +++ bacula-2.2.8/debian/po/templates.pot @@ -0,0 +1,50 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" --- bacula-2.2.8.orig/debian/po/de.po +++ bacula-2.2.8/debian/po/de.po @@ -0,0 +1,82 @@ +# Translation of bacula debconf templates to German +# Copyright (C) Philipp Hahn , 2004. +# Copyright (C) Helge Kreutzmann , 2006-2008. +# This file is distributed under the same license as the bacula package. +# +msgid "" +msgstr "" +"Project-Id-Version: bacula 2.2.6-0.2\n" +"Report-Msgid-Bugs-To: bacula@packages.debian.org\n" +"POT-Creation-Date: 2008-01-27 22:28+0100\n" +"PO-Revision-Date: 2008-01-28 19:20+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: de \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "Create tables for Bacula's catalog?" +msgstr "Tabellen fr Baculas Katalog erzeugen?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula." +msgstr "" +"Die fr Baculas Katalog bentigten Tabellen fehlen. Dies ist bei einer " +"frischen Installation von Bacula normal." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"These tables are needed for the Bacula director to function. Please choose " +"whether these tables should be automatically created." +msgstr "" +"Diese Tabellen werden bentigt, damit Baculas Director funktioniert. Bitte " +"whlen Sie aus, ob diese Tabellen automatisch fr Sie eingerichtet werden " +"sollen." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "Remove catalog on purge?" +msgstr "Katalog beim vollstndigen Entfernen lschen?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "" +"Please choose whether the Bacula catalog should be removed when the director " +"package is purged." +msgstr "" +"Bitte whlen Sie aus, ob der Bacula Katalog gelscht werden soll, wenn das " +"Paket Director vollstndig entfernt (purged) wird." + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Soll Baculas Katalog entfernt werden, falls Sie Baculas Director " +#~ "vollstndig lschen?" + +#~ msgid "" +#~ "Warning: This is not undoable. Once you remove the catalog, you won't be " +#~ "able to restore your backups unless you have another copy of the catalog " +#~ "at hand." +#~ msgstr "" +#~ "Warnung: Dies kann nicht rckgngig gemacht werden. Sobald der Katalog " +#~ "entfernt ist, knnen keine Backups mehr wiederhergestellt werden, auer " +#~ "es existiert noch eine Kopie des Katalogs." + +#~ msgid "" +#~ "Shall I remove the Catalog / SQLite database at package purge time? This " +#~ "will free all the used space." +#~ msgstr "" +#~ "Soll der Katalog / SQLite Datenbanken beim Lschen des Pakets entfernt " +#~ "werden? Dies wird allen belegten Speicher freigeben." --- bacula-2.2.8.orig/debian/po/gl.po +++ bacula-2.2.8/debian/po/gl.po @@ -0,0 +1,63 @@ +# Galician translation of bacula's debconf templates +# This file is distributed under the same license as the bacula package. +# Jacobo Tarrio , 2007, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: bacula\n" +"Report-Msgid-Bugs-To: bacula@packages.debian.org\n" +"POT-Creation-Date: 2008-01-27 22:28+0100\n" +"PO-Revision-Date: 2008-01-28 19:16+0000\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "Create tables for Bacula's catalog?" +msgstr "¿Crear táboas para o catálogo de Bacula?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula." +msgstr "" +"Fallan as táboas necesarias para o catálogo de Bacula. Isto é normal nunha " +"instalación nova de Bacula." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"These tables are needed for the Bacula director to function. Please choose " +"whether these tables should be automatically created." +msgstr "" +"Esas táboas son necesarias para que funcione o director de Bacula. Indique " +"se quere que se configuren automaticamente esas táboas." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "Remove catalog on purge?" +msgstr "¿Eliminar o catálogo ao purgar?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "" +"Please choose whether the Bacula catalog should be removed when the director " +"package is purged." +msgstr "" +"Indique se quere que se elimine o catálogo de Bacula ao purgar o paquete do " +"director." + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "¿Quere que se elimine o Catálogo de Bácula ao purgar o director de Bacula?" --- bacula-2.2.8.orig/debian/po/sv.po +++ bacula-2.2.8/debian/po/sv.po @@ -0,0 +1,78 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: bacula 1.36.3-2\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2005-11-14 22:11+0100\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: swe\n" +"X-Poedit-Country: swe\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Skapa tabeller för Bacula:s katalog?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"Jag har detekterat att tabellerna som behövs för Bacula-katalogen saknas " +"(detta är antagligen en färsk installation). Ska jag skapa dom nu?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Ta bort katalog vid avinstallation?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "Warning: This is not undoable. Once you remove the catalog, you won't be " +#~ "able to restore your backups unless you have another copy of the catalog " +#~ "at hand." +#~ msgstr "" +#~ "Varning: Detta är permanent. När du en gång tagit bort katalogen kommer " +#~ "du inte kunna återställa dina säkerhetskopior om du inte har en annan " +#~ "kopia av katalogen till hands." + +#~ msgid "" +#~ "Shall I remove the Catalog / SQLite database at package purge time? This " +#~ "will free all the used space." +#~ msgstr "" +#~ "Ska jag ta bort katalogen/SQLite-databasen när paketet rensas ut? Detta " +#~ "kommer att lämna tillbaka all använd diskplats." --- bacula-2.2.8.orig/debian/po/fr.po +++ bacula-2.2.8/debian/po/fr.po @@ -0,0 +1,75 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# Initial translator: Eric Madesclair +msgid "" +msgstr "" +"Project-Id-Version: bacula\n" +"Report-Msgid-Bugs-To: jgoerzen@complete.org\n" +"POT-Creation-Date: 2007-08-30 22:42+0100\n" +"PO-Revision-Date: 2006-05-25 15:04+0200\n" +"Last-Translator: Thomas Huriaux \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +msgid "Create tables for Bacula's Catalog?" +msgstr "Faut-il crer les tables du catalogue de Bacula?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:1001 +#: ../bacula-director-sqlite3.templates:1001 +#, fuzzy +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula. These tables are needed for the Bacula director to " +"function." +msgstr "" +"Les tables ncessaires au catalogue de Bacula sont absentes. Cette situation " +"est normale pour une nouvelle installation." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "Remove Catalog on purge?" +msgstr "Faut-il supprimer le catalogue lors de la purge du paquet?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +#: ../bacula-director-sqlite3.templates:2001 +msgid "" +"If you want to remove the Bacula catalog when the package is purged, you " +"should choose this option." +msgstr "" + +#~ msgid "" +#~ "These tables are needed for the Bacula director to function. Should these " +#~ "tables be automatically set up for you?" +#~ msgstr "" +#~ "Ces tables sont ncessaires pour le bon fonctionnement de Bacula. " +#~ "Choisissez cette option pour configurer automatiquement ces tables." + +#~ msgid "" +#~ "Do you want the Bacula Catalog to be removed if you purge the Bacula " +#~ "director?" +#~ msgstr "" +#~ "Choisissez cette option pour supprimer le catalogue de Bacula lors de la " +#~ "purge du Director de Bacula." --- bacula-2.2.8.orig/debian/po/ja.po +++ bacula-2.2.8/debian/po/ja.po @@ -0,0 +1,68 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: bacula 2.2.6-0.2\n" +"Report-Msgid-Bugs-To: bacula@packages.debian.org\n" +"POT-Creation-Date: 2008-01-27 22:28+0100\n" +"PO-Revision-Date: 2008-01-29 21:26+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "Create tables for Bacula's catalog?" +msgstr "Bacula のカタログ用テーブルを作成しますか?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"The tables needed for Bacula's catalog are missing. This is normal for a " +"fresh install of Bacula." +msgstr "" +"Bacula のカタログに必要なテーブルが存在していません。Bacula を初めてインス" +"トールする場合は問題ありません。" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:2001 +msgid "" +"These tables are needed for the Bacula director to function. Please choose " +"whether these tables should be automatically created." +msgstr "" +"これらのテーブルは Bacula director が動作するために必要です。自動的にテーブル" +"を作成するかどうか決めてください。" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "Remove catalog on purge?" +msgstr "purge の際にカタログを削除しますか?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:3001 +msgid "" +"Please choose whether the Bacula catalog should be removed when the director " +"package is purged." +msgstr "" +"director パッケージを purge する際に Bacula のカタログを削除するかどうかを決めて" +"ください。" + --- bacula-2.2.8.orig/debian/po/Makefile +++ bacula-2.2.8/debian/po/Makefile @@ -0,0 +1,6 @@ +# +.PHONY: dummy + + +tidy: dummy + rm -f *~ --- bacula-2.2.8.orig/debian/bacula-director-common.postinst +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-director-mysql.dirs +++ bacula-2.2.8/debian/bacula-director-mysql.dirs @@ -0,0 +1,3 @@ +usr/sbin +usr/lib/bacula +etc/bacula --- bacula-2.2.8.orig/debian/bacula-sd-sqlite3.manpages +++ bacula-2.2.8/debian/bacula-sd-sqlite3.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.config +++ bacula-2.2.8/debian/bacula-director-sqlite3.config @@ -0,0 +1,45 @@ +#!/bin/sh +# config script for bacula-dir ( SQLite flavor ) +# +# by Jose Luis Tallon + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_title "Bacula Director" + +set -e + +CATALOG="/var/lib/bacula/bacula.db" + +case "$1" in + configure) + if [ ! -f "$CATALOG" ]; then + db_input medium bacula-director-sqlite3/create_tables || true + db_go + fi + + db_input medium bacula-director-sqlite3/remove_catalog_on_purge || true + db_go + ;; + + reconfigure) + if [ ! -f "$CATALOG" ]; then + touch $CATALOG + chown bacula:bacula $CATALOG + fi + if [ ! -n "sqlite3 $CATALOG .tables" ]; then + db_input medium bacula-director-sqlite3/create_tables || true + db_go + fi + + db_input medium bacula-director-sqlite3/remove_catalog_on_purge || true + db_go + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + --- bacula-2.2.8.orig/debian/bacula-director-sqlite.dirs +++ bacula-2.2.8/debian/bacula-director-sqlite.dirs @@ -0,0 +1,3 @@ +usr/sbin +usr/lib/bacula +etc/bacula --- bacula-2.2.8.orig/debian/bacula-director-pgsql.prerm +++ bacula-2.2.8/debian/bacula-director-pgsql.prerm @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for bacula +# +# see: dh_installdeb(1) + +set -e + +. /usr/share/debconf/confmodule + +# 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-2.2.8.orig/debian/bacula-director-common.preinst +++ bacula-2.2.8/debian/bacula-director-common.preinst @@ -0,0 +1,44 @@ +#! /bin/sh +# 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 + + +case "$1" in + + install) + ;; + + upgrade) +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/bacula.pid \ +# --exec /usr/sbin/bacula-dir 2>/dev/null || true +# 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-2.2.8.orig/debian/copyright +++ bacula-2.2.8/debian/copyright @@ -0,0 +1,140 @@ +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. + +=================================== + +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. A small part of the code (less than 20 files) is +copyrighted under the GPL by other people (FSF, Sun, ...). + +What follows is information from the authors of the code: + +Linking: +Bacula may be linked with any libraries permitted under the GPL. +However, if configured with encryption Bacula does use the +OpenSSL libraries which are, unfortunately, not compatible with +GPL v2. To the best of our knowledge these libaries are not +distributed with Bacula code because they are shared objects, and +as such there is no conflict with the GPL according what I (Kern) +understand in talking to FSFE, and in any case, for the code that +I have written, I have no problems linking in OpenSSL (of course +this does not speak for the few files in Bacula that are +copyrighted by others). If you take a more severe stance on this +issue, and you are going to distribute Bacula, then simply do not +use the --with-openssl when building your package, and no use of +OpenSSL even through dynamic linking will be included. + + +IP rights: +Recipient understands that although each Contributor 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 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-2006 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, a copy of which + is in the LICENSE file + + 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 John Walker. + 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 distribut 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. + +===================================== + +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 they 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-2.2.8.orig/debian/bacula-sd.install +++ bacula-2.2.8/debian/bacula-sd.install @@ -0,0 +1,7 @@ +debian/tmp-install-sqlite/usr/sbin/bacula-sd usr/sbin +debian/tmp-install-sqlite/usr/sbin/bls usr/sbin +debian/tmp-install-sqlite/usr/sbin/bextract usr/sbin +debian/tmp-install-sqlite/usr/sbin/btape usr/sbin +debian/tmp-install-sqlite/etc/bacula/scripts/mtx-changer etc/bacula/scripts +debian/tmp-install-sqlite/etc/bacula/scripts/disk-changer etc/bacula/scripts +debian/tmp-install-sqlite/etc/bacula/scripts/dvd-handler etc/bacula/scripts --- bacula-2.2.8.orig/debian/bacula-sd-mysql.install +++ bacula-2.2.8/debian/bacula-sd-mysql.install @@ -0,0 +1,2 @@ +debian/tmp-install-mysql/usr/sbin/bscan usr/bin +debian/tmp-install-mysql/usr/sbin/bcopy usr/bin --- bacula-2.2.8.orig/debian/bacula-common.links +++ bacula-2.2.8/debian/bacula-common.links @@ -0,0 +1,2 @@ +usr/lib/bacula/btraceback usr/sbin/btraceback +var/log/bacula/log var/lib/bacula/log --- bacula-2.2.8.orig/debian/make_catalog_backup_awk.mysql +++ bacula-2.2.8/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 ("mysqldump %s > /var/lib/bacula/bacula.sql",dbname)) + } +} --- bacula-2.2.8.orig/debian/bacula-traymonitor.dirs +++ bacula-2.2.8/debian/bacula-traymonitor.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/pixmaps --- bacula-2.2.8.orig/debian/bacula-director-common.links +++ bacula-2.2.8/debian/bacula-director-common.links @@ -0,0 +1,2 @@ +usr/lib/bacula/bsmtp usr/lib/bacula/smtp +usr/lib/bacula/bsmtp usr/sbin/bsmtp --- bacula-2.2.8.orig/debian/bacula-director-pgsql.install +++ bacula-2.2.8/debian/bacula-director-pgsql.install @@ -0,0 +1,6 @@ +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/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-pgsql/usr/sbin/dbcheck usr/sbin --- bacula-2.2.8.orig/debian/bacula-director-pgsql.postinst +++ bacula-2.2.8/debian/bacula-director-pgsql.postinst @@ -0,0 +1,134 @@ +#! /bin/bash +# postinst script for bacula-director-pgsql +# by Jose Luis Tallon +# most ideas/code contributed by: +# - Alvaro Hernandez Tortosa +# - Philip Mattias Hahn +# + +. /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'. + +## Globals +LOGDIR="/var/log/bacula" +GRANT_SQL_PRIVS="/usr/share/bacula-director/grant_pgsql_privileges" +POSTINST_COMMON="/usr/share/bacula-director/postinst-common" +DEFCONFIG="/usr/share/bacula-common/defconfig" +CFGFILE="/etc/bacula/bacula-dir.conf" + +get_config() { + db_get bacula/db_host + db_host="$RET" + + db_get bacula/dbu_name + dbu_name="$RET" + + db_get bacula/dbu_password + dbu_password="$RET" + + db_name='bacula' +} + + +check_pgsafe() { + dbname="$1" + + [ -z "`type -p pg_lsclusters`" ] && { echo 'pg_lsclusters is not in my $PATH.'; return 1; } + o=$(pg_lsclusters -h) || { echo "pg_lsclusters failed."; return 1; } + + if [ $(echo "$o" | wc -l) != 1 ]; then + echo "You have configured more than one PostgreSQL cluster." + return 1 + fi + + echo "$o" | if read VERSION CLUSTER trash; then + cf="/etc/postgresql/$VERSION/$CLUSTER/pg_hba.conf" + grep -q '^local.*all.*all.*ident.*sameuser$' "$cf" || { + echo "Your settings in $cf do not allow me to continue." + return 1; + } + fi + + su -c 'psql -Atl' postgres | grep "^$dbname|" && { + echo "There is already a database named $dbname." + return 1; + } + + return 0 +} + +case "$1" in +configure) + if dpkg --compare-versions lt 2.2.8-5ubuntu1 + then + get_config + db_stop + exec 0<&1 + + echo -n "Processing configuration ..." + TARGET=$CFGFILE.dpkg-tmp + + if ! check_pgsafe "$db_name"; then + echo "You must create your PostgreSQL database manually." + else + id "$dbu_name" 2> /dev/null || adduser --system --no-create-home --disabled-login "$dbu_name" + su -c "psql --command \"CREATE ROLE $dbu_name PASSWORD '$dbu_password' NOSUPERUSER CREATEDB NOCREATEROLE INHERIT LOGIN;\"" postgres + su -c "createdb -E UTF8 -O \"$dbu_name\" \"$db_name\"" postgres + fi + + sed -e "s/dbname = bacula;/dbname = $db_name; DB Address = \"$db_host\";/" \ + -e "s/@db_user@/$dbu_name/" -e "s/@db_pswd@/$dbu_password/" \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + su -c /usr/share/bacula-director/make_postgresql_tables postgres 1> /dev/null + + /bin/sh $POSTINST_COMMON + echo "Ok." + fi + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# Do start daemon +db_stop + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop + sleep 1 +fi + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 --- bacula-2.2.8.orig/debian/bacula-director-pgsql.dirs +++ bacula-2.2.8/debian/bacula-director-pgsql.dirs @@ -0,0 +1,3 @@ +usr/sbin +usr/lib/bacula +etc/bacula --- bacula-2.2.8.orig/debian/bacula-sd-pgsql.manpages +++ bacula-2.2.8/debian/bacula-sd-pgsql.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.postinst +++ bacula-2.2.8/debian/bacula-director-sqlite3.postinst @@ -0,0 +1,104 @@ +#! /bin/bash +# postinst script for bacula-director-sqlite +# + +. /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'. + +DB="/var/lib/bacula/bacula.db" +MAKE_SQL_TABLES=/usr/share/bacula-director/make_sqlite3_tables +UPGRADE_SQL_DIR=/usr/share/bacula-director +UPGRADE_TABLES1=update_sqlite3_tables +LOGDIR=/var/log/bacula +POSTINST_COMMON=/usr/share/bacula-director/postinst-common +DEFCONFIG=/usr/share/bacula-common/defconfig +CFGFILE=/etc/bacula/bacula-dir.conf + +case "$1" in + configure) + touch $DB; #Bug 243983 + chown bacula:bacula $DB + + db_get bacula-director-sqlite3/create_tables || true + if [ "$RET" = "true" ]; then + touch $DB; #Bug 243983 + chown bacula:bacula $DB + + if [ -z "$2" ]; then + # if we are not upgrading, we must create the tables + echo -n "Creating tables in DB $DB ..." >&2 + if $MAKE_SQL_TABLES 2>&1 > /dev/null; then echo "Ok." ; + else echo "ERROR"; exit 100; fi + fi + fi + + # fix for upgrade -- + if [ -n "$2" ]; then + touch $LOGDIR/upgrade.log + + if dpkg --compare-versions "$2" le '2.0.0' ; then + # On upgrade, unconditionally change Catalog + echo -n "Upgrading SQLite3 tables to v10 format..." + if ${UPGRADE_SQL_DIR}/$UPGRADE_TABLES1 >> $LOGDIR/upgrade.log 2>&1 + then echo "Ok." + else echo -e "\nERROR: could not upgrade Catalog. Please check $LOGDIR/upgrade.log for details." + fi + fi + + fi + + chmod 640 $DB + + # Preprocess configuration + TARGET=$CFGFILE.dpkg-tmp + + sed -e 's/ user = @db_user@;//' -e 's/ password = "@db_pswd@";//' \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + /bin/bash $POSTINST_COMMON + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Do start daemon +db_stop + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop + sleep 1 +fi + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 + --- bacula-2.2.8.orig/debian/compat +++ bacula-2.2.8/debian/compat @@ -0,0 +1 @@ +4 --- bacula-2.2.8.orig/debian/bacula-director-sqlite.postinst +++ bacula-2.2.8/debian/bacula-director-sqlite.postinst @@ -0,0 +1,114 @@ +#! /bin/bash +# postinst script for bacula-director-sqlite +# + +. /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'. + +DB="/var/lib/bacula/bacula.db" +MAKE_SQL_TABLES=/usr/share/bacula-director/make_sqlite_tables +UPGRADE_SQL_DIR=/usr/share/bacula-director +UPGRADE_TABLES1=update_sqlite_tables_6_to_7 +UPGRADE_TABLES2=update_sqlite_tables_7_to_8 +UPGRADE_TABLES3=update_sqlite_tables_8_to_9 +UPGRADE_TABLES4=update_sqlite_tables +LOGDIR=/var/log/bacula +POSTINST_COMMON=/usr/share/bacula-director/postinst-common +DEFCONFIG=/usr/share/bacula-common/defconfig +CFGFILE=/etc/bacula/bacula-dir.conf + +case "$1" in + configure) + touch $DB; #Bug 243983 + chown bacula:bacula $DB + + db_get bacula-director-sqlite/create_tables || true + if [ "$RET" = "true" ]; then + touch $DB; #Bug 243983 + chown bacula:bacula $DB + + if [ -z "$2" ]; then + # if we are not upgrading, we must create the tables + echo -n "Creating tables in DB $DB ..." >&2 + if $MAKE_SQL_TABLES 2>&1 > /dev/null; then echo "Ok." ; + else echo "ERROR"; exit 100; fi + fi + fi + # fix for upgrade -- + if [ -n "$2" ]; then + touch $LOGDIR/upgrade.log + + if dpkg --compare-versions "$2" lt '1.38.0' ; then + # On upgrade, unconditionally change Catalog + echo -n "Upgrading SQLite tables to v9 format..." + if ${UPGRADE_SQL_DIR}/$UPGRADE_TABLES3 >> $LOGDIR/upgrade.log 2>&1 + then echo "Ok." + else echo -e "\nERROR: could not upgrade Catalog. Please check $LOGDIR/upgrade.log for details." + fi + fi + + if dpkg --compare-versions "$2" lt '2.0.0' ; then + # On upgrade, unconditionally change Catalog + echo -n "Upgrading SQLite tables to v10 format..." + if ${UPGRADE_SQL_DIR}/$UPGRADE_TABLES4 >> $LOGDIR/upgrade.log 2>&1 + then echo "Ok." + else echo -e "\nERROR: could not upgrade Catalog. Please check $LOGDIR/upgrade.log for details." + fi + fi + fi + + chmod 640 $DB + + # Preprocess configuration + TARGET=$CFGFILE.dpkg-tmp + + sed -e 's/ user = @db_user@;//' -e 's/ password = "@db_pswd@";//' \ + $DEFCONFIG/bacula-dir.conf > $TARGET + + /bin/bash $POSTINST_COMMON + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Do start daemon +db_stop + +if [ -n "$2" ]; then + /etc/init.d/bacula-director stop + sleep 1 +fi + +invoke-rc.d --quiet bacula-director start + +#DEBHELPER# + +exit 0 + --- bacula-2.2.8.orig/debian/bacula-director-pgsql.config +++ bacula-2.2.8/debian/bacula-director-pgsql.config @@ -0,0 +1,78 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_version 2.0 +db_capb backup + +db_input high bacula/sgbd || true + +STATE=1 +while [ "$STATE" != 0 -a "$STATE" -lt 6 ] + do + case "$STATE" in + 1) + db_input critical bacula/db_host || true + if db_go; then + db_get bacula/db_host || true + if [ ! -z "$RET" ]; then + STATE=2 + fi + else + STATE=1 + fi + ;; + + 2) + db_input critical bacula/dbu_name || true + if db_go; then + db_get bacula/dbu_name || true + if [ ! -z "$RET" ]; then + STATE=3 + fi + else + STATE=2 + fi + ;; + + 3) + db_input critical bacula/dbu_password || true + if db_go; then + db_get bacula/dbu_password || true + STATE=4 + else + STATE=3 + fi + ;; + + 4) + db_input critical bacula/dbu_confirm || true + if db_go; then + db_get bacula/dbu_confirm || true + CONFIRM="$RET" + db_get bacula/dbu_password || true + if [ "$RET" != "$CONFIRM" ]; then + STATE=5 + else + STATE=6 + fi + else + STATE=3 + fi + ;; + + 5) + db_input critical bacula/mismatch || true + db_go + STATE=3 + ;; + + esac +done + +if [ "$STATE" = 0 ]; then + db_input critical bacula/notconfigured || true + db_go + exit 1 +fi --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.dirs +++ bacula-2.2.8/debian/bacula-director-sqlite3.dirs @@ -0,0 +1,3 @@ +usr/sbin +usr/lib/bacula +etc/bacula --- bacula-2.2.8.orig/debian/bacula-common.preinst +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-director-common.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/NEWS +++ bacula-2.2.8/debian/NEWS @@ -0,0 +1,17 @@ +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. + +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-2.2.8.orig/debian/bacula-fd.prerm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-director-common.install +++ bacula-2.2.8/debian/bacula-director-common.install @@ -0,0 +1,5 @@ +debian/tmp-install-sqlite/usr/sbin/bsmtp usr/lib/bacula +debian/tmp-install-sqlite/etc/bacula/scripts/query.sql etc/bacula/scripts +debian/tmp-install-sqlite/usr/sbin/bwild usr/sbin +debian/tmp-install-sqlite/usr/sbin/bregex usr/sbin +debian/additions/postinst-common usr/share/bacula-director --- bacula-2.2.8.orig/debian/additions/bacula-tray-monitor.desktop +++ bacula-2.2.8/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-2.2.8.orig/debian/additions/bacula-console-gnome.desktop +++ bacula-2.2.8/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-2.2.8.orig/debian/additions/bconsole +++ bacula-2.2.8/debian/additions/bconsole @@ -0,0 +1,3 @@ +#!/bin/sh +CFGFILE=/etc/bacula/bconsole.conf +exec /usr/sbin/bacula-console -c $CFGFILE $* --- bacula-2.2.8.orig/debian/additions/postinst-common +++ bacula-2.2.8/debian/additions/postinst-common @@ -0,0 +1,36 @@ +#!/bin/sh + +DEFCONFIGDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-dir.conf" + +if [ -f $DSTDIR/$CONFIG.dpkg-tmp ]; then + SOURCE=$DSTDIR/$CONFIG.dpkg-tmp +else + SOURCE=$DSTDIR/$CONFIG +fi + +if [ -f $DSTDIR/$CONFIG -a ! -f $SOURCE ]; then + echo "Target $DSTDIR/$CONFIG already exists and $SOURCE doesn't" + echo "Not modifying target." +else + 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 $SOURCE + # Harden permissions, so that passwords can not be looked at + # Fixed by Philipp M Hahn + chown root:bacula $TARGET + chmod 640 $TARGET + +fi + + +exit 0 --- bacula-2.2.8.orig/debian/bacula-director-common.bacula-director.init +++ bacula-2.2.8/debian/bacula-director-common.bacula-director.init @@ -0,0 +1,124 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bacula-director +# Required-Start: $remote_fs $syslog bacula-fd +# Required-Stop: $remote_fs $syslog 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 + +. /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 + log_daemon_msg -n "Starting $DESC: " + create_var_run_dir + if do_start ; log_daemon_msg -n "Starting $DESC: " ; fi + ;; + + stop) + log_daemon_msg "Stopping $DESC: " + do_stop + ;; + + reload) + log_daemon_msg "Reloading $DESC..." + get_pid $PIDFILE + if [ -n "$pid" ]; then kill_pid HUP $pid ; + else do_start ; + fi + ;; + + restart|force-reload) + log_daemon_msg " Restarting $DESC $NAME..." + # redirect STDOUT so that it looks prettier :-) + do_stop + do_start + ;; + + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-2.2.8.orig/debian/bacula-director-mysql.install +++ bacula-2.2.8/debian/bacula-director-mysql.install @@ -0,0 +1,5 @@ +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/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-mysql/usr/sbin/dbcheck usr/sbin --- bacula-2.2.8.orig/debian/changelog +++ bacula-2.2.8/debian/changelog @@ -0,0 +1,1271 @@ +bacula (2.2.8-5ubuntu2) hardy; urgency=low + + * debian/rules + - Don't start the daemons when installing so configuration can be done + after. (LP: #192224) + * debian/bacula-director-common.bacula-director.init + debian/bacula-fd.init + debian/bacula-sd.init + - Made more LSB specific. + * debian/control + - Update control version. + + -- Chuck Short Fri, 14 Mar 2008 11:02:04 -0400 + +bacula (2.2.8-5ubuntu1) hardy; urgency=low + + * Merge from debian unstable, remaining changes: + - Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup" + - Modify maintainer value to match the DebianMaintainerField + specification. + + [Ante Karamatic] + * Removed liblibjconv build dependency. + * Bumped build dependency to postgresql-server-dev-8.0. + * Removed dbconfig-common dependency for bacula-director-[mysql|pgsql], + added database handling to postinstall scripts and templates, + modified postinstall script's sed expressions. + * Removed libwgtk2.6-dev and libqwt5-qt-dev build dependency; as a result + bacula-console-wx and bacula-console-qt aren't built any more. + * debian/make_catalog_backup_awk.[mysql|pgsql|sqlite3|sqlite]: + - new scripts for catalog backup (CVE-2007-5626) + * debian/patches/ubuntu_bacula-dir.conf.patch: + - replace RunBeforeJob script with new one and add a warning + + [Chuck Short] + * debian/bacula-console-qt, debian/bacula-console-wx. + - Dropped since we arent building them anymore. + * debian/control + - Added libdbi-perl and ibdbd-mysql-perl to Depends for + bacula-director-mysql due to new postinst configuration. + - Cleaned up bacula-director-pgsql dependencies and recommends. + - Made mysql the default director to install for bacula-server. + * debian/bacula-director-mysql.postinst + debian/bacula-director-pgsql.postinst + - Worked in some smarts to no do a database configuration if bacula is already + installed. + + -- Chuck Short Thu, 13 Feb 2008 08:41:35 -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-4ubuntu1) hardy; urgency=low + + * Merge from Debian unstable (LP: #189547). Remaining Ubuntu changes: + - Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup". + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Cesare Tirabassi Wed, 06 Feb 2008 15:57:53 +0100 + +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.1ubuntu1) hardy; urgency=low + + * Merge from debian unstable, remaining changes: + - Add gnome-session to bacula-traymonitor Depends. + - Create /var/run/bacula, if it doesn't exist, in any init script. + Involved files (all in debian/): + rules, bacula-sd.init, bacula-fd.init, common-functions (new), + bacula-director-common.bacula-director.init + - Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup". + - Move adduser from bacula-common's Depends to Pre-Depends. + + -- Stephan Hermann Sat, 19 Jan 2008 12:00:57 +0100 + +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-1ubuntu1) hardy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - Add gnome-session to bacula-traymonitor Depends. + - Create /var/run/bacula, if it doesn't exist, in any init script. + Involved files (all in debian/): + rules, bacula-sd.init, bacula-fd.init, common-functions (new), + bacula-director-common.bacula-director.init + - Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup". + - Move adduser from bacula-common's Depends to Pre-Depends. + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Siegfried-Angel Gevatter Pujals (RainCT) Sat, 03 Nov 2007 17:08:40 +0100 + +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-4ubuntu4) gutsy; urgency=low + + * Apply 2.2.4-lost-block.patch from upstream bug#964 to address data loss + + -- Emmet Hikory Fri, 12 Oct 2007 23:09:46 +0900 + +bacula (2.0.3-4ubuntu3) gutsy; urgency=low + + * restore.patch: apply a patch from upstream which fixes a serious file + restore bug (http://www.bacula.org/downloads/bug-935.txt) (LP: #141329) + + -- Luca Falavigna Fri, 21 Sep 2007 22:16:19 +0200 + +bacula (2.0.3-4ubuntu2) gutsy; urgency=low + + * Do non build-depend on libwxgtk2.4-dev. Closes #115120 + + -- Luca Falavigna Fri, 18 May 2007 13:29:56 +0200 + +bacula (2.0.3-4ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. + * Remaining Ubuntu changes: + - Add gnome-session to bacula-traymonitor Depends. + - Create /var/run/bacula if it doesn't exist in any init script. + - Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup". + * Ubuntu changes dropped: + - Teach the build system about python2.5. + - Fix FTBFS with glibc >= 2.5. + - Adjust build depends to new python style. + - Add ${shlibs:Depends} dependency to bacula-director-pgsql. + - Check for existence of /var/lib/bacula and /var/lib/bacula/log + and create if missing, before we chmod/chown them. + - Add -lkrb5support and -ldl to LIBS_pgsql. + * Move adduser from bacula-common's Depends to Pre-Depends. + * Change how we create /var/run/bacula to not duplicate code. + * Munge Maintainer field as per spec. + + -- Steve Kowalik Thu, 3 May 2007 23:38:59 +1000 + +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-7ubuntu6) feisty; urgency=low + + * Add gnome-session to the bacula-traymonitor Recommends. + * Fix the bacula-fd init script to create the directory properly. + (LP: #65122) + * Correct src/dird/bacula-dir.conf.in to pass the correct arguments + to "/etc/bacula/scripts/make_catalog_backup. (LP: #68725) + + -- Steve Kowalik Thu, 1 Feb 2007 20:18:32 +1100 + +bacula (1.38.11-7ubuntu5) feisty; urgency=low + + * Teach the build system about python2.5. + + -- Matthias Klose Tue, 16 Jan 2007 12:51:27 +0100 + +bacula (1.38.11-7ubuntu4) feisty; urgency=low + + * Rebuild for python2.5 as the default python version. + + -- Matthias Klose Mon, 15 Jan 2007 17:53:22 +0000 + +bacula (1.38.11-7ubuntu3) feisty; urgency=low + + * "Never do patching after midnight" release + - debian/rules: don't unpatch if it isn't patched + + -- Ante Karamatic Wed, 20 Dec 2006 10:50:48 +0100 + +bacula (1.38.11-7ubuntu2) feisty; urgency=low + + * debian/patches/tee.patch: + - fix FTBS on libc >= 2.5 + + -- Ante Karamatic Wed, 20 Dec 2006 00:52:07 +0100 + +bacula (1.38.11-7ubuntu1) feisty; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/control: adjusted build depends to new python style + + -- Ante Karamatic Mon, 30 Oct 2006 14:02:29 +0000 + +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-5ubuntu1) edgy; urgency=low + + * Merge from debian unstable. + * debian/control: adjusted build depends to new python style + + -- Stephan Hermann Tue, 19 Sep 2006 15:18:40 +0200 + +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-1ubuntu1) edgy; urgency=low + + * Resynchronize with Debian unstable + - added ${shlibs:Depends} dependency to bacula-director-pgsql + - changed dependency on python2.3-dev to python2.4-dev + - create /var/run/bacula on any service startup + + -- Søren Hansen Mon, 24 Jul 2006 15:10:25 +0200 + +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-2ubuntu2) dapper; urgency=low + + * debian/bacula-director-common.postinst: + - Check for existence of /var/lib/bacula and /var/lib/bacula/log + and create if missing, before chown/chmod them (Ubuntu: #36580) + + -- Ante Karamatic Thu, 13 Apr 2006 23:45:29 +0200 + +bacula (1.36.3-2ubuntu1) dapper; urgency=low + + * Create /var/run/bacula on (any) service start (Ubuntu: #28921) + * Build against libmysqlclient15off + * debian/rules: + -- add -lkrb5support and -ldl to LIBS_pgsql + * debian/control: + -- added ${shlibs:Depends} dependency to bacula-direcotr-pgsql + + -- Ante Karamatic Thu, 13 Apr 2006 20:07:08 +0200 + +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-2.2.8.orig/debian/bacula-director-mysql.prerm +++ bacula-2.2.8/debian/bacula-director-mysql.prerm @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for bacula +# +# see: dh_installdeb(1) + +. /usr/share/debconf/confmodule + + +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-2.2.8.orig/debian/bacula-console.install +++ bacula-2.2.8/debian/bacula-console.install @@ -0,0 +1 @@ +debian/additions/bconsole usr/bin --- bacula-2.2.8.orig/debian/Makefile +++ bacula-2.2.8/debian/Makefile @@ -0,0 +1,13 @@ +# +# +.PHONY: dummy + +SUBDIRS=additions manpages patches po + + +tidy: dummy + rm -f *~ + +mrproper: tidy + for dir in ${SUBDIRS}; do $(MAKE) -C $$dir tidy; done + --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.install +++ bacula-2.2.8/debian/bacula-director-sqlite3.install @@ -0,0 +1,5 @@ +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/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-sqlite3/usr/sbin/dbcheck usr/sbin --- bacula-2.2.8.orig/debian/make_catalog_backup_awk.pgsql +++ bacula-2.2.8/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("PGSERVICE=bacula PGSYSCONFDIR=/tmp pg_dump > /var/lib/bacula/bacula.sql") + } +} --- bacula-2.2.8.orig/debian/bacula-common.logrotate +++ bacula-2.2.8/debian/bacula-common.logrotate @@ -0,0 +1,6 @@ +/var/log/bacula/log { + monthly + rotate 5 + notifempty + missingok +} --- bacula-2.2.8.orig/debian/bacula-console.manpages +++ bacula-2.2.8/debian/bacula-console.manpages @@ -0,0 +1 @@ +manpages/bconsole.8 --- bacula-2.2.8.orig/debian/make_catalog_backup_awk.sqlite3 +++ bacula-2.2.8/debian/make_catalog_backup_awk.sqlite3 @@ -0,0 +1,3 @@ +#!/bin/bash + +echo ".dump" | /usr/bin/sqlite3 bacula.db > bacula.sql --- bacula-2.2.8.orig/debian/bacula-director-sqlite.install +++ bacula-2.2.8/debian/bacula-director-sqlite.install @@ -0,0 +1,5 @@ +debian/tmp-install-sqlite/etc/bacula/scripts/make_sqlite_tables usr/share/bacula-director +debian/tmp-install-sqlite/etc/bacula/scripts/update_sqlite* usr/share/bacula-director +debian/tmp-install-sqlite/etc/bacula/scripts/*catalog_backup etc/bacula/scripts +debian/tmp-install-sqlite/usr/sbin/bacula-dir usr/sbin +debian/tmp-install-sqlite/usr/sbin/dbcheck usr/sbin --- bacula-2.2.8.orig/debian/bacula-fd.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/patches/fix_scripts.sed +++ bacula-2.2.8/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-2.2.8.orig/debian/patches/fix_director.sed +++ bacula-2.2.8/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-2.2.8.orig/debian/patches/fix_config +++ bacula-2.2.8/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-2.2.8.orig/debian/patches/ubuntu_bacula-dir.conf.patch +++ bacula-2.2.8/debian/patches/ubuntu_bacula-dir.conf.patch @@ -0,0 +1,14 @@ +--- src/dird/bacula-dir.conf.in.old 2008-03-13 03:30:57.000000000 +0100 ++++ src/dird/bacula-dir.conf.in 2008-03-13 03:42:41.000000000 +0100 +@@ -62,7 +62,10 @@ + FileSet="Catalog" + Schedule = "WeeklyCycleAfterBackup" + # This creates an ASCII copy of the catalog +- RunBeforeJob = "@scriptdir@/make_catalog_backup " ++ # WARNING! ++ # Ubuntu uses make_catalog_backup_awk script for ++ # security reasons ++ 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-2.2.8.orig/debian/patches/fix_config.sed +++ bacula-2.2.8/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-2.2.8.orig/debian/patches/extract_here +++ bacula-2.2.8/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; +} --- bacula-2.2.8.orig/debian/patches/fix_director +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-fd.dirs +++ bacula-2.2.8/debian/bacula-fd.dirs @@ -0,0 +1,5 @@ +usr/sbin +var/lib/bacula +var/run/bacula +etc/bacula +etc/bacula/scripts --- bacula-2.2.8.orig/debian/bacula-common.postrm +++ bacula-2.2.8/debian/bacula-common.postrm @@ -0,0 +1,43 @@ +#! /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 2>&1 > /dev/null || true + rm -rf /var/run/bacula + rm -rf /etc/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-2.2.8.orig/debian/bacula-console.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-common.examples +++ bacula-2.2.8/debian/bacula-common.examples @@ -0,0 +1 @@ +examples/* --- bacula-2.2.8.orig/debian/bacula-sd-pgsql.install +++ bacula-2.2.8/debian/bacula-sd-pgsql.install @@ -0,0 +1,2 @@ +debian/tmp-install-pgsql/usr/sbin/bscan usr/bin +debian/tmp-install-pgsql/usr/sbin/bcopy usr/bin --- bacula-2.2.8.orig/debian/bacula-director-sqlite3.postrm +++ bacula-2.2.8/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-2.2.8.orig/debian/bacula-sd-sqlite3.install +++ bacula-2.2.8/debian/bacula-sd-sqlite3.install @@ -0,0 +1,2 @@ +debian/tmp-install-sqlite3/usr/sbin/bscan usr/bin +debian/tmp-install-sqlite3/usr/sbin/bcopy usr/bin --- bacula-2.2.8.orig/debian/make_catalog_backup_awk.sqlite +++ bacula-2.2.8/debian/make_catalog_backup_awk.sqlite @@ -0,0 +1,3 @@ +#!/bin/bash + +echo ".dump" | /usr/bin/sqlite bacula.db > bacula.sql --- bacula-2.2.8.orig/debian/bacula-director-sqlite.manpages +++ bacula-2.2.8/debian/bacula-director-sqlite.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-2.2.8.orig/debian/TODO +++ bacula-2.2.8/debian/TODO @@ -0,0 +1,23 @@ +* Make sure btraceback can be found in /usr/lib/bacula + +* Verify upgrades work as expected + +* Set datestyle on debian db create pgsql + +* Maybe: + + Remove old AUTHFILE=`getent passwd bacula | cut -d ':' -f 6`/.pgpass + and $AUTHFILE.bak + +* Make SQLite&sqlite3 purge actually remove the DB like the debconf questions + say it will + +* Should we zap old debconf stuff on install of the new version? + +* Need a MySQL preinst? + +* check backup_catalog scripts & make sure they're getting installed + +* Sanitize consoles + +* Update debian/copyright --- bacula-2.2.8.orig/debian/bacula-director-pgsql.manpages +++ bacula-2.2.8/debian/bacula-director-pgsql.manpages @@ -0,0 +1,2 @@ +manpages/bacula-dir.8 +manpages/dbcheck.8 --- bacula-2.2.8.orig/debian/bacula-sd-sqlite.manpages +++ bacula-2.2.8/debian/bacula-sd-sqlite.manpages @@ -0,0 +1,2 @@ +manpages/bcopy.8 +manpages/bscan.8 --- bacula-2.2.8.orig/src/stored/protos.h +++ bacula-2.2.8/src/stored/protos.h @@ -126,6 +126,7 @@ bool open_device(DCR *dcr); bool first_open_device(DCR *dcr); bool fixup_device_block_write_error(DCR *dcr); +void set_start_vol_position(DCR *dcr); void set_new_volume_parameters(DCR *dcr); void set_new_file_parameters(DCR *dcr); bool is_device_unmounted(DEVICE *dev); --- bacula-2.2.8.orig/src/stored/mac.c +++ bacula-2.2.8/src/stored/mac.c @@ -1,15 +1,7 @@ /* - * SD -- mac.c -- responsible for doing - * migration, archive, and copy jobs. - * - * Kern Sibbald, January MMVI - * - * Version $Id: mac.c 5713 2007-10-03 11:36:47Z kerns $ - */ -/* Bacula® - The Network Backup Solution - Copyright (C) 2006-2006 Free Software Foundation Europe e.V. + Copyright (C) 2006-2008 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. @@ -33,6 +25,14 @@ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, Switzerland, email:ftf@fsfeurope.org. */ +/* + * SD -- mac.c -- responsible for doing + * migration, archive, and copy jobs. + * + * Kern Sibbald, January MMVI + * + * Version $Id$ + */ #include "bacula.h" #include "stored.h" @@ -108,6 +108,7 @@ jcr->dcr->VolFirstIndex = jcr->dcr->VolLastIndex = 0; jcr->run_time = time(NULL); + set_start_vol_position(jcr->dcr); ok = read_records(jcr->read_dcr, record_cb, mount_next_read_volume); goto ok_out; --- bacula-2.2.8.orig/src/stored/device.c +++ bacula-2.2.8/src/stored/device.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2008 Free Software Foundation Europe e.V. + Copyright (C) 2000-2007 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. @@ -200,6 +200,19 @@ return ok; /* device locked */ } +void set_start_vol_position(DCR *dcr) +{ + DEVICE *dev = dcr->dev; + /* Set new start position */ + if (dev->is_tape()) { + dcr->StartBlock = dev->block_num; + dcr->StartFile = dev->file; + } else { + dcr->StartBlock = (uint32_t)dev->file_addr; + dcr->StartFile = (uint32_t)(dev->file_addr >> 32); + } +} + /* * We have a new Volume mounted, so reset the Volume parameters * concerning this job. The global changes were made earlier @@ -208,24 +221,11 @@ void set_new_volume_parameters(DCR *dcr) { JCR *jcr = dcr->jcr; - DEVICE *dev = dcr->dev; if (dcr->NewVol && !dir_get_volume_info(dcr, GET_VOL_INFO_FOR_WRITE)) { Jmsg1(jcr, M_ERROR, 0, "%s", jcr->errmsg); } - /* Set new start/end positions */ - if (dev->is_tape()) { - dcr->StartBlock = dev->block_num; - dcr->StartFile = dev->file; - } else { - dcr->StartBlock = (uint32_t)dev->file_addr; - dcr->StartFile = (uint32_t)(dev->file_addr >> 32); - } - /* Reset indicies */ - dcr->VolFirstIndex = 0; - dcr->VolLastIndex = 0; + set_new_file_parameters(dcr); jcr->NumWriteVolumes++; - dcr->NewVol = false; - dcr->WroteVol = false; } /* @@ -235,16 +235,8 @@ */ void set_new_file_parameters(DCR *dcr) { - DEVICE *dev = dcr->dev; + set_start_vol_position(dcr); - /* Set new start/end positions */ - if (dev->is_tape()) { - dcr->StartBlock = dev->block_num; - dcr->StartFile = dev->file; - } else { - dcr->StartBlock = (uint32_t)dev->file_addr; - dcr->StartFile = (uint32_t)(dev->file_addr >> 32); - } /* Reset indicies */ dcr->VolFirstIndex = 0; dcr->VolLastIndex = 0; --- bacula-2.2.8.orig/src/stored/stored.conf.in +++ bacula-2.2.8/src/stored/stored.conf.in @@ -13,6 +13,7 @@ WorkingDirectory = "@working_dir@" Pid Directory = "@piddir@" Subsys Directory = "@subsysdir@" + SDAddress = 127.0.0.1 } # --- bacula-2.2.8.orig/src/stored/bacula-sd.conf.in +++ bacula-2.2.8/src/stored/bacula-sd.conf.in @@ -16,6 +16,7 @@ WorkingDirectory = "@working_dir@" Pid Directory = "@piddir@" Maximum Concurrent Jobs = 20 + SDAddress = 127.0.0.1 } # --- bacula-2.2.8.orig/src/qt-console/bat.pro.in +++ bacula-2.2.8/src/qt-console/bat.pro.in @@ -20,7 +20,7 @@ INCLUDEPATH += .. . ./console ./restore ./select INCLUDEPATH += @QWT_INC@ LIBS += -L../lib -lbac @OPENSSL_LIBS@ -LIBS += @QWT_LDFLAGS@ -lqwt +LIBS += @QWT_LDFLAGS@ -lqwt-qt4 RESOURCES = main.qrc MOC_DIR = moc --- bacula-2.2.8.orig/src/dird/ua_run.c +++ bacula-2.2.8/src/dird/ua_run.c @@ -122,6 +122,9 @@ jcr->verify_job = rc.verify_job; jcr->previous_job = rc.previous_job; jcr->pool = rc.pool; + if (jcr->pool != jcr->job->pool) { + pm_strcpy(jcr->pool_source, _("User input")); + } set_rwstorage(jcr, rc.store); jcr->client = rc.client; pm_strcpy(jcr->client_name, rc.client->name()); --- bacula-2.2.8.orig/src/dird/bacula-dir.conf.in +++ bacula-2.2.8/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 { @@ -61,7 +62,7 @@ FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog - RunBeforeJob = "@scriptdir@/make_catalog_backup bacula bacula" + RunBeforeJob = "@scriptdir@/make_catalog_backup " # This deletes the copy of the catalog RunAfterJob = "@scriptdir@/delete_catalog_backup" Write Bootstrap = "@working_dir@/BackupCatalog.bsr" --- bacula-2.2.8.orig/src/cats/make_postgresql_tables.in +++ bacula-2.2.8/src/cats/make_postgresql_tables.in @@ -45,9 +45,9 @@ -- Possibly add one or more of the following indexes -- if your Verifies are too slow. -- --- CREATE INDEX file_pathid_idx on file(pathid); --- CREATE INDEX file_filenameid_idx on file(filenameid); --- CREATE INDEX file_jpfid_idx on file (jobid, pathid, filenameid); +CREATE INDEX file_pathid_idx on file(pathid); +CREATE INDEX file_filenameid_idx on file(filenameid); +CREATE INDEX file_jpfid_idx on file (jobid, pathid, filenameid); CREATE TABLE job ( --- bacula-2.2.8.orig/src/cats/make_mysql_tables.in +++ bacula-2.2.8/src/cats/make_mysql_tables.in @@ -38,6 +38,8 @@ LStat TINYBLOB NOT NULL, MD5 TINYBLOB, PRIMARY KEY(FileId), + INDEX (PathId), + INDEX (FileNameId, PathId), INDEX (JobId, PathId, FilenameId) ); @@ -46,9 +48,7 @@ # to the above File table if your Verifies are # too slow. # -# INDEX (PathId), # INDEX (FilenameId), -# INDEX (FilenameId, PathId) # CREATE TABLE MediaType ( --- bacula-2.2.8.orig/src/filed/bacula-fd.conf.in +++ bacula-2.2.8/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-2.2.8.orig/src/filed/backup.c +++ bacula-2.2.8/src/filed/backup.c @@ -1146,20 +1146,21 @@ /* * Strip path. If it doesn't succeed put it back. If * it does, and there is a different link string, - * attempt to strip the link. If it fails, but them + * attempt to strip the link. If it fails, back them * both back. + * Don't strip symlinks. * I.e. if either stripping fails don't strip anything. */ if (do_strip(ff_pkt->strip_path, ff_pkt->fname)) { - if (ff_pkt->fname != ff_pkt->link) { + if (ff_pkt->type != FT_LNK && ff_pkt->fname != ff_pkt->link) { pm_strcpy(ff_pkt->link_save, ff_pkt->link); if (!do_strip(ff_pkt->strip_path, ff_pkt->link)) { - strcpy(ff_pkt->link, ff_pkt->link_save); - strcpy(ff_pkt->fname, ff_pkt->fname_save); + pm_strcpy(ff_pkt->link, ff_pkt->link_save); + pm_strcpy(ff_pkt->fname, ff_pkt->fname_save); } } } else { - strcpy(ff_pkt->fname, ff_pkt->fname_save); + pm_strcpy(ff_pkt->fname, ff_pkt->fname_save); } Dmsg2(200, "fname=%s stripped=%s\n", ff_pkt->fname_save, ff_pkt->fname); } @@ -1169,8 +1170,8 @@ if (!(ff_pkt->flags & FO_STRIPPATH) || ff_pkt->strip_path <= 0) { return; } - strcpy(ff_pkt->fname, ff_pkt->fname_save); - if (ff_pkt->fname != ff_pkt->link) { - strcpy(ff_pkt->link, ff_pkt->link_save); + pm_strcpy(ff_pkt->fname, ff_pkt->fname_save); + if (ff_pkt->type != FT_LNK && ff_pkt->fname != ff_pkt->link) { + pm_strcpy(ff_pkt->link, ff_pkt->link_save); } }