From ba695ae69bcf71b9ddf3ee2254eb7eccd52b7788 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:04 +0300 Subject: [PATCH 01/25] Rediffing autobuild.patch (Closes: #538625). bzr revid: p_christ@hol.gr-20090824180204-rolra3isj5bi54im --- debian/patches/01-autobuild.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/patches/01-autobuild.patch b/debian/patches/01-autobuild.patch index eb1fb1e2d79..abdd197247b 100644 --- a/debian/patches/01-autobuild.patch +++ b/debian/patches/01-autobuild.patch @@ -2,14 +2,14 @@ Author: Daniel Baumann Description: Disable modules check to make it buildable without X11. diff -Naurp openerp-server.orig/setup.py openerp-server/setup.py ---- openerp-server.orig/setup.py 2008-11-03 21:33:56.000000000 +0000 -+++ openerp-server/setup.py 2008-11-09 09:00:02.000000000 +0000 -@@ -133,7 +133,7 @@ def data_files(): - files.append(('.', [('bin/import_xml.rng')])) +--- openerp-server.orig/setup.py 2009-06-08 15:51:20.000000000 +0000 ++++ openerp-server/setup.py 2009-07-26 10:27:49.000000000 +0000 +@@ -121,7 +121,7 @@ def data_files(): + return files -check_modules() +#check_modules() - # create startup script - start_script = \ + f = file('openerp-server','w') + start_script = """#!/bin/sh\necho "OpenERP Setup - The content of this file is generated at the install stage\n" """ From 4aca0707bda557c5e9113b026ed2cc21cc63a1b6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:04 +0300 Subject: [PATCH 02/25] Upgrading package to standards version 3.8.2. bzr revid: p_christ@hol.gr-20090824180204-1gh7s84i7mhcoh9e --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 062da5bbff2..410967e2873 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Daniel Baumann Build-Depends: debhelper (>= 7), quilt, python-dev Build-Depends-Indep: python-lxml, python-xml, python-libxslt1, python-psycopg2 -Standards-Version: 3.8.1 +Standards-Version: 3.8.2 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian.net/?p=debian/openerp-server.git Vcs-Git: git://git.debian.net/git/debian/openerp-server.git From 1b08b512c3e63a7ce78fd72a99a83d1439028785 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:04 +0300 Subject: [PATCH 03/25] Managing setup of unprivileged user account with debconf. bzr revid: p_christ@hol.gr-20090824180204-xko5qa7welktg9gs --- debian/control | 2 +- debian/openerp-server.config | 10 ++++++++ debian/openerp-server.examples | 1 + debian/openerp-server.postinst | 28 ++++++++++++++++------ debian/openerp-server.postrm | 36 +++++++++++++++++++++++++---- debian/openerp-server.preseed | 5 ++++ debian/openerp-server.templates | 9 ++++++++ debian/po/POTFILES.in | 1 + debian/po/cs.po | 39 +++++++++++++++++++++++++++++++ debian/po/de.po | 39 +++++++++++++++++++++++++++++++ debian/po/es.po | 40 ++++++++++++++++++++++++++++++++ debian/po/fi.po | 40 ++++++++++++++++++++++++++++++++ debian/po/fr.po | 37 +++++++++++++++++++++++++++++ debian/po/gl.po | 40 ++++++++++++++++++++++++++++++++ debian/po/it.po | 39 +++++++++++++++++++++++++++++++ debian/po/ja.po | 37 +++++++++++++++++++++++++++++ debian/po/pt.po | 39 +++++++++++++++++++++++++++++++ debian/po/ru.po | 41 +++++++++++++++++++++++++++++++++ debian/po/sv.po | 39 +++++++++++++++++++++++++++++++ debian/po/templates.pot | 37 +++++++++++++++++++++++++++++ debian/po/zh_CN.po | 37 +++++++++++++++++++++++++++++ debian/rules | 20 +++++++++++++++- 22 files changed, 602 insertions(+), 14 deletions(-) create mode 100644 debian/openerp-server.config create mode 100644 debian/openerp-server.examples create mode 100644 debian/openerp-server.preseed create mode 100644 debian/openerp-server.templates create mode 100644 debian/po/POTFILES.in create mode 100644 debian/po/cs.po create mode 100644 debian/po/de.po create mode 100644 debian/po/es.po create mode 100644 debian/po/fi.po create mode 100644 debian/po/fr.po create mode 100644 debian/po/gl.po create mode 100644 debian/po/it.po create mode 100644 debian/po/ja.po create mode 100644 debian/po/pt.po create mode 100644 debian/po/ru.po create mode 100644 debian/po/sv.po create mode 100644 debian/po/templates.pot create mode 100644 debian/po/zh_CN.po diff --git a/debian/control b/debian/control index 410967e2873..cfce70f261b 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: openerp-server Section: net Priority: optional Maintainer: Daniel Baumann -Build-Depends: debhelper (>= 7), quilt, python-dev +Build-Depends: debhelper (>= 7), quilt, po-debconf, python-dev Build-Depends-Indep: python-lxml, python-xml, python-libxslt1, python-psycopg2 Standards-Version: 3.8.2 Homepage: http://www.openerp.com/ diff --git a/debian/openerp-server.config b/debian/openerp-server.config new file mode 100644 index 00000000000..cf081ab3861 --- /dev/null +++ b/debian/openerp-server.config @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input low openerp-server/username || true +db_go + +db_stop diff --git a/debian/openerp-server.examples b/debian/openerp-server.examples new file mode 100644 index 00000000000..c7f075ec127 --- /dev/null +++ b/debian/openerp-server.examples @@ -0,0 +1 @@ +debian/openerp-server.preseed diff --git a/debian/openerp-server.postinst b/debian/openerp-server.postinst index a7854521e5b..0a4047d7ef8 100644 --- a/debian/openerp-server.postinst +++ b/debian/openerp-server.postinst @@ -2,25 +2,39 @@ set -e -USER="openerp" +. /usr/share/debconf/confmodule + CONFFILE="/etc/openerp-server.conf" LOGFILE="/var/log/openerp.log" case "${1}" in configure) - # Creating system user - adduser --no-create-home --quiet --system ${USER} + db_version 2.0 + + db_get openerp-server/username + _USERNAME="${RET:-openerp}" + + db_stop + + if ! getent passwd | grep -q "^${_USERNAME}" + then + adduser --system --no-create-home --quiet --gecos 'OpenERP server' --group ${_USERNAME} + else + echo "OpenERP user (${_USERNAME}) already exists, doing nothing." + fi + + sed -i -e "s|^process_user.*$|process_user = ${_USERNAME}|" ${CONFFILE} # Creating log file touch ${LOGFILE} - chown ${USER}:adm ${LOGFILE} + chown ${_USERNAME}:adm ${LOGFILE} chmod 0640 ${LOGFILE} - # Setting ownership - chown ${USER} /usr/lib/openerp-server/addons -R + # Setting ownership and permissions + chown ${_USERNAME} /usr/lib/openerp-server/addons -R chmod 0640 ${CONFFILE} - chown ${USER} ${CONFFILE} + chown ${_USERNAME}:${_USERNAME} ${CONFFILE} echo echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" diff --git a/debian/openerp-server.postrm b/debian/openerp-server.postrm index 820cd0c3665..a98dbe9dfd8 100644 --- a/debian/openerp-server.postrm +++ b/debian/openerp-server.postrm @@ -2,18 +2,44 @@ set -e -USER="openerp" +if [ -e /usr/share/debconf/confmodule ] +then + _DEBCONF="true" + + . /usr/share/debconf/confmodule +fi case "${1}" in - purge) - # Removing system user + remove) + if [ "${_DEBCONF}" = "true" ] + then + db_version 2.0 + + db_get openerp-server/username + _USERNAME="${RET}" + + db_stop + fi + + if [ -z "${_USERNAME}" ] + then + _USERNAME="openerp" + fi + + _GROUPNAME="${_USERNAME}" + if [ -x /usr/sbin/deluser ] then - deluser --quiet --system ${USER} + deluser --quiet --system ${_USERNAME} + fi + + if [ -x /usr/sbin/delgroup ] + then + delgroup --quiet --system --only-if-empty ${_GROUPNAME} || true fi ;; - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; diff --git a/debian/openerp-server.preseed b/debian/openerp-server.preseed new file mode 100644 index 00000000000..66d1a4ab95d --- /dev/null +++ b/debian/openerp-server.preseed @@ -0,0 +1,5 @@ +################################################################################ +## openerp-server + +#openerp-server openerp-server/username string openerp +################################################################################ diff --git a/debian/openerp-server.templates b/debian/openerp-server.templates new file mode 100644 index 00000000000..c161b8c73f4 --- /dev/null +++ b/debian/openerp-server.templates @@ -0,0 +1,9 @@ +Template: openerp-server/username +Type: string +Default: openerp +_Description: Dedicated system account for the OpenERP server: + The OpenERP server must use a dedicated account for its operation so that + the system's security is not compromised by running it with superuser + privileges. + . + Please choose that account's username. diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 00000000000..eb66b9be4c0 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] openerp-server.templates diff --git a/debian/po/cs.po b/debian/po/cs.po new file mode 100644 index 00000000000..d311388ccc0 --- /dev/null +++ b/debian/po/cs.po @@ -0,0 +1,39 @@ +# Czech translation of openerp-server debconf templates. +# Copyright (C) 2009 Vítězslav Kotrla +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-05-30 08:24+0000\n" +"PO-Revision-Date: 2009-06-21 08:20+0200\n" +"Last-Translator: Vítězslav Kotrla \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Vyhrazený systémový účet, pod kterým bude běžet OpenERP server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Pokud by byl OpenERP server spuštěn se superuživatelskými oprávněními, mohlo by dojít " +"ke kompromitaci zabezpečení systému. Proto musí OpenERP server pro svoji činnost používat " +"vyhrazený neprivilegovaný účet." + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "Please choose that account's username." +msgstr "Zvolte prosím název totoho účtu." diff --git a/debian/po/de.po b/debian/po/de.po new file mode 100644 index 00000000000..74edd5f094b --- /dev/null +++ b/debian/po/de.po @@ -0,0 +1,39 @@ +# German translation of openerp-server debconf templates. +# Copyright (C) 2009 Kai Wasserbäch +# Copyright (C) 2009 Helge Kreutzmann +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-06 19:01+0200\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Eigenes Systemkonto für den OpenERP-Server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Der OpenERP-Server muss ein eigenes Konto für den Betrieb verwenden, um die " +"Sicherheit des Systems nicht durch das Betreiben mit Superuser-Rechten zu " +"kompromittieren." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Bitte wählen Sie den Benutzernamen dieses Kontos." diff --git a/debian/po/es.po b/debian/po/es.po new file mode 100644 index 00000000000..ea83b6f5e88 --- /dev/null +++ b/debian/po/es.po @@ -0,0 +1,40 @@ +# Spanish translation of openerp-server debconf templates. +# Copyright (C) 2009 Software in the Public Interest +# 2009 Fernando González de Requena +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-30 22:35+0200\n" +"Last-Translator: Fernando González de Requena \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Cuenta del sistema dedicada para el servidor OpenERP:" + +#. Type: string +#. Description +#: ../openerp-server:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"El servidor de OpenERP debe utilizar una cuenta dedicada para su funcionamiento, " +"de tal modo que la seguridad del sistema no se vea comprometida por su " +"utilización con privilegios de administración." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Elija un nombre de usuario para esa cuenta." diff --git a/debian/po/fi.po b/debian/po/fi.po new file mode 100644 index 00000000000..f2b056ae85f --- /dev/null +++ b/debian/po/fi.po @@ -0,0 +1,40 @@ +# Finnish translation of openerp-server debconf templates. +# Copyright (C) 2009 Esko Arajärvi +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-07 22:19+0300\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 0.3\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Dedikoitu järjestelmätunnus OpenERP-taustaohjelman ajamiseen:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"OpenERP-palvelimen tulee käyttää dedikoitua tunnusta toiminnoissaan, jotta " +"järjestelmän turvallisuus ei vaarannu kuten käytettäessä " +"pääkäyttäjäoikeuksia." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Valitse kyseisen tunnuksen nimi." diff --git a/debian/po/fr.po b/debian/po/fr.po new file mode 100644 index 00000000000..132ab88ee99 --- /dev/null +++ b/debian/po/fr.po @@ -0,0 +1,37 @@ +# French translation of openerp-server debconf templates. +# Copyright (C) 2009 Steve Petruzzello +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 01:12+0100\n" +"Last-Translator: Steve Petruzzello \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Identifiant dédié pour le serveur OpenERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Le serveur OpenERP doit être exécuté avec un identifiant spécifique, différent " +"du superutilisateur, afin de ne pas compromettre la sécurité du système." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Veuillez choisir cet identifiant." diff --git a/debian/po/gl.po b/debian/po/gl.po new file mode 100644 index 00000000000..98267a3e746 --- /dev/null +++ b/debian/po/gl.po @@ -0,0 +1,40 @@ +# Galizian translation of openerp-server debconf templates. +# Copyright (C) 2009 Marce Villarino +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-15 21:32+0200\n" +"Last-Translator: marce villarino \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 0.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Conta de usuario do sistema adicada ao servidor OpenERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"O servidor OpenERP debe empregar unha conta adicada a el para que a " +"seguridade do sistema non se poña en perigo ao executalo con privilexios de " +"administrador." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Escolla o nome de usuario desa conta." diff --git a/debian/po/it.po b/debian/po/it.po new file mode 100644 index 00000000000..0a19612e16f --- /dev/null +++ b/debian/po/it.po @@ -0,0 +1,39 @@ +# Italian translation of openerp-server debconf templates. +# Copyright (C) 2009 Vincenzo Campanella +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 08:52+0100\n" +"Last-Translator: Vincenzo Campanella \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Account di sistema dedicato per il server di OpenERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Il server OpenERP deve utilizzare un account dedicato per eseguire le proprie " +"operazioni, in modo che la sicurezza del sistema non rischi di essere compromessa " +"eseguendolo con privilegi di superutente." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Scegliere il nome utente di tale account." diff --git a/debian/po/ja.po b/debian/po/ja.po new file mode 100644 index 00000000000..2f1abd4b56b --- /dev/null +++ b/debian/po/ja.po @@ -0,0 +1,37 @@ +# Japanese translation of openerp-server debconf templates. +# Copyright (C) 2009 Hideki Yamane +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-09 19:20+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-servera.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "OpenERP デーモン専用のシステムアカウント:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"OpenERP サーバはその動作について専用のアカウントを使うようになっているため、管理" +"者特権で動作していてもシステムのセキュリティは侵害されません。" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "アカウントのユーザ名を選んでください。" diff --git a/debian/po/pt.po b/debian/po/pt.po new file mode 100644 index 00000000000..12961877e75 --- /dev/null +++ b/debian/po/pt.po @@ -0,0 +1,39 @@ +# Portuguese translation of openerp-server debconf templates. +# Copyright (C) 2009 Américo Monteiro +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 19:12+0000\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-servera.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Conta dedicada do sistema para o servidor OpenERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"O servidor OpenERP tem que usar uma conta dedicada para as suas operações, isto " +"para que a segurança do sistema não seja comprometida ao corrê-lo com " +"privilégios de superutilizador." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Por favor escolha o nome dessa conta." diff --git a/debian/po/ru.po b/debian/po/ru.po new file mode 100644 index 00000000000..55e29d26d81 --- /dev/null +++ b/debian/po/ru.po @@ -0,0 +1,41 @@ +# German translation of openerp-server debconf templates. +# Copyright (C) 2009 Sergey Alyoshin +# Copyright (C) 2009 Yuri Kozlov +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-08 21:08+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Специально выделенная системная учётная запись для OpenERP службы:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Для улучшения безопасности системы OpenERP сервер должен использовать специально " +"выделенную учётную запись, а не запускаться с правами суперпользователя." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Укажите имя такой учётной записи." diff --git a/debian/po/sv.po b/debian/po/sv.po new file mode 100644 index 00000000000..845d9d8c62a --- /dev/null +++ b/debian/po/sv.po @@ -0,0 +1,39 @@ +# Swedish translation of openerp-server debconf templates. +# Copyright (C) 2009 Martin Bagge +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-serverpackages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-07 18:36+0100\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"X-Poedit-Language: Swedish\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "Dedikerat systemkonto för OpenERP server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"OpenERP servern måste ha ett dedikerat konto för att fungera på ett säkert sätt, " +"att använda privilegier från en superanvändare är inte säkert." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Ange kontots användarnamn." diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 00000000000..6f92489ff63 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+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 +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "" diff --git a/debian/po/zh_CN.po b/debian/po/zh_CN.po new file mode 100644 index 00000000000..49cc85f88dd --- /dev/null +++ b/debian/po/zh_CN.po @@ -0,0 +1,37 @@ +# Simplified Chinese translation of openerp-server debconf templates. +# Copyright (C) 2009 Deng Xiyue +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 16:48+0800\n" +"Last-Translator: Deng Xiyue \n" +"Language-Team: Debian Chinese GB \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the OpenERP server:" +msgstr "指定操作 OpenERP 守护进程的专用系统帐户:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The OpenERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"OpenERP 服务器必须使用一个专用的账户来进行操作,这样就不会因为使用超级用户权限运" +"行而破坏系统的安全。" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "请选择账户的用户名。" diff --git a/debian/rules b/debian/rules index 83d9bfa54fe..d974a63b2d1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,22 @@ #!/usr/bin/make -f +SHELL := sh -e + include /usr/share/quilt/quilt.make +update: + # Needs: shell-helper + + cd debian; \ + debconf-create-preseed *.config; \ + + for FILE in debian/*.preseed; \ + do \ + grep -v preseed $$FILE > $$FILE.tmp; \ + mv $$FILE.tmp $$FILE; \ + echo $$FILE >> debian/`basename $$FILE .preseed`.examples; \ + done + clean: clean-patched unpatch clean-patched: patch dh_testdir @@ -9,10 +24,11 @@ clean-patched: patch rm -f build-stamp python setup.py clean - rm -rf build openerp-server -find $(CURDIR) -type f -name "*.pyc" | xargs rm -f + debconf-updatepo + dh_clean build: @@ -45,8 +61,10 @@ binary-indep: install dh_testroot dh_installchangelogs doc/Changelog dh_installdocs + dh_installexamples dh_install dh_installinit --update-rcd-params='defaults 21' + dh_installdebconf dh_lintian dh_link dh_compress From d7dae818d1531afe3e10f6d28fb37a910f32453b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:04 +0300 Subject: [PATCH 04/25] Using more common directory name to store local debian additions. bzr revid: p_christ@hol.gr-20090824180204-84p290cqpqtwnhlz --- debian/{config => local}/openerp-server.conf | 0 debian/openerp-server.install | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename debian/{config => local}/openerp-server.conf (100%) diff --git a/debian/config/openerp-server.conf b/debian/local/openerp-server.conf similarity index 100% rename from debian/config/openerp-server.conf rename to debian/local/openerp-server.conf diff --git a/debian/openerp-server.install b/debian/openerp-server.install index 28c56bcbac8..ccfbbb27fd6 100644 --- a/debian/openerp-server.install +++ b/debian/openerp-server.install @@ -1 +1 @@ -debian/config/* /etc/ +debian/local/openerp-server.conf /etc From 8b86b7868ff73fd61c255f35738dffba6094f4fd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:05 +0300 Subject: [PATCH 05/25] Updating README.Debian to reflect that the database has to be initialized through the client (Closes: #518675). bzr revid: p_christ@hol.gr-20090824180205-k8lx35yo0xz8uv6e --- debian/openerp-server.README.Debian | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/debian/openerp-server.README.Debian b/debian/openerp-server.README.Debian index 2e05f6d1a28..630c0fc9e7c 100644 --- a/debian/openerp-server.README.Debian +++ b/debian/openerp-server.README.Debian @@ -13,27 +13,23 @@ explanation how to achieve this (you need to execute all commands as root): the above syvinit script could also be named postgresql-VERSION (whereas 'VERSION' needs to be replace with a version number). - 1. Creating the database + 1. Creating the database user - # su - postgres -c "createdb -q --encoding=UNICODE openerp" - - 2. Creating the database user - - # su - postgres -c "createuser -q --createdb --adduser openerp" + # su - postgres -c "createuser -q --createdb --no-createrole --pwprompt openerp" Note: If you want to run the database as another user than 'openerp', you need to replace 'openerp' above with the user you want instead, and you need to adjust 'db_user = openerp' in /etc/openerp-server.conf too. - 4. Initializing the database - - # su - postgres -c "/usr/bin/openerp-server --init=all \ - --config=/etc/openerp-server.conf --stop-after-init" - - 5. Restarting openerp-server + 3. Restarting openerp-server # /etc/init.d/openerp-server restart + + 4. Initializing the database + + Now you can connect with OpenERP client to the database and initialize it. + Now, you're finish. Please be aware of the following things: * openerp-server has by default two accounts: From aca60fa6e46f8b123bccec601c258c196dc60019 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:05 +0300 Subject: [PATCH 06/25] Removing package leftovers in postrm script. bzr revid: p_christ@hol.gr-20090824180205-2t7z33hz900pwmmz --- debian/openerp-server.postrm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/openerp-server.postrm b/debian/openerp-server.postrm index a98dbe9dfd8..e9effaa8351 100644 --- a/debian/openerp-server.postrm +++ b/debian/openerp-server.postrm @@ -37,6 +37,10 @@ case "${1}" in then delgroup --quiet --system --only-if-empty ${_GROUPNAME} || true fi + + rm -f /usr/lib/openerp-server/addons/__init__.pyc + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server/addons + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) From 55ea6ef713dbd924a6420abe74268e9c79f6971c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:05 +0300 Subject: [PATCH 07/25] Releasing debian version 5.0.2-0-1. bzr revid: p_christ@hol.gr-20090824180205-03gv7laf8ifjcgg2 --- debian/changelog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/debian/changelog b/debian/changelog index 27cd6862afa..46bbd245dd9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,17 @@ +openerp-server (5.0.2-0-1) unstable; urgency=low + + * Updating standards to 3.8.1. + * Rediffing autobuild.patch (Closes: #538625). + * Upgrading package to standards version 3.8.2. + * Managing setup of unprivileged user account with debconf. + * Using more common directory name to store local debian additions. + * Updating README.Debian to reflect that the database has to be + initialized through the client (Closes: #518675). + * Removing package leftovers in postrm script. + * Merging upstream version 5.0.2-0. + + -- Daniel Baumann Thu, 13 Aug 2009 11:24:59 +0200 + openerp-server (5.0.1-0-1) unstable; urgency=low * Merging upstream version 5.0.1-0. From 16c26b72578cedf3de4ed959a952984c4f5ebda5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:05 +0300 Subject: [PATCH 08/25] Releasing debian version 5.0.2-0-2. bzr revid: p_christ@hol.gr-20090824180205-iv5iu47oalevgbt5 --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 46bbd245dd9..547d5b3c533 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +openerp-server (5.0.2-0-2) unstable; urgency=high + + * Adding patch from Panos Christeas to forbid RPC + calls without credentials. All versions of openerp-server affected. + + -- Daniel Baumann Thu, 13 Aug 2009 14:45:17 +0200 + openerp-server (5.0.2-0-1) unstable; urgency=low * Updating standards to 3.8.1. From 7f93ae0ba9acee0f781bdcce548b6e16343d0149 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:06 +0300 Subject: [PATCH 09/25] Wrapping and sorting depends. bzr revid: p_christ@hol.gr-20090824180206-ghklmy7fteobffmt --- debian/control | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index cfce70f261b..b53c821f5db 100644 --- a/debian/control +++ b/debian/control @@ -2,8 +2,8 @@ Source: openerp-server Section: net Priority: optional Maintainer: Daniel Baumann -Build-Depends: debhelper (>= 7), quilt, po-debconf, python-dev -Build-Depends-Indep: python-lxml, python-xml, python-libxslt1, python-psycopg2 +Build-Depends: debhelper (>= 7), po-debconf, python-dev, quilt +Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2, python-xml, Standards-Version: 3.8.2 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian.net/?p=debian/openerp-server.git @@ -12,10 +12,15 @@ Vcs-Git: git://git.debian.net/git/debian/openerp-server.git Package: openerp-server Section: net Architecture: all -Depends: ${misc:Depends}, adduser, python, python-lxml, python-xml, python-libxslt1, python-psycopg2, python-reportlab, python-pychart, python-pydot, python-tz +Depends: + ${misc:Depends}, adduser, python, python-libxslt1, python-lxml, + python-psycopg2, python-pydot, python-pychart, python-reportlab, python-tz, + python-xml Conflicts: tinyerp-server Replaces: tinyerp-server -Recommends: graphviz, ghostscript, postgresql, postgresql-client, python-imaging, python-matplotlib, python-openssl, python-pyparsing +Recommends: + graphviz, ghostscript, postgresql, postgresql-client, python-imaging, + python-matplotlib, python-openssl, python-pyparsing Suggests: openerp-client Description: Enterprise Resource Management (server) OpenERP, previously known as TinyERP, is a complete ERP and CRM. The main From 3552bc5934e5537619e99954ac16e70e00dfde1e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:06 +0300 Subject: [PATCH 10/25] Correcting spelling of Open ERP. bzr revid: p_christ@hol.gr-20090824180206-o3fs59qiex62juol --- debian/control | 4 ++-- debian/openerp-server.README.Debian | 4 ++-- debian/openerp-server.init | 2 +- debian/openerp-server.postinst | 6 +++--- debian/openerp-server.templates | 4 ++-- debian/po/cs.po | 10 +++++----- debian/po/de.po | 8 ++++---- debian/po/es.po | 8 ++++---- debian/po/fi.po | 8 ++++---- debian/po/fr.po | 8 ++++---- debian/po/gl.po | 8 ++++---- debian/po/it.po | 8 ++++---- debian/po/ja.po | 8 ++++---- debian/po/pt.po | 8 ++++---- debian/po/ru.po | 8 ++++---- debian/po/sv.po | 8 ++++---- debian/po/templates.pot | 4 ++-- debian/po/zh_CN.po | 8 ++++---- 18 files changed, 61 insertions(+), 61 deletions(-) diff --git a/debian/control b/debian/control index b53c821f5db..6e6bf7dddc4 100644 --- a/debian/control +++ b/debian/control @@ -23,12 +23,12 @@ Recommends: python-matplotlib, python-openssl, python-pyparsing Suggests: openerp-client Description: Enterprise Resource Management (server) - OpenERP, previously known as TinyERP, is a complete ERP and CRM. The main + Open ERP, previously known as TinyERP, is a complete ERP and CRM. The main features are accounting (analytic and financial), stock management, sales and purchases management, tasks automation, marketing campaigns, help desk, POS, etc. Technical features include a distributed server, flexible workflows, an object database, a dynamic GUI, customizable reports, and NET-RPC and XML-RPC interfaces. . - This package contains the OpenERP server, install openerp-client package for + This package contains the Open ERP server, install openerp-client package for the client. diff --git a/debian/openerp-server.README.Debian b/debian/openerp-server.README.Debian index 630c0fc9e7c..39dede87780 100644 --- a/debian/openerp-server.README.Debian +++ b/debian/openerp-server.README.Debian @@ -1,7 +1,7 @@ openerp-server for Debian ------------------------- -OpenERP uses a PostgreSQL database to store its data. With the first generation +Open ERP uses a PostgreSQL database to store its data. With the first generation of packages, you have to setup this database manually. Here is a short explanation how to achieve this (you need to execute all commands as root): @@ -28,7 +28,7 @@ explanation how to achieve this (you need to execute all commands as root): 4. Initializing the database - Now you can connect with OpenERP client to the database and initialize it. + Now you can connect with Open ERP client to the database and initialize it. Now, you're finish. Please be aware of the following things: diff --git a/debian/openerp-server.init b/debian/openerp-server.init index fbf38d0c49d..e981d2cffe8 100644 --- a/debian/openerp-server.init +++ b/debian/openerp-server.init @@ -9,7 +9,7 @@ # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Enterprise Resource Management software -# Description: OpenERP is a complete ERP and CRM software. +# Description: Open ERP is a complete ERP and CRM software. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin diff --git a/debian/openerp-server.postinst b/debian/openerp-server.postinst index 0a4047d7ef8..d4dea03812a 100644 --- a/debian/openerp-server.postinst +++ b/debian/openerp-server.postinst @@ -18,9 +18,9 @@ case "${1}" in if ! getent passwd | grep -q "^${_USERNAME}" then - adduser --system --no-create-home --quiet --gecos 'OpenERP server' --group ${_USERNAME} + adduser --system --no-create-home --quiet --gecos 'Open ERP server' --group ${_USERNAME} else - echo "OpenERP user (${_USERNAME}) already exists, doing nothing." + echo "Open ERP user (${_USERNAME}) already exists, doing nothing." fi sed -i -e "s|^process_user.*$|process_user = ${_USERNAME}|" ${CONFFILE} @@ -38,7 +38,7 @@ case "${1}" in echo echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" - echo "* OpenERP uses a PostgreSQL database to store its data. With the first *" + echo "* Open ERP uses a PostgreSQL database to store its data. With the first *" echo "* generation of packages, you have to setup this database manually. *" echo "* Please read /usr/share/doc/openerp-server/README.Debian how to do it. *" echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" diff --git a/debian/openerp-server.templates b/debian/openerp-server.templates index c161b8c73f4..985bd24abd9 100644 --- a/debian/openerp-server.templates +++ b/debian/openerp-server.templates @@ -1,8 +1,8 @@ Template: openerp-server/username Type: string Default: openerp -_Description: Dedicated system account for the OpenERP server: - The OpenERP server must use a dedicated account for its operation so that +_Description: Dedicated system account for the Open ERP server: + The Open ERP server must use a dedicated account for its operation so that the system's security is not compromised by running it with superuser privileges. . diff --git a/debian/po/cs.po b/debian/po/cs.po index d311388ccc0..02c16082449 100644 --- a/debian/po/cs.po +++ b/debian/po/cs.po @@ -18,18 +18,18 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:1001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Vyhrazený systémový účet, pod kterým bude běžet OpenERP server:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Vyhrazený systémový účet, pod kterým bude běžet Open ERP server:" #. Type: string #. Description #: ../openerp-server.templates:1001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"Pokud by byl OpenERP server spuštěn se superuživatelskými oprávněními, mohlo by dojít " -"ke kompromitaci zabezpečení systému. Proto musí OpenERP server pro svoji činnost používat " +"Pokud by byl Open ERP server spuštěn se superuživatelskými oprávněními, mohlo by dojít " +"ke kompromitaci zabezpečení systému. Proto musí Open ERP server pro svoji činnost používat " "vyhrazený neprivilegovaný účet." #. Type: string diff --git a/debian/po/de.po b/debian/po/de.po index 74edd5f094b..9b41a553763 100644 --- a/debian/po/de.po +++ b/debian/po/de.po @@ -18,17 +18,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Eigenes Systemkonto für den OpenERP-Server:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Eigenes Systemkonto für den Open ERP-Server:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"Der OpenERP-Server muss ein eigenes Konto für den Betrieb verwenden, um die " +"Der Open ERP-Server muss ein eigenes Konto für den Betrieb verwenden, um die " "Sicherheit des Systems nicht durch das Betreiben mit Superuser-Rechten zu " "kompromittieren." diff --git a/debian/po/es.po b/debian/po/es.po index ea83b6f5e88..3dfaeddae26 100644 --- a/debian/po/es.po +++ b/debian/po/es.po @@ -19,17 +19,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Cuenta del sistema dedicada para el servidor OpenERP:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Cuenta del sistema dedicada para el servidor Open ERP:" #. Type: string #. Description #: ../openerp-server:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"El servidor de OpenERP debe utilizar una cuenta dedicada para su funcionamiento, " +"El servidor de Open ERP debe utilizar una cuenta dedicada para su funcionamiento, " "de tal modo que la seguridad del sistema no se vea comprometida por su " "utilización con privilegios de administración." diff --git a/debian/po/fi.po b/debian/po/fi.po index f2b056ae85f..e85c1df517c 100644 --- a/debian/po/fi.po +++ b/debian/po/fi.po @@ -19,17 +19,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Dedikoitu järjestelmätunnus OpenERP-taustaohjelman ajamiseen:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Dedikoitu järjestelmätunnus Open ERP-taustaohjelman ajamiseen:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"OpenERP-palvelimen tulee käyttää dedikoitua tunnusta toiminnoissaan, jotta " +"Open ERP-palvelimen tulee käyttää dedikoitua tunnusta toiminnoissaan, jotta " "järjestelmän turvallisuus ei vaarannu kuten käytettäessä " "pääkäyttäjäoikeuksia." diff --git a/debian/po/fr.po b/debian/po/fr.po index 132ab88ee99..afcbbf34fb8 100644 --- a/debian/po/fr.po +++ b/debian/po/fr.po @@ -17,17 +17,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Identifiant dédié pour le serveur OpenERP:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Identifiant dédié pour le serveur Open ERP:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"Le serveur OpenERP doit être exécuté avec un identifiant spécifique, différent " +"Le serveur Open ERP doit être exécuté avec un identifiant spécifique, différent " "du superutilisateur, afin de ne pas compromettre la sécurité du système." #. Type: string diff --git a/debian/po/gl.po b/debian/po/gl.po index 98267a3e746..e83c049c07c 100644 --- a/debian/po/gl.po +++ b/debian/po/gl.po @@ -19,17 +19,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Conta de usuario do sistema adicada ao servidor OpenERP:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Conta de usuario do sistema adicada ao servidor Open ERP:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"O servidor OpenERP debe empregar unha conta adicada a el para que a " +"O servidor Open ERP debe empregar unha conta adicada a el para que a " "seguridade do sistema non se poña en perigo ao executalo con privilexios de " "administrador." diff --git a/debian/po/it.po b/debian/po/it.po index 0a19612e16f..05059caa73f 100644 --- a/debian/po/it.po +++ b/debian/po/it.po @@ -18,17 +18,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Account di sistema dedicato per il server di OpenERP:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Account di sistema dedicato per il server di Open ERP:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"Il server OpenERP deve utilizzare un account dedicato per eseguire le proprie " +"Il server Open ERP deve utilizzare un account dedicato per eseguire le proprie " "operazioni, in modo che la sicurezza del sistema non rischi di essere compromessa " "eseguendolo con privilegi di superutente." diff --git a/debian/po/ja.po b/debian/po/ja.po index 2f1abd4b56b..647c6381a8f 100644 --- a/debian/po/ja.po +++ b/debian/po/ja.po @@ -17,17 +17,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-servera.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "OpenERP デーモン専用のシステムアカウント:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Open ERP デーモン専用のシステムアカウント:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"OpenERP サーバはその動作について専用のアカウントを使うようになっているため、管理" +"Open ERP サーバはその動作について専用のアカウントを使うようになっているため、管理" "者特権で動作していてもシステムのセキュリティは侵害されません。" #. Type: string diff --git a/debian/po/pt.po b/debian/po/pt.po index 12961877e75..a6d26f7ba26 100644 --- a/debian/po/pt.po +++ b/debian/po/pt.po @@ -18,17 +18,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-servera.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Conta dedicada do sistema para o servidor OpenERP:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Conta dedicada do sistema para o servidor Open ERP:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"O servidor OpenERP tem que usar uma conta dedicada para as suas operações, isto " +"O servidor Open ERP tem que usar uma conta dedicada para as suas operações, isto " "para que a segurança do sistema não seja comprometida ao corrê-lo com " "privilégios de superutilizador." diff --git a/debian/po/ru.po b/debian/po/ru.po index 55e29d26d81..811f7e31e47 100644 --- a/debian/po/ru.po +++ b/debian/po/ru.po @@ -21,17 +21,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Специально выделенная системная учётная запись для OpenERP службы:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Специально выделенная системная учётная запись для Open ERP службы:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"Для улучшения безопасности системы OpenERP сервер должен использовать специально " +"Для улучшения безопасности системы Open ERP сервер должен использовать специально " "выделенную учётную запись, а не запускаться с правами суперпользователя." #. Type: string diff --git a/debian/po/sv.po b/debian/po/sv.po index 845d9d8c62a..cb69412b65a 100644 --- a/debian/po/sv.po +++ b/debian/po/sv.po @@ -19,17 +19,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "Dedikerat systemkonto för OpenERP server:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "Dedikerat systemkonto för Open ERP server:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"OpenERP servern måste ha ett dedikerat konto för att fungera på ett säkert sätt, " +"Open ERP servern måste ha ett dedikerat konto för att fungera på ett säkert sätt, " "att använda privilegier från en superanvändare är inte säkert." #. Type: string diff --git a/debian/po/templates.pot b/debian/po/templates.pot index 6f92489ff63..68587d7fc22 100644 --- a/debian/po/templates.pot +++ b/debian/po/templates.pot @@ -19,14 +19,14 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" +msgid "Dedicated system account for the Open ERP server:" msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" diff --git a/debian/po/zh_CN.po b/debian/po/zh_CN.po index 49cc85f88dd..4ce5a3d4a12 100644 --- a/debian/po/zh_CN.po +++ b/debian/po/zh_CN.po @@ -17,17 +17,17 @@ msgstr "" #. Type: string #. Description #: ../openerp-server.templates:2001 -msgid "Dedicated system account for the OpenERP server:" -msgstr "指定操作 OpenERP 守护进程的专用系统帐户:" +msgid "Dedicated system account for the Open ERP server:" +msgstr "指定操作 Open ERP 守护进程的专用系统帐户:" #. Type: string #. Description #: ../openerp-server.templates:2001 msgid "" -"The OpenERP server must use a dedicated account for its operation so that the " +"The Open ERP server must use a dedicated account for its operation so that the " "system's security is not compromised by running it with superuser privileges." msgstr "" -"OpenERP 服务器必须使用一个专用的账户来进行操作,这样就不会因为使用超级用户权限运" +"Open ERP 服务器必须使用一个专用的账户来进行操作,这样就不会因为使用超级用户权限运" "行而破坏系统的安全。" #. Type: string From c20e872943d0a9b1acdbf3843fd127aabd97df8a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:06 +0300 Subject: [PATCH 11/25] Updating maintainer field. bzr revid: p_christ@hol.gr-20090824180206-c8yrjmh44n3hcz9s --- debian/control | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 6e6bf7dddc4..5cd92192b8f 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,8 @@ Source: openerp-server Section: net Priority: optional -Maintainer: Daniel Baumann +Maintainer: Debian Open Object Maintainers +Uploaders: Daniel Baumann Build-Depends: debhelper (>= 7), po-debconf, python-dev, quilt Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2, python-xml, Standards-Version: 3.8.2 From 2f9b384a6a2cc18f687cd622631198f1dbf7b00d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:07 +0300 Subject: [PATCH 12/25] Updating vcs fields. bzr revid: p_christ@hol.gr-20090824180207-dqb7ypi1eicvcsvu --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 5cd92192b8f..4ca074e7e4c 100644 --- a/debian/control +++ b/debian/control @@ -7,8 +7,8 @@ Build-Depends: debhelper (>= 7), po-debconf, python-dev, quilt Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2, python-xml, Standards-Version: 3.8.2 Homepage: http://www.openerp.com/ -Vcs-Browser: http://git.debian.net/?p=debian/openerp-server.git -Vcs-Git: git://git.debian.net/git/debian/openerp-server.git +Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git +Vcs-Git: git://git.debian-maintainers.org/git/open-object/openerp-server.git Package: openerp-server Section: net From 606f4e1141179eb9f84eef50c8c77aa6e2f4bcc7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:07 +0300 Subject: [PATCH 13/25] Updating to standards version 3.8.3. bzr revid: p_christ@hol.gr-20090824180207-olwniyonjvx6rx7j --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 4ca074e7e4c..fdf028ed30f 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Debian Open Object Maintainers Build-Depends: debhelper (>= 7), po-debconf, python-dev, quilt Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2, python-xml, -Standards-Version: 3.8.2 +Standards-Version: 3.8.3 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git Vcs-Git: git://git.debian-maintainers.org/git/open-object/openerp-server.git From 35d27cccd5ea39f8289eebb24c34d4c116c89b3d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:07 +0300 Subject: [PATCH 14/25] Dropping old depends on python-xml (Closes: #543127). bzr revid: p_christ@hol.gr-20090824180207-961ohuxpyf1363ma --- debian/control | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index fdf028ed30f..a7bb7cdea7f 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian Open Object Maintainers Uploaders: Daniel Baumann Build-Depends: debhelper (>= 7), po-debconf, python-dev, quilt -Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2, python-xml, +Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2 Standards-Version: 3.8.3 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git @@ -15,8 +15,7 @@ Section: net Architecture: all Depends: ${misc:Depends}, adduser, python, python-libxslt1, python-lxml, - python-psycopg2, python-pydot, python-pychart, python-reportlab, python-tz, - python-xml + python-psycopg2, python-pydot, python-pychart, python-reportlab, python-tz Conflicts: tinyerp-server Replaces: tinyerp-server Recommends: From 6315251b4ab97e20b4d268babe868f067889cdab Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:07 +0300 Subject: [PATCH 15/25] Adding maintainer homepage field to control. bzr revid: p_christ@hol.gr-20090824180207-4m17fxi8a198sxjj --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index a7bb7cdea7f..717bde163d5 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,7 @@ Standards-Version: 3.8.3 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git Vcs-Git: git://git.debian-maintainers.org/git/open-object/openerp-server.git +XS-Maintainer-Homepage: http://open-object.debian-maintainers.org/ Package: openerp-server Section: net From a8e7e55a148f128bdbaa662fd4ee1aae71889721 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:08 +0300 Subject: [PATCH 16/25] Marking maintainer homepage field to be also included in binary packages and changelog. bzr revid: p_christ@hol.gr-20090824180208-5l010kt1gi2ja67d --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 717bde163d5..f866107f2b0 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Standards-Version: 3.8.3 Homepage: http://www.openerp.com/ Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git Vcs-Git: git://git.debian-maintainers.org/git/open-object/openerp-server.git -XS-Maintainer-Homepage: http://open-object.debian-maintainers.org/ +XSBC-Maintainer-Homepage: http://open-object.debian-maintainers.org/ Package: openerp-server Section: net From df7e728cf5fb0368770534c6d18204c99e3811bb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:08 +0300 Subject: [PATCH 17/25] Releasing debian version 5.0.2-0-3. bzr revid: p_christ@hol.gr-20090824180208-52n7sq3l69t81eey --- debian/changelog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/debian/changelog b/debian/changelog index 547d5b3c533..8f273a33260 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,17 @@ +openerp-server (5.0.2-0-3) unstable; urgency=low + + * Wrapping and sorting depends. + * Correcting spelling of Open ERP. + * Updating maintainer field. + * Updating vcs fields. + * Updating to standards version 3.8.3. + * Dropping old depends on python-xml (Closes: #543127). + * Adding maintainer homepage field to control. + * Marking maintainer homepage field to be also included in binary + packages and changelog. + + -- Daniel Baumann Mon, 24 Aug 2009 18:23:54 +0200 + openerp-server (5.0.2-0-2) unstable; urgency=high * Adding patch from Panos Christeas to forbid RPC From 2cbba15f7f72d898a6a4897b303c1ba1d0ba447e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 21:02:08 +0300 Subject: [PATCH 18/25] Using dedicated storage directory in /var/lib/openerp-server, that way the addons directory can stay read-only for the unprivileged user. bzr revid: p_christ@hol.gr-20090824180208-g9rdat4tkxfbrdj6 --- debian/openerp-server.links | 1 + debian/openerp-server.postinst | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/openerp-server.links b/debian/openerp-server.links index 609d00a2036..67620d22397 100644 --- a/debian/openerp-server.links +++ b/debian/openerp-server.links @@ -1 +1,2 @@ /usr/share/man/man5/openerp_serverrc.5.gz /usr/share/man/man5/openerp-server.conf.5.gz +/var/lib/openerp-server/filestore /usr/lib/openerp-server/filestore diff --git a/debian/openerp-server.postinst b/debian/openerp-server.postinst index d4dea03812a..48c984d6176 100644 --- a/debian/openerp-server.postinst +++ b/debian/openerp-server.postinst @@ -30,11 +30,13 @@ case "${1}" in chown ${_USERNAME}:adm ${LOGFILE} chmod 0640 ${LOGFILE} - # Setting ownership and permissions - chown ${_USERNAME} /usr/lib/openerp-server/addons -R + # Creating local storage directory + mkdir -p /var/lib/openerp-server/filestore + # Setting ownership and permissions chmod 0640 ${CONFFILE} chown ${_USERNAME}:${_USERNAME} ${CONFFILE} + chown ${_USERNAME}:${_USERNAME} /var/lib/openerp-server -R echo echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" From 27ee6bea10420691d5beaf217971f4d16cae9e54 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:54 +0300 Subject: [PATCH 19/25] Commenting out db_name in config (Closes: #542391). bzr revid: p_christ@hol.gr-20090824190054-gua89un8e82d49e4 --- debian/local/openerp-server.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/local/openerp-server.conf b/debian/local/openerp-server.conf index b6891d2646a..33519ed5e43 100644 --- a/debian/local/openerp-server.conf +++ b/debian/local/openerp-server.conf @@ -37,7 +37,7 @@ smtp_user = False smtp_password = False # Specify the database name. -db_name = openerp +#db_name = openerp # Specify the database user name (default None). db_user = openerp From 100da0cccd7a2b67014822ffeb4d7d14f5e9ee27 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:54 +0300 Subject: [PATCH 20/25] Commenting out port in config (Closes: #542406). bzr revid: p_christ@hol.gr-20090824190054-o6qfcnx2mwq53gxb --- debian/local/openerp-server.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/local/openerp-server.conf b/debian/local/openerp-server.conf index 33519ed5e43..4b54cbd7bc2 100644 --- a/debian/local/openerp-server.conf +++ b/debian/local/openerp-server.conf @@ -19,7 +19,7 @@ process_user = openerp interface = localhost # The TCP port on which the server will listen (default 8069). -port = 8070 +#port = 8070 # Enable debug mode (default False). debug_mode = False From 2c6f63a873367b2f612451695b4b329e5b479190 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:54 +0300 Subject: [PATCH 21/25] Renaming logfile to openerp-server.log for consistency. bzr revid: p_christ@hol.gr-20090824190054-vt2w73bgpi4aknt1 --- debian/local/openerp-server.conf | 2 +- debian/openerp-server.postinst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/local/openerp-server.conf b/debian/local/openerp-server.conf index 4b54cbd7bc2..5ee9a132252 100644 --- a/debian/local/openerp-server.conf +++ b/debian/local/openerp-server.conf @@ -9,7 +9,7 @@ debug_mode = False pidfile = /var/run/openerp.pid # The file where the server log will be stored (default False). -logfile = /var/log/openerp.log +logfile = /var/log/openerp-server.log # The unix account on behalf openerp is running. process_user = openerp diff --git a/debian/openerp-server.postinst b/debian/openerp-server.postinst index 48c984d6176..a1e5317b8fc 100644 --- a/debian/openerp-server.postinst +++ b/debian/openerp-server.postinst @@ -5,7 +5,7 @@ set -e . /usr/share/debconf/confmodule CONFFILE="/etc/openerp-server.conf" -LOGFILE="/var/log/openerp.log" +LOGFILE="/var/log/openerp-server.log" case "${1}" in configure) From 2d243a0204a64d94a1be27d603c47fd8b6fa44c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:55 +0300 Subject: [PATCH 22/25] Commenting out pidfile in config (Closes: #542427). bzr revid: p_christ@hol.gr-20090824190055-3fjun6gbs220schj --- debian/local/openerp-server.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/local/openerp-server.conf b/debian/local/openerp-server.conf index 5ee9a132252..ffb6ed49db3 100644 --- a/debian/local/openerp-server.conf +++ b/debian/local/openerp-server.conf @@ -6,7 +6,7 @@ verbose = False debug_mode = False # The file where the server pid will be stored (default False). -pidfile = /var/run/openerp.pid +#pidfile = /var/run/openerp.pid # The file where the server log will be stored (default False). logfile = /var/log/openerp-server.log From f15322c6da9dd71ad07f17d116b597a75402cbd3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:55 +0300 Subject: [PATCH 23/25] Removing debconf handling in postrm, not possible to do that. bzr revid: p_christ@hol.gr-20090824190055-4gtvdxnr90jyjvta --- debian/openerp-server.postrm | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/debian/openerp-server.postrm b/debian/openerp-server.postrm index e9effaa8351..136975d147d 100644 --- a/debian/openerp-server.postrm +++ b/debian/openerp-server.postrm @@ -2,31 +2,10 @@ set -e -if [ -e /usr/share/debconf/confmodule ] -then - _DEBCONF="true" - - . /usr/share/debconf/confmodule -fi - case "${1}" in remove) - if [ "${_DEBCONF}" = "true" ] - then - db_version 2.0 - - db_get openerp-server/username - _USERNAME="${RET}" - - db_stop - fi - - if [ -z "${_USERNAME}" ] - then - _USERNAME="openerp" - fi - - _GROUPNAME="${_USERNAME}" + _USERNAME="openerp" + _GROUPNAME="openerp" if [ -x /usr/sbin/deluser ] then @@ -39,8 +18,8 @@ case "${1}" in fi rm -f /usr/lib/openerp-server/addons/__init__.pyc - rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server/addons - rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server/addons || true + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server || true ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) From f7a7469d392db62f1aaee08037083c3c42a28814 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:55 +0300 Subject: [PATCH 24/25] Removing local storage directory on purge. bzr revid: p_christ@hol.gr-20090824190055-1qiw25c8t98dw1h5 --- debian/openerp-server.postrm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/openerp-server.postrm b/debian/openerp-server.postrm index 136975d147d..02b3d0a6817 100644 --- a/debian/openerp-server.postrm +++ b/debian/openerp-server.postrm @@ -22,7 +22,11 @@ case "${1}" in rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server || true ;; - purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + purge) + rm -rf /var/lib/openerp-server + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; From b8f073632d520190cae704aacf3dd536bb33b0c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Aug 2009 22:00:56 +0300 Subject: [PATCH 25/25] Releasing debian version 5.0.3-0-1. bzr revid: p_christ@hol.gr-20090824190056-mwxzroeyvsnv66wf --- debian/changelog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8f273a33260..0735d998cec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,19 @@ +openerp-server (5.0.3-0-1) unstable; urgency=low + + * Merging upstream version 5.0.3-0. + * Removing xmlrpc.patch, went upstream. + * Using dedicated storage directory in /var/lib/openerp-server, that + way the addons directory can stay read-only for the unprivileged + user. + * Commenting out db_name in config (Closes: #542391). + * Commenting out port in config (Closes: #542406). + * Renaming logfile to openerp-server.log for consistency. + * Commenting out pidfile in config (Closes: #542427). + * Removing debconf handling in postrm, not possible to do that. + * Removing local storage directory on purge. + + -- Daniel Baumann Mon, 24 Aug 2009 20:16:55 +0200 + openerp-server (5.0.2-0-3) unstable; urgency=low * Wrapping and sorting depends.