* lowest prio for name of the database (since it is currently ignored) littlebird-2011091400-2
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Thu, 15 Sep 2011 14:13:37 +0200
changeset 72 13e6c7d7e367
parent 71 33eb16ca4945
child 73 17799db96f10
* lowest prio for name of the database (since it is currently ignored)
debian/changelog
debian/control
debian/littlebird-tc-common.config
debian/littlebird-tc-common.templates
debian/littlebird-tc-sql.postinst
debian/patches/db-update
debian/po/de.po
debian/po/templates.pot
--- a/debian/changelog	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/changelog	Thu Sep 15 14:13:37 2011 +0200
@@ -1,3 +1,9 @@
+littlebird (2011091400-2) stable; urgency=low
+
+  * lowest prio for name of the database (since it is currently ignored) 
+
+ -- Heiko Schlittermann <hs@schlittermann.de>  Thu, 15 Sep 2011 13:41:52 +0200
+
 littlebird (2011091400-1) stable; urgency=low
 
   * dpkg-reconfigure littlebird-tc-core asks questions from -tc-common too 
--- a/debian/control	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/control	Thu Sep 15 14:13:37 2011 +0200
@@ -24,7 +24,7 @@
 
 Package: littlebird-tc-sql
 Architecture: all
-Depends: ${misc:Depends}, littlebird-tc-core (>= ${source:Version}), bash
+Depends: ${misc:Depends}, littlebird-tc-core (>= ${source:Version}), mysql-client
 Suggests: mysql-server
 Description: littlebird sql files
  This package contains the sql files for initializing or
--- a/debian/littlebird-tc-common.config	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/littlebird-tc-common.config	Thu Sep 15 14:13:37 2011 +0200
@@ -17,8 +17,8 @@
 db_settitle $prefix-common/TITLE
 
 db_beginblock
-    db_input medium $prefix/db/name	|| true
-    db_input high $prefix/db/host	|| true
+    db_input low $prefix/db/name	|| true
+    db_input low $prefix/db/host	|| true
     db_input high $prefix/db/user	|| true
     db_input high $prefix/db/pass	|| true
 db_endblock
--- a/debian/littlebird-tc-common.templates	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/littlebird-tc-common.templates	Thu Sep 15 14:13:37 2011 +0200
@@ -15,8 +15,9 @@
 
 Template: littlebird-tc/db/name
 Type: string
-Default: littlebird
+Default: trustcenter_history
 _Description: The name of the database we should use.
+ NOTE: currenty this name is ignored!
 
 Template: littlebird-tc/db/user
 Type: string
--- a/debian/littlebird-tc-sql.postinst	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/littlebird-tc-sql.postinst	Thu Sep 15 14:13:37 2011 +0200
@@ -72,9 +72,17 @@
 			--adminuser "$adminuser" --adminpass "$adminpass" \
 			--user "$user" --pass "$pass"
 		    fi
-		    env PATH=/usr/local/zend/bin:$PATH \
-			bash /srv/www/littlebird/TrustCenter/scripts/install_update_db.sh \
-			"$adminuser" "$adminpass"
+
+		    if test -x /srv/www/littlebird/TrustCenter/scripts/install_update_db
+		    then
+			env PATH=/usr/local/zend/bin:$PATH \
+			    /srv/www/littlebird/TrustCenter/scripts/install_update_db \
+			    "$adminuser" "$adminpass"
+		    else
+			env PATH=/usr/local/zend/bin:$PATH \
+			    bash /srv/www/littlebird/TrustCenter/scripts/install_update_db.sh \
+			    "$adminuser" "$adminpass"
+		    fi
 
 		# avoid stupid messages next time
 	        db_set littlebird-tc/db/have-admin false || true
--- a/debian/patches/db-update	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/patches/db-update	Thu Sep 15 14:13:37 2011 +0200
@@ -25,13 +25,13 @@
 
 --- a/TrustCenter/scripts/install_update_db.sh
 +++ b/TrustCenter/scripts/install_update_db.sh
-@@ -1,6 +1,6 @@
--#!/bin/sh
+@@ -1,6 +1,4 @@
+ #!/bin/sh
 -# cron script actual statistic
-+#!/bin/bash
-+# need bash for bashism
- ZF_CONF=$(dirname `readlink -f $0`)/../zf_conf.sh
- source $ZF_CONF
- 
+-ZF_CONF=$(dirname `readlink -f $0`)/../zf_conf.sh
+-source $ZF_CONF
+-
 -$ZEND_PROJECT_PATH/zf.sh database update root L1ttleB1rd
-+$ZEND_PROJECT_PATH/zf.sh database update ${1-root} ${2-L1ttleB1rd}
++ZF_CONF=$(dirname $(readlink -f $0))/../zf_conf.sh
++. $ZF_CONF
++$ZEND_PROJECT_PATH/zf.sh database update "${1-root}" "${2-L1ttleB1rd}"
--- a/debian/po/de.po	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/po/de.po	Thu Sep 15 14:13:37 2011 +0200
@@ -7,8 +7,8 @@
 msgstr ""
 "Project-Id-Version: littlebird 2011072500\n"
 "Report-Msgid-Bugs-To: littlebird@packages.debian.org\n"
-"POT-Creation-Date: 2011-09-02 13:27+0200\n"
-"PO-Revision-Date: 2011-09-02 13:48+0200\n"
+"POT-Creation-Date: 2011-09-15 14:08+0200\n"
+"PO-Revision-Date: 2011-09-15 14:12+0100\n"
 "Last-Translator: Heiko Schlittermann <hs@schlittermann.de>\n"
 "Language-Team: German\n"
 "Language: de\n"
@@ -32,25 +32,14 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-common.templates:2001
-msgid ""
-"We need to know how to connect to your database server. Please note, that "
-"some mysql clients use a local UNIX socket connection if you enter "
-"\"localhost\", but use a local TCP connection, if you enter \"127.0.0.1\"."
-msgstr ""
-"Das Trustcenter benutzt eine MySQL-Datenbank. Dafür benötigen wir die "
-"Zugangsdaten. Unter welcher Adresse ist dieser Datenbankserver erreichbar? "
-"Bitte beachten Sie, daß es für einige Clients eine lokale UNIX-Verbindung "
-"verwenden, wenn Sie \"localhost\" angeben, aber eine TCP-Verbindung, "
-"wenn Sie \"127.0.0.1\" angeben."
+msgid "We need to know how to connect to your database server. Please note, that some mysql clients use a local UNIX socket connection if you enter \"localhost\", but use a local TCP connection, if you enter \"127.0.0.1\"."
+msgstr "Das Trustcenter benutzt eine MySQL-Datenbank. Dafür benötigen wir die Zugangsdaten. Unter welcher Adresse ist dieser Datenbankserver erreichbar? Bitte beachten Sie, daß es für einige Clients eine lokale UNIX-Verbindung verwenden, wenn Sie \"localhost\" angeben, aber eine TCP-Verbindung, wenn Sie \"127.0.0.1\" angeben."
 
 #. Type: string
 #. Description
 #: ../littlebird-tc-common.templates:2001
-msgid ""
-"You may append (separeted by a colon (\":\")) a port number, if your server "
-"does not listen on the default (currently 3306) port."
-msgstr "Sie können, getrennt durch einen Doppelpunkt, auch eine Portnummer "
-"anhängen, falls der Datenbankserver nicht den Standaardport 3306 benutzt."
+msgid "You may append (separeted by a colon (\":\")) a port number, if your server does not listen on the default (currently 3306) port."
+msgstr "Sie können, getrennt durch einen Doppelpunkt, auch eine Portnummer anhängen, falls der Datenbankserver nicht den Standaardport 3306 benutzt."
 
 #. Type: string
 #. Description
@@ -60,18 +49,21 @@
 
 #. Type: string
 #. Description
-#: ../littlebird-tc-common.templates:4001
-msgid "The database user to be used for the database connection."
-msgstr "Nutername für Zugriff auf die Trustcenter-Datenbank"
+#: ../littlebird-tc-common.templates:3001
+msgid "NOTE: currenty this name is ignored!"
+msgstr "ACHTUNG: gegenwärtig wird der Datenbank-Name ignoriert!"
 
 #. Type: string
 #. Description
 #: ../littlebird-tc-common.templates:4001
-msgid ""
-"This is the user to be used for all normal operations. If this is a fresh "
-"installation, we will create the account."
-msgstr "Mit welchem Nutzernamen sollen wir auf die Datenbank des Trustcenters"
-"zugreifen?"
+msgid "The database user to be used for the database connection."
+msgstr "Nutzername für Zugriff auf die Trustcenter-Datenbank"
+
+#. Type: string
+#. Description
+#: ../littlebird-tc-common.templates:4001
+msgid "This is the user to be used for all normal operations. If this is a fresh installation, we will create the account."
+msgstr "Mit welchem Nutzernamen sollen wir auf die Datenbank des Trustcenterszugreifen?"
 
 #. Type: password
 #. Description
@@ -94,14 +86,8 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-core.templates:2001
-msgid ""
-"To connect to the web service we need a hostname. Please enter the name of "
-"the host, the clients will try to connect to.  The name should match the CN "
-"of your SSL certificate, if you have any."
-msgstr ""
-"Um auf den Webserver zugreifen zu können, benötigen wir dessen Hostnamen, "
-"so wie ihn die Clients aufrufen müssen. Dieser Name sollte zum CN des "
-"ausgestellten (oder auszustellenden) SSL-Zertifkates passen."
+msgid "To connect to the web service we need a hostname. Please enter the name of the host, the clients will try to connect to.  The name should match the CN of your SSL certificate, if you have any."
+msgstr "Um auf den Webserver zugreifen zu können, benötigen wir dessen Hostnamen, so wie ihn die Clients aufrufen müssen. Dieser Name sollte zum CN des ausgestellten (oder auszustellenden) SSL-Zertifkates passen."
 
 #. Type: string
 #. Description
@@ -112,13 +98,8 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-core.templates:3001
-msgid ""
-"If you choose any other than the default, please beware that your clients "
-"may not be able to connect to your HTTPS server."
-msgstr ""
-"Falls Sie einen anderen als den Standard-Port (443) verwenden, kann es "
-"passieren, daß Ihre Clients den Server nicht erreichen! "
-"Wir haben Sie gewarnt."
+msgid "If you choose any other than the default, please beware that your clients may not be able to connect to your HTTPS server."
+msgstr "Falls Sie einen anderen als den Standard-Port (443) verwenden, kann es passieren, daß Ihre Clients den Server nicht erreichen! Wir haben Sie gewarnt."
 
 #. Type: string
 #. Description
@@ -135,23 +116,14 @@
 #. Type: note
 #. Description
 #: ../littlebird-tc-core.templates:5001
-msgid ""
-"You are ${action} the littlebird trustcenter, however we do not purge/empty/"
-"clean the database."
-msgstr ""
-"Sie sind dabei, das Trustcenter zu entfernen. Wir werden jedoch *NICHT* "
-"die Datenbank leeren."
+msgid "You are ${action} the littlebird trustcenter, however we do not purge/empty/clean the database."
+msgstr "Sie sind dabei, das Trustcenter zu entfernen. Wir werden jedoch *NICHT* die Datenbank leeren."
 
 #. Type: note
 #. Description
 #: ../littlebird-tc-core.templates:5001
-msgid ""
-"Please think about it, if you need to remove ANY traces, you should consider "
-"dropping the database. Contact your friendly database admin for doing it :-)"
-msgstr ""
-"Bitte denken Sie daran, wenn Sie alle Spuren des Trustcenters verwischen "
-"möchten, müssten Sie auch die Datenbank enfernen. Fragen Sie Ihren "
-"freundlichen Datenbankadministrator, was dafür zu tun ist."
+msgid "Please think about it, if you need to remove ANY traces, you should consider dropping the database. Contact your friendly database admin for doing it :-)"
+msgstr "Bitte denken Sie daran, wenn Sie alle Spuren des Trustcenters verwischen möchten, müssten Sie auch die Datenbank enfernen. Fragen Sie Ihren freundlichen Datenbankadministrator, was dafür zu tun ist."
 
 #. Type: string
 #. Description
@@ -162,11 +134,8 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-core.templates:6001
-msgid ""
-"The HTTPS server uses an SSL certificate. Where is or where  will be the "
-"certificate file located?"
-msgstr ""
-"Der HTTPS-Server verwendet ein SSL-Zertifikat. Wo wird diese Datei liegen?"
+msgid "The HTTPS server uses an SSL certificate. Where is or where  will be the certificate file located?"
+msgstr "Der HTTPS-Server verwendet ein SSL-Zertifikat. Wo wird diese Datei liegen?"
 
 #. Type: string
 #. Description
@@ -177,12 +146,8 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-core.templates:7001
-msgid ""
-"The HTTPS server uses an SSL certificate. Where is or where  will be the "
-"certificate *KEY* file located?"
-msgstr ""
-"Wo liegt die Schlüsseldatei, die für die Nutzung des SSL-Zertifikats "
-"benötigt wird?"
+msgid "The HTTPS server uses an SSL certificate. Where is or where  will be the certificate *KEY* file located?"
+msgstr "Wo liegt die Schlüsseldatei, die für die Nutzung des SSL-Zertifikats benötigt wird?"
 
 #. Type: note
 #. Description
@@ -193,14 +158,8 @@
 #. Type: note
 #. Description
 #: ../littlebird-tc-core.templates:8001
-msgid ""
-"Because I am missing the certificate I'm generating a DEMO certificate (CN="
-"${cn}) for you. Please do not forget to replace it as soon as possible. The "
-"DEMO  certificate will expire in ${days} days."
-msgstr ""
-"Da wir kein SSL-Zertifikat finden konnten, generieren wir eins. Es wird auf "
-"CN=${cn} ausgestellt und ist für ${days} gültig. Bitte ersetzen Sie es so "
-"bald wie möglich durch ein echtes Zertifikat."
+msgid "Because I am missing the certificate I'm generating a DEMO certificate (CN=${cn}) for you. Please do not forget to replace it as soon as possible. The DEMO  certificate will expire in ${days} days."
+msgstr "Da wir kein SSL-Zertifikat finden konnten, generieren wir eins. Es wird auf CN=${cn} ausgestellt und ist für ${days} gültig. Bitte ersetzen Sie es so bald wie möglich durch ein echtes Zertifikat."
 
 #. Type: error
 #. Description
@@ -229,18 +188,8 @@
 #. Type: boolean
 #. Description
 #: ../littlebird-tc-sql.templates:2001
-msgid ""
-"During the package configuration (postinst) we need to connect to your "
-"database server and setup the littlebird schema, install a littlebird user "
-"etcpp. If you can provide us the data to access this server, please answer "
-"\"yes\", if not,  please answer \"no\" and return later and run"
-msgstr ""
-"Während der Konfiguration des Trustcenters müssen wir uns mit Ihrem "
-"Datenbankserver verbinden und dort einige Dinge als ADMIN ausführen "
-"(Schema-Installation, Nutzer Anlegen, …). Wenn Sie wissen, mit welchen "
-"Daten wir uns mit dem Server verbinden können, antworten Sie jetzt mit "
-"\"ja\", andernfalls müssten Sie später nochmal wieder kommen und folgendes "
-"Kommando ausführen: "
+msgid "During the package configuration (postinst) we need to connect to your database server and setup the littlebird schema, install a littlebird user etcpp. If you can provide us the data to access this server, please answer \"yes\", if not,  please answer \"no\" and return later and run"
+msgstr "Während der Konfiguration des Trustcenters müssen wir uns mit Ihrem Datenbankserver verbinden und dort einige Dinge als ADMIN ausführen (Schema-Installation, Nutzer Anlegen, …). Wenn Sie wissen, mit welchen Daten wir uns mit dem Server verbinden können, antworten Sie jetzt mit \"ja\", andernfalls müssten Sie später nochmal wieder kommen und folgendes Kommando ausführen: "
 
 #. Type: boolean
 #. Description
@@ -257,12 +206,8 @@
 #. Type: string
 #. Description
 #: ../littlebird-tc-sql.templates:3001
-msgid ""
-"Some operations during install need administrative privileges, we need the "
-"name of the user who is empowered enough."
-msgstr ""
-"Wie erwähnt benötigen wir für einige Dinge ADMIN-Rechte auf der Datenbank. "
-"Mit welchem Nutzernamen dürfen wir uns mit der Datenbank verbinden? "
+msgid "Some operations during install need administrative privileges, we need the name of the user who is empowered enough."
+msgstr "Wie erwähnt benötigen wir für einige Dinge ADMIN-Rechte auf der Datenbank. Mit welchem Nutzernamen dürfen wir uns mit der Datenbank verbinden? "
 
 #. Type: password
 #. Description
@@ -273,14 +218,8 @@
 #. Type: password
 #. Description
 #: ../littlebird-tc-sql.templates:4001
-msgid ""
-"Some operations during install need *administrative* privileges, we need the "
-"password for the user who is empowered enough. (The password will be securly "
-"kept in the debconf database.)"
-msgstr ""
-"Passend zum ADMIN-User benötigen wir auch dessen ADMIN-Passwort, um auf den "
-"Datenbank-Server zugreifen zu können. (Das Passwort wird sicher in der "
-"debconf-Datenbank verwahrt.)"
+msgid "Some operations during install need *administrative* privileges, we need the password for the user who is empowered enough. (The password will be securly kept in the debconf database.)"
+msgstr "Passend zum ADMIN-User benötigen wir auch dessen ADMIN-Passwort, um auf den Datenbank-Server zugreifen zu können. (Das Passwort wird sicher in der debconf-Datenbank verwahrt.)"
 
 #. Type: error
 #. Description
@@ -291,18 +230,15 @@
 #. Type: error
 #. Description
 #: ../littlebird-tc-sql.templates:5001
-msgid ""
-"Since the database \"${name}\" seems to exist already, we will not start any "
-"attempt to do anything."
-msgstr ""
-"Da die Datenbank \"${name}\" schon existiert, machen wir überhaupt "
-"ganz und gar nichts mit dieser Datenbank."
+msgid "Since the database \"${name}\" seems to exist already, we will not start any attempt to do anything."
+msgstr "Da die Datenbank \"${name}\" schon existiert, machen wir überhaupt ganz und gar nichts mit dieser Datenbank."
 
 #. Type: error
 #. Description
 #. Type: error
 #. Description
-#: ../littlebird-tc-sql.templates:5001 ../littlebird-tc-sql.templates:6001
+#: ../littlebird-tc-sql.templates:5001
+#: ../littlebird-tc-sql.templates:6001
 msgid "Sorry, if this is not what you expected."
 msgstr "Es tut uns leid, wenn Sie etwas anderes erwartet haben."
 
@@ -315,15 +251,12 @@
 #. Type: error
 #. Description
 #: ../littlebird-tc-sql.templates:6001
-msgid ""
-"We cannot access the database \"${name}\" on host \"${host}\". The excuse we "
-"got:"
-msgstr ""
-"Leider können wir die Datenbank \"${name}\" auf dem Host \"${host}\"" 
-"nicht erreichen. Die Ausrede ist: "
+msgid "We cannot access the database \"${name}\" on host \"${host}\". The excuse we got:"
+msgstr "Leider können wir die Datenbank \"${name}\" auf dem Host \"${host}\"nicht erreichen. Die Ausrede ist: "
 
 #. Type: error
 #. Description
 #: ../littlebird-tc-sql.templates:6001
 msgid "${message}"
 msgstr "${message}"
+
--- a/debian/po/templates.pot	Wed Sep 14 21:48:05 2011 +0200
+++ b/debian/po/templates.pot	Thu Sep 15 14:13:37 2011 +0200
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: littlebird@packages.debian.org\n"
-"POT-Creation-Date: 2011-09-02 14:31+0200\n"
+"POT-Creation-Date: 2011-09-15 14:08+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -54,6 +54,12 @@
 
 #. Type: string
 #. Description
+#: ../littlebird-tc-common.templates:3001
+msgid "NOTE: currenty this name is ignored!"
+msgstr ""
+
+#. Type: string
+#. Description
 #: ../littlebird-tc-common.templates:4001
 msgid "The database user to be used for the database connection."
 msgstr ""