--- bacula-1.32f-5.orig/platforms/debian/bacula-director +++ bacula-1.32f-5/platforms/debian/bacula-director @@ -4,7 +4,6 @@ # Written by Miquel van Smoorenburg . # Modified for Debian GNU/Linux by Ian Murdock . # Customized for Bacula by Jose Luis Tallon -# Modified RJM 2-12-03 to fix errors with pidfile name # PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/bacula-dir --- bacula-1.32f-5.orig/debian/po/templates.pot +++ bacula-1.32f-5/debian/po/templates.pot @@ -0,0 +1,177 @@ +# +# 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. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-24 19:26+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: string +#. Default +#: ../bacula-director-mysql.templates:3 +msgid "localhost" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "Where is the MySQL server?" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "" +"Enter the host where the MySQL server which is to hold Bacula's catalog is." +msgstr "" + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:10 +msgid "bacula" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "MySQL username" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "Please, enter the username which Bacula will use to connect to MySQL." +msgstr "" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "MySQL password" +msgstr "" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "Please, enter the password which Bacula will use to connect to MySQL." +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 ../bacula-director-sqlite.templates:4 +msgid "Create tables for Bacula's Catalog?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"(this is probably a fresh install). Shall I create them now?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "A MySQL 'root' username & password will be required." +msgstr "" + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:31 +msgid "root" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "MySQL 'root' username" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "Please type the username to connect to MySQL as." +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "This user needs to have 'create database' privileges." +msgstr "" + +#. Type: password +#. Default +#: ../bacula-director-mysql.templates:39 +msgid "NONE" +msgstr "" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "MySQL 'root' password" +msgstr "" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "Please type the password for the username entered before." +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +msgid "Remove Catalog on purge?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +msgid "" +"Shall I remove the Catalog from the MySQL server at package purge time? This " +"will free all the used space." +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +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 "" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:4 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"( this is probably a fresh install ). Shall I create them now?" +msgstr "" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:11 +msgid "" +"Shall I remove the Catalog / SQLite database at package purge time? This " +"will free all the used space." +msgstr "" --- bacula-1.32f-5.orig/debian/po/de.po +++ bacula-1.32f-5/debian/po/de.po @@ -0,0 +1,195 @@ +# +# 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.34.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-24 19:26+0100\n" +"PO-Revision-Date: 2004-ß4-29 22:59+0100\n" +"Last-Translator: Philipp Hahn \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:3 +msgid "localhost" +msgstr "localhost" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "Where is the MySQL server?" +msgstr "Wo ist der MySQL-Server?" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "" +"Enter the host where the MySQL server which is to hold Bacula's catalog is." +msgstr "" +"Geben Sie den Rechner an, auf dem der MySQL-Server ist, der Baculas Katalog " +"verwalten soll." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:10 +msgid "bacula" +msgstr "bacula" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "MySQL username" +msgstr "MySQL Benutzername" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "Please, enter the username which Bacula will use to connect to MySQL." +msgstr "" +"Geben Sie den Benutzernamen an, den Bacula verwenden soll, um sich mit MySQL " +"zu verbinden." + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "MySQL password" +msgstr "MySQL Passwort" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "Please, enter the password which Bacula will use to connect to MySQL." +msgstr "" +"Geben Sie das Passwort an, das Bacula verwenden soll, um sich zu MySQL zu " +"verbinden." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 ../bacula-director-sqlite.templates:4 +msgid "Create tables for Bacula's Catalog?" +msgstr "Tabellen für Baculas Katalog erzeugen?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"(this is probably a fresh install). Shall I create them now?" +msgstr "" +"Es wurde festgestellt, daß die für Baculas Katalog benötigten Tabellen " +"fehlen (es handelt sich evtl. um eine neue Installation). Sollen sie jetzt " +"erzeugt werden?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "A MySQL 'root' username & password will be required." +msgstr "Ein MySQL 'root' Benutzername & Passwort werden benötigt." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:31 +msgid "root" +msgstr "root" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "MySQL 'root' username" +msgstr "MySQL 'root' Benutzername" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "Please type the username to connect to MySQL as." +msgstr "Geben Sie den Benutzernamen für die Verbindung zu MySQL an." + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "This user needs to have 'create database' privileges." +msgstr "Der Benutzer muß 'create database' Privilegien haben." + +#. Type: password +#. Default +#: ../bacula-director-mysql.templates:39 +msgid "NONE" +msgstr "NONE" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "MySQL 'root' password" +msgstr "MySQL 'root' Passwort" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "Please type the password for the username entered before." +msgstr "Geben Sie das Passwort für den eben angegebenen Benutzer an." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +msgid "Remove Catalog on purge?" +msgstr "Katalog beim Entfernen löschen?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +msgid "" +"Shall I remove the Catalog from the MySQL server at package purge time? This " +"will free all the used space." +msgstr "" +"Soll der Katalog beim Löschen des Pakets vom MySQL-Server entfernt werden? " +"Dies wird allen belegten Speicher freigeben." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +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 rückgängig gemacht werden. Sobald der Katalog " +"entfernt ist, können keine Backups mehr wiederhergestellt werden, außer es " +"existiert noch eine Kopie des Katalogs." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:4 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"( this is probably a fresh install ). Shall I create them now?" +msgstr "" +"Es wurde festgestellt, daß die für Baculas Katalog benötigten Tabellen " +"fehlen (es handelt sich evtl. um eine neue Installation). Sollen sie jetzt " +"erzeugt werden?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:11 +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 Löschen des Pakets entfernt " +"werden? Dies wird allen belegten Speicher freigeben." --- bacula-1.32f-5.orig/debian/po/es.po +++ bacula-1.32f-5/debian/po/es.po @@ -0,0 +1,205 @@ +# +# 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. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-01-24 19:26+0100\n" +"PO-Revision-Date: 2004-03-16 01: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: string +#. Default +#: ../bacula-director-mysql.templates:3 +msgid "localhost" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +#, fuzzy +msgid "Where is the MySQL server?" +msgstr "¿Donde está el servidor MySQL a utilizar?" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "" +"Enter the host where the MySQL server which is to hold Bacula's catalog is." +msgstr "" +"Por favor, introduzca el nombre de host donde se encuentra el servidor MySQL " +"en el que almacenar el catálogo de Bacula." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:10 +msgid "bacula" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "MySQL username" +msgstr "Nombre de usuario para MySQL" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "Please, enter the username which Bacula will use to connect to MySQL." +msgstr "" +"Por favor, introduzca el nombre de usuario que Bacula utilizará para " +"conectar con el servidor MySQL." + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "MySQL password" +msgstr "Contrase,bq(Ba para MySQL" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "Please, enter the password which Bacula will use to connect to MySQL." +msgstr "" +"Por favor, introduzca la contrase,bq(Ba que Bacula utilizar,ba(B para " +"conectar con el servidor MySQL (junto con el nombre de usuario pedido " +"anteriormente)." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 ../bacula-director-sqlite.templates:4 +msgid "Create tables for Bacula's Catalog?" +msgstr "¿Crear las tablas para el catálogo?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +#, fuzzy +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"(this is probably a fresh install). Shall I create them now?" +msgstr "" +"Hemos detectado que las tablas necesarias para contener el catálogo de " +"Bacula no están accesibles (tiene pinta de tratarse de una instalación " +"nueva). ¿Debo crearlas ahora?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "A MySQL 'root' username & password will be required." +msgstr "" +"Se necesitará disponer del nombre de usuario y contraseña de un usuario " +"'root' de MySQL." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:31 +msgid "root" +msgstr "" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "MySQL 'root' username" +msgstr "Nombre de usuario 'root' de MySQL" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "Please type the username to connect to MySQL as." +msgstr "Por favor, introduzca el nombre de usuario para conectar a MySQL." + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "This user needs to have 'create database' privileges." +msgstr "Este usuario debe tener permiso para crear bases de datos." + +#. Type: password +#. Default +#: ../bacula-director-mysql.templates:39 +msgid "NONE" +msgstr "NADA" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "MySQL 'root' password" +msgstr "Contraseña del usuario 'root' de MySQL" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "Please type the password for the username entered before." +msgstr "" +"Por favor, introduzca la contrase,bq(Ba correspondiente al nombre de usuario " +"que acaba de teclear." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +msgid "Remove Catalog on purge?" +msgstr ",b?(BBorrar el cat,ba(Blogo al eliminar el paquete?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +msgid "" +"Shall I remove the Catalog from the MySQL server at package purge time? This " +"will free all the used space." +msgstr "" +"¿Debo borrar el catálogo cuando se elimine el paquete? Esto liberará todo el " +"espacio utilizado por el catálogo." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +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 acción no se puede deshacer. Una vez que se elimine el " +"catálogo, no podrá restaurar sus copias de seguridad a menos que disponga de " +"otra copia del catálogo." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:4 +#, fuzzy +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"( this is probably a fresh install ). Shall I create them now?" +msgstr "" +"Hemos detectado que las tablas necesarias para contener el catálogo de " +"Bacula no están accesibles (tiene pinta de tratarse de una instalación " +"nueva). ¿Debo crearlas ahora?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:11 +#, fuzzy +msgid "" +"Shall I remove the Catalog / SQLite database at package purge time? This " +"will free all the used space." +msgstr "" +"¿Debo borrar el catálogo cuando se elimine el paquete? Esto liberará todo el " +"espacio utilizado por el catálogo." --- bacula-1.32f-5.orig/debian/po/fr.po +++ bacula-1.32f-5/debian/po/fr.po @@ -0,0 +1,197 @@ +# +# 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: \n" +"POT-Creation-Date: 2004-01-24 19:26+0100\n" +"PO-Revision-Date: 2004-03-06 19:30+0100\n" +"Last-Translator: Eric Madesclair \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: string +#. Default +#: ../bacula-director-mysql.templates:3 +msgid "localhost" +msgstr "localhost" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "Where is the MySQL server?" +msgstr "Nom du serveur MySQL :" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "" +"Enter the host where the MySQL server which is to hold Bacula's catalog is." +msgstr "" +"Veuillez indiquer le nom du serveur MySQL où est conservé le catalogue de " +"Bacula." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:10 +msgid "bacula" +msgstr "bacula" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "MySQL username" +msgstr "Identifiant MySQL :" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "Please, enter the username which Bacula will use to connect to MySQL." +msgstr "" +"Veuillez indiquer l'identifiant qui sera utilisé par Bacula pour la " +"connexion à MySQL." + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "MySQL password" +msgstr "Mot de passe MySQL :" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "Please, enter the password which Bacula will use to connect to MySQL." +msgstr "" +"Veuillez indiquer le mot de passe qui sera utilisé par Bacula pour la " +"connexion à MySQL." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 ../bacula-director-sqlite.templates:4 +msgid "Create tables for Bacula's Catalog?" +msgstr "Faut-il créer les tables du catalogue de Bacula ?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"(this is probably a fresh install). Shall I create them now?" +msgstr "" +"Les tables nécessaires au catalogue de Bacula sont absentes de la base de " +"données (probablement parce que vous effectuez une nouvelle installation). " +"Elles peuvent être créées maintenant." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "A MySQL 'root' username & password will be required." +msgstr "" +"L'identifiant et le mot de passe d'un administrateur MySQL sont nécessaires." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:31 +msgid "root" +msgstr "root" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "MySQL 'root' username" +msgstr "Identifiant de l'administrateur MySQL :" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "Please type the username to connect to MySQL as." +msgstr "Veuillez indiquer l'identifiant de l'administrateur de MySQL." + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "This user needs to have 'create database' privileges." +msgstr "Cet identifiant doit avoir les droits pour créer une base de données." + +#. Type: password +#. Default +#: ../bacula-director-mysql.templates:39 +msgid "NONE" +msgstr "NONE" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "MySQL 'root' password" +msgstr "Mot de passe de l'administrateur de MySQL :" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "Please type the password for the username entered before." +msgstr "Veuillez indiquer le mot de passe de l'administrateur de MySQL." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +msgid "Remove Catalog on purge?" +msgstr "Faut-il supprimer le catalogue lors de la purge du paquet ?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +msgid "" +"Shall I remove the Catalog from the MySQL server at package purge time? This " +"will free all the used space." +msgstr "" +"Le catalogue du serveur MySQL peut être supprimé lors de la purge " +"(désinstallation complète) du paquet. Ceci libérera tout l'espace utilisé." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +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 "" +"Attention : cette opération est irréversible. Une fois que vous aurez " +"supprimé le catalogue, vous ne serez plus en mesure de restaurer vos " +"sauvegardes à moins d'avoir une autre copie du catalogue actuel." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:4 +msgid "" +"I have detected that the tables needed for Bacula's Catalog are missing " +"( this is probably a fresh install ). Shall I create them now?" +msgstr "" +"Les tables nécessaires au catalogue de Bacula sont absentes de la base de " +"données (probablement parce que vous effectuez une nouvelle installation). " +"Elles peuvent être créées maintenant." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:11 +msgid "" +"Shall I remove the Catalog / SQLite database at package purge time? This " +"will free all the used space." +msgstr "" +"Le catalogue de la base de données SQLite peut être supprimé lors de la " +"purge (désinstallation complète) du paquet. Ceci libérera tout l'espace " +"utilisé." --- bacula-1.32f-5.orig/debian/po/nl.po +++ bacula-1.32f-5/debian/po/nl.po @@ -0,0 +1,165 @@ +# +# 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.32f-4-3\n" +"POT-Creation-Date: 2004-01-24 19:26+0100\n" +"PO-Revision-Date: 2004-03-29 08:54+0100\n" +"Last-Translator: Luk Claes \n" +"Language-Team: Debian l10n Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:3 +msgid "localhost" +msgstr "localhost" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "Where is the MySQL server?" +msgstr "Waar is de MySQL-server?" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:4 +msgid "Enter the host where the MySQL server which is to hold Bacula's catalog is." +msgstr "Geef de host waar de MySQL-server is die de catalogus van Bacula bijhoudt." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:10 +msgid "bacula" +msgstr "bacula" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "MySQL username" +msgstr "MySQL-gebruikersnaam" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:11 +msgid "Please, enter the username which Bacula will use to connect to MySQL." +msgstr "Geef de gebruikersnaam die Bacula zal gebruiken om een verbindg met MySQL te maken." + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "MySQL password" +msgstr "MySQL-wachtwoord" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:17 +msgid "Please, enter the password which Bacula will use to connect to MySQL." +msgstr "Geef het wachtwoord dat Bacula zal gebruiken om een verbinding met MySQL te maken." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +#: ../bacula-director-sqlite.templates:4 +msgid "Create tables for Bacula's Catalog?" +msgstr "Tabellen creëren voor de Catalogus van Bacula?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "I have detected that the tables needed for Bacula's Catalog are missing (this is probably a fresh install). Shall I create them now?" +msgstr "De tabellen, die de Catalogus van Bacula nodig heeft, ontbreken (dit is waarschijnlijk een verse installatie). Moeten deze nu aangemaakt worden?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:23 +msgid "A MySQL 'root' username & password will be required." +msgstr "Een MySQL-'root'-gebruikersnaam en -wachtwoord zullen vereist zijn." + +#. Type: string +#. Default +#: ../bacula-director-mysql.templates:31 +msgid "root" +msgstr "root" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "MySQL 'root' username" +msgstr "MySQL-'root'-gebruikersnaam" + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "Please type the username to connect to MySQL as." +msgstr "Geef de gebruikersnaam om met MySQL te connecteren." + +#. Type: string +#. Description +#: ../bacula-director-mysql.templates:32 +msgid "This user needs to have 'create database' privileges." +msgstr "The gebruiker heeft de toegangsrechten voor 'databankcreatie' nodig." + +#. Type: password +#. Default +#: ../bacula-director-mysql.templates:39 +msgid "NONE" +msgstr "GEEN" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "MySQL 'root' password" +msgstr "MySQL-'root'-wachtwoord" + +#. Type: password +#. Description +#: ../bacula-director-mysql.templates:40 +msgid "Please type the password for the username entered before." +msgstr "Geef het wachtwoord voor de hiervoor ingevoerde gebruikersnaam." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +msgid "Remove Catalog on purge?" +msgstr "Catalogus verwijderen bij wissen (purge)?" + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +msgid "Shall I remove the Catalog from the MySQL server at package purge time? This will free all the used space." +msgstr "Moet de Catalogus uit de MySQL-server verwijderd worden bij wissen (purge)? Dit zal alle gebruikte ruimte vrijgeven." + +#. Type: boolean +#. Description +#: ../bacula-director-mysql.templates:46 +#: ../bacula-director-sqlite.templates:11 +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 "Waarschuwing: dit is niet ongedaan te maken. Eens u de catalogus verwijderd heeft, zult u niet in staat zijn om backups te herstellen behalve als u nog een andere kopie van de catalogus bij de hand heeft." + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:4 +msgid "I have detected that the tables needed for Bacula's Catalog are missing ( this is probably a fresh install ). Shall I create them now?" +msgstr "De door de Catalogus van Bacula benodigde tabellen ontbreken (dit is waarschijnlijk een verse installatie). Moeten deze nu aangemaakt worden?" + +#. Type: boolean +#. Description +#: ../bacula-director-sqlite.templates:11 +msgid "Shall I remove the Catalog / SQLite database at package purge time? This will free all the used space." +msgstr "Moet de Catalogus / SQLite-databank verwijderd worden bij wissen (purge)? Dit zal alle ingenomen ruimte weer vrijgeven." + --- bacula-1.32f-5.orig/debian/po/POTFILES.in +++ bacula-1.32f-5/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] bacula-director-mysql.templates +[type: gettext/rfc822deb] bacula-director-sqlite.templates --- bacula-1.32f-5.orig/debian/bacula-console-gnome.postinst +++ bacula-1.32f-5/debian/bacula-console-gnome.postinst @@ -0,0 +1,57 @@ +#! /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="gnome-console.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 + # default perms (root:root, 755) are Ok. + ;; + + 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-1.32f-5.orig/debian/bacula-console-gnome.manpages +++ bacula-1.32f-5/debian/bacula-console-gnome.manpages @@ -0,0 +1 @@ +debian/manpages/gnome-console.1 --- bacula-1.32f-5.orig/debian/bacula-sd.postinst +++ bacula-1.32f-5/debian/bacula-sd.postinst @@ -0,0 +1,65 @@ +#! /bin/sh +# 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) + chown bacula:daemon /var/run/bacula + chmod 750 /var/run/bacula + + 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 $DSTDIR/$CONFIG + chmod 640 $DSTDIR/$CONFIG + ;; + + 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-1.32f-5.orig/debian/bacula-sd.manpages +++ bacula-1.32f-5/debian/bacula-sd.manpages @@ -0,0 +1,6 @@ +debian/manpages/bacula-sd.8 +debian/manpages/btape.1 +debian/manpages/bscan.1 +debian/manpages/bls.1 +debian/manpages/bextract.1 +debian/manpages/bcopy.1 --- bacula-1.32f-5.orig/debian/control +++ bacula-1.32f-5/debian/control @@ -0,0 +1,138 @@ +Source: bacula +Section: admin +Priority: optional +Maintainer: Jose Luis Tallon +Build-Depends: autotools-dev, debhelper (>= 4.1.68), po-debconf (>= 0.8.2), zlib1g-dev, libsqlite-dev, libmysqlclient-dev, libreadline-dev, libgnome-dev, libgtkxmhtml-dev, libzvt-dev +Standards-Version: 3.6.1 + +Package: bacula +Architecture: all +Pre-Depends: debconf (>= 1.1) +Depends: bacula-director-sqlite(= ${Source-Version})|bacula-director, bacula-console (= ${Source-Version}), bacula-fd (= ${Source-Version}), bacula-sd (= ${Source-Version}), +Description: Network backup, recovery and verification + 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. + +Package: bacula-common +Architecture: all +Pre-Depends: debconf (>= 1.1) +Depends: adduser (>= 3.0) +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.1) +Depends: bacula-common, exim|mail-transport-agent, ${shlibs:Depends} +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.1) +Depends: bacula-common (= ${Source-Version}), bacula-director-common (= ${Source-Version}), sqlite, ${shlibs:Depends} +Conflicts: bacula-director-mysql +Provides: bacula-director +Replaces: bacula-director-mysql +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-mysql +Architecture: any +Pre-Depends: debconf (>= 1.1) +Depends: bacula-common (= ${Source-Version}), bacula-director-common (= ${Source-Version}), mysql-client, ${shlibs:Depends} +Conflicts: bacula-director-sqlite +Provides: bacula-director +Replaces: bacula-director-sqlite +Suggests: mysql-server (>= 3.23.49) +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-console +Architecture: any +Pre-Depends: debconf (>= 1.1) +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-console-gnome +Architecture: any +Pre-Depends: debconf (>= 1.1) +Depends: bacula-common (= ${Source-Version}), ${shlibs:Depends} +Description: Network backup, recovery and verification (Console, Gnome version) + The Console allows the administrator or user to communicate with the + Bacula Director. This is the Gnome version. + . + This Gnome GUI interface is for the moment far from complete but is quite + functional, having all the capabilities of the shell Console. + +Package: bacula-client +Architecture: all +Depends: bacula-console (= ${Source-Version}), bacula-fd (= ${Source-Version}) +Description: Network backup, recovery and verification (Client meta-package) + Minimal Bacula system client. + +Package: bacula-fd +Architecture: any +Pre-Depends: debconf (>= 1.1) +Depends: bacula-common (= ${Source-Version}), ${shlibs:Depends} +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. + +Package: bacula-server +Architecture: all +Depends: bacula-director-mysql (= ${Source-Version}), bacula-sd (= ${Source-Version}) +Description: Network backup, recovery and verification (Server meta-package) + Bacula system server. + +Package: bacula-sd +Architecture: any +Pre-Depends: debconf (>= 1.1), bacula-common +Depends: bacula-common (= ${Source-Version}), ${shlibs:Depends} +Recommends: mt-st, mtx +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 (usually a tape drive). + +Package: bacula-doc +Architecture: all +Description: Network backup, recovery and verification - Documentation + 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. --- bacula-1.32f-5.orig/debian/Makefile +++ bacula-1.32f-5/debian/Makefile @@ -0,0 +1,7 @@ +# +# +.PHONY: dummy + + +clean: dummy + rm -f *~ --- bacula-1.32f-5.orig/debian/bacula-director-common.postinst +++ bacula-1.32f-5/debian/bacula-director-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'. + +SRCDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-dir.conf" + + +case "$1" in + configure) + + # Only thing left to do is change permissions appropiately. + # Everything else was moved to postinst-common in $SRCDIR + chown bacula:bacula /var/lib/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-1.32f-5.orig/debian/bacula-director-common.manpages +++ bacula-1.32f-5/debian/bacula-director-common.manpages @@ -0,0 +1 @@ +debian/manpages/btraceback.8 --- bacula-1.32f-5.orig/debian/bacula-director-sqlite.postrm +++ bacula-1.32f-5/debian/bacula-director-sqlite.postrm @@ -0,0 +1,47 @@ +#! /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 + db_purge + ;; + remove) + rm -f $CONFFILE.dist + ;; + 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-1.32f-5.orig/debian/bacula-common.preinst +++ bacula-1.32f-5/debian/bacula-common.preinst @@ -0,0 +1,78 @@ +#! /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 + + +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" -d /var/lib/bacula bacula + usermod -G tape bacula + echo "Ok." + fi + ;; + + upgrade) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/bacula.pid \ +# --exec /usr/sbin/bacula 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-1.32f-5.orig/debian/additions/Makefile +++ bacula-1.32f-5/debian/additions/Makefile @@ -0,0 +1,6 @@ +# +# +.PHONY: dummy + +clean: dummy + rm -f *~ --- bacula-1.32f-5.orig/debian/additions/startmysql +++ bacula-1.32f-5/debian/additions/startmysql @@ -0,0 +1,6 @@ +#!/bin/sh +# this would be the prefered option... +#invoke-rc.d mysql start + +test -f /etc/init.d/mysql && /etc/init.d/mysql start +exit 0 --- bacula-1.32f-5.orig/debian/additions/stopmysql +++ bacula-1.32f-5/debian/additions/stopmysql @@ -0,0 +1,6 @@ +#!/bin/sh +# this would be the prefered option... +#invoke-rc.d mysql stop + +test -f /etc/init.d/mysql && /etc/init.d/mysql stop +exit 0 --- bacula-1.32f-5.orig/debian/bacula-doc.doc-base +++ bacula-1.32f-5/debian/bacula-doc.doc-base @@ -0,0 +1,13 @@ +Document: bacula +Title: Bacula -- Network backup, recovery and verification +Author: Kern Sibbald +Abstract: This manual describes Bacula's architecture, features and + shortcomings, plus how to configure it. +Section: Admin/Backup + +Format: pdf +Files: /usr/share/doc/bacula/bacula.pdf + +Format: HTML +Index: /usr/share/doc/bacula-doc/html-manual/index.html +Files: /usr/share/doc/bacula-doc/html-manual/* --- bacula-1.32f-5.orig/debian/rules +++ bacula-1.32f-5/debian/rules @@ -0,0 +1,333 @@ +#!/usr/bin/make -f +# debian/rules for Bacula +# by Jose Luis Tallon, +# based upon dh_make template, copyright 1997 by Joey Hess. +# + +#export DH_VERBOSE=1 +export DH_COMPAT=4 + +# 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 = -Wall + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +PACKAGES = $(shell grep '^Package: bacula-director-' debian/control \ + | sed 's/Package: bacula-director-//' | grep -v 'common' ) + +CONF_ALL = --enable-smartalloc +CONF_common = --without-mysql --without-sqlite --enable-gnome --with-x +CONF_sqlite = --with-sqlite +CONF_mysql = --with-mysql + +FLAGS_mysql = "DEBUG=-DHAVE_MYSQL SQL_INC=-I/usr/include/mysql" +FLAGS_sqlite = "DEBUG=-DHAVE_SQLITE SQL_INC=-I/usr/include" + +LIBS_mysql = "-L/usr/lib/mysql -lmysqlclient -lz" +LIBS_sqlite = "-L/usr/lib -lsqlite" + + +config.status: + dh_testdir + test -e autoconf/config.sub -a -L autoconf/config.sub || \ + ln -sf /usr/share/misc/config.sub autoconf/config.sub + test -e autoconf/config.guess -a -L autoconf/config.guess || \ + ln -sf /usr/share/misc/config.guess autoconf/config.guess + # Add here commands to configure the package. + ./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_common) + +configure-sqlite: configure-sqlite-stamp +configure-sqlite-stamp: + dh_testdir + $(RM) configure-mysql-stamp config.status + test -e autoconf/config.sub -a -L autoconf/config.sub || \ + ln -sf /usr/share/misc/config.sub autoconf/config.sub + test -e autoconf/config.guess -a -L autoconf/config.guess || \ + ln -sf /usr/share/misc/config.guess autoconf/config.guess + ./configure --config-cache -q \ + --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_sqlite) + touch $@ + +configure-mysql: configure-mysql-stamp +configure-mysql-stamp: + dh_testdir + $(RM) configure-mysql-stamp config.status + test -e autoconf/config.sub -a -L autoconf/config.sub || \ + ln -sf /usr/share/misc/config.sub autoconf/config.sub + test -e autoconf/config.guess -a -L autoconf/config.guess || \ + ln -sf /usr/share/misc/config.guess autoconf/config.guess + ./configure --config-cache -q \ + --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 \ + $(CONF_ALL) $(CONF_mysql) + touch $@ + + +build-arch: config.status build-arch-stamp +build-arch-stamp: + dh_testdir + + # Add here command to compile/build the package. + $(MAKE) + + chmod 755 debian/patches/postinst-common + chmod 755 debian/patches/btraceback + chmod 755 debian/additions/{start,stop}mysql + + touch $@ + + +build-sqlite: configure-sqlite build-sqlite-stamp +build-sqlite-stamp: + dh_testdir + $(RM) build-sqlite-stamp + $(MAKE) + #$(MAKE) -C src clean + #for d in lib findlib cats dird; do \ + # $(MAKE) -C src/$$d; \ + #done + touch $@ + +build-mysql: configure-mysql build-mysql-stamp +build-mysql-stamp: + dh_testdir + $(RM) build-mysql-stamp + $(MAKE) + #$(MAKE) -C src clean + #for d in lib findlib cats dird; do \ + # $(MAKE) -C src/$$d; \ + #done + touch $@ + + +build-indep: config.status build-indep-stamp +build-indep-stamp: + dh_testdir + + # Add here command to compile/build the arch indep package. + # It's ok not to do anything here, if you don't need to build + # anything for this package. + #/usr/bin/docbook-to-man debian/bacula.sgml > bacula.1 + + touch $@ + + +build: build-arch build-indep debian/po/templates.pot + +clean: + dh_testdir + dh_testroot + $(RM) config.cache + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + $(RM) autoconf/config.cache autoconf/config.sub autoconf/config.guess autoconf/config.log config.log + $(RM) build-arch-stamp build-sqlite-stamp build-mysql-stamp + $(RM) configure-sqlite-stamp configure-mysql-stamp + + dh_clean + $(RM) -r debian/tmp* + for dir in src/tconsole src/gnome2-console src/gnome-console scripts \ + rescue rescue/solaris rescue/freebsd; do \ + $(RM) $$dir/Makefile ;\ + done + + $(RM) src/gnome{,2}-console/gnome-console.conf + + +debian/po/templates.pot: debian/bacula-director-sqlite.templates debian/bacula-director-mysql.templates + @debconf-updatepo + + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k -pbacula-director-common + dh_clean -k -pbacula-fd -pbacula-sd -pbacula-console -pbacula-console-gnome + dh_clean -k -pbacula -pbacula-client -pbacula-server -pbacula-doc + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + mv debian/tmp/usr/sbin/console debian/tmp/usr/sbin/bacula-console + + dh_install -pbacula-director-common + dh_install -pbacula-fd -pbacula-sd + dh_install -pbacula-console -pbacula-console-gnome + dh_link -pbacula-console usr/share/man/man1/bconsole.1.gz usr/share/man/man1/bacula-console.1.gz + dh_install -pbacula -pbacula-client -pbacula-server -pbacula-doc + + +install-sqlite: DH_OPTIONS=-Pdebian/tmp-sqlite -pbacula-director-sqlite +install-sqlite: build-sqlite + dh_testdir + dh_testroot + dh_clean -k -pbacula-director-sqlite + dh_installdirs -pbacula-director-sqlite + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp-sqlite + + dh_install -pbacula-director-sqlite + dh_shlibdeps -pbacula-director-sqlite + +install-mysql: DH_OPTIONS=-Pdebian/tmp-mysql -pbacula-director-mysql +install-mysql: build-mysql + dh_testdir + dh_testroot + dh_clean -k -pbacula-director-mysql + dh_installdirs -pbacula-director-mysql + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp-mysql + + dh_install -pbacula-director-mysql + dh_shlibdeps -pbacula-director-mysql + + +patch: + chmod 755 debian/patches/bconsole + chmod 755 debian/patches/fix_config debian/patches/fix_director + @set -e + for f in console.conf gnome-console.conf bacula-sd.conf bacula-fd.conf; do \ + debian/patches/fix_config \ + debian/tmp/etc/bacula/$$f \ + debian/bacula-common/usr/share/bacula-common/defconfig/$$f; \ + done + debian/patches/fix_director \ + debian/tmp/etc/bacula/bacula-dir.conf \ + debian/bacula-common/usr/share/bacula-common/defconfig/bacula-dir.conf + @set +e + + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install 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 + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + + +# Build architecture-dependent files here. +binary-arch: build install patch binary-arch-sqlite binary-arch-mysql binary-arch-common + +binary-arch-common: DH_OPTIONS= +binary-arch-common: build install + dh_testdir -a + dh_testroot -a +# dh_install -a + dh_installdebconf -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -pbacula-console -pbacula-console-gnome +# dh_installlogrotate -a + dh_installinit -pbacula-sd -- defaults 90 + dh_installinit -pbacula-fd -- 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-arch-sqlite: DH_OPTIONS=-Pdebian/tmp-sqlite -pbacula-director-sqlite +binary-arch-sqlite: build-sqlite install-sqlite + dh_testdir + dh_testroot +# dh_installdocs +# dh_installlogrotate +# dh_installinit -pbacula-director-sqlite -- defaults 92 +# dh_installdebconf +# dh_installchangelogs ChangeLog +# dh_strip +# dh_link +# dh_compress +# dh_fixperms -X*.conf +# dh_installdeb -pbacula-director-sqlite +# dh_shlibdeps +# dh_gencontrol +# dh_md5sums +# dh_builddeb -pbacula-director-sqlite + + +binary-arch-mysql: DH_OPTIONS=-Pdebian/tmp-mysql -pbacula-director-mysql +binary-arch-mysql: build-mysql install-mysql + dh_testdir + dh_testroot +# dh_installdocs +# dh_installlogrotate +# dh_installinit -pbacula-director-mysql -- defaults 92 +# dh_installdebconf +# dh_installchangelogs ChangeLog +# dh_strip +# dh_link +# dh_compress +# dh_fixperms -X*.conf +# dh_installdeb -pbacula-director-mysql +# dh_shlibdeps +# dh_gencontrol +# dh_md5sums +# dh_builddeb -pbacula-director-mysql + + + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- bacula-1.32f-5.orig/debian/bacula-director-mysql.prerm +++ bacula-1.32f-5/debian/bacula-director-mysql.prerm @@ -0,0 +1,35 @@ +#! /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 + + +exit 0 --- bacula-1.32f-5.orig/debian/bacula-common.dirs +++ bacula-1.32f-5/debian/bacula-common.dirs @@ -0,0 +1,4 @@ +etc/bacula +var/run/bacula +usr/share/bacula-common +usr/share/bacula-common/defconfig --- bacula-1.32f-5.orig/debian/bacula-sd.prerm +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-sd.install +++ bacula-1.32f-5/debian/bacula-sd.install @@ -0,0 +1,7 @@ +debian/tmp/usr/sbin/bacula-sd +debian/tmp/usr/sbin/bls +debian/tmp/usr/sbin/bcopy +debian/tmp/usr/sbin/bextract +debian/tmp/usr/sbin/bscan +debian/tmp/usr/sbin/btape +debian/tmp/etc/bacula/scripts/mtx-changer --- bacula-1.32f-5.orig/debian/bacula-director-sqlite.templates +++ bacula-1.32f-5/debian/bacula-director-sqlite.templates @@ -0,0 +1,17 @@ +Template: bacula-director-sqlite/create_tables +Type: boolean +Default: true +_Description: Create tables for Bacula's Catalog? + I have detected that the tables needed for Bacula's Catalog are missing ( + this is probably a fresh install ). Shall I create them now? + +Template: bacula-director-sqlite/remove_catalog_on_purge +Type: boolean +Default: false +_Description: Remove Catalog on purge? + Shall I remove the Catalog / SQLite database at package purge time? This + will free all the used space. + . + 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. --- bacula-1.32f-5.orig/debian/changelog +++ bacula-1.32f-5/debian/changelog @@ -0,0 +1,162 @@ +bacula (1.32f-5-3) unstable; urgency=low + + * Added *real* DE translation and some enhancements to the manual pages, + submitted by Philipp Hahn . Thanks! + + * 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: #242529) + + * 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 Mon, 26 Apr 2004 02:03:18 +0200 + +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 than 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 Wed, 14 Apr 2004 00:08:56 +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-1.32f-5.orig/debian/bacula-director-sqlite.postinst +++ bacula-1.32f-5/debian/bacula-director-sqlite.postinst @@ -0,0 +1,79 @@ +#! /bin/sh +# 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 +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 + + if [ -f "$DB" ]; then + 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 + + chown bacula:bacula $DB #Bug 246955 + + # Preprocess configuration + TARGET=$CFGFILE.dpkg-tmp + + cat $DEFCONFIG/bacula-dir.conf \ + | sed -e 's/user = @db_user@;//' \ + -e 's/password = "@db_passwd@";//' \ + > $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 + + +exit 0 + --- bacula-1.32f-5.orig/debian/bacula-director-sqlite.manpages +++ bacula-1.32f-5/debian/bacula-director-sqlite.manpages @@ -0,0 +1 @@ +debian/manpages/bacula-dir.8 --- bacula-1.32f-5.orig/debian/bacula-director-sqlite.dirs +++ bacula-1.32f-5/debian/bacula-director-sqlite.dirs @@ -0,0 +1,2 @@ +usr/sbin +etc/bacula --- bacula-1.32f-5.orig/debian/bacula-fd.prerm +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-common.postrm +++ bacula-1.32f-5/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 + 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-1.32f-5.orig/debian/bacula-doc.dirs +++ bacula-1.32f-5/debian/bacula-doc.dirs @@ -0,0 +1,2 @@ +usr/share/doc/bacula-doc/examples +usr/share/doc/bacula-doc/devices --- bacula-1.32f-5.orig/debian/bacula-doc.docs +++ bacula-1.32f-5/debian/bacula-doc.docs @@ -0,0 +1,7 @@ +README +README.AIX +ReleaseNotes +kernstodo +doc/html-manual/ +doc/bacula.pdf +scripts/bacula.png --- bacula-1.32f-5.orig/debian/bacula-director-mysql.install +++ bacula-1.32f-5/debian/bacula-director-mysql.install @@ -0,0 +1,3 @@ +debian/tmp-mysql/usr/sbin/bacula-dir usr/sbin +debian/tmp-mysql/etc/bacula/scripts/make_mysql_tables usr/share/bacula-director +debian/tmp-mysql/etc/bacula/scripts/drop_mysql_tables usr/share/bacula-director --- bacula-1.32f-5.orig/debian/manpages/Makefile +++ bacula-1.32f-5/debian/manpages/Makefile @@ -0,0 +1,7 @@ +# +# +.PHONY: dummy + + +clean: dummy + rm -f *~ --- bacula-1.32f-5.orig/debian/manpages/bls.1 +++ bacula-1.32f-5/debian/manpages/bls.1 @@ -0,0 +1,70 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BLS 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME + bls \- Bacula's 'Tape LS' +.SH SYNOPSIS +.B bls +.RI [ options ] +.I input-archive +.I output-archive +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bls +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show version and usage of program. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.BI \-i\ input +Specify input Volume names (separated by '|'). +.TP +.BI \-o\ output +Specify output Volume names (separated by '|'). +.TP +.BI \-w\ directory +Specify working directory (default \fI/tmp\fP). +.TP +.B \-v +Set verbose mode. +.SH SEE ALSO +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bconsole.1 +++ bacula-1.32f-5/debian/manpages/bconsole.1 @@ -0,0 +1,46 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH CONSOLE 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + console \- Bacula's management Console +.SH SYNOPSIS +.B console +.RI [options] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B console +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.SH OPTIONS +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.B \-s +No signals. +.TP +.B \-t +Test config mode: read configuration and exit. +.TP +.B \-? +Show version and usage of program. +.SH SEE ALSO +.BR bacula\-dir (8), +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/dbcheck.1 +++ bacula-1.32f-5/debian/manpages/dbcheck.1 @@ -0,0 +1,62 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH DBCHECK 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + bcopy \- Bacula's DB Check +.SH SYNOPSIS +.B bcopy +.RI [ options ] +.I working-directory +.I bacula-database +.I user +.I password +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bcopy +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show version and usage of program. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.BI \-i\ input +Specify input Volume names (separated by '|') +.TP +.BI \-o\ output +Specify output Volume names (separated by '|') +.TP +.BI \-w\ directory +Specify working directory (default \fI/tmp\fP). +.TP +.B \-v +Set verbose mode. +.SH SEE ALSO +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bacula-fd.8 +++ bacula-1.32f-5/debian/manpages/bacula-fd.8 @@ -0,0 +1,43 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BACULA\-FD 8 "Jan 24, 2004" "Kern Sibbald" "Network backup, recovery & verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +.B bacula\-fd +\- Bacula's File Daemon +.SH SYNOPSIS +.B bacula\-fd +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bacula +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.br +Bacula's File Daemon acts as the interface between the Bacula +network backup system and the filesystems to be backed up: it is +responsible for reading/writing/verifying the files to be +backup'd/verified/restored. Network transfer can optionally be +compressed. +.SH OPTIONS +.TP +.BI \-c\ config +Change location to read \fIbacula\-fd.conf\fP from (default $CWD) +.TP +.BI \-u\ user +Set the username/uid to run as. +.TP +.BI \-g\ group +Set the group/gid to run as. +.SH SEE ALSO +.BR bacula\-dir (8), +.BR bacula\-sd (8). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon , +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bacula-sd.8 +++ bacula-1.32f-5/debian/manpages/bacula-sd.8 @@ -0,0 +1,41 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BACULA\-SD 8 "Jan 24, 2004" "Kern Sibbald" "Network backup, recovery & verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +.B bacula\-sd +\- Bacula's Storage Daemon +.SH SYNOPSIS +.B bacula\-fd +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bacula\-sd +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.br +Bacula's Storage Daemon acts as the interface between the Bacula +network backup system and a tape drive/autochanger or filesystem where +the backups will be stored. +.SH OPTIONS +.TP +.B \-c\ config +Change location to read \fIbacula\-sd.conf\fP from (default $CWD) +.TP +.BI \-u\ user +Set the username/uid to run as. +.TP +.BI \-g\ group +Set the group/gid to run as. +.SH SEE ALSO +.BR bacula\-dir (8), +.BR bacula\-fd (8). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon , +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/smtp.1 +++ bacula-1.32f-5/debian/manpages/smtp.1 @@ -0,0 +1,14 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH BACULA\-SMTP 1 "Jan 24, 2004" "Kern Sibbald" "Network backup" +.\" Please adjust this date whenever revising the manpage. +.SH NAME + smtp \- Bacula's SMTP helper +.SH DESCRIPTION +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bacula-dir.8 +++ bacula-1.32f-5/debian/manpages/bacula-dir.8 @@ -0,0 +1,45 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BACULA\-DIR 8 "Jan 24, 2004" "Kern Sibbald" "Network backup, recovery&verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +.B bacula\-dir +\- Bacula Director +.SH SYNOPSIS +.B bacula\-dir +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bacula +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.br +Bacula's File Daemon acts as the interface between the Bacula +network backup system and the filesystems to be backed up: it is +responsible for reading/writing/verifying the files to be +backup'd/verified/restored. Network transfer can optionally be +compressed. +.SH OPTIONS +.TP +.BI \-c\ config +Change location to read \fIbacula\-dir.conf\fP from (default $CWD) +.TP +.BI \-u\ user +Set the username/uid to run as. +.TP +.BI \-g\ group +Set the group/gid to run as. +.SH SEE ALSO +.BR bacula\-fd (8), +.BR bacula\-sd (8). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bextract.1 +++ bacula-1.32f-5/debian/manpages/bextract.1 @@ -0,0 +1,57 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BEXTRACT 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + bextract \- Bacula's 'Extract from tape' +.SH SYNOPSIS +.B bextract +.RI [ options ] +.I bacula-archive-device-name +.I output-directory +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bextract +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show version and usage of program. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.BI \-e\ file +Specify exclude list. +.TP +.BI \-i\ file +Specify include list. +.TP +.BI \-V\ volume-name +Specify volume names. +.SH SEE ALSO +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bcopy.1 +++ bacula-1.32f-5/debian/manpages/bcopy.1 @@ -0,0 +1,60 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BCOPY 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + bcopy \- Bacula's 'Copy from tape' +.SH SYNOPSIS +.B bcopy +.RI [ options ] +.I input-archive +.I output-archive +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bcopy +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show version and usage of program. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.BI \-i\ input +Specify input Volume names (separated by '|') +.TP +.BI \-o\ output +Specify output Volume names (separated by '|') +.TP +.BI \-w\ directory +Specify working directory (default \fI/tmp\fP). +.TP +.B \-v +Set verbose mode. +.SH SEE ALSO +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/gnome-console.1 +++ bacula-1.32f-5/debian/manpages/gnome-console.1 @@ -0,0 +1,47 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GNOME\-CONSOLE 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME + gnome\-console \- Bacula's management Console, GUI version. +.br +.SH DESCRIPTION +This manual page documents briefly the +.B gnome\-console +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.sp 2 +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +The Console allows the administrator or user to communicate with the +Bacula Director. This is the Gnome version. +.PP +This Gnome GUI interface is for the moment far from complete but is quite +functional, having all the capabilities of the shell Console. +.BR +.SH SEE ALSO +.BR bacula\-dir (8), +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/btraceback.8 +++ bacula-1.32f-5/debian/manpages/btraceback.8 @@ -0,0 +1,14 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH BTRACEBACK 8 "Jan 24, 2004" "Kern Sibbald" "Network backup" +.\" Please adjust this date whenever revising the manpage. +.SH NAME + btraceback \- Produce a traceback on the event of a 'Kaboom' +.SH DESCRIPTION +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/manpages/bscan.1 +++ bacula-1.32f-5/debian/manpages/bscan.1 @@ -0,0 +1,78 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BSCAN 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + bscan \- Bacula's 'Scan tape' +.SH SYNOPSIS +.B bscan +.RI [ options ] +.I bacula-archive +.br +.SH DESCRIPTION +This manual page documents briefly the +.B bscan +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show version and usage of program. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.B \-m +Update media info in database. +.TP +.BI \-n\ name +Specify the database name (default: \fIbacula\fP) +.TP +.BI \-u\ username +Specify database username (default: \fIbacula\fP) +.TP +.BI \-p\ password +Specify database password (default: \fInone\fP) +.TP +.BI \-h\ host +Specify database host (default: \fINULL\fP) +.TP +.B \-r +List records. +.TP +.B \-s +Synchronize or store in Database. +.TP +.B \-v +Verbose output mode. +.TP +.BI \-V\ volume +Specify volume names (separated by '|') +.TP +.BI \-w\ dir +Specify working directory (default from conf file) +.SH SEE ALSO +.BR bls (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). + --- bacula-1.32f-5.orig/debian/manpages/btape.1 +++ bacula-1.32f-5/debian/manpages/btape.1 @@ -0,0 +1,137 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH BTAPE 1 "Oct 24, 2003" "Kern Sibbald&John Walker" "Network backup, recovery and verification" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME + btape \- Bacula's Tape interface +.SH SYNOPSIS +.B btape +.RI [ options ] +.I device-name +.br +.SH DESCRIPTION +This manual page documents briefly the +.B btape +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-? +Show summary of options and commands. +.TP +.BI \-b\ bootstrap +Specify a bootstrap file. +.TP +.BI \-c\ config +Specify configuration file. +.TP +.BI \-d\ nn +Set debug level to \fInn\fP. +.TP +.B \-t +Open the default tape device. +.TP +.B \-s +Turn off signals. +.sp 3 +.SH COMMANDS +.TP +.B bsf +backspace file +.TP +.B bsr +backspace record +.TP +.B bfill +fill tape using Bacula writes +.TP +.B cap +list device capabilities +.TP +.B clear +clear tape errors +.TP +.B eod +go to end of Bacula data for append +.TP +.B eom +go to the physical end of medium +.TP +.B fill +fill tape, write onto second volume +.TP +.B unfill +read filled tape +.TP +.B fsf +forward space a file +.TP +.B fsr +forward space a record +.TP +.B help +print this reference +.TP +.B label +write a Bacula label to the tape +.TP +.B load +load a tape +.TP +.B quit +quit btape +.TP +.B rawfill +use write() to fill tape +.TP +.B readlabel +read and print the Bacula tape label +.TP +.B rectest +test record handling functions +.TP +.B rewind +rewind the tape +.TP +.B scan +read() tape block by block to EOT and report +.TP +.B scanblocks +Bacula read block by block to EOT and report +.TP +.B status +print tape status +.TP +.B test +General test Bacula tape functions +.TP +.B weof +write an EOF on the tape +.TP +.B wr +write a single Bacula block +.TP +.B rr +read a single record +.TP +.B qfill +quick fill command +.br +.SH SEE ALSO +.BR bscan (1), +.BR bextract (1). +.br +.SH AUTHOR +This manual page was written by Jose Luis Tallon +.nh +, +for the Debian GNU/Linux system (but may be used by others). --- bacula-1.32f-5.orig/debian/bacula-director-common.dirs +++ bacula-1.32f-5/debian/bacula-director-common.dirs @@ -0,0 +1,4 @@ +usr/lib/bacula +var/lib/bacula +var/run/bacula +usr/share/bacula-director --- bacula-1.32f-5.orig/debian/bacula-director-common.bacula-director.init +++ bacula-1.32f-5/debian/bacula-director-common.bacula-director.init @@ -0,0 +1,68 @@ +#! /bin/sh +# 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 + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + echo "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + sleep 1 + if [ -n "`ps ax | grep bacula-dir`" ]; then + killall -15 bacula-dir >/dev/null 2>&1 || true + fi + + echo "$NAME." + ;; + + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + *) + 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-1.32f-5.orig/debian/bacula-sd.dirs +++ bacula-1.32f-5/debian/bacula-sd.dirs @@ -0,0 +1,5 @@ +usr/bin +usr/sbin +var/lib/bacula +var/run/bacula +etc/bacula --- bacula-1.32f-5.orig/debian/bacula-sd.init +++ bacula-1.32f-5/debian/bacula-sd.init @@ -0,0 +1,61 @@ +#!/bin/sh +# +# 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 + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + echo "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-1.32f-5.orig/debian/bacula-doc.install +++ bacula-1.32f-5/debian/bacula-doc.install @@ -0,0 +1,8 @@ +examples/AFS-README usr/share/doc/bacula-doc/examples +examples/afs-bacula usr/share/doc/bacula-doc/examples +examples/backup usr/share/doc/bacula-doc/examples +examples/backup-every-other-week.txt usr/share/doc/bacula-doc/examples +examples/bacula-barcodes usr/share/doc/bacula-doc/examples +examples/chio-bacula usr/share/doc/bacula-doc/examples +examples/checkhost usr/share/doc/bacula-doc/examples +examples/devices/* usr/share/doc/bacula-doc/devices --- bacula-1.32f-5.orig/debian/bacula-sd.postrm +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-console-gnome.dirs +++ bacula-1.32f-5/debian/bacula-console-gnome.dirs @@ -0,0 +1,2 @@ +usr/bin +etc/bacula --- bacula-1.32f-5.orig/debian/bacula-console-gnome.menu +++ bacula-1.32f-5/debian/bacula-console-gnome.menu @@ -0,0 +1,2 @@ +?package(bacula-console-gnome):needs="X11" section="Apps/System" \ + title="Bacula console" command="/usr/bin/gnome-console" --- bacula-1.32f-5.orig/debian/bacula-console-gnome.postrm +++ bacula-1.32f-5/debian/bacula-console-gnome.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/gnome-console.* + ;; + + 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-1.32f-5.orig/debian/bacula-director-sqlite.prerm +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-fd.postinst +++ bacula-1.32f-5/debian/bacula-fd.postinst @@ -0,0 +1,65 @@ +#! /bin/sh +# 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) + chown bacula:daemon /var/run/bacula + chmod 750 /var/run/bacula + + 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 $DSTDIR/$CONFIG + chmod 640 $DSTDIR/$CONFIG + ;; + + 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-1.32f-5.orig/debian/bacula-fd.manpages +++ bacula-1.32f-5/debian/bacula-fd.manpages @@ -0,0 +1 @@ +debian/manpages/bacula-fd.8 --- bacula-1.32f-5.orig/debian/bacula-fd.dirs +++ bacula-1.32f-5/debian/bacula-fd.dirs @@ -0,0 +1,5 @@ +usr/sbin +var/lib/bacula +var/run/bacula +etc/bacula +etc/bacula/scripts --- bacula-1.32f-5.orig/debian/bacula-fd.init +++ bacula-1.32f-5/debian/bacula-fd.init @@ -0,0 +1,61 @@ +#!/bin/sh +# +# 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 + +PIDFILE=/var/run/bacula/$NAME.$PORT.pid + +case "$1" in + start) + if [ -f /etc/bacula/do_not_run ]; then + echo "Not starting $DESC: disabled via /etc/bacula/do_not_run" + exit 0 + fi + + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $ARGS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- bacula-1.32f-5.orig/debian/README.Debian +++ bacula-1.32f-5/debian/README.Debian @@ -0,0 +1,28 @@ +Bacula, network-based backup, recovery & verification system +http://www.bacula.org +=============================================================================== + + The 'bacula-common' package provides a repository for the common +infrastructure: the 'bacula' user & group plus the template configurations +which are massaged into boilerplate config by the postinstallation, using +the configuration values entered through debconf. + + + The virtual package 'bacula-director' is provided by + - bacula-director-sqlite + - bacula-director-mysql + These binaries have been compiled against the database indicated +in the package's name. + + + 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 console is contained in the +bacula-console-gnome package ( compiled against Gnome 1.4 for now ) + + + + -- Jose Luis Tallon , Wed, 31 Mar 2004 21:37:45 +0200 --- bacula-1.32f-5.orig/debian/bacula-director-mysql.config +++ bacula-1.32f-5/debian/bacula-director-mysql.config @@ -0,0 +1,125 @@ +#!/bin/sh +# config script for bacula-dir ( MySQL flavor ) +# +# by Jose Luis Tallon + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_title "Bacula Director" + +set -e + +CATALOG="bacula" + +case "$1" in + configure) + + db_beginblock + db_input medium bacula-director-mysql/db_host || true + db_input medium bacula-director-mysql/db_user || true + db_input medium bacula-director-mysql/db_password || true + db_endblock + db_go + + db_input medium bacula-director-mysql/create_tables || true + db_go + + #db_get bacula-director-mysql/create_tables + #if [ "$RET" = "true" ]; then + db_beginblock + db_input medium bacula-director-mysql/mysql_root_username || true + db_input medium bacula-director-mysql/mysql_root_password || true + db_endblock + db_go + #fi + + db_input medium bacula-director-mysql/remove_catalog_on_purge || true + db_go + ;; + + reconfigure) + # We have all dependencies configured, so we can be a bit more clever :) + # + db_beginblock + db_input medium bacula-director-mysql/host || true + db_input medium bacula-director-mysql/user || true + db_input medium bacula-director-mysql/password || true + db_endblock + db_go + + db_get bacula-director-mysql/db_host; MYSQL_HOST="$RET"; + db_get bacula-director-mysql/db_user; MYSQL_USER="$RET"; + db_get bacula-director-mysql/db_password; MYSQL_PSWD="$RET"; + if [ "$MYSQL_HOST" != "localhost" ]; then + MYSQL_HOST_STRING="-h $MYSQL_HOST" + fi + if [ -z "$MYSQL_PSWD" ]; then + MYSQL_CMD="mysql $MYSQL_HOST_STRING -u $MYSQL_USER"; + else + MYSQL_CMD="mysql $MYSQL_HOST_STRING -u $MYSQL_USER -p$MYSQL_PSWD"; + fi + + # if mysql-client is not available, there's no point in + # trying to configure ... yes? + # test -x /usr/bin/mysql || exit 0 + + RESULT=`$MYSQL_CMD $CATALOG -e 'show tables' 2>&1`; + case $RESULT in + "") # No output => success, no tables + db_input medium bacula-director-mysql/create_tables || true + db_go + + db_get bacula-director-mysql/create_tables; + if [ "$RET" = "true" ]; then + db_beginblock + db_input medium bacula-director-mysql/mysql_root_username || true + db_input medium bacula-director-mysql/mysql_root_password || true + db_endblock + db_go + fi + + ;; + + "ERROR 1045:"*) # Access denied + #echo "ERROR: Access denied to MySQL server!" >>/dev/fd/2 + exit 0 + ;; + + "ERROR 1049:"*) # Unknown database + db_input medium bacula-director-mysql/create_tables || true + db_go + + db_get bacula-director-mysql/create_tables; + if [ "$RET" = "true" ]; then + echo "create database $CATALOG;" | $MYSQL_CMD; + db_beginblock + db_input medium bacula-director-mysql/mysql_root_username || true + db_input medium bacula-director-mysql/mysql_root_password || true + db_endblock + db_go + fi + ;; + + "ERROR "*) # unknown error! + #echo "ERROR: MySQL returned and unknown error code!" >>/dev/fd/2 + exit 1 + ;; + *) # output => some tables do exist + #echo "Some tables exist in Database $CATALOG. Doing nothing." >> /dev/fd/2 + exit 0 + ;; + esac + + + db_input medium bacula-director-mysql/remove_catalog_on_purge || true + db_go + ;; + + *) + echo "config called with unknown argument \$1'" >&2 + exit 0 + ;; +esac + +exit 0 --- bacula-1.32f-5.orig/debian/RATIONALE +++ bacula-1.32f-5/debian/RATIONALE @@ -0,0 +1,23 @@ +RATIONALE for packaging decisions in "Bacula" + +* utility programs ( smtp, dbcheck ) under /usr/lib/bacula, because they are +part of the suite, as opposed to bls/bscan/bextract/btape which are under +/usr/sbin, for the administrator's convenience + +* 'btraceback' is under /usr/lib/bacula. There is a symlink in /usr/sbin for +compatibility. The modified version looks for btraceback.gdb in /usr/lib/bacula +instead. + +* 'console' moved to /usr/sbin/bacula-console. Add convenience script +/usr/bin/console which calls bacula-console with the '-c switch', so that it +looks for its config file directly in /etc/bacula + + +---- + +* Won't split bacula-sd into -mysql and -sqlite, even if might be needed + (btape, bscan, links against -lsql ): + They must connect to the director for this purpose.. that's why Bacula was + designed as a distributed system ( link issue noticed & notified by Nic Bellamy + + --- bacula-1.32f-5.orig/debian/bacula-console.dirs +++ bacula-1.32f-5/debian/bacula-console.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/bacula --- bacula-1.32f-5.orig/debian/bacula-console.menu +++ bacula-1.32f-5/debian/bacula-console.menu @@ -0,0 +1,2 @@ +?package(bacula-console):needs="text" section="Apps/System" \ + title="Bacula console" command="/usr/sbin/bacula-console -c /etc/bacula" --- bacula-1.32f-5.orig/debian/bacula-console.postinst +++ bacula-1.32f-5/debian/bacula-console.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="console.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@~`hostname`~" < $SRCDIR/$CONFIG > $TARGET + + chown root:bacula $DSTDIR/$CONFIG + chmod 640 $DSTDIR/$CONFIG + +# dpkg-statoverride --list $CONSOLE >/dev/null 2>&1 || \ +# dpkg-statoverride --update --add root bacula 750 $CONSOLE >/dev/null 2>&1 + ;; + + 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-1.32f-5.orig/debian/bacula-console.manpages +++ bacula-1.32f-5/debian/bacula-console.manpages @@ -0,0 +1 @@ +debian/manpages/bconsole.1 --- bacula-1.32f-5.orig/debian/bacula-console.install +++ bacula-1.32f-5/debian/bacula-console.install @@ -0,0 +1,2 @@ +debian/tmp/usr/sbin/bacula-console usr/sbin +debian/patches/bconsole usr/bin --- bacula-1.32f-5.orig/debian/bacula-director-common.links +++ bacula-1.32f-5/debian/bacula-director-common.links @@ -0,0 +1 @@ +/usr/lib/bacula/btraceback /usr/sbin/btraceback --- bacula-1.32f-5.orig/debian/bacula-director-common.postrm +++ bacula-1.32f-5/debian/bacula-director-common.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 -rf /var/lib/bacula + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- bacula-1.32f-5.orig/debian/patches/Makefile +++ bacula-1.32f-5/debian/patches/Makefile @@ -0,0 +1,6 @@ +# +# +.PHONY: dummy + +clean: dummy + rm -f *~ --- bacula-1.32f-5.orig/debian/patches/btraceback.gdb +++ bacula-1.32f-5/debian/patches/btraceback.gdb @@ -0,0 +1,28 @@ +print my_name +print exename +print exepath +print catalog_db +print version +print host_os +print distname +print distver +bt +thread apply all bt +f 0 +info locals +f 1 +info locals +f 2 +info locals +f 3 +info locals +f 4 +info locals +f 5 +info locals +f 6 +info locals +f 7 +info locals +detach +quit --- bacula-1.32f-5.orig/debian/patches/bconsole +++ bacula-1.32f-5/debian/patches/bconsole @@ -0,0 +1,3 @@ +#!/bin/sh +CFGFILE=/etc/bacula/console.conf +exec /usr/sbin/bacula-console -c $CFGFILE $* --- bacula-1.32f-5.orig/debian/patches/fix_config.sed +++ bacula-1.32f-5/debian/patches/fix_config.sed @@ -0,0 +1 @@ +s~/usr/sbin/smtp~/usr/lib/bacula/smtp~g --- bacula-1.32f-5.orig/debian/patches/fix_config +++ bacula-1.32f-5/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~`hostname`~@hostname@~g | sed -r -f `dirname $0`/fix_config.sed > $2 --- bacula-1.32f-5.orig/debian/patches/btraceback +++ bacula-1.32f-5/debian/patches/btraceback @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Script to do a stackdump of a Bacula daemon/program. +# +# We attempt to attach to running program +# +# Arguments to this script are +# $1 = path to executable +# $2 = main pid of running program to be traced back. +# +gdb -quiet -batch -x /usr/lib/bacula/btraceback.gdb $1 $2 2>&1 \ + | /usr/lib/bacula/smtp -h localhost -s "Bacula traceback" root --- bacula-1.32f-5.orig/debian/patches/postinst-common +++ bacula-1.32f-5/debian/patches/postinst-common @@ -0,0 +1,28 @@ +#!/bin/sh + +DEFCONFIGDIR="/usr/share/bacula-common/defconfig" +DSTDIR="/etc/bacula" +CONFIG="bacula-dir.conf" + + + +SOURCE=$DSTDIR/$CONFIG.dpkg-tmp +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 +chown root:bacula $DSTDIR/$CONFIG +chmod 640 $DSTDIR/$CONFIG + + +exit 0 --- bacula-1.32f-5.orig/debian/patches/fix_director +++ bacula-1.32f-5/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-1.32f-5.orig/debian/patches/fix_director.sed +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-director-mysql.postrm +++ bacula-1.32f-5/debian/bacula-director-mysql.postrm @@ -0,0 +1,53 @@ +#! /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) + # ... so that a replacement bacula-director-* can do as needed. + rm -f $CONFFILE.dist + ;; + 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-1.32f-5.orig/debian/bacula-console-gnome.install +++ bacula-1.32f-5/debian/bacula-console-gnome.install @@ -0,0 +1,2 @@ +debian/tmp/usr/sbin/gnome-console usr/bin + --- bacula-1.32f-5.orig/debian/copyright +++ bacula-1.32f-5/debian/copyright @@ -0,0 +1,43 @@ +This package was debianized by Jose Luis Tallon on +Sun, 19 Oct 2003 14:36:45 +0200. + +It was downloaded from http://www.bacula.org + +Upstream Authors: Kern Sibbald and John Walker. + +Copyright: (copied from http://www.bacula.org/) + +Bacula Copyright, Trademark, and Licenses +There are a number of different licenses that are used in Bacula. + +GPL +The vast bulk of the code is released under the GNU General +Public License version 2. Most of this code is copyrighted: +Copyright (C) 2000-2003 Kern Sibbald and John Walker. + +Portions may be copyrighted by other people +(ATT, the Free Software Foundation, ...). + +LGPL +Some of the Bacula library source code is released under the +GNU Lesser General Public License. This permits third parties +to use these parts of our code in their proprietary programs + +to interface to Bacula. + +Public Domain +Some of the Bacula code has been released to the public domain. +E.g. md5.c, SQLite. + +Trademark +Bacula is a registered trademark of Kern Sibbald and John Walker. + +We have done this to ensure that any variant of Bacula will be +exactly compatible with the program that we have released. +The use of the name Bacula is restricted to software systems +that agree exactly with the program presented here. + + +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-1.32f-5.orig/debian/bacula-director-common.install +++ bacula-1.32f-5/debian/bacula-director-common.install @@ -0,0 +1,5 @@ +debian/tmp/usr/sbin/smtp usr/lib/bacula +debian/patches/btraceback.gdb usr/lib/bacula +debian/patches/btraceback usr/lib/bacula +debian/patches/postinst-common usr/share/bacula-director +debian/tmp/etc/bacula/scripts/query.sql --- bacula-1.32f-5.orig/debian/bacula-director-mysql.dirs +++ bacula-1.32f-5/debian/bacula-director-mysql.dirs @@ -0,0 +1,2 @@ +usr/sbin +etc/bacula --- bacula-1.32f-5.orig/debian/bacula-director-mysql.postinst +++ bacula-1.32f-5/debian/bacula-director-mysql.postinst @@ -0,0 +1,150 @@ +#! /bin/sh +# 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'. + +## Globals +CATALOG=bacula +MYSQL=/usr/bin/mysql +MYSQLADMIN=/usr/bin/mysqladmin +MAKE_SQL_TABLES=/usr/share/bacula-director/make_mysql_tables +POSTINST_COMMON=/usr/share/bacula-director/postinst-common +DEFCONFIG=/usr/share/bacula-common/defconfig +CFGFILE=/etc/bacula/bacula-dir.conf + +case "$1" in +configure) + + ## Test mysql is running somewhere + + db_get bacula-director-mysql/db_host || true + MYSQL_HOST="$RET" + db_get bacula-director-mysql/mysql_root_username || true + MYSQL_ROOT_USER="$RET" + db_get bacula-director-mysql/mysql_root_password || true + MYSQL_ROOT_PASSWORD="$RET" + + if [ "$MYSQL_HOST" != "localhost" ] + then + MYSQL_HOST_STRING="-h $MYSQL_HOST" + fi + + if [ "$MYSQL_ROOT_PASSWORD" != "NONE" ] + then + MYSQL_PSWD_STRING="-p$MYSQL_ROOT_PASSWORD" + fi + + echo -n "Checking DB connectivity..." + if ! $MYSQLADMIN $MYSQL_HOST_STRING -u $MYSQL_ROOT_USER $MYSQL_PSWD_STRING \ + ping >/dev/null 2>&1 + then + echo -e "\nERROR: Could not connect to MySQL server at $MYSQL_HOST" + exit 1 + fi + echo "Ok." + + db_get bacula-director-mysql/create_tables || true + if [ "$RET" = "true" ]; then + # Create DB + echo -n "Creating Catalog \"$CATALOG\" ..." + $MYSQLADMIN $MYSQL_HOST_STRING -u $MYSQL_ROOT_USER $MYSQL_PSWD_STRING \ + create $CATALOG >/dev/null 2>&1 || true + echo "Ok." + + # Create tables + echo -n "Creating tables ..." + if ! $MAKE_SQL_TABLES $MYSQL_HOST_STRING \ + -u $MYSQL_ROOT_USER $MYSQL_PSWD_STRING >/dev/null 2>&1 + then + echo -e "\nERROR: Table creation failed!" + exit 1 + fi + echo "Ok." + + # Grant privileges to (unprivileged user!) + db_get bacula-director-mysql/db_user || true + MYSQL_USER="$RET" + db_get bacula-director-mysql/db_password || true + MYSQL_PASSWORD="$RET" + + MYSQL_HOST_URI=$MYSQL_HOST + if [ "$MYSQL_HOST" != "localhost" ] + then + MYSQL_HOST_URI="'%'" + fi + + q="'" + if [ "$MYSQL_PASSWORD" != "NONE" ]; then + MYSQL_USER_PSWD_STRING="IDENTIFIED BY $q$MYSQL_PASSWORD$q" + MYSQL_AUTH_TOKEN=$MYSQL_PASSWORD + fi + + echo -e "GRANT ALL privileges ON $CATALOG.* TO $MYSQL_USER@$MYSQL_HOST_URI" \ + "$MYSQL_USER_PSWD_STRING;\nFLUSH PRIVILEGES;" \ + | $MYSQL -h $MYSQL_HOST -u $MYSQL_ROOT_USER $MYSQL_PSWD_STRING mysql + + fi # bacula-director-mysql/create_tables == "true" + + + # PreProcess configuration + echo -n "Processing configuration ..." + TARGET=$CFGFILE.dpkg-tmp + + cat $DEFCONFIG/bacula-dir.conf \ + | sed -e "s/dbname = bacula;/dbname = bacula; DB Address = $MYSQL_HOST;/" \ + | sed -e "s/@db_user@/$MYSQL_USER/" | sed -e "s/@db_pswd@/$MYSQL_AUTH_TOKEN/" \ + > $TARGET + + /bin/bash $POSTINST_COMMON + + echo "Ok." + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Unconditionally RESET the variables, so that +# we "forget" about the passwords +db_reset bacula-director_mysql/mysql_root_username || true +db_reset bacula-director_mysql/mysql_root_password || true + +# 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 + +exit 0 --- bacula-1.32f-5.orig/debian/bacula-director-mysql.manpages +++ bacula-1.32f-5/debian/bacula-director-mysql.manpages @@ -0,0 +1 @@ +debian/manpages/bacula-dir.8 --- bacula-1.32f-5.orig/debian/bacula-director-sqlite.config +++ bacula-1.32f-5/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-1.32f-5.orig/debian/bacula-fd.install +++ bacula-1.32f-5/debian/bacula-fd.install @@ -0,0 +1,5 @@ +debian/tmp/usr/sbin/bacula-fd +debian/tmp/etc/bacula/scripts/make_catalog_backup +debian/tmp/etc/bacula/scripts/delete_catalog_backup +debian/additions/startmysql etc/bacula/scripts +debian/additions/stopmysql etc/bacula/scripts --- bacula-1.32f-5.orig/debian/bacula-director-mysql.templates +++ bacula-1.32f-5/debian/bacula-director-mysql.templates @@ -0,0 +1,52 @@ +Template: bacula-director-mysql/db_host +Type: string +_Default: localhost +_Description: Where is the MySQL server? + Enter the host where the MySQL server which is to hold Bacula's catalog + is. + +Template: bacula-director-mysql/db_user +Type: string +_Default: bacula +_Description: MySQL username + Please, enter the username which Bacula will use to connect to MySQL. + +Template: bacula-director-mysql/db_password +Type: password +_Default: NONE +_Description: MySQL password + Please, enter the password which Bacula will use to connect to MySQL. + +Template: bacula-director-mysql/create_tables +Type: boolean +Default: true +_Description: Create tables for Bacula's Catalog? + I have detected that the tables needed for Bacula's Catalog are missing + (this is probably a fresh install). Shall I create them now? + . + A MySQL 'root' username & password will be required. + +Template: bacula-director-mysql/mysql_root_username +Type: string +_Default: root +_Description: MySQL 'root' username + Please type the username to connect to MySQL as. + . + This user needs to have 'create database' privileges. + +Template: bacula-director-mysql/mysql_root_password +Type: password +_Default: NONE +_Description: MySQL 'root' password + Please type the password for the username entered before. + +Template: bacula-director-mysql/remove_catalog_on_purge +Type: boolean +Default: false +_Description: Remove Catalog on purge? + Shall I remove the Catalog from the MySQL server at package purge time? + This will free all the used space. + . + 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. --- bacula-1.32f-5.orig/debian/bacula-console.postrm +++ bacula-1.32f-5/debian/bacula-console.postrm @@ -0,0 +1,49 @@ +#! /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 + +case "$1" in + purge) + rm -f /etc/bacula/console.* +# dpkg-statoverride --list $CONSOLE >/dev/null && \ +# dpkg-statoverride --remove $CONSOLE >/dev/null 2>&1 || true + ;; + + remove) +# dpkg-statoverride --list $CONSOLE >/dev/null && \ +# dpkg-statoverride --remove $CONSOLE >/dev/null 2>&1 || true + ;; + + 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-1.32f-5.orig/debian/bacula-director-sqlite.install +++ bacula-1.32f-5/debian/bacula-director-sqlite.install @@ -0,0 +1,4 @@ +debian/tmp-sqlite/usr/sbin/bacula-dir usr/sbin +debian/tmp-sqlite/usr/sbin/dbcheck usr/lib/bacula +debian/tmp-sqlite/etc/bacula/scripts/make_sqlite_tables usr/share/bacula-director +debian/tmp-sqlite/etc/bacula/scripts/drop_sqlite_tables usr/share/bacula-director --- bacula-1.32f-5.orig/debian/bacula-common.postinst +++ bacula-1.32f-5/debian/bacula-common.postinst @@ -0,0 +1,61 @@ +#! /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 + + #if [ -z "`getent services bacula-dir`" ]; then + # # this is supposed to be serialized, so don't bother to avoid race conditions + # echo -e "bacula-dir\t9101/tcp\t\t\t# Bacula's Director daemon" >> /etc/services + # echo -e "bacula-fd\t9102/tcp\t\t\t# Bacula's Filer daemon" >> /etc/services + # echo -e "bacula-sd\t9103/tcp\t\t\t# Bacula's Storage daemon" >> /etc/services + # echo "" >> /etc/services + #fi + ;; + + 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-1.32f-5.orig/debian/bacula-fd.postrm +++ bacula-1.32f-5/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