Package: nagios Version: 2:1.4-3 Severity: normal Tags: patch Hi,
Attached is the diff for my nagios 2:1.4-3.1 NMU during the current BSP which I'll upload to delayed-0. -- Luk Claes - http://people.debian.org/~luk - GPG key 1024D/9B7C328D Fingerprint: D5AF 25FB 316B 53BB 08E7 F999 E544 DE07 9B7C 328D
diff -u nagios-1.4/debian/nagios-pgsql.postrm nagios-1.4/debian/nagios-pgsql.postrm --- nagios-1.4/debian/nagios-pgsql.postrm +++ nagios-1.4/debian/nagios-pgsql.postrm @@ -1,6 +1,8 @@ #!/bin/sh -e -. /usr/share/debconf/confmodule +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then . /usr/share/dbconfig-common/dpkg/postrm.pgsql dbc_go nagios-pgsql $@ diff -u nagios-1.4/debian/nagios-common.postrm nagios-1.4/debian/nagios-common.postrm --- nagios-1.4/debian/nagios-common.postrm +++ nagios-1.4/debian/nagios-common.postrm @@ -5,9 +5,6 @@ set -e -# Source debconf library. -. /usr/share/debconf/confmodule - # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' @@ -45,25 +42,30 @@ rm -f /etc/nagios/cgi.cfg fi else - # Remove apache config if wanted. - db_get nagios/configapache - webserver="$RET" - case "$webserver" in - Apache) webservers="apache";; - Apache2) webservers="apache2";; - Apache-SSL) webservers="apache-ssl";; - Both) webservers="apache apache-ssl";; - *) webservers="";; - esac - - db_stop - - for apache in $webservers; do - rm -f /etc/$apache/conf.d/nagios || true - done - - if [ ! -z "$webservers" ]; then - reloadapache + if [ -f /usr/share/debconf/confmodule ]; then + # Source debconf library. + . /usr/share/debconf/confmodule + + # Remove apache config if wanted. + db_get nagios/configapache + webserver="$RET" + case "$webserver" in + Apache) webservers="apache";; + Apache2) webservers="apache2";; + Apache-SSL) webservers="apache-ssl";; + Both) webservers="apache apache-ssl";; + *) webservers="";; + esac + + db_stop + + for apache in $webservers; do + rm -f /etc/$apache/conf.d/nagios || true + done + + if [ ! -z "$webservers" ]; then + reloadapache + fi fi fi ;; diff -u nagios-1.4/debian/changelog nagios-1.4/debian/changelog --- nagios-1.4/debian/changelog +++ nagios-1.4/debian/changelog @@ -1,3 +1,11 @@ +nagios (2:1.4-3.1) unstable; urgency=high + + * Non-maintainer upload during BSP. + * Fix unconditional use of debconf in postrm (Closes: #417023). + * Add Dutch debconf translation (Closes: #414763). + + -- Luk Claes <[EMAIL PROTECTED]> Sat, 19 May 2007 16:46:47 +0200 + nagios (2:1.4-3) unstable; urgency=low [sean finney] diff -u nagios-1.4/debian/nagios-mysql.postrm nagios-1.4/debian/nagios-mysql.postrm --- nagios-1.4/debian/nagios-mysql.postrm +++ nagios-1.4/debian/nagios-mysql.postrm @@ -1,6 +1,8 @@ #!/bin/sh -e -. /usr/share/debconf/confmodule +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/postrm.mysql only in patch2: unchanged: --- nagios-1.4.orig/debian/po/nl.po +++ nagios-1.4/debian/po/nl.po @@ -0,0 +1,89 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <[EMAIL PROTECTED]>, YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: nagios\n" +"Report-Msgid-Bugs-To: [EMAIL PROTECTED]" +"POT-Creation-Date: 2006-11-16 00:05+0100\n" +"PO-Revision-Date: 2007-03-06 18:31+0100\n" +"Last-Translator: Bart Cornelis <[EMAIL PROTECTED]>\n" +"Language-Team: debian-l10n-dutch <[EMAIL PROTECTED]>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../nagios-common.templates:1001 +msgid "Apache, Apache2, Apache-SSL, Both, None" +msgstr "Apache, Apache2, Apache-SSL, Beide, Geen" + +#. Type: select +#. Description +#: ../nagios-common.templates:1002 +msgid "Automatically configure apache for Nagios?" +msgstr "Wilt u apache automatisch instellen voor Nagios?" + +#. Type: select +#. Description +#: ../nagios-common.templates:1002 +msgid "Nagios requires a few things to be set up in your web server configuration in order for the front end to function properly." +msgstr "Opdat het frontend juist zou functioneren vereist Nagios enkele instellingen van de webserverconfiguratie." + +#. Type: select +#. Description +#: ../nagios-common.templates:1002 +msgid "The Debian packaged version can usually automatically configure apache by dropping a symlink into the /etc/APACHE-SERVER/conf.d directory. Would you like me to do this? Say no if you aren't running apache or you would prefer to set up the web server yourself. If you say yes here, all configuration changes will also be removed when the packages is purged. Do not edit the configuration by hand, but instead make a copy of it, and remove the trailing header and footer, as everything between them will be automatically updated on package updates." +msgstr "Normaal is het Debian-pakket in staat om apache automatisch in te stellen door een symbolische koppeling te maken in de /etc/APACHE-SERVER/conf.d map. Wilt u hier gebruik van maken? Als u Apache niet gebruikt of verkiest deze handmatig in te stellen sla dit dan af. Als u voor deze optie kiest zullen alle configuratieaanpassingen ook automatisch verwijderd worden als dit pakket gewist wordt. Wijzig deze configuratie niet handmatig, maar maak in plaats daarvan een kopie waarin u de kop- en voettekst verwijdert (daar alles daartussen automatisch bijgewerkt wordt tijdens pakket-opwaarderingen)." + +#. Type: select +#. Description +#: ../nagios-common.templates:1002 +msgid "Since there is no special Apache2-SSL, 'both' means Apache and Apache-SSL." +msgstr "Aangezien er geen aparte Apache2-SSL is betekent 'Beide' Apache en Apache-SSL." + +#. Type: password +#. Description +#: ../nagios-common.templates:2001 +msgid "Nagios web administration password?" +msgstr "Wat is het Nagios webadministratiewachtwoord?" + +#. Type: password +#. Description +#: ../nagios-common.templates:2001 +msgid "By default, Nagios's web administration requires visitors to log in before they can access anything. Different users may view different hosts and some may send commands to the Nagios backend." +msgstr "Standaard vereist de webadministratie van Nagios dat bezoekers zich aanmelden voor ze ergens bij kunnen. Gebruikers mogen verschillende computers bekijken en sommigen mogen commando's naar de Nagios-backend versturen." + +#. Type: password +#. Description +#: ../nagios-common.templates:2001 +msgid "As you are using the default apache configuration, I have set up a default administration user of \"nagiosadmin\". Please enter a password for this account. Additional users may be added to the file /etc/nagios/htpasswd.users using the htpasswd utility supplied with apache. If you have changed the password, and don't want to re-enter one, just press Enter here, and the password will be left alone." +msgstr "Aangezien u de standaard apache-configuratie gebruikt, is er een standaard beheerder 'nagiosadmin' aangemaakt. Gelieve een wachtwoord voor deze gebruiker op te geven. Aanvullende gebruikers kunnen toegevoegt worden via het bestand /etc/nagios/htpasswd.users en het htpasswd-hulpprogramma (dat meegeleverd is met apache). Als u het het wachtwoord aangepast heeft en dit niet opnieuw wilt invoeren kunt u hier gewoon 'enter' drukken, het wachtwoord wordt dan met rust gelaten." + +#. Type: password +#. Description +#: ../nagios-common.templates:2001 +msgid "The user you're about to set a password for is 'nagiosadmin', and the default configuration distributed with the package allow that user to view and change anything in Nagios. You're free (and encouraged) to configure your own users with their own access views." +msgstr "De gebruiker waarvoor u zometeen een wachtwoord opgeeft is 'nagiosadmin'; de standaard door dit pakket geleverde configuratie laat deze gebruiker toe om alles te zien en aan te passen in Nagios. Het staat u vrij (en is aangemoedigd) om uw eigen gebruikers in te stellen met eigen toegangsrechten." + +#. Type: boolean +#. Description +#: ../nagios-common.templates:3001 +msgid "Enable Nagios external command interface on web??" +msgstr "Wilt u de externe commando-interface voor Nagios op het web activeren?" + +#. Type: boolean +#. Description +#: ../nagios-common.templates:3001 +msgid "Nagios can be configured to listen for \"external commands\" from processes to alter service check parameters and other settings on the fly. The Web interface uses this to allow users to restart the server, schedule checks and so on." +msgstr "Nagios kan ingesteld worden om te luisteren naar \"externe commando's\" van processen, die toelaten om service-check-parameters en andere instellingen zomaar aan te passen. De webinterface gebruikt dit om gebruikers de server te laten herstarten, checks te plannen enz. " + +#. Type: boolean +#. Description +#: ../nagios-common.templates:3001 +msgid "In order for this to work, Nagios CGI scripts have to be able to write to the file /var/run/nagios/nagios.cmd. The Debian packaged version can support this by running setuid to the Nagios user." +msgstr "Opdat dit zou werken dienen de Nagios CGI-scripts te kunnen schrijven naar het bestand /var/run/nagios/nagios.cmd. Het Debian-pakket ondersteunt dit door de setuid bit in te stellen op de Nagios-gebruiker." +