diff options
Diffstat (limited to 'setup')
30 files changed, 2062 insertions, 0 deletions
diff --git a/setup/debian/changelog b/setup/debian/changelog new file mode 100644 index 00000000000..0ee8e0e3295 --- /dev/null +++ b/setup/debian/changelog @@ -0,0 +1,539 @@ +openerp (6.1-1) testing; urgency=low + + * New major version, new packaging. + + -- Antony Lesuisse <al@openerp.com> Sat, 01 Oct 2011 12:31:00 +0100 + +openerp-server (6.0.2-1) testing; urgency=low + + * Using upstream version 6.0.2 + + -- Vo Minh Thu <vmt@openerp.com> Tue, 05 Apr 2011 12:31:00 +0100 + +openerp-server (6.0.1-1) unstable; urgency=low + + * Translations from Rosetta (only zh_CN today) + * Require postgres 8.2, not 8.4 + * Write changelog (recursive, isn't it?) + * Repackage, together with addons fixes + + -- P. Christeas <xrg@openerp.com> Mon, 24 Jan 2011 12:50:00 +0100 + +openerp-server (6.0.1-0) testing; urgency=low + + * Update to version 6.0.1 + + -- P. Christeas <xrg@openerp.com> Thu, 20 Jan 2011 21:21:00 +0100 + +openerp-server (6.0.0-0) testing; urgency=low + + * Update to version 6.0.0 + + -- P. Christeas <xrg@openerp.com> Wed, 19 Jan 2011 09:12:00 +0100 + +openerp-server (6.0.0~rc2-0) experimental; urgency=low + + * Upgrade to 6.0.0-rc2, let it build + + -- P. Christeas <xrg@openerp.com> Mon, 17 Jan 2011 14:18:00 +0100 + +openerp-server (5.0.14-1) experimental; urgency=low + + * Updating to standards version 3.9.1. + * Merging upstream version 5.0.14. + + -- Daniel Baumann <daniel@debian.org> Wed, 15 Sep 2010 00:22:00 +0200 + +openerp-server (5.0.13-1) experimental; urgency=low + + * Merging upstream version 5.0.13. + + -- Daniel Baumann <daniel@debian.org> Mon, 13 Sep 2010 09:14:10 +0200 + +openerp-server (5.0.12-2) unstable; urgency=low + + * Removing debhelper auto install overrides. + * Updating clean target in rules. + * Reverting to manual setup.py call, updated for version 5.0.12. + + -- Daniel Baumann <daniel@debian.org> Sat, 14 Aug 2010 18:53:43 +0200 + +openerp-server (5.0.12-1) unstable; urgency=low + + * Updating standards version to 3.9.0. + * Merging upstream version 5.0.12. + + -- Daniel Baumann <daniel@debian.org> Sun, 18 Jul 2010 19:46:39 +0200 + +openerp-server (5.0.11-1) unstable; urgency=low + + * Merging upstream version 5.0.11. + * Adding patch from Timothy E. Harris <maintainer@mepiscommunity.org> + to prevents creating a new database if the locale is not a UTF-8 one + (Closes: #584976). + + -- Daniel Baumann <daniel@debian.org> Tue, 08 Jun 2010 11:42:23 +0200 + +openerp-server (5.0.10-1) unstable; urgency=low + + * Merging upstream version 5.0.10. + + -- Daniel Baumann <daniel@debian.org> Fri, 07 May 2010 15:02:31 +0200 + +openerp-server (5.0.9-1) unstable; urgency=low + + * Merging upstream version 5.0.9. + + -- Daniel Baumann <daniel@debian.org> Fri, 16 Apr 2010 06:47:02 +0200 + +openerp-server (5.0.8-1) unstable; urgency=low + + * Merging upstream version 5.0.8. + + -- Daniel Baumann <daniel@debian.org> Wed, 14 Apr 2010 20:19:21 +0200 + +openerp-server (5.0.7-2) unstable; urgency=low + + * Updating python build-depends. + * Adding patch to fix bad whatis entry in openerp-server manpage. + + -- Daniel Baumann <daniel@debian.org> Wed, 07 Apr 2010 00:09:23 +0200 + +openerp-server (5.0.7-1) unstable; urgency=low + + * Merging upstream version 5.0.7 (Closes: #573716): + * Updating copyright file. + * Resorting the dh call to more common order. + * Updating README.source. + * Dropping python-lxml patch, went upstream. + * Dropping postgresql-8.4.patch, went upstream. + * Adding some more python module build-depends to avoid some chicken- + egg problem with the new setup.py and quilt. + * Adding dependency to remote_fs in init script. + + -- Daniel Baumann <daniel@debian.org> Sat, 13 Mar 2010 13:55:50 +0100 + +openerp-server (5.0.6-4) unstable; urgency=low + + * Adding explicit debian source version 1.0 until switch to 3.0. + * Updating year in copyright file. + * Updating to standards 3.8.4. + * Adding patch from Toni Mueller <support@oeko.net> to fix SQL for + postgresql 8.4 (Closes: #568119). + + -- Daniel Baumann <daniel@debian.org> Sat, 06 Feb 2010 10:22:05 +0100 + +openerp-server (5.0.6-3) unstable; urgency=low + + [ Daniel Baumann ] + * Setting last-translator for German debconf templates to me, no + intention do deal with debian-l10n-german in the future anymore. + + [ Mathias Behrle ] + * Removing deprecated option -q for PostgreSQL client commands + (Closes: #548875). + + -- Daniel Baumann <daniel@debian.org> Sat, 31 Oct 2009 09:20:27 +0100 + +openerp-server (5.0.6-2) unstable; urgency=low + + * Minimizing rules file. + + -- Daniel Baumann <daniel@debian.org> Sun, 18 Oct 2009 21:19:57 +0200 + +openerp-server (5.0.6-1) unstable; urgency=low + + * Merging upstream version 5.0.6. + * Rediffing python-lxml.patch. + + -- Daniel Baumann <daniel@debian.org> Sat, 17 Oct 2009 08:32:56 +0200 + +openerp-server (5.0.5-1) unstable; urgency=low + + * Merging upstream version 5.0.5. + + -- Daniel Baumann <daniel@debian.org> Mon, 21 Sep 2009 20:38:00 +0200 + +openerp-server (5.0.4-1) unstable; urgency=medium + + * Merging upstream version 5.0.4: + - fixes a security problem. + * No longer calling debconf-updatepo in clean target of rules. + + -- Daniel Baumann <daniel@debian.org> Mon, 21 Sep 2009 00:01:13 +0200 + +openerp-server (5.0.3-0-2) unstable; urgency=low + + * Adding README.source. + * Moving maintainer homepage from control to copyright. + * Updating README.source. + * Adding patch from upstream to use python-lxml instead of python-xml, + thanks to Alan Bell <alan.bell@theopenlearningcentre.com> (Closes: + #543947). + + -- Daniel Baumann <daniel@debian.org> Wed, 16 Sep 2009 21:18:30 +0200 + +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 <daniel@debian.org> Mon, 24 Aug 2009 20:16:55 +0200 + +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 <daniel@debian.org> Mon, 24 Aug 2009 18:23:54 +0200 + +openerp-server (5.0.2-0-2) unstable; urgency=high + + * Adding patch from Panos Christeas <p_christ@hol.gr> to forbid RPC + calls without credentials. All versions of openerp-server affected. + + -- Daniel Baumann <daniel@debian.org> Thu, 13 Aug 2009 14:45:17 +0200 + +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 <daniel@debian.org> 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. + * Correcting path of openerp-server in README.Debian (Closes: + #520890). + * Correcting user handling in init script and config file (Closes: + #513263, #516348). + * Setting port to 8070. + * Also mentioning debug_mode and price_accuracy in config file + (Closes: #513264). + * Using correct rfc-2822 date formats in changelog. + * Rediffing shebang.patch. + + -- Daniel Baumann <daniel@debian.org> Sat, 30 May 2009 12:53:39 +0200 + +openerp-server (5.0.0-3-1) unstable; urgency=low + + * Merging upstream version 5.0.0-3. + * Improving init call in README.Debian, thanks to David Goodenough + <david.goodenough@btconnect.com>. + * Fixed wrapping in README.Debian. + + -- Daniel Baumann <daniel@debian.org> Sat, 14 Feb 2009 00:51:00 +0100 + +openerp-server (5.0.0-2-1) unstable; urgency=low + + * Merging upstream version 5.0.0-2 (Closes: #514920). + * Updating README.Debian. + + -- Daniel Baumann <daniel@debian.org> Sat, 14 Feb 2009 00:12:00 +0100 + +openerp-server (5.0.0-1) unstable; urgency=low + + * Merging upstream version 5.0.0. + + -- Daniel Baumann <daniel@debian.org> Sat, 07 Feb 2009 13:33:00 +0100 + +openerp-server (5.0.0~rc3-1) unstable; urgency=low + + * Adding note about initializing the database in README.Debian. + * Adding changelog for debian version 4.2.3.4-3. + * Merging upstream version 5.0.0~rc3. + * Using quilt rather than dpatch. + * Updating year in copyright file. + * Updating python-openssl depends. + * Updating lintian overrides. + + -- Daniel Baumann <daniel@debian.org> Fri, 09 Jan 2009 18:31:00 -0500 + +openerp-server (5.0.0~rc2-1) unstable; urgency=low + + * Updating python xml depends (Closes: #508911). + * Merging upstream version 5.0.0~rc2. + * New upstream no longer uses embedded copies of pydot, pychart and + reportlab (Closes: #468104). + * Rediffing shebang.dpatch. + + -- Daniel Baumann <daniel@debian.org> Thu, 25 Dec 2008 15:13:00 +0100 + +openerp-server (5.0.0~rc1.1-2) unstable; urgency=low + + * Adjusting sed call to correct path in /usr/bin/openerp-server. + + -- Daniel Baumann <daniel@debian.org> Wed, 17 Dec 2008 08:32:00 +0100 + +openerp-server (5.0.0~rc1.1-1) unstable; urgency=low + + * Merging upstream version 5.0.0~rc1.1. + + -- Daniel Baumann <daniel@debian.org> Tue, 16 Dec 2008 13:08:00 +0100 + +openerp-server (5.0.0~rc1-1) unstable; urgency=low + + * Merging upstream version 5.0.0~rc1. + * Removing openerp.dpatch, went upstream. + * Rediffing shebang.dpatch. + * Removing workaround for import_xml.rng, not needed anymore. + + -- Daniel Baumann <daniel@debian.org> Tue, 16 Dec 2008 12:51:00 +0100 + +openerp-server (5.0.0~alpha-3) unstable; urgency=low + + * Adding ghostscript, python-matplotlib, and python-pyopenssl to recommends. + * Correcting chown calls in postinst. + * Prefixing debhelper files with package name. + * Adding changelog for debian version 4.2.3.4-2. + * Dropping tinyerp-server transitional package, this allows to have both + packages available in unstable. + + -- Daniel Baumann <daniel@debian.org> Sun, 07 Dec 2008 20:13:00 +0100 + +openerp-server (5.0.0~alpha-2) experimental; urgency=low + + * Renaming tinyerp-server to new upstream openerp-server name. + + -- Daniel Baumann <daniel@debian.org> Sun, 09 Nov 2008 18:59:00 +0100 + +tinyerp-server (5.0.0~alpha-1) experimental; urgency=low + + * Merging upstream version 5.0.0~alpha. + * Rediffing autobuild.dpatch. + * Removing shebang.dpatch, not needed anymore. + * Removing python2.5.dpatch, not needed anymore. + * Rediffing openerp.dpatch. + * Rediffing migrate.dpatch. + * Not moving server to sbin anymore for the sake of consistency. + * Removing unneeded chmod call for tinyerp-server.py. + * Sorting build-depends, depends and recommends. + * Dropping /etc/default/tinyerp-server in favour of using + /etc/tinyerp-server.conf directly. + * Updating chmod call in rules to also cope with filenames that embedd + whitespaces. + * Adding patch to correct shebang in two addon files. + * Adding workaround for bug in setup.py that puts import_xml.rng into the + wrong location. + * Adding symlink for tinyerp_serverrc manpage to tinyerp-server.conf. + * Renaming everything except the package name itself from tinyerp-server to + openerp-server. + * Updating copyright file to current upstream. + + -- Daniel Baumann <daniel@debian.org> Sun, 09 Nov 2008 15:52:00 +0100 + +tinyerp-server (4.2.3.4-3) unstable; urgency=high + + * Updating python depends (Closes: #506615). + * Adding note about initializising the database in README.Debian + (Closes: #464557). + + -- Daniel Baumann <daniel@debian.org> Mon, 10 Nov 2008 12:40:00 +0100 + +tinyerp-server (4.2.3.4-2) unstable; urgency=low + + * Correcting chown calls in postinst. + + -- Daniel Baumann <daniel@debian.org> Mon, 10 Nov 2008 12:40:00 +0100 + +tinyerp-server (4.2.3.4-1) unstable; urgency=low + + * Merging upstream version 4.2.3.4. + * Upgrading package to debhelper 7. + * Upgrading package to standards 3.8.0. + * Updating homepage field in control file. + * Adding vcs fields in control file. + * Rewriting copyright file in machine-interpretable format. + * Using lintian debhelper to install lintian overrides. + * Removing bind-exit.dpatch, went upstream. + * Updating default database port. + * Adding logfile handling. + * Updating postresql recommends. + * Reordering and splitting out rules file into individual debhelper files. + * Applying some shell cosmetics to init and maintainer scripts. + * Adding patch to update homepage location of tinyerp. + * Setting ownership of addons directory in postinst (Closes: #487112). + * Adding patch from Brian DeRocher <brian@derocher.org> to fix sql syntax in + migrate script (Closes: #467517). + + -- Daniel Baumann <daniel@debian.org> Sun, 09 Nov 2008 09:11:00 +0100 + +tinyerp-server (4.2.2-2) unstable; urgency=medium + + * Readding depends to python-psycopg (Closes: #463079, #493374). + * Adding depends to python-tz (Closes: #482359). + + -- Daniel Baumann <daniel@debian.org> Sun, 03 Aug 2008 00:20:00 +0200 + +tinyerp-server (4.2.2-1) unstable; urgency=low + + * New upstream release (Closes: #477698). + * Dropping depends against python-xml (Closes: #468619). + + -- Daniel Baumann <daniel@debian.org> Sat, 26 Apr 2008 16:15:00 +0200 + +tinyerp-server (4.2.1-1) unstable; urgency=low + + * Maintainer upload from the Zuerich BSP. + * New upstream release. + * Bumping to new policy. + * Using new homepage field in control. + * Including documentation for migration and testing (Closes: #445464). + * Adjusting 04-bind-exit.dpatch to new upstream release. + * Added lintian overrides. + * Depending now on python-psycopg2, not python-psycopg anymore + (Closes: #445464). + + -- Daniel Baumann <daniel@debian.org> Sat, 12 Jan 2008 15:20:00 +0100 + +tinyerp-server (4.2.0-1) unstable; urgency=medium + + * New upstream release. + + -- Daniel Baumann <daniel@debian.org> Wed, 31 Oct 2007 21:31:00 +0100 + +tinyerp-server (4.0.3-3) unstable; urgency=medium + + * Setting database port to 5433 (Closes: #443626). + * Applied patch from Aldrin Martoq to make tinyerp-server compatible with + python 2.5. + * Applied patch from Luca Falavigna <dktrkranz@ubuntu.com> to fix exception + raised when address is already in use. + + -- Daniel Baumann <daniel@debian.org> Sat, 29 Sep 2007 17:07:00 +0200 + +tinyerp-server (4.0.3-2) unstable; urgency=low + + * Check for existence of deluser in postrm (Closes: #431532). + + -- Daniel Baumann <daniel@debian.org> Tue, 03 Jul 2007 11:01:00 +0200 + +tinyerp-server (4.0.3-1) unstable; urgency=low + + * New upstream release. + * Taking package back, Jean-Marc seems to be MIA. + * Changed wording of 'listen to all interfaces' paragraph in README.Debian, + thanks to Gerfried Fuchs <alfie@debian.org>. + * Added lsb header to init script. + + -- Daniel Baumann <daniel@debian.org> Fri, 01 Jun 2007 11:59:00 +0200 + +tinyerp-server (4.0.2-3) unstable; urgency=low + + * Setting maintainer to Jean-Marc, this time really :) + + -- Daniel Baumann <daniel@debian.org> Wed, 28 Mar 2007 21:48:00 +0100 + +tinyerp-server (4.0.2-2) unstable; urgency=low + + * Setting maintainer to Jean-Marc. + + -- Daniel Baumann <daniel@debian.org> Wed, 07 Feb 2007 13:41:00 +0100 + +tinyerp-server (4.0.2-1) unstable; urgency=low + + * New upstream release. + * Some minor cleanups. + + -- Daniel Baumann <daniel@debian.org> Thu, 18 Jan 2007 14:19:00 +0100 + +tinyerp-server (4.0.1-1) unstable; urgency=low + + * New upstream release. + * Removed 03-setup.dpatch, went upstream. + + -- Daniel Baumann <daniel@debian.org> Fri, 29 Dec 2006 01:03:00 +0100 + +tinyerp-server (4.0.0-1) unstable; urgency=low + + * New upstream release. + * Added patch to fix a typo in setup.py. + + -- Daniel Baumann <daniel@debian.org> Tue, 05 Dec 2006 17:43:00 +0100 + +tinyerp-server (4.0.0~rc1-2) unstable; urgency=low + + * Cleaned up build-depends. + + -- Daniel Baumann <daniel@debian.org> Tue, 05 Dec 2006 13:19:00 +0100 + +tinyerp-server (4.0.0~rc1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann <daniel@debian.org> Tue, 05 Dec 2006 12:57:00 +0100 + +tinyerp-server (3.5.0-1) experimental; urgency=low + + * New upstream release. + + -- Daniel Baumann <daniel@debian.org> Mon, 23 Oct 2006 12:23:00 +0200 + +tinyerp-server (3.4.2-1) unstable; urgency=low + + * New upstream release. + * New email address. + * Complying with new python policy (Closes: #380973). + * Adjusted postgre depends (Closes: #376614). + + -- Daniel Baumann <daniel@debian.org> Mon, 16 Oct 2006 14:45:00 +0200 + +tinyerp-server (3.3.0-1) unstable; urgency=low + + * New upstream release (Closes: #369769): + - fixed installation script to install all needed files (Closes: #355224) + * Updated README.Debian (Closes: #352322, #360222, #360223). + * Set to architecture to all (Closes: #356962). + + -- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 04 Jun 2006 00:50:00 +0100 + +tinyerp-server (3.2.1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann <daniel.baumann@panthera-systems.net> Thu, 02 Feb 2006 09:44:00 +0100 + +tinyerp-server (3.2.0-1) unstable; urgency=low + + * New upstream release. + * Adjusted shellbang in bin/addons/base/ir/workflow/pydot/dot_parser.py. + + -- Daniel Baumann <daniel.baumann@panthera-systems.net> Tue, 24 Jan 2006 07:00:00 +0100 + +tinyerp-server (3.1.99+3.2.0rc1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann <daniel.baumann@panthera-systems.net> Tue, 27 Dec 2005 20:00:00 +0100 + +tinyerp-server (3.1.1+debian-1) unstable; urgency=low + + * Initial release (Closes: #301510). + * Rebuild orig.tar.gz to remove unnecessary files in upstreams debian/. + * Added changelog from website. + + -- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 16 Oct 2005 13:35:00 +0200 diff --git a/setup/debian/compat b/setup/debian/compat new file mode 100644 index 00000000000..7f8f011eb73 --- /dev/null +++ b/setup/debian/compat @@ -0,0 +1 @@ +7 diff --git a/setup/debian/control b/setup/debian/control new file mode 100644 index 00000000000..7f7786ee98d --- /dev/null +++ b/setup/debian/control @@ -0,0 +1,66 @@ +Source: openerp +Section: net +Priority: optional +Maintainer: OpenERP SA <al@openerp.com> +Build-Depends: debhelper (>= 7.0.50~), python, rsync +Standards-Version: 3.9.1 +Homepage: http://www.openerp.com/ +Vcs-Bzr: https://launchpad.net/openobject + +Package: openerp +Section: net +Architecture: all +Depends: + ${misc:Depends}, + adduser, + python, + postgresql-client, + python-dateutil, + python-decorator, + python-docutils, + python-feedparser, + python-gdata, + python-imaging, + python-jinja2, + python-ldap, + python-libxslt1, + python-lxml, + python-mako, + python-mock, + python-openid, + python-psutil, + python-psycopg2, + python-pybabel, + python-pychart, + python-pydot, + python-pyparsing, + python-reportlab, + python-requests, + python-simplejson, + python-tz, + python-unittest2, + python-vatnumber, + python-vobject, + python-webdav, + python-werkzeug, + python-xlwt, + python-yaml, + python-zsi +Conflicts: tinyerp-server, openerp-server, openerp-web +Replaces: tinyerp-server, openerp-server, openerp-web +Recommends: + antiword, + graphviz, + ghostscript, + postgresql, + python-gevent, + python-matplotlib, + poppler-utils +Description: OpenERP Enterprise Resource Management + OpenERP, 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 an XML-RPC + interface. + diff --git a/setup/debian/copyright b/setup/debian/copyright new file mode 100644 index 00000000000..e477adb524d --- /dev/null +++ b/setup/debian/copyright @@ -0,0 +1,207 @@ +Upstream-Contact: OpenERP <info@openerp.com> +Upstream-Homepage: http://www.openerp.com/ +Maintainer-Contact: Debian OpenERP Maintainers <gnunet@lists.debian-maintainers.org> +Maintainer-Homepage: http://open-object.debian-maintainers.org/ + +Files: * +Copyright: (C) 2004-2011 OpenERP SA. (www.openerp.com) +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. + +Files: + bin/addons/account/report/general_ledger.py + bin/addons/account/report/general_ledger_landscape.py + bin/addons/account/wizard/wizard_statement_from_invoice.py +Copyright: (C) 2005-2008 CamptoCamp +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/addons/auction/barcode/* +Copyright: (C) 2000 Tyler C. Sarna <tsarna@sarna.org> +License: BSD + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Tyler C. Sarna. + 4. Neither the name of the author nor the names of contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +Files: + bin/addons/base_report_designer/wizard/tiny_sxw2rml/normalized_oo2rml.xsl + bin/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py +Copyright: (C) 2005 Martin Simon +License: LGPL-2.1 + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + . + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU Library General Public License + can be found in /usr/share/common-licenses/LGPL-2.1 file. + +Files: bin/addons/document/ftpserver/* +Copyright: + (C) 2007 Giampaolo Rodola <g.rodola@gmail.com> + (C) 2008 Fabien Pinckaers <fp@tinyerp.com> +License: MIT + Permission to use, copy, modify, and distribute this software and + its documentation for any purpose and without fee is hereby + granted, provided that the above copyright notice appear in all + copies and that both that copyright notice and this permission + notice appear in supporting documentation, and that the name of + Giampaolo Rodola' not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior + permission. + . + Giampaolo Rodola' DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN + NO EVENT Giampaolo Rodola' BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, + NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: bin/addons/hr_holidays/* +Copyright: + (C) 2004-2008 Tiny.be <info@tiny.be> + (C) 2005-2006 Axelor SARL. <http://www.axelor.com/> +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/addons/l10n_uk/* +Copyright: + (C) 2004-2008 Tiny.be <info@tiny.be> + (C) 2004-2008 Seath Solutions Ltd. +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/tools/threadinglocal.py +Copyright: (C) 2004-2005 CherryPy Team <team@cherrypy.org> +License: BSD + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the CherryPy Team nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: bin/tools/decimal.py +Copyright: (C) 2004 Python Software Foundation. +License: other + This file is distributed under the Python Software License + (http://www.python.org/2.3/license.html). + . + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the name of Stichting Mathematisch + Centrum or CWI not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior + permission. + diff --git a/setup/debian/openerp.init b/setup/debian/openerp.init new file mode 100644 index 00000000000..98e653298b2 --- /dev/null +++ b/setup/debian/openerp.init @@ -0,0 +1,62 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: openerp-server +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network +# Should-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Enterprise Resource Management software +# Description: Open ERP is a complete ERP and CRM software. +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/openerp-server +NAME=openerp-server +DESC=openerp-server +CONFIG=/etc/openerp/openerp-server.conf +LOGFILE=/var/log/openerp/openerp-server.log +USER=openerp + +test -x ${DAEMON} || exit 0 + +set -e + +do_start () { + echo -n "Starting ${DESC}: " + start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- --config=${CONFIG} --logfile=${LOGFILE} + echo "${NAME}." +} + +do_stop () { + echo -n "Stopping ${DESC}: " + start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid --oknodo + echo "${NAME}." +} + +case "${1}" in + start) + do_start + ;; + + stop) + do_stop + ;; + + restart|force-reload) + echo -n "Restarting ${DESC}: " + do_stop + sleep 1 + do_start + ;; + + *) + N=/etc/init.d/${NAME} + echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/setup/debian/openerp.install b/setup/debian/openerp.install new file mode 100644 index 00000000000..c632929a148 --- /dev/null +++ b/setup/debian/openerp.install @@ -0,0 +1,2 @@ +install/openerp-server.conf /etc/openerp +README /usr/share/doc/openerp diff --git a/setup/debian/openerp.postinst b/setup/debian/openerp.postinst new file mode 100644 index 00000000000..2eccd5111ec --- /dev/null +++ b/setup/debian/openerp.postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + if ! getent passwd | grep -q "^openerp:"; then + adduser --system --no-create-home --quiet --gecos 'OpenERP' --group openerp + fi + # Register "openerp" as a postgres superuser + su - postgres -c "createuser -s openerp" 2> /dev/null || true + chown openerp:openerp /etc/openerp/openerp-server.conf + chmod 0640 /etc/openerp/openerp-server.conf + # Creating log file + mkdir -p /var/log/openerp/ + chown openerp:openerp /var/log/openerp + chmod 0750 /var/log/openerp + # Creating local storage directory + mkdir -p /var/lib/openerp/filestore + chown openerp:openerp -R /var/lib/openerp + # update-python-modules NOW otherwise invoke-rc.d openerp start will fail + update-python-modules -p openerp.public + ;; + *) + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/setup/debian/openerp.postrm b/setup/debian/openerp.postrm new file mode 100644 index 00000000000..bc81ce98b71 --- /dev/null +++ b/setup/debian/openerp.postrm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + deluser --quiet --system "openerp" || true + delgroup --quiet --system --only-if-empty "openerp" || true + find /var/lib/openerp -path '/var/lib/openerp/*' ! -path '/var/lib/openerp/filestore*' -delete + ;; + + purge) + rm -rf /var/lib/openerp + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + +esac + +#DEBHELPER# + +exit 0 diff --git a/setup/debian/rules b/setup/debian/rules new file mode 100755 index 00000000000..57be1d0442b --- /dev/null +++ b/setup/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# vim:noet: + +%: + dh ${@} + +override_dh_pysupport: + echo "rsync" + sh -c "[ -d debian/openerp/usr/lib/python2.6 ] && rsync -av openerp/ debian/openerp/usr/lib/python2.6/dist-packages/openerp/" || true + sh -c "[ -d debian/openerp/usr/lib/python2.7 ] && rsync -av openerp/ debian/openerp/usr/lib/python2.7/dist-packages/openerp/" || true + rm -Rf debian/openerp/usr/openerp debian/openerp/usr/lib/python2.6/dist-packages/tests debian/openerp/usr/lib/python2.7/dist-packages/tests + dh_pysupport + rm -Rf debian/openerp/usr/lib + +override_dh_installinit: + dh_installinit --update-rcd-params='defaults 21' + diff --git a/setup/openerp-server.1 b/setup/openerp-server.1 new file mode 100644 index 00000000000..6529e7315b1 --- /dev/null +++ b/setup/openerp-server.1 @@ -0,0 +1,218 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH OPENERP "1" "December 2010" "OpenERP Server 6.0.0-rc1" "User Commands" +.SH NAME +OpenERP \- manual page for OpenERP Server 6.0.0-rc1 +.SH SYNOPSIS +.B openerp-server.py +[\fIoptions\fR] +.SH OPTIONS +.TP +\fB\-\-version\fR +show program's version number and exit +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-c\fR CONFIG, \fB\-\-config\fR=\fICONFIG\fR +specify alternate config file +.TP +\fB\-s\fR, \fB\-\-save\fR +save configuration to ~/.openerp_serverrc +.TP +\fB\-\-pidfile\fR=\fIPIDFILE\fR +file where the server pid will be stored +.TP +\fB\-i\fR INIT, \fB\-\-init\fR=\fIINIT\fR +init a module (use "all" for all modules) +.TP +\fB\-\-without\-demo\fR=\fIWITHOUT_DEMO\fR +load demo data for a module (use "all" for all +modules) +.TP +\fB\-u\fR UPDATE, \fB\-\-update\fR=\fIUPDATE\fR +update a module (use "all" for all modules) +.TP +\fB\-\-cache\-timeout\fR=\fICACHE_TIMEOUT\fR +set the timeout for the cache system +.TP +\fB\-t\fR TIMEZONE, \fB\-\-timezone\fR=\fITIMEZONE\fR +specify reference timezone for the server (e.g. +Europe/Brussels +.TP +\fB\-\-stop\-after\-init\fR +stop the server after it initializes +.TP +\fB\-\-debug\fR +enable debug mode +.TP +\fB\-\-assert\-exit\-level\fR=\fIASSERT_EXIT_LEVEL\fR +specify the level at which a failed assertion will +stop the server. Accepted values: ['info', +\&'debug_rpc', 'warn', 'test', 'critical', 'debug_sql', +\&'error', 'debug', 'debug_rpc_answer', 'notset'] +.IP +XML\-RPC Configuration: +.TP +\fB\-\-xmlrpc\-interface\fR=\fIXMLRPC_INTERFACE\fR +specify the TCP IP address for the XML\-RPC protocol +.TP +\fB\-\-xmlrpc\-port\fR=\fIXMLRPC_PORT\fR +specify the TCP port for the XML\-RPC protocol +.TP +\fB\-\-no\-xmlrpc\fR +disable the XML\-RPC protocol +.IP +XML\-RPC Secure Configuration: +.TP +\fB\-\-xmlrpcs\-interface\fR=\fIXMLRPCS_INTERFACE\fR +specify the TCP IP address for the XML\-RPC Secure +protocol +.TP +\fB\-\-xmlrpcs\-port\fR=\fIXMLRPCS_PORT\fR +specify the TCP port for the XML\-RPC Secure protocol +.TP +\fB\-\-no\-xmlrpcs\fR +disable the XML\-RPC Secure protocol +.TP +\fB\-\-cert\-file\fR=\fISECURE_CERT_FILE\fR +specify the certificate file for the SSL connection +.TP +\fB\-\-pkey\-file\fR=\fISECURE_PKEY_FILE\fR +specify the private key file for the SSL connection +.IP +Static HTTP service: +.TP +\fB\-\-static\-http\-enable\fR +enable static HTTP service for serving plain HTML +files +.TP +\fB\-\-static\-http\-document\-root\fR=\fISTATIC_HTTP_DOCUMENT_ROOT\fR +specify the directory containing your static HTML +files (e.g '/var/www/') +.TP +\fB\-\-static\-http\-url\-prefix\fR=\fISTATIC_HTTP_URL_PREFIX\fR +specify the URL root prefix where you want web +browsers to access your static HTML files (e.g '/') +.IP +Testing Configuration: +.TP +\fB\-\-test\-file\fR=\fITEST_FILE\fR +Launch a YML test file. +.TP +\fB\-\-test\-report\-directory\fR=\fITEST_REPORT_DIRECTORY\fR +If set, will save sample of all reports in this +directory. +.TP +\fB\-\-test\-disable\fR +Disable loading test files. +.TP +\fB\-\-test\-commit\fR +Commit database changes performed by tests. +.IP +Logging Configuration: +.TP +\fB\-\-logfile\fR=\fILOGFILE\fR +file where the server log will be stored +.TP +\fB\-\-no\-logrotate\fR +do not rotate the logfile +.TP +\fB\-\-syslog\fR +Send the log to the syslog server +.TP +\fB\-\-log\-level\fR=\fILOG_LEVEL\fR +specify the level of the logging. Accepted values: +['info', 'debug_rpc', 'warn', 'test', 'critical', +\&'debug_sql', 'error', 'debug', 'debug_rpc_answer', +\&'notset'] +.IP +SMTP Configuration: +.TP +\fB\-\-email\-from\fR=\fIEMAIL_FROM\fR +specify the SMTP email address for sending email +.TP +\fB\-\-smtp\fR=\fISMTP_SERVER\fR +specify the SMTP server for sending email +.TP +\fB\-\-smtp\-port\fR=\fISMTP_PORT\fR +specify the SMTP port +.TP +\fB\-\-smtp\-ssl\fR +specify the SMTP server support SSL or not +.TP +\fB\-\-smtp\-user\fR=\fISMTP_USER\fR +specify the SMTP username for sending email +.TP +\fB\-\-smtp\-password\fR=\fISMTP_PASSWORD\fR +specify the SMTP password for sending email +.IP +Database related options: +.TP +\fB\-d\fR DB_NAME, \fB\-\-database\fR=\fIDB_NAME\fR +specify the database name +.TP +\fB\-r\fR DB_USER, \fB\-\-db_user\fR=\fIDB_USER\fR +specify the database user name +.TP +\fB\-w\fR DB_PASSWORD, \fB\-\-db_password\fR=\fIDB_PASSWORD\fR +specify the database password +.TP +\fB\-\-pg_path\fR=\fIPG_PATH\fR +specify the pg executable path +.TP +\fB\-\-db_host\fR=\fIDB_HOST\fR +specify the database host +.TP +\fB\-\-db_port\fR=\fIDB_PORT\fR +specify the database port +.TP +\fB\-\-db_maxconn\fR=\fIDB_MAXCONN\fR +specify the the maximum number of physical connections +to posgresql +.TP +\fB\-P\fR IMPORT_PARTIAL, \fB\-\-import\-partial\fR=\fIIMPORT_PARTIAL\fR +Use this for big data importation, if it crashes you +will be able to continue at the current state. Provide +a filename to store intermediate importation states. +.IP +Internationalisation options: +.IP +Use these options to translate OpenERP to another language.See i18n +section of the user manual. Option '\-d' is mandatory.Option '\-l' is +mandatory in case of importation +.TP +\fB\-l\fR LANGUAGE, \fB\-\-language\fR=\fILANGUAGE\fR +specify the language of the translation file. Use it +with \fB\-\-i18n\-export\fR or \fB\-\-i18n\-import\fR +.TP +\fB\-\-i18n\-export\fR=\fITRANSLATE_OUT\fR +export all sentences to be translated to a CSV file, a +PO file or a TGZ archive and exit +.TP +\fB\-\-i18n\-import\fR=\fITRANSLATE_IN\fR +import a CSV or a PO file with translations and exit. +The '\-l' option is required. +.TP +\fB\-\-modules\fR=\fITRANSLATE_MODULES\fR +specify modules to export. Use in combination with +\fB\-\-i18n\-export\fR +.TP +\fB\-\-addons\-path\fR=\fIADDONS_PATH\fR +specify an alternative addons path. +.IP +Security\-related options: +.TP +\fB\-\-no\-database\-list\fR +disable the ability to return the list of databases +.SH "SEE ALSO" +The full documentation for +.B OpenERP +is maintained as a Texinfo manual. If the +.B info +and +.B OpenERP +programs are properly installed at your site, the command +.IP +.B info OpenERP +.PP +should give you access to the complete manual. diff --git a/setup/openerp-server.conf b/setup/openerp-server.conf new file mode 100644 index 00000000000..ead261e5218 --- /dev/null +++ b/setup/openerp-server.conf @@ -0,0 +1,7 @@ +[options] +; This is the password that allows database operations: +; admin_passwd = admin +db_host = False +db_port = False +db_user = openerp +db_password = False diff --git a/setup/openerp-server.init b/setup/openerp-server.init new file mode 100644 index 00000000000..41efb5c35ce --- /dev/null +++ b/setup/openerp-server.init @@ -0,0 +1,147 @@ +#!/bin/bash +# openerp-server This shell script takes care of starting and stopping +# OpenERP server +# +# chkconfig: 345 95 05 +# description: OpenERP server +# +# pidfile: /var/run/openerp-server.pid +# config: /etc/openerp-server.conf + +### BEGIN INIT INFO +# Provides: openerp-server +# Required-Start: postgresql +# Required-Stop: postgresql +# Should-Start: $network harddrake +# Default-Start: 345 +# Short-Description: Launches the OpenERP server. +# Description: This startup script launches the OpenERP server. +### END INIT INFO + +# Source function library. +. /etc/rc.d/init.d/functions + +PIDFILE=/var/run/openerp/openerp-server.pid +LOCKFILE=/var/lock/subsys/openerp-server +LOGFILE=/var/log/openerp/openerp-server.log + +OPTS="--pidfile=$PIDFILE --logfile=$LOGFILE" + +prog="openerp-server" +desc="OpenERP Server Daemon" + +# check if the openerp-server conf file is present, then use it +if [ -f /etc/openerp-server.conf ]; then + OPTS="$OPTS -c /etc/openerp-server.conf" +fi + +# Source function library +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +elif [ -f /etc/rc.d/init.d/functions ] ; then + . /etc/rc.d/init.d/functions +else + exit 0 +fi + +# check the existence of the openerp-server script +[ -z "/usr/bin/openerp-server" ] && exit 0 + +RETVAL=0 + +start() { + if [ -d /etc/openerp/start.d ] ; then + echo -n $"Preparing $desc: " + run-parts --exit-on-error /etc/openerp/start.d + RETVAL=$? + echo + [ $RETVAL -ne 0 ] && return $RETVAL + fi + + echo -n $"Starting $desc ($prog): " + daemon --user openerp --check openerp-server \ + "/usr/bin/setsid /usr/bin/openerp-server \ + -c /etc/openerp-server.conf \ + --pidfile=$PIDFILE \ + --logfile=$LOGFILE &" + + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch $LOCKFILE + return $RETVAL +} + +stop() { + echo -n $"Stopping $desc ($prog): " + kill -TERM `cat $PIDFILE` > /dev/null 2>&1 + RETVAL=$? + if [ $RETVAL -eq 0 ] ; then + rm -f $LOCKFILE + + echo_success + echo + else + echo_failure + echo + fi + if [ -d /etc/openerp/stop.d ] ; then + echo -n $"Clearing $desc: " + run-parts /etc/openerp/stop.d + echo + fi + return $RETVAL +} + +restart() { + stop + start +} + +condrestart() { + [ -e $LOCKFILE ] && restart || : +} + +status() { + if [ -f $PIDFILE ] ; then + checkpid `cat $PIDFILE` + RETVAL=$? + if [ $RETVAL -eq 0 ] ; then + echo $"$prog is running..." + else + echo $"$prog is stopped" + fi + else + echo $"$prog is stopped" + fi + return $RETVAL +} + +case "$1" in +start) + start + ;; + +stop) + stop + ;; + +restart|reload) + restart + ;; + +condrestart) + condrestart + ;; + +status) + status + ;; + +probe) + exit 0 + ;; + +*) + echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}" + exit 1 +esac diff --git a/setup/openerp-server.logrotate b/setup/openerp-server.logrotate new file mode 100644 index 00000000000..e1f7f803a7d --- /dev/null +++ b/setup/openerp-server.logrotate @@ -0,0 +1,5 @@ +/var/log/openerp/*.log { + copytruncate + missingok + notifempty +} diff --git a/setup/openerp_serverrc.5 b/setup/openerp_serverrc.5 new file mode 100644 index 00000000000..e43f9b5a668 --- /dev/null +++ b/setup/openerp_serverrc.5 @@ -0,0 +1,113 @@ +.TH openerp_serverrc 5 + +.SH NAME +openerp_serverrc \- configuration file for OpenERP + +.SH SYNOPSIS +[options] +.br +$option\ =\ " someValue " +.br + ... + +.SH DESCRIPTION +A setup file consists of a section, lead by a "[options]" header, +.br +and followed by "option_name = value" entries, with continuations and such in +.br +the style of RFC 822. + +.SH OPTIONS +.TP +.IR verbose +Enable the debugging mode +.br +(default False) +.TP +.IR pidfile +The file where the server pid will be stored +.br +(default False) +.TP +.IR logfile +The file where the server log will be stored +.br +(default False) +.TP +.IR interface +The IP address on which the server will bind. +.br +If empty, it will bind on all interfaces (default empty) +.TP +.IR port +The TCP port on which the server will listen. +.br +(default 8069) +.TP +.IR debug_mode +Enable debug mode +.br +(default False) +.TP +.IR secure +Launch server over https instead of http. +.br +(default False) +.TP +.IR smtp_server +Specify the SMTP server for sending email. +.br +(default localhost) +.TP +.IR smtp_user +Specify the SMTP user for sending email. +.br +(default False) +.TP +.IR smtp_password +Specify the SMTP password for sending email. +.br +(default False) +.TP +.IR db_name +Specify the database name. +.TP +.IR db_user +Specify the database user name. +.br +(default None) +.TP +.IR db_password +Specify the database password for db_user. +.br +(default None) +.TP +.IR pg_path +Specify the PostgreSQL executable path. +.br +(default None) +.TP +.IR db_host +Specify the database host. +.br +(default localhost) +.TP +.IR db_port +Specify the database port. +.br +(default None) +.TP +.IR price_accuracy +Specify the price accuracy. +.br + +.SH AUTHORS + +OpenERP is a product of \fBTiny.be\fR (\fIhttp://www.tiny.be\fR) + +.SH SEE ALSO +openerp-server(1) +.br +\fIhttp://www.openerp.com\fR : Open ERP official website +.br +\fIhttp://doc.openerp.com\fR : Open ERP documentation diff --git a/setup/redhat/MANIFEST.in b/setup/redhat/MANIFEST.in new file mode 100644 index 00000000000..af66a5a5bca --- /dev/null +++ b/setup/redhat/MANIFEST.in @@ -0,0 +1,12 @@ +graft debian +graft doc +graft install +graft openerp +graft win32 +include README +include LICENSE +include MANIFEST.in +include openerp-* +include oe* +include setup* +global-exclude *pyc *~ # Exclude possible garbage from previous graft. diff --git a/setup/redhat/README.urpmi b/setup/redhat/README.urpmi new file mode 100644 index 00000000000..ce8fb706703 --- /dev/null +++ b/setup/redhat/README.urpmi @@ -0,0 +1,36 @@ +Installation Steps +------------------ + +1. Check that all the required dependencies are installed. + +2. Create a postgresql database. + +The default database name is "terp". If you want to use another name, you +will need to provide it when launching the server (by using the commandline +option --database). + +To create a postgresql database named "terp" using the following command: + $ createdb --encoding=UNICODE terp + +If it is the first time you use postgresql you might need to create a new user +to the postgres system using the following commands (where myusername is your +unix user name): + + $ su - + # su - postgres + $ createuser openerp + Shall the new user be allowed to create databases? (y/n) y + Shall the new user be allowed to create more new users? (y/n) y + CREATE USER + $ logout + # logout + +3. Launch service daemon by "service openerp-server start". + +The first time it is run, the server will initialise the database with all the default values. + +4. Connect to the server using the GUI client. + +There are two accounts by default: + * login: admin, password:admin + * login: demo, password:demo diff --git a/setup/redhat/setup.cfg b/setup/redhat/setup.cfg new file mode 100644 index 00000000000..7693a84fc3a --- /dev/null +++ b/setup/redhat/setup.cfg @@ -0,0 +1,10 @@ +[general] + +[sdist] +formats=gztar + +[bdist] +formats=rpm + +[bdist_rpm] +install_script=setup_rpm.sh diff --git a/setup/redhat/setup_rpm.sh b/setup/redhat/setup_rpm.sh new file mode 100644 index 00000000000..510655f4430 --- /dev/null +++ b/setup/redhat/setup_rpm.sh @@ -0,0 +1,18 @@ +# +# This file is used by 'python setup.py bdist_rpm' +# You should not execute/call this file yourself. +# +# This script is used as the 'install' part of the RPM .spec file. +# +# Need to overwrite the install-part of the RPM to append the +# compression-suffix onto the filenames for the man-pages. +# +python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" +python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)" +python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +SUFFIX=gz +sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES + +# quote files with a space +sed 's/\(.* .*\)/"\1"/' -i INSTALLED_FILES diff --git a/setup/run_all_with_tests.sh b/setup/run_all_with_tests.sh new file mode 100755 index 00000000000..ef879db72b9 --- /dev/null +++ b/setup/run_all_with_tests.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +DATABASE=trunk +dropdb ${DATABASE} +REPOSITORIES=../../addons/trunk +MODULES=`python -c "import os; print ','.join(list(set(os.listdir('${REPOSITORIES}')) - set(['document_ftp'])))"` +createdb ${DATABASE} +rm openerp-server.log +./openerp-server \ + --log-level=debug \ + --addons=${REPOSITORIES},../../web/trunk/addons \ + -d ${DATABASE} \ + -i ${MODULES} \ + --stop-after-init \ + --no-xmlrpc \ + --no-xmlrpcs \ + --test-enable \ + --logfile=openerp-server.log diff --git a/setup/windows/openerp-header.bmp b/setup/windows/openerp-header.bmp Binary files differnew file mode 100644 index 00000000000..61226b99ad7 --- /dev/null +++ b/setup/windows/openerp-header.bmp diff --git a/setup/windows/openerp-header.png b/setup/windows/openerp-header.png Binary files differnew file mode 100644 index 00000000000..22c1df45aee --- /dev/null +++ b/setup/windows/openerp-header.png diff --git a/setup/windows/openerp-icon.ico b/setup/windows/openerp-icon.ico Binary files differnew file mode 100644 index 00000000000..89ed393f7cc --- /dev/null +++ b/setup/windows/openerp-icon.ico diff --git a/setup/windows/openerp-icon.png b/setup/windows/openerp-icon.png Binary files differnew file mode 100644 index 00000000000..9057d12d51e --- /dev/null +++ b/setup/windows/openerp-icon.png diff --git a/setup/windows/openerp-intro.bmp b/setup/windows/openerp-intro.bmp Binary files differnew file mode 100644 index 00000000000..a7e21abaa7b --- /dev/null +++ b/setup/windows/openerp-intro.bmp diff --git a/setup/windows/openerp-slogan.bmp b/setup/windows/openerp-slogan.bmp Binary files differnew file mode 100644 index 00000000000..a3cffd104f2 --- /dev/null +++ b/setup/windows/openerp-slogan.bmp diff --git a/setup/windows/openerp.ico b/setup/windows/openerp.ico Binary files differnew file mode 100644 index 00000000000..cde3e961e79 --- /dev/null +++ b/setup/windows/openerp.ico diff --git a/setup/windows/openerp.png b/setup/windows/openerp.png Binary files differnew file mode 100644 index 00000000000..20da496413b --- /dev/null +++ b/setup/windows/openerp.png diff --git a/setup/windows/setup.nsi b/setup/windows/setup.nsi new file mode 100644 index 00000000000..859ebdb39e2 --- /dev/null +++ b/setup/windows/setup.nsi @@ -0,0 +1,379 @@ +#####################################################################################
+#
+# Copyright (c) 2004-TODAY OpenERP S.A. (http://www.openerp.com) All Rights Reserved.
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 3
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#####################################################################################
+
+!include 'MUI2.nsh'
+!include 'FileFunc.nsh'
+!include 'LogicLib.nsh'
+!include 'Sections.nsh'
+
+!define PUBLISHER 'OpenERP S.A.'
+
+!ifndef VERSION
+ !define VERSION '0'
+!endif
+#!define VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${REVISION_VERSION}"
+
+!define PRODUCT_NAME "OpenERP Server"
+!define DISPLAY_NAME "${PRODUCT_NAME} ${VERSION}"
+
+!define UNINSTALL_REGISTRY_ROOT HKLM
+!define UNINSTALL_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${DISPLAY_NAME}"
+
+!define REGISTRY_KEY "Software\${DISPLAY_NAME}"
+
+!define DEFAULT_POSTGRESQL_HOSTNAME 'localhost'
+!define DEFAULT_POSTGRESQL_PORT 5432
+!define DEFAULT_POSTGRESQL_USERNAME 'openpg'
+!define DEFAULT_POSTGRESQL_PASSWORD 'openpgpwd'
+
+Name '${DISPLAY_NAME}'
+Caption "${PRODUCT_NAME} ${VERSION} Setup"
+OutFile "openerp-server-setup-${VERSION}.exe"
+SetCompressor /final /solid lzma
+SetCompress auto
+ShowInstDetails show
+
+XPStyle on
+
+InstallDir "$PROGRAMFILES\OpenERP ${VERSION}"
+InstallDirRegKey HKCU "${REGISTRY_KEY}" ""
+
+BrandingText '${PRODUCT_NAME} ${VERSION}'
+
+RequestExecutionLevel admin
+
+#VIAddVersionKey "ProductName" "${PRODUCT_NAME}"
+#VIAddVersionKey "CompanyName" "${PUBLISHER}"
+#VIAddVersionKey "FileDescription" "Installer of ${DISPLAY_NAME}"
+#VIAddVersionKey "LegalCopyright" "${PUBLISHER}"
+#VIAddVersionKey "LegalTrademark" "OpenERP is a trademark of ${PUBLISHER}"
+#VIAddVersionKey "FileVersion" "${MAJOR_VERSION}.${MINOR_VERSION}.${REVISION_VERSION}"
+#VIProductVersion "${MAJOR_VERSION}.${MINOR_VERSION}.${REVISION_VERSION}"
+
+!insertmacro GetParameters
+!insertmacro GetOptions
+
+Var Option_AllInOne
+Var HasPostgreSQL
+Var cmdLineParams
+
+Var TextPostgreSQLHostname
+Var TextPostgreSQLPort
+Var TextPostgreSQLUsername
+Var TextPostgreSQLPassword
+
+Var HWNDPostgreSQLHostname
+Var HWNDPostgreSQLPort
+Var HWNDPostgreSQLUsername
+Var HWNDPostgreSQLPassword
+
+Var MUI_TEMP
+Var STARTMENU_FOLDER
+
+!define MUI_ABORTWARNING
+!define MUI_ICON ".\install\openerp-icon.ico"
+
+!define MUI_WELCOMEFINISHPAGE_BITMAP ".\install\openerp-intro.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP ".\install\openerp-intro.bmp"
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP ".\install\openerp-slogan.bmp"
+!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
+!define MUI_HEADER_TRANSPARENT_TEXT ""
+
+!insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_LICENSE ".\LICENSE"
+!define MUI_COMPONENTSPAGE_SMALLDESC
+!insertmacro MUI_PAGE_DIRECTORY
+Page Custom ShowPostgreSQL LeavePostgreSQL
+
+!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
+!define MUI_STARTMENUPAGE_REGISTRY_KEY "${REGISTRY_KEY}"
+!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${DISPLAY_NAME}"
+
+!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
+!insertmacro MUI_PAGE_INSTFILES
+
+!define MUI_FINISHPAGE_NOAUTOCLOSE
+!define MUI_FINISHPAGE_LINK $(DESC_FinishPage_Link)
+!define MUI_FINISHPAGE_LINK_LOCATION "http://www.openerp.com/contact"
+!insertmacro MUI_PAGE_FINISH
+
+!insertmacro MUI_UNPAGE_WELCOME
+!insertmacro MUI_UNPAGE_CONFIRM
+!insertmacro MUI_UNPAGE_INSTFILES
+!insertmacro MUI_UNPAGE_FINISH
+
+!insertmacro MUI_LANGUAGE "English"
+!insertmacro MUI_LANGUAGE "French"
+!insertmacro MUI_RESERVEFILE_LANGDLL
+
+!macro CreateInternetShortcut FILENAME URL
+ WriteINIStr "${FILENAME}.url" "InternetShortcut" "URL" "${URL}"
+!macroend
+
+; English
+LangString DESC_FinishPage_Link ${LANG_ENGLISH} "Contact OpenERP for Partnership and/or Support"
+LangString WARNING_HostNameIsEmpty ${LANG_ENGLISH} "The hostname for the connection to the PostgreSQL Server is empty"
+LangString WARNING_UserNameIsEmpty ${LANG_ENGLISH} "The username for the connection to the PostgreSQL Server is empty"
+LangString WARNING_PasswordIsEmpty ${LANG_ENGLISH} "The password for the connection to the PostgreSQL Server is empty"
+LangString WARNING_PortIsWrong ${LANG_ENGLISH} "The port for the connexion to the PostgreSQL Server is wrong (default: 5432)"
+LangString DESC_PostgreSQLPage ${LANG_ENGLISH} "Configure the information for the PostgreSQL connection"
+LangString DESC_PostgreSQL_Hostname ${LANG_ENGLISH} "Hostname"
+LangString DESC_PostgreSQL_Port ${LANG_ENGLISH} "Port"
+LangString DESC_PostgreSQL_Username ${LANG_ENGLISH} "Username"
+LangString DESC_PostgreSQL_Password ${LANG_ENGLISH} "Password"
+
+
+; French
+LangString DESC_FinishPage_Link ${LANG_FRENCH} "Contactez OpenERP pour un Partenariat et/ou du Support"
+LangString WARNING_HostNameIsEmpty ${LANG_FRENCH} "L'adresse pour la connection au serveur PostgreSQL est vide"
+LangString WARNING_UserNameIsEmpty ${LANG_FRENCH} "Le nom d'utilisateur pour la connection au serveur PostgreSQL est vide"
+LangString WARNING_PasswordIsEmpty ${LANG_FRENCH} "Le mot de passe pour la connection au serveur PostgreSQL est vide"
+LangString WARNING_PortIsWrong ${LANG_FRENCH} "Le port pour la connection au serveur PostgreSQL est erron? (d?faut: 5432)"
+LangString DESC_PostgreSQLPage ${LANG_FRENCH} "Configurez les informations de connection pour le serveur PostgreSQL"
+LangString DESC_PostgreSQL_Hostname ${LANG_FRENCH} "H?te"
+LangString DESC_PostgreSQL_Port ${LANG_FRENCH} "Port"
+LangString DESC_PostgreSQL_Username ${LANG_FRENCH} "Utilisateur"
+LangString DESC_PostgreSQL_Password ${LANG_FRENCH} "Mot de passe"
+
+Section -StopService
+ nsExec::Exec "net stop openerp-server-7.0"
+ sleep 2
+SectionEnd
+
+Section OpenERP_Server SectionOpenERP_Server
+ SetOutPath '$INSTDIR\server'
+
+ File /r "dist\*"
+ File /r "win32\wkhtmltopdf\*"
+
+ SetOutPath "$INSTDIR\service"
+ File /r "win32\dist\*"
+ File "win32\start.bat"
+ File "win32\stop.bat"
+
+ !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
+ ;Create shortcuts
+ CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
+ !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP" "http://localhost:8069/"
+ !insertmacro MUI_STARTMENU_WRITE_END
+
+
+ FileOpen $9 '$INSTDIR\install.log' w
+ FileWrite $9 "INSTDIR $INSTDIR$\r$\n"
+ FileWrite $9 "Hostname $TextPostgreSQLHostname$\r$\n"
+ FileWrite $9 "Port $TextPostgreSQLPort$\r$\n"
+ FileWrite $9 "Username $TextPostgreSQLUsername$\r$\n"
+ FileWrite $9 "Password $TextPostgreSQLPassword$\r$\n"
+ FileClose $9
+
+# If there is a previous install of the OpenERP Server, keep the login/password from the config file
+ WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_host" $TextPostgreSQLHostname
+ WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_user" $TextPostgreSQLUsername
+ WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_password" $TextPostgreSQLPassword
+ WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_port" $TextPostgreSQLPort
+ WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "pg_path" "$INSTDIR\PostgreSQL\bin"
+
+ nsExec::Exec '"$INSTDIR\server\openerp-server.exe" --stop-after-init --logfile "$INSTDIR\server\openerp-server.log" -s'
+ nsExec::Exec '"$INSTDIR\service\OpenERPServerService.exe" -auto -install'
+SectionEnd
+
+Section -RestartServer
+ nsExec::Exec "net start openerp-server-7.0"
+ sleep 2
+SectionEnd
+
+Section -Post
+ WriteRegExpandStr HKLM "${UNINSTALL_REGISTRY_KEY}" "UninstallString" "$INSTDIR\server\Uninstall.exe"
+ WriteRegExpandStr HKLM "${UNINSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "DisplayName" "${DISPLAY_NAME}"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "DisplayVersion" "${VERSION}"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Publisher" "${PUBLISHER}"
+; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "Version" "${VERSION}"
+; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMajor" "${MAJOR_VERSION}.${MINOR_VERSION}"
+; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMinor" "${REVISION_VERSION}"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com"
+ WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com"
+ WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoModify" "1"
+ WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoRepair" "1"
+ WriteUninstaller "$INSTDIR\server\Uninstall.exe"
+SectionEnd
+
+Section "Uninstall"
+ ; Stop the NT Service
+ nsExec::Exec "net stop openerp-server-7.0"
+ sleep 2
+
+ ; Uninstall the OpenERP Service
+ nsExec::Exec '"$INSTDIR\..\service\OpenERPServerService.exe" -remove'
+ sleep 2
+
+ Rmdir /r "$INSTDIR\service"
+ Rmdir /r "$INSTDIR\server"
+
+ !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
+
+ Delete "$SMPROGRAMS\$MUI_TEMP\OpenERP.url"
+ ;
+ ;Delete empty start menu parent diretories
+ StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
+
+ startMenuDeleteLoop:
+ ClearErrors
+ RMDir $MUI_TEMP
+ GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
+
+ IfErrors startMenuDeleteLoopDone
+
+ StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
+
+ startMenuDeleteLoopDone:
+
+ ; Clean the Registry
+ DeleteRegKey HKLM "${UNINSTALL_REGISTRY_KEY}"
+SectionEnd
+
+Function .onInit
+ Push $R0
+
+ ${GetParameters} $cmdLineParams
+ ClearErrors
+
+ Pop $R0
+
+ StrCpy $Option_AllInOne 0
+ StrCpy $HasPostgreSQL 0
+
+ StrCpy $TextPostgreSQLHostname ${DEFAULT_POSTGRESQL_HOSTNAME}
+ StrCpy $TextPostgreSQLPort ${DEFAULT_POSTGRESQL_PORT}
+ StrCpy $TextPostgreSQLUsername ${DEFAULT_POSTGRESQL_USERNAME}
+ StrCpy $TextPostgreSQLPassword ${DEFAULT_POSTGRESQL_PASSWORD}
+
+ Push $R0
+ ${GetOptions} $cmdLineParams '/allinone' $R0
+ IfErrors +2 0
+ StrCpy $Option_AllInOne 1
+ Pop $R0
+
+ StrCmp $Option_AllInOne 1 AllInOneMode
+ StrCmp $Option_AllInOne 0 NoAllInOneMode
+
+ AllInOneMode:
+ MessageBox MB_OK|MB_ICONINFORMATION "All In One"
+
+ NoAllInOneMode:
+
+ !insertmacro MUI_LANGDLL_DISPLAY
+
+ ClearErrors
+ EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL\Installations" 0
+ IfErrors DoInstallPostgreSQL 0
+ StrCmp $0 "" DoInstallPostgreSQL
+ StrCpy $HasPostgreSQL 1
+
+ DoInstallPostgreSQL:
+FunctionEnd
+
+Function PostgreSQLOnBack
+FunctionEnd
+
+Function ShowPostgreSQL
+ SectionGetFlags ${SectionOpenERP_Server} $0
+ IntOp $0 $0 & ${SF_SELECTED}
+ IntCmp $0 ${SF_SELECTED} LaunchPostgreSQLConfiguration
+ Abort
+ LaunchPostgreSQLConfiguration:
+
+ nsDialogs::Create /NOUNLOAD 1018
+ Pop $0
+
+ ${If} $0 == error
+ Abort
+ ${EndIf}
+
+ GetFunctionAddress $0 PostgreSQLOnBack
+ nsDialogs::OnBack $0
+
+ ${NSD_CreateLabel} 0 0 100% 10u $(DESC_PostgreSQLPage)
+ Pop $0
+
+ ${NSD_CreateLabel} 0 45 60u 12u $(DESC_PostgreSQL_Hostname)
+ Pop $0
+ ${NSD_CreateText} 100 45 150u 12u $TextPostgreSQLHostname
+ Pop $HWNDPostgreSQLHostname
+
+ ${NSD_CreateLabel} 0 75 60u 12u $(DESC_PostgreSQL_Port)
+ Pop $0
+ ${NSD_CreateNumber} 100 75 150u 12u $TextPostgreSQLPort
+ Pop $HWNDPostgreSQLPort
+ ${NSD_CreateLabel} 0 105 60u 12u $(DESC_PostgreSQL_Username)
+ Pop $0
+ ${NSD_CreateText} 100 105 150u 12u $TextPostgreSQLUsername
+ Pop $HWNDPostgreSQLUsername
+ ${NSD_CreateLabel} 0 135 60u 12u $(DESC_PostgreSQL_Password)
+ Pop $0
+ ${NSD_CreateText} 100 135 150u 12u $TextPostgreSQLPassword
+ Pop $HWNDPostgreSQLPassword
+
+ nsDialogs::Show
+FunctionEnd
+
+Function LeavePostgreSQL
+ # Before to leave the PostgreSQL configuration screen, we check the values
+ # from the inputs, to be sure we have the right values
+
+ ${NSD_GetText} $HWNDPostgreSQLHostname $TextPostgreSQLHostname
+ ${NSD_GetText} $HWNDPostgreSQLPort $TextPostgreSQLPort
+ ${NSD_GetText} $HWNDPostgreSQLUsername $TextPostgreSQLUsername
+ ${NSD_GetText} $HWNDPostgreSQLPassword $TextPostgreSQLPassword
+
+ StrLen $1 $TextPostgreSQLHostname
+ ${If} $1 == 0
+ MessageBox MB_ICONEXCLAMATION|MB_OK $(WARNING_HostNameIsEmpty)
+ Abort
+ ${EndIf}
+
+ ${If} $TextPostgreSQLPort <= 0
+ ${OrIf} $TextPostgreSQLPort > 65535
+ MessageBox MB_ICONEXCLAMATION|MB_OK $(WARNING_PortIsWrong)
+ Abort
+ ${EndIf}
+
+ StrLen $1 $TextPostgreSQLUsername
+ ${If} $1 == 0
+ MessageBox MB_ICONEXCLAMATION|MB_OK $(WARNING_UserNameIsEmpty)
+ Abort
+ ${EndIf}
+
+ StrLen $1 $TextPostgreSQLPassword
+ ${If} $1 == 0
+ MessageBox MB_ICONEXCLAMATION|MB_OK $(WARNING_PasswordIsEmpty)
+ Abort
+ ${EndIf}
+FunctionEnd
+
diff --git a/setup/windows/win32/OpenERPServerService.py b/setup/windows/win32/OpenERPServerService.py new file mode 100644 index 00000000000..8b3c117c03d --- /dev/null +++ b/setup/windows/win32/OpenERPServerService.py @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +import win32serviceutil +import win32service +import win32api +import win32process +import servicemanager + +import sys +import subprocess +import os + +try: + import meta +except ImportError: + if hasattr(sys, 'frozen'): + raise + from setup import generate_files + generate_files() + import meta # noqa + +class OpenERPServerService(win32serviceutil.ServiceFramework): + # required info + _svc_name_ = meta.nt_service_name + _svc_display_name_ = "%s %s" % (meta.description, meta.serie) + + def __init__(self, args): + win32serviceutil.ServiceFramework.__init__(self, args) + # a reference to the server's process + self.terpprocess = None + + def SvcStop(self): + # Before we do anything, tell the SCM we are starting the stop process. + self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING) + # stop the running OpenERP Server: say it's a normal exit + win32api.TerminateProcess(int(self.terpprocess._handle), 0) + servicemanager.LogInfoMsg("OpenERP Server stopped correctly") + + def StartTERP(self): + # The server finds now its configuration automatically on Windows + # We start the ERP Server as an independent process, but we keep its handle + # The server's binary must be one directory above the service's binary (when py2exe'd the python libraries shouldn' mix) + service_dir = os.path.dirname(sys.argv[0]) + server_dir = os.path.split(service_dir)[0] + server_path = os.path.join(server_dir, 'server', 'openerp-server.exe') + self.terpprocess = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW) + + def SvcDoRun(self): + self.StartTERP() + servicemanager.LogInfoMsg("OpenERP Server up and running") + # exit with same exit code as OpenERP process + sys.exit(self.terpprocess.wait()) + + +def option_handler(opts): + # configure the service to auto restart on failures... + subprocess.call(['sc', 'failure', meta.nt_service_name, 'reset=', '0', 'actions=', 'restart/0/restart/0/restart/0']) + +if __name__ == '__main__': + # Do with the service whatever option is passed in the command line + win32serviceutil.HandleCommandLine(OpenERPServerService, customOptionHandler=option_handler) + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/setup/windows/win32/setup.py b/setup/windows/win32/setup.py new file mode 100644 index 00000000000..b0b36b5c6b4 --- /dev/null +++ b/setup/windows/win32/setup.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + +import os +import glob +from distutils.core import setup +import py2exe + + +meta = {} +execfile(os.path.join(os.path.dirname(__file__), '..', 'openerp', 'release.py'), meta) + +def generate_files(): + actions = { + 'start': ['stop', 'start'], + 'stop': ['stop'], + } + + files = [] + if os.name == 'nt': + files.append(("Microsoft.VC90.CRT", glob.glob('C:\Microsoft.VC90.CRT\*.*'))) + for action, steps in actions.items(): + fname = action + '.bat' + files.append(fname) + with open(fname, 'w') as fp: + fp.write('@PATH=%WINDIR%\system32;%WINDIR%;%WINDIR%\System32\Wbem;.\n') + for step in steps: + fp.write('@net %s %s\n' % (step, meta['nt_service_name'])) + + files.append('meta.py') + with open('meta.py', 'w') as fp: + for m in 'description serie nt_service_name'.split(): + fp.write("%s = %r\n" % (m, meta[m],)) + + return files + +excludes = "Tkconstants Tkinter tcl _imagingtk PIL._imagingtk ImageTk PIL.ImageTk FixTk".split() + +setup(service = ["OpenERPServerService"], + version = meta['version'], + license = meta['license'], + url = meta['url'], + author = meta['author'], + author_email = meta['author_email'], + data_files = generate_files(), + options = {"py2exe": { + "excludes": excludes, + "skip_archive": 1, + "optimize": 2, + }}, + ) + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
