From ed84546d502d254b73397b60fca7300f83feaaa9 Mon Sep 17 00:00:00 2001 From: Flectra Date: Wed, 17 Jan 2018 04:08:43 -0800 Subject: [PATCH] [FIX] debian build --- debian/changelog | 552 +---------------------------------------- debian/control | 22 +- debian/copyright | 12 +- debian/flectra.conf | 4 +- debian/flectra.service | 8 +- debian/init | 16 +- debian/install | 4 +- debian/logrotate | 2 +- debian/postinst | 30 +-- debian/postrm | 18 +- debian/rules | 2 +- 11 files changed, 61 insertions(+), 609 deletions(-) diff --git a/debian/changelog b/debian/changelog index c84bc33e..e4221617 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,551 +1,5 @@ -odoo (8.0.0) stable; urgency=low +flectra (1.0.0) alpha; urgency=low - * Renamed package + * Forked From Odoo - -- Simon Lejeune Wed, 17 Sep 2014 15:40:00 +0100 - -openerp (8.0.0~rc1-0) testing; urgency=low - - * Refactored packaging - - -- Simon Lejeune Wed, 23 Jul 2014 14:59:00 +0100 - -openerp (6.1-1) testing; urgency=low - - * New major version, new packaging. - - -- Antony Lesuisse 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 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 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 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 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 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 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 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 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 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 - to prevents creating a new database if the locale is not a UTF-8 one - (Closes: #584976). - - -- Daniel Baumann 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 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 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 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 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 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 to fix SQL for - postgresql 8.4 (Closes: #568119). - - -- Daniel Baumann 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 Sat, 31 Oct 2009 09:20:27 +0100 - -openerp-server (5.0.6-2) unstable; urgency=low - - * Minimizing rules file. - - -- Daniel Baumann 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 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 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 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 (Closes: - #543947). - - -- Daniel Baumann 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 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 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 - 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. - * 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. - * 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 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 - . - * Fixed wrapping in README.Debian. - - -- Daniel Baumann 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 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 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 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 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 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 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 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 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 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 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 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 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 to fix sql syntax in - migrate script (Closes: #467517). - - -- Daniel Baumann 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 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 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 Sat, 12 Jan 2008 15:20:00 +0100 - -tinyerp-server (4.2.0-1) unstable; urgency=medium - - * New upstream release. - - -- Daniel Baumann 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 to fix exception - raised when address is already in use. - - -- Daniel Baumann 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 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 . - * Added lsb header to init script. - - -- Daniel Baumann 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 Wed, 28 Mar 2007 21:48:00 +0100 - -tinyerp-server (4.0.2-2) unstable; urgency=low - - * Setting maintainer to Jean-Marc. - - -- Daniel Baumann 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 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 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 Tue, 05 Dec 2006 17:43:00 +0100 - -tinyerp-server (4.0.0~rc1-2) unstable; urgency=low - - * Cleaned up build-depends. - - -- Daniel Baumann Tue, 05 Dec 2006 13:19:00 +0100 - -tinyerp-server (4.0.0~rc1-1) unstable; urgency=low - - * New upstream release. - - -- Daniel Baumann Tue, 05 Dec 2006 12:57:00 +0100 - -tinyerp-server (3.5.0-1) experimental; urgency=low - - * New upstream release. - - -- Daniel Baumann 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 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 Sun, 04 Jun 2006 00:50:00 +0100 - -tinyerp-server (3.2.1-1) unstable; urgency=low - - * New upstream release. - - -- Daniel Baumann 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 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 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 Sun, 16 Oct 2005 13:35:00 +0200 \ No newline at end of file + -- Flectra Fri, 06 Oct 2017 15:30:00 +0530 diff --git a/debian/control b/debian/control index eb671d05..64b9100e 100644 --- a/debian/control +++ b/debian/control @@ -1,14 +1,14 @@ -Source: odoo +Source: flectra Section: net Priority: optional -Maintainer: Odoo S.A. -Uploaders: Aaron Bohy , Simon Lejeune +Maintainer: FlectraHQ +Uploaders: FlectraHQ Build-Depends: debhelper (>= 9.2), dh-python, python3, rsync, python3-setuptools Standards-Version: 3.9.8 -Homepage: http://www.odoo.com/ -Vcs-Git: https://github.com/odoo/odoo +Homepage: https://flectrahq.com/ +Vcs-Git: https://github.com/flectra/flectra -Package: odoo +Package: flectra Architecture: all Depends: ${misc:Depends}, @@ -51,12 +51,10 @@ Recommends: python3-qrcode, python3-vobject, Description: Open Source Apps To Grow Your Business - Odoo, formerly known as OpenERP, is a suite of open-source business apps + Flectra, is a suite of open-source business apps written in Python and released under the LGPLv3 license. This suite of applications covers all business needs, from Website/Ecommerce down to - manufacturing, inventory and accounting, all seamlessly integrated. Odoo's + manufacturing, inventory and accounting, all seamlessly integrated. Flectra's technical features include a distributed server, flexible workflows, an object - database, a dynamic GUI, customizable reports, and an XML-RPC interface. Odoo - is the most installed business software in the world. It is used by 2.000.000 - users worldwide ranging from very small companies (1 user) to very large ones - (300 000 users). + database, a dynamic GUI, customizable reports, and an XML-RPC interface. Flectra + is the most installed business software in the world. diff --git a/debian/copyright b/debian/copyright index 8c495fad..fe62842f 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,16 +1,16 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Contact: Odoo +Upstream-Contact: FlectraHQ Files: * -Copyright: Copyright (C) 2004-2015 Odoo SA. (www.odoo.com) +Copyright: Copyright (C) 2004-2015 FlectraHQ (flectrahq.com) License: LGPL-3+ -Files: odoo/tools/appdirs.py +Files: flectra/tools/appdirs.py Copyright: Copyright (c) 2005-2010 ActiveState Software Inc Copyright (c) 2013 Eddy Petrișor License: MIT -Files: odoo/tools/lru.py +Files: flectra/tools/lru.py Copyright: Copyright 2003 Josiah Carlson License: PSF Comment: Was published by the author without license info on activestate but @@ -26,7 +26,7 @@ Files: addons/web/static/lib/jquery.ui/* Copyright: Copyright jQuery Foundation and other contributors License: MIT -Files: addons/web/static/lib/bootstrap/* doc/_extensions/odoo_ext/static/style.css doc/_extensions/odoo_ext/static/bootstrap.js +Files: addons/web/static/lib/bootstrap/* doc/_extensions/flectra_ext/static/style.css doc/_extensions/flectra_ext/static/bootstrap.js Copyright: Copyright (c) 2011-2015 Twitter, Inc License: MIT @@ -161,7 +161,7 @@ Files: addons/web_editor/static/lib/summernote/* Copyright: Copyright 2013-2015 Alan Hong. and other contributors License: MIT -Files: addons/website/static/src/js/website.zoomodoo.js +Files: addons/website/static/src/js/website.zoomflectra.js Copyright: Copyright 2013 Matt Hinchliffe 2016 Jeremy Kersten License: MIT diff --git a/debian/flectra.conf b/debian/flectra.conf index c85f5980..555afaeb 100644 --- a/debian/flectra.conf +++ b/debian/flectra.conf @@ -3,6 +3,6 @@ ; admin_passwd = admin db_host = False db_port = False -db_user = odoo +db_user = flectra db_password = False -;addons_path = /usr/lib/python3/dist-packages/odoo/addons +;addons_path = /usr/lib/python3/dist-packages/flectra/addons diff --git a/debian/flectra.service b/debian/flectra.service index 9654ce1c..6068a3d8 100644 --- a/debian/flectra.service +++ b/debian/flectra.service @@ -1,12 +1,12 @@ [Unit] -Description=Odoo Open Source ERP and CRM +Description=Flectra Open Source ERP and CRM After=network.target [Service] Type=simple -User=odoo -Group=odoo -ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log +User=flectra +Group=flectra +ExecStart=/usr/bin/flectra --config /etc/flectra/flectra.conf --logfile /var/log/flectra/flectra-server.log KillMode=mixed [Install] diff --git a/debian/init b/debian/init index a5dc4af7..57af3aca 100644 --- a/debian/init +++ b/debian/init @@ -1,11 +1,11 @@ #!/bin/bash ### BEGIN INIT INFO -# Provides: odoo +# Provides: flectra # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: Start odoo daemon at boot time +# Short-Description: Start flectra daemon at boot time # Description: Enable service provided by daemon. # X-Interactive: true ### END INIT INFO @@ -14,13 +14,13 @@ . /lib/lsb/init-functions PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin -DAEMON=/usr/bin/odoo -NAME=odoo -DESC=odoo -CONFIG=/etc/odoo/odoo.conf -LOGFILE=/var/log/odoo/odoo-server.log +DAEMON=/usr/bin/flectra +NAME=flectra +DESC=flectra +CONFIG=/etc/flectra/flectra.conf +LOGFILE=/var/log/flectra/flectra-server.log PIDFILE=/var/run/${NAME}.pid -USER=odoo +USER=flectra export LOGNAME=$USER test -x $DAEMON || exit 0 diff --git a/debian/install b/debian/install index cd55a16c..55f0ce98 100644 --- a/debian/install +++ b/debian/install @@ -1,2 +1,2 @@ -debian/odoo.conf /etc/odoo -README.md /usr/share/doc/odoo +debian/flectra.conf /etc/flectra +README.md /usr/share/doc/flectra diff --git a/debian/logrotate b/debian/logrotate index 060ec54d..c36d7423 100644 --- a/debian/logrotate +++ b/debian/logrotate @@ -1,4 +1,4 @@ -/var/log/odoo/*.log { +/var/log/flectra/*.log { copytruncate missingok notifempty diff --git a/debian/postinst b/debian/postinst index 342fa4e1..5f5e13a0 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,28 +2,28 @@ set -e -ODOO_CONFIGURATION_FILE=/etc/odoo/odoo.conf -ODOO_GROUP="odoo" -ODOO_DATA_DIR=/var/lib/odoo -ODOO_LOG_DIR=/var/log/odoo -ODOO_USER="odoo" +FLECTRA_CONFIGURATION_FILE=/etc/flectra/flectra.conf +FLECTRA_GROUP="flectra" +FLECTRA_DATA_DIR=/var/lib/flectra +FLECTRA_LOG_DIR=/var/log/flectra +FLECTRA_USER="flectra" case "${1}" in configure) - if ! getent passwd | grep -q "^odoo:"; then - adduser --system --home $ODOO_DATA_DIR --quiet --group $ODOO_USER + if ! getent passwd | grep -q "^flectra:"; then + adduser --system --home $FLECTRA_DATA_DIR --quiet --group $FLECTRA_USER fi - # Register "$ODOO_USER" as a postgres user with "Create DB" role attribute - su - postgres -c "createuser -d -R -S $ODOO_USER" 2> /dev/null || true + # Register "$FLECTRA_USER" as a postgres user with "Create DB" role attribute + su - postgres -c "createuser -d -R -S $FLECTRA_USER" 2> /dev/null || true # Configuration file - chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE - chmod 0640 $ODOO_CONFIGURATION_FILE + chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_CONFIGURATION_FILE + chmod 0640 $FLECTRA_CONFIGURATION_FILE # Log - mkdir -p $ODOO_LOG_DIR - chown $ODOO_USER:$ODOO_GROUP $ODOO_LOG_DIR - chmod 0750 $ODOO_LOG_DIR + mkdir -p $FLECTRA_LOG_DIR + chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_LOG_DIR + chmod 0750 $FLECTRA_LOG_DIR # Data dir - chown $ODOO_USER:$ODOO_GROUP $ODOO_DATA_DIR + chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_DATA_DIR ;; *) ;; diff --git a/debian/postrm b/debian/postrm index 22f72112..ad209d46 100644 --- a/debian/postrm +++ b/debian/postrm @@ -2,22 +2,22 @@ set -e -ODOO_LIB_DIR=/var/lib/odoo -ODOO_USER="odoo" -ODOO_GROUP="odoo" +FLECTRA_LIB_DIR=/var/lib/flectra +FLECTRA_USER="flectra" +FLECTRA_GROUP="flectra" case "${1}" in remove) - deluser --quiet --system $ODOO_USER || true - delgroup --quiet --system --only-if-empty $ODOO_GROUP || true - if [ -d "$ODOO_LIB_DIR" ]; then - rm -rf $ODOO_LIB_DIR + deluser --quiet --system $FLECTRA_USER || true + delgroup --quiet --system --only-if-empty $FLECTRA_GROUP || true + if [ -d "$FLECTRA_LIB_DIR" ]; then + rm -rf $FLECTRA_LIB_DIR fi ;; purge) - if [ -d "$ODOO_LIB_DIR" ]; then - rm -rf $ODOO_LIB_DIR + if [ -d "$FLECTRA_LIB_DIR" ]; then + rm -rf $FLECTRA_LIB_DIR fi ;; diff --git a/debian/rules b/debian/rules index 1eea0e7a..22afbf1f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,6 @@ #!/usr/bin/make -f export DH_VERBOSE=1 -export PYBUILD_NAME=odoo-bin +export PYBUILD_NAME=flectra-bin export PYBUILD_DISABLE=test %: