--- tryton-server-1.2.0.orig/etc/trytond.conf +++ tryton-server-1.2.0/etc/trytond.conf @@ -25,8 +25,8 @@ ## Note: Only databases owned by db_user will be displayed in the connection dialog ## of the Tryton client. db_user must have create permission for new databases ## to be able to use automatic database creation with the Tryton client. -#db_host = False -#db_port = False +db_host = localhost +db_port = 5432 #db_user = False #db_password = False #db_maxconn = 64 @@ -37,10 +37,6 @@ # Configure the Tryton server password #admin_passwd = admin -# Configure the path of the files for the pid and the logs -#pidfile = False -#logfile = False - # Enable secure connection with SSL #secure_netrpc = False #secure_xmlrpc = False @@ -54,7 +50,7 @@ #smtp_user = False # Configure the path to store attachments -#data_path = /var/lib/trytond +data_path = /var/lib/tryton # Limit the number of threads #max_thread = 40 --- tryton-server-1.2.0.orig/debian/tryton-server.manpages +++ tryton-server-1.2.0/debian/tryton-server.manpages @@ -0,0 +1 @@ +debian/manpages/* --- tryton-server-1.2.0.orig/debian/changelog +++ tryton-server-1.2.0/debian/changelog @@ -0,0 +1,85 @@ +tryton-server (1.2.0-2ubuntu1) karmic; urgency=low + + * Add --install-layout=deb to setup.py install to fix FTBFS with Python 2.6. + * Bump-up build-depends on python-all-dev. + + -- Alessio Treglia Wed, 27 May 2009 14:03:50 +0200 + +tryton-server (1.2.0-2) unstable; urgency=low + + [ Mathias Behrle ] + * Adding update information to postinst script. + + [ Daniel Baumann ] + * Removing log file and (potentially) empty directories on purge + (Closes: #527380). + + -- Daniel Baumann Thu, 07 May 2009 14:30:43 +0200 + +tryton-server (1.2.0-1) unstable; urgency=low + + [ Daniel Baumann ] + * Merging upstream version 1.2.0. + * Tidy rules files. + * Updating version information in manpage. + * Updating copyright file for new upstream release. + * Including TODO file in docs. + + [ Mathias Behrle ] + * Updating application description. + + [ Daniel Baumann ] + * Correcting wrapping of control file. + + -- Daniel Baumann Tue, 21 Apr 2009 19:27:00 +0200 + +tryton-server (1.0.3-3) unstable; urgency=low + + [ Mathias Behrle ] + * Fixing init script to use the correct daemon user (Closes: #521653). + * Adding documentation for forced chmod on conf file (Closes: #521659). + + -- Daniel Baumann Mon, 30 Mar 2009 11:05:00 +0200 + +tryton-server (1.0.3-2) unstable; urgency=low + + [ Mathias Behrle ] + * Reworking general server setup and documentation. + + [ Daniel Baumann ] + * Adding Mathias to uploaders. + + -- Daniel Baumann Sat, 28 Mar 2009 16:10:00 +0100 + +tryton-server (1.0.3-1) unstable; urgency=low + + * Merging upstream version 1.0.3. + + -- Daniel Baumann Mon, 23 Mar 2009 08:01:00 +0100 + +tryton-server (1.0.2-1) unstable; urgency=low + + * Merging upstream version 1.0.2. + + -- Daniel Baumann Mon, 23 Mar 2009 07:25:00 +0100 + +tryton-server (1.0.1-1) unstable; urgency=low + + * Merging upstream version 1.0.1. + * Updating to standards 3.8.1. + * Making package arch all as it should be (Closes: #520810). + + -- Daniel Baumann Sun, 22 Mar 2009 22:35:00 +0100 + +tryton-server (1.0.0-2) unstable; urgency=low + + * Updating recommends to openoffice-python. + * Updating recommends to openoffice.org. + + -- Daniel Baumann Sun, 22 Mar 2009 14:51:00 +0100 + +tryton-server (1.0.0-1) unstable; urgency=low + + * Initial release (Closes: #506095). + + -- Daniel Baumann Mon, 12 Jan 2009 15:49:00 -0500 --- tryton-server-1.2.0.orig/debian/tryton-server.links +++ tryton-server-1.2.0/debian/tryton-server.links @@ -0,0 +1 @@ +/usr/share/man/man1/trytond.1.gz /usr/share/man/man1/tryton-server.1.gz --- tryton-server-1.2.0.orig/debian/tryton-server.README.Debian +++ tryton-server-1.2.0/debian/tryton-server.README.Debian @@ -0,0 +1,88 @@ +tryton-server for Debian +------------------------ + +Tryton in its first generation uses a PostgreSQL database to store data. +You have to setup this database manually. Here is a short explanation +how to achieve this (you need to execute all commands as root): + + 0. Making sure, PostgreSQL is running + + # /etc/init.d/postgresql* restart + + Note: Make sure you have setup database password authentication. + Please refer to the PostgreSQL manual how to do this. + + 1. Creating the database user + + For PostgreSQL versions < 8.2: + # su - postgres -c "createuser -q --createdb --no-adduser tryton" + + For PostgreSQL versions >= 8.2: + # su - postgres -c "createuser -q --createdb --no-createrole --no-superuser --pwprompt tryton" + + You have to enter a password for the future database user, confirm it (to be used later + in the setup of /etc/trytond.conf as db_password) and finally enter the password + of the postgres superuser. + + Note: If you want to run the database as another user than 'tryton', you need + to replace 'tryton' above with the user you want to use instead, and you need to + adjust 'db_user = tryton' in /etc/trytond.conf, too. + + 2. Setting up the server + + Adjust /etc/trytond.conf to reflect the setup of your system + and use the database user and password from step 1 for db_user and db_password. + Also edit db_host and db_port to point to your PostgreSQL database server, if not running + on localhost and/or on non standard port (5432). + + 3. Restarting trytond + + # /etc/init.d/trytond restart + + Note: The following steps can also be performed easily from the Tryton Client and + are not mandatory to do here. + + 4. Creating the database + + # su - postgres -c "createdb -q --encoding=UNICODE --owner=tryton tryton" + + Note: Use your database user for tryton as owner of the database, and enter + a name for the database (here as default: tryton). + + 5. Initialize the database + + # /usr/bin/trytond -i all -d tryton + + Note: Use the database name you chose in step 4 (here as default: tryton). + + +Now, you're finished. Please be aware of the following things: + + * trytond has one default account: + - User: admin; password: admin (or the one you have set) + + * trytond must have read access to its configuration file, otherwise it will + start with internal defaults. The postinst script will (re)set correct permissions + on the standard configuration file (0644 on /etc/tyond.conf). + + * trytond listens by default on port 8070 (netrpc). If you need to change this, + edit /etc/trytond.conf and replace 'port = 8070' with + 'port = '. + + * trytond in its upstream configuration listens by default to *all* + interfaces. For security reasons, we do restrict it in the Debian packages + to listen only on localhost. If you need to change this, edit + /etc/trytond.conf and replace 'interface = localhost' with + 'interface = ' or just comment it out to listen to all. + + * Installation of modules into the database can be done from the Administration Panel + of the client. Under Modules you can select from the modules packages (trytond-modules*) + you have installed on your system. + To install just all, run a second time + # /usr/bin/trytond -i all -d tryton # replace tryton with the name of your database + + * Once you have upgraded to a new major version you have to update your database(s). + After the categorically recommended backup do + # /usr/bin/trytond -u all -d tryton # replace tryton with the name of your database + + -- Mathias Behrle Sat, 28 Mar 2009 12:00:00 +0200 --- tryton-server-1.2.0.orig/debian/control +++ tryton-server-1.2.0/debian/control @@ -0,0 +1,30 @@ +Source: tryton-server +Section: python +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Daniel Baumann +Uploaders: Mathias Behrle +Build-Depends: + debhelper (>= 7), python, python-all-dev (>= 2.6.1-0ubuntu1), python-setuptools, python-support +Standards-Version: 3.8.1 +Homepage: http://www.tryton.org/ +Vcs-Browser: http://git.debian.net/?p=debian/tryton-server.git +Vcs-Git: git://git.debian.net/git/debian/tryton-server.git + +Package: tryton-server +Architecture: all +Depends: + ${misc:Depends}, ${python:Depends}, adduser, python-egenix-mxdatetime, + python-egenix-mxtools, python-genshi, python-lxml, python-psycopg2, + python-relatorio, python-pkg-resources +Recommends: + python-openoffice, python-pydot, python-psyco, python-sphinx, python-tz, + python-vatnumber, python-webdav, openoffice.org-core, python-uno +Suggests: tryton-client +XB-Python-Version: ${python:Versions} +Description: Tryton Application Platform (Server) + Tryton is a high-level general purpose application platform written in Python + and using PostgreSQL as database engine. It is the core base of a complete + business solution. + . + This package contains the server. --- tryton-server-1.2.0.orig/debian/tryton-server.default +++ tryton-server-1.2.0/debian/tryton-server.default @@ -0,0 +1,19 @@ +# Defaults for trytond initscript + +# Specify the user name (Default: tryton). +DAEMONUSER="tryton" + +# Specify an alternate config file (Default: /etc/trytond.conf). +CONFIGFILE="/etc/trytond.conf" + +# Specify the log file (Default: /var/log/trytond.log). +LOGFILE="/var/log/trytond.log" + +# Specify the verbosity of the server log (-v) (Default: not set). +#VERBOSE="-v" + +# Specify the locale for the server to run (Default: en_US). +#LANG="de_DE.UTF-8" + +# Additional options that are passed to the Daemon. +DAEMON_OPTS="$VERBOSE --config=$CONFIGFILE --logfile=$LOGFILE" --- tryton-server-1.2.0.orig/debian/pyversions +++ tryton-server-1.2.0/debian/pyversions @@ -0,0 +1 @@ +2.4- --- tryton-server-1.2.0.orig/debian/tryton-server.docs +++ tryton-server-1.2.0/debian/tryton-server.docs @@ -0,0 +1 @@ +TODO --- tryton-server-1.2.0.orig/debian/tryton-server.init +++ tryton-server-1.2.0/debian/tryton-server.init @@ -0,0 +1,89 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: tryton-server +# Required-Start: $syslog +# Required-Stop: $syslog +# Should-Start: $network +# Should-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Application Platform +# Description: Tryton is an Application Platform serving as a base for a complete ERP software. +### END INIT INFO + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +DAEMON="/usr/bin/trytond" + +test -x $DAEMON || exit 0 + +NAME="trytond" +DESC="Tryton Application Platform" +DAEMONUSER="tryton" +PIDDIR="/var/run/$NAME" +PIDFILE="$PIDDIR/$NAME.pid" +LOGFILE="/var/log/$NAME.log" +DEFAULTS="/etc/default/tryton-server" +CONFIGFILE="/etc/$NAME.conf" +DAEMON_OPTS="--config=$CONFIGFILE --logfile=$LOGFILE" + +# Include tryton-server defaults if available +if [ -r "$DEFAULTS" ]; then + . "$DEFAULTS" +fi + +. /lib/lsb/init-functions + +# Make sure trytond is started with configured locale +if [ -n $LANG ]; then + export LANG=$LANG +fi + +set -e + +do_start() { + if [ ! -d $PIDDIR ]; then + mkdir $PIDDIR + chown $DAEMONUSER:$DAEMONUSER $PIDDIR + fi + + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --chuid $DAEMONUSER --background --make-pidfile \ + --exec $DAEMON -- $DAEMON_OPTS +} + +do_stop() { + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --oknodo +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + log_end_msg $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + sleep 1 + do_start + log_end_msg $? + ;; + status) + status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $? + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- tryton-server-1.2.0.orig/debian/tryton-server.postinst +++ tryton-server-1.2.0/debian/tryton-server.postinst @@ -0,0 +1,52 @@ +#!/bin/sh + +set -e + +USER="tryton" +CONFFILE="/etc/trytond.conf" +LOGFILE="/var/log/trytond.log" +HOMEDIR="/var/lib/tryton" + +case "${1}" in + configure) + # Creating system user + adduser --home ${HOMEDIR} --no-create-home --quiet --system --group ${USER} + + # Creating home directory (also used for storage of attachments) + mkdir -p ${HOMEDIR} + chown ${USER}:${USER} ${HOMEDIR} + chmod 0750 ${HOMEDIR} + + # Creating log file + touch ${LOGFILE} + chown ${USER}:adm ${LOGFILE} + chmod 0640 ${LOGFILE} + + # Setting permissions on configuration file + # trytond uses internal defaults, if it cannot read the conf file + chmod 0644 ${CONFFILE} + + echo + echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" + echo "* Tryton in its first generation uses a PostgreSQL database to store *" + echo "* its data. You have to setup this database manually. *" + echo "* On upgrades of major versions (i.e. second number of version string) *" + echo "* you have also to do a database update on existing databases. *" + echo "* Please read /usr/share/doc/tryton-server/README.Debian how to do it. *" + echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" + echo + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`{$1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- tryton-server-1.2.0.orig/debian/compat +++ tryton-server-1.2.0/debian/compat @@ -0,0 +1 @@ +7 --- tryton-server-1.2.0.orig/debian/pycompat +++ tryton-server-1.2.0/debian/pycompat @@ -0,0 +1 @@ +2 --- tryton-server-1.2.0.orig/debian/copyright +++ tryton-server-1.2.0/debian/copyright @@ -0,0 +1,44 @@ +Author: Tryton Project +Download: http://www.tryton.org/downloads.html + +Files: * +Copyright: + (C) 2004-2008 Tiny SPRL + (C) 2007-2009 Cédric Krier + (C) 2007-2008 Bertrand Chenal + (C) 2008-2009 B2CK SPRL +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 . + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. + +Files: debian/* +Copyright: (C) 2009 Daniel Baumann +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 . + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. --- tryton-server-1.2.0.orig/debian/rules +++ tryton-server-1.2.0/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + python setup.py clean + rm -rf dist build trytond.egg-info + + dh_clean + +build: + +install: + dh_testdir + dh_testroot + dh_prep + + python setup.py install --single-version-externally-managed --root=$(CURDIR)/debian/tryton-server --install-lib /usr/share/python-support/tryton-server --install-layout=deb + + find debian/tryton-server -type f -name "*.pyc" | xargs rm -f + +binary: binary-indep + +binary-arch: + +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs CHANGELOG + dh_installdocs + dh_install + dh_installinit --update-rcd-params='defaults 21' + dh_installman + dh_link + dh_pysupport + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: clean build install binary binary-arch binary-indep --- tryton-server-1.2.0.orig/debian/tryton-server.install +++ tryton-server-1.2.0/debian/tryton-server.install @@ -0,0 +1 @@ +etc/trytond.conf /etc --- tryton-server-1.2.0.orig/debian/tryton-server.postrm +++ tryton-server-1.2.0/debian/tryton-server.postrm @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +USER="tryton" + +case "${1}" in + purge) + # Removing system user + if [ -x /usr/sbin/deluser ] + then + deluser --quiet --system --remove-home ${USER} + fi + + # Removing log file + rm -f /var/log/trytond.log + + # Removing (potentially) empty directories + rmdir --ignore-fail-on-non-empty /var/lib/tryton + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- tryton-server-1.2.0.orig/debian/manpages/trytond.1 +++ tryton-server-1.2.0/debian/manpages/trytond.1 @@ -0,0 +1,27 @@ +.TH TRYTOND 1 "2009-04-20" "1.2.0" "Tryton Application Platform" + +.SH NAME +trytond \- Tryton Application Platform (Server) + +.SH SYNOPSIS +\fBtrytond\fR + +.SH DESCRIPTION +Tryton is a high-level general purpose application platform written in Python and using PostgreSQL as database engine. It is the core base of an ERP. + +.SH OPTIONS +\fBtrytond\fR has no options. + +.SH FILES +\fB/etc/trytond.conf\fR + +.SH SEE ALSO +\fItryton\fR(1) + +.SH HOMEPAGE +More information about the Tryton server and the Tryton project can be found at <\fIhttp://www.tryton.org/\fR>. + +.SH AUTHOR +Tryton server was written by the Tryton project <\fIhttp://www.tryton.org/\fR>. +.PP +This manual page was written by Daniel Baumann <\fIdaniel@debian.org\fR>, for the Debian project (but may be used by others).