[FIX] Debian: updated informations and dependencies, refactored debhelpers scripts to allow easy name change, simplified debhelper rules
This commit is contained in:
parent
2cf4051a15
commit
f668f9c6cd
|
@ -1,3 +1,9 @@
|
||||||
|
openerp (8.0.0~rc1-0) testing; urgency=low
|
||||||
|
|
||||||
|
* Refactored packaging
|
||||||
|
|
||||||
|
-- Simon Lejeune <sle@odoo.com> Wed, 23 Jul 2014 14:59:00 +0100
|
||||||
|
|
||||||
openerp (6.1-1) testing; urgency=low
|
openerp (6.1-1) testing; urgency=low
|
||||||
|
|
||||||
* New major version, new packaging.
|
* New major version, new packaging.
|
||||||
|
@ -536,4 +542,4 @@ tinyerp-server (3.1.1+debian-1) unstable; urgency=low
|
||||||
* Rebuild orig.tar.gz to remove unnecessary files in upstreams debian/.
|
* Rebuild orig.tar.gz to remove unnecessary files in upstreams debian/.
|
||||||
* Added changelog from website.
|
* Added changelog from website.
|
||||||
|
|
||||||
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 16 Oct 2005 13:35:00 +0200
|
-- Daniel Baumann <daniel.baumann@panthera-systems.net> Sun, 16 Oct 2005 13:35:00 +0200
|
|
@ -1 +1 @@
|
||||||
7
|
9
|
|
@ -1,11 +1,11 @@
|
||||||
Source: openerp
|
Source: openerp
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: OpenERP SA <al@openerp.com>
|
Maintainer: Odoo SA <sle@odoo.com>
|
||||||
Build-Depends: debhelper (>= 7.0.50~), python, rsync
|
Build-Depends: debhelper (>= 9.0), python, rsync
|
||||||
Standards-Version: 3.9.1
|
Standards-Version: 3.9.5.0
|
||||||
Homepage: http://www.openerp.com/
|
Homepage: http://www.odoo.com/
|
||||||
Vcs-Bzr: https://launchpad.net/openobject
|
Vcs-Git: https://github.com/odoo/odoo
|
||||||
|
|
||||||
Package: openerp
|
Package: openerp
|
||||||
Section: net
|
Section: net
|
||||||
|
@ -13,13 +13,12 @@ Architecture: all
|
||||||
Depends:
|
Depends:
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
adduser,
|
adduser,
|
||||||
python,
|
|
||||||
postgresql-client,
|
postgresql-client,
|
||||||
|
python,
|
||||||
python-dateutil,
|
python-dateutil,
|
||||||
python-decorator,
|
python-decorator,
|
||||||
python-docutils,
|
python-docutils,
|
||||||
python-feedparser,
|
python-feedparser,
|
||||||
python-gdata,
|
|
||||||
python-imaging,
|
python-imaging,
|
||||||
python-jinja2,
|
python-jinja2,
|
||||||
python-ldap,
|
python-ldap,
|
||||||
|
@ -43,11 +42,9 @@ Depends:
|
||||||
python-unittest2,
|
python-unittest2,
|
||||||
python-vatnumber,
|
python-vatnumber,
|
||||||
python-vobject,
|
python-vobject,
|
||||||
python-webdav,
|
|
||||||
python-werkzeug,
|
python-werkzeug,
|
||||||
python-xlwt,
|
python-xlwt,
|
||||||
python-yaml,
|
python-yaml,
|
||||||
python-zsi
|
|
||||||
Conflicts: tinyerp-server, openerp-server, openerp-web
|
Conflicts: tinyerp-server, openerp-server, openerp-web
|
||||||
Replaces: tinyerp-server, openerp-server, openerp-web
|
Replaces: tinyerp-server, openerp-server, openerp-web
|
||||||
Recommends:
|
Recommends:
|
||||||
|
@ -64,4 +61,3 @@ Description: OpenERP Enterprise Resource Management
|
||||||
etc. Technical features include a distributed server, flexible workflows, an
|
etc. Technical features include a distributed server, flexible workflows, an
|
||||||
object database, a dynamic GUI, customizable reports, and an XML-RPC
|
object database, a dynamic GUI, customizable reports, and an XML-RPC
|
||||||
interface.
|
interface.
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,21 @@
|
||||||
Upstream-Contact: OpenERP <info@openerp.com>
|
Upstream-Contact: OpenERP <info@odoo.com>
|
||||||
Upstream-Homepage: http://www.openerp.com/
|
Upstream-Homepage: http://www.odoo.com/
|
||||||
Maintainer-Contact: Debian OpenERP Maintainers <gnunet@lists.debian-maintainers.org>
|
Maintainer-Contact: Debian OpenERP Maintainers <gnunet@lists.debian-maintainers.org>
|
||||||
Maintainer-Homepage: http://www.odoo.com/
|
Maintainer-Homepage: http://www.odoo.com/
|
||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
Copyright: (C) 2004-2011 OpenERP SA. (www.openerp.com)
|
Copyright: (C) 2004-2014 OpenERP SA. (www.openerp.com)
|
||||||
License: GPL-3+
|
License: AGPL-3+
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
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
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
.
|
.
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU Affero General Public License for more details.
|
||||||
.
|
.
|
||||||
You should have received a copy of the GNU General Public License
|
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/>.
|
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.
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# Description: Open ERP is a complete ERP and CRM software.
|
# Description: Open ERP is a complete ERP and CRM software.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
||||||
DAEMON=/usr/bin/openerp-server
|
DAEMON=/usr/bin/openerp-server
|
||||||
NAME=openerp-server
|
NAME=openerp-server
|
||||||
DESC=openerp-server
|
DESC=openerp-server
|
||||||
|
|
|
@ -5,3 +5,4 @@ db_host = False
|
||||||
db_port = False
|
db_port = False
|
||||||
db_user = openerp
|
db_user = openerp
|
||||||
db_password = False
|
db_password = False
|
||||||
|
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons
|
|
@ -2,24 +2,31 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
ODOO_CONFIGURATION_FILE=/etc/openerp/openerp-server.conf
|
||||||
|
ODOO_GROUP="openerp"
|
||||||
|
ODOO_DATA_DIR=/var/lib/openerp
|
||||||
|
ODOO_LOG_DIR=/var/log/openerp
|
||||||
|
ODOO_USER="openerp"
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
if ! getent passwd | grep -q "^openerp:"; then
|
if ! getent passwd | grep -q "^openerp:"; then
|
||||||
adduser --system --no-create-home --quiet --gecos 'OpenERP' --group openerp
|
adduser --system --no-create-home --quiet --group $ODOO_USER
|
||||||
fi
|
fi
|
||||||
# Register "openerp" as a postgres superuser
|
# Register "openerp" as a postgres superuser
|
||||||
su - postgres -c "createuser -s openerp" 2> /dev/null || true
|
su - postgres -c "createuser -s openerp" 2> /dev/null || true
|
||||||
chown openerp:openerp /etc/openerp/openerp-server.conf
|
# Configuration file
|
||||||
chmod 0640 /etc/openerp/openerp-server.conf
|
chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE
|
||||||
# Creating log file
|
chmod 0640 $ODOO_CONFIGURATION_FILE
|
||||||
mkdir -p /var/log/openerp/
|
# Log
|
||||||
chown openerp:openerp /var/log/openerp
|
mkdir -p $ODOO_LOG_DIR
|
||||||
chmod 0750 /var/log/openerp
|
chown $ODOO_USER:$ODOO_GROUP $ODOO_LOG_DIR
|
||||||
# Creating local storage directory
|
chmod 0750 $ODOO_LOG_DIR
|
||||||
mkdir -p /var/lib/openerp/filestore
|
# Data dir
|
||||||
chown openerp:openerp -R /var/lib/openerp
|
mkdir -p $ODOO_DATA_DIR
|
||||||
|
chown $ODOO_USER:$ODOO_GROUP $ODOO_DATA_DIR
|
||||||
# update-python-modules NOW otherwise invoke-rc.d openerp start will fail
|
# update-python-modules NOW otherwise invoke-rc.d openerp start will fail
|
||||||
update-python-modules -p openerp.public
|
update-python-modules
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -2,15 +2,23 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
ODOO_LIB_DIR=/var/lib/openerp
|
||||||
|
ODOO_USER="openerp"
|
||||||
|
ODOO_GROUP="openerp"
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
remove)
|
remove)
|
||||||
deluser --quiet --system "openerp" || true
|
deluser --quiet --system $ODOO_USER || true
|
||||||
delgroup --quiet --system --only-if-empty "openerp" || true
|
delgroup --quiet --system --only-if-empty $ODOO_GROUP || true
|
||||||
find /var/lib/openerp -path '/var/lib/openerp/*' ! -path '/var/lib/openerp/filestore*' -delete
|
if [ -d "$ODOO_LIB_DIR" ]; then
|
||||||
|
rm -rf $ODOO_LIB_DIR
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
purge)
|
purge)
|
||||||
rm -rf /var/lib/openerp
|
if [ -d "$ODOO_LIB_DIR" ]; then
|
||||||
|
rm -rf $ODOO_LIB_DIR
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
|
|
@ -2,16 +2,4 @@
|
||||||
# vim:noet:
|
# vim:noet:
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh ${@}
|
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'
|
|
||||||
|
|
Loading…
Reference in New Issue